Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | bigserial | 19 | √ | nextval('tbl_leavecodepolicyconfig_id_seq'::regclass) |
|
|
Primary key |
|||||||||||||
| status | varchar | 100 | null |
|
|
Policy status indicator |
||||||||||||||
| applicablecriteria | text | 2147483647 | √ | null |
|
|
Target employee criteria for policy application |
|||||||||||||
| isfirsttimeallocated | bool | 1 | null |
|
|
Safety lock for allocation criteria modifications |
||||||||||||||
| leavecodepolicyname | varchar | 100 | null |
|
|
User-defined name for the leave policy |
||||||||||||||
| description | varchar | 500 | √ | null |
|
|
Detailed description of the policy purpose and rules |
|||||||||||||
| leavecodeid | int8 | 19 | null |
|
|
FK: public.tbl_leavecodemaster.leavecodeid |
||||||||||||||
| leavecalendar | varchar | 100 | √ | null |
|
|
Leave year calculation basis |
|||||||||||||
| effectivefromdate | date | 13 | null |
|
|
Policy activation date |
||||||||||||||
| yearendclosingconfig | varchar | 100 | √ | null |
|
|
Year-end processing mode |
|||||||||||||
| allotfrom | varchar | 100 | √ | null |
|
|
Leave entitlement start point |
|||||||||||||
| roundoffmonthlyconfig | varchar | 100 | √ | null |
|
|
Rounding method for monthly allocations |
|||||||||||||
| allotmentfrequency | varchar | 100 | √ | null |
|
|
Leave allocation frequency |
|||||||||||||
| allotmenttime | varchar | 100 | √ | null |
|
|
Timing of leave allocation within cycle |
|||||||||||||
| allotleavecountbasedon | varchar | 100 | √ | null |
|
|
Basis for leave calculation |
|||||||||||||
| roundoffleavecount | varchar | 100 | √ | null |
|
|
||||||||||||||
| allotmenttype | varchar | 100 | √ | null |
|
|
Core allocation methodology |
|||||||||||||
| allotmentfixedtype | varchar | 100 | √ | null |
|
|
Fixed allocation pattern |
|||||||||||||
| allotmentfixedcount | varchar | 100 | √ | null |
|
|
Fixed allocation values |
|||||||||||||
| allotmentproratatype | varchar | 100 | √ | null |
|
|
Pro-rata calculation method |
|||||||||||||
| allotmentproratacount | varchar | 100 | √ | null |
|
|
Pro-rata allocation rates |
|||||||||||||
| probationrestriction | varchar | 100 | √ | null |
|
|
Probation period handling |
|||||||||||||
| allotprobationtype | varchar | 100 | √ | null |
|
|
Probation allocation method |
|||||||||||||
| allotprobationcount | varchar | 100 | √ | null |
|
|
||||||||||||||
| roundoffallotprobationcount | varchar | 100 | √ | null |
|
|
||||||||||||||
| parentaleligibilitydays | int4 | 10 | √ | null |
|
|
Minimum service required for parental leave |
|||||||||||||
| parentalclaimtime | int4 | 10 | √ | null |
|
|
||||||||||||||
| parentalleavesfordelivery | int4 | 10 | √ | null |
|
|
Leave days allocated for childbirth |
|||||||||||||
| parentalleavesforadoption | int4 | 10 | √ | null |
|
|
||||||||||||||
| parentalleavesformiscarriage | int4 | 10 | √ | null |
|
|
||||||||||||||
| parentalsplittime | int4 | 10 | √ | null |
|
|
||||||||||||||
| parentalgapbtwclaimtime | int4 | 10 | √ | null |
|
|
||||||||||||||
| parentalvalidity | int4 | 10 | √ | null |
|
|
Validity period for parental leave |
|||||||||||||
| allowfrom | varchar | 100 | √ | null |
|
|
When employees can start applying for leaves |
|||||||||||||
| allowapplyingafterdays | int4 | 10 | √ | null |
|
|
Advance notice requirement |
|||||||||||||
| displaybeforeeligibletoapply | bool | 1 | √ | null |
|
|
||||||||||||||
| leaveapplicationsubmittedrestriction | varchar | 100 | √ | null |
|
|
Application submission timeline restriction |
|||||||||||||
| leaveapplicationsubmitteddays | int4 | 10 | √ | null |
|
|
||||||||||||||
| maxleaveinprobation | float8 | 17,17 | √ | null |
|
|
||||||||||||||
| roundoffmaxleaveinprobation | varchar | 100 | √ | null |
|
|
||||||||||||||
| monthlyrestrictiondays | float8 | 17,17 | √ | null |
|
|
||||||||||||||
| noticeperiodleave | float8 | 17,17 | √ | null |
|
|
Leave encashment during notice period |
|||||||||||||
| docupload | varchar | 100 | √ | null |
|
|
Document upload requirement |
|||||||||||||
| docuploadreqdays | float8 | 17,17 | √ | null |
|
|
||||||||||||||
| advanceleave | float8 | 17,17 | √ | null |
|
|
||||||||||||||
| applyleavebefore | int4 | 10 | √ | null |
|
|
||||||||||||||
| applyleaveafter | int4 | 10 | √ | null |
|
|
||||||||||||||
| minleavepertransaction | float8 | 17,17 | √ | null |
|
|
Minimum leave that can be applied at once |
|||||||||||||
| maxleavepertransaction | float8 | 17,17 | √ | null |
|
|
Maximum leave per single application |
|||||||||||||
| mindurationbtwinstances | int4 | 10 | √ | null |
|
|
||||||||||||||
| maxinstancesperyear | int4 | 10 | √ | null |
|
|
Maximum number of leave applications per year |
|||||||||||||
| maxdayspermonth | float8 | 17,17 | √ | null |
|
|
||||||||||||||
| holidayleaveholiday | bool | 1 | √ | null |
|
|
||||||||||||||
| leaveholidayleave | bool | 1 | √ | null |
|
|
||||||||||||||
| weekoffleaveweekoff | bool | 1 | √ | null |
|
|
||||||||||||||
| leaveweekoffleave | bool | 1 | √ | null |
|
|
||||||||||||||
| holidayleaveweekoffviceversa | bool | 1 | √ | null |
|
|
||||||||||||||
| carryoverenable | bool | 1 | √ | null |
|
|
Enables year-end leave carry forward |
|||||||||||||
| carryovercycleconfig | varchar | 100 | √ | null |
|
|
||||||||||||||
| carryoveryearlyconfig | varchar | 100 | √ | null |
|
|
||||||||||||||
| carryovervalue | float8 | 17,17 | √ | null |
|
|
Maximum leaves that can be carried forward |
|||||||||||||
| carryovercalculationunit | varchar | 100 | √ | null |
|
|
||||||||||||||
| carryoverroundoff | varchar | 100 | √ | null |
|
|
||||||||||||||
| remainingleaveaftercarryover | varchar | 100 | √ | null |
|
|
||||||||||||||
| encashvalueofcarryover | float8 | 17,17 | √ | null |
|
|
Encashment value for carried-over leaves |
|||||||||||||
| encashunitofcarryover | varchar | 100 | √ | null |
|
|
||||||||||||||
| encashroundoffofcarryover | varchar | 100 | √ | null |
|
|
||||||||||||||
| encashprocessofcarryover | varchar | 100 | √ | null |
|
|
||||||||||||||
| encashpaymentmonthofcarryover | varchar | 100 | √ | null |
|
|
||||||||||||||
| encashformulaofcarryover | varchar | 100 | √ | null |
|
|
Salary calculation formula for encashment |
|||||||||||||
| carryovertenurelimit | float8 | 17,17 | √ | null |
|
|
||||||||||||||
| remainingleaveaftertenurelimit | varchar | 100 | √ | null |
|
|
||||||||||||||
| encashvalueoftenure | float8 | 17,17 | √ | null |
|
|
||||||||||||||
| encashunitoftenure | varchar | 100 | √ | null |
|
|
||||||||||||||
| encashroundoffoftenure | varchar | 100 | √ | null |
|
|
||||||||||||||
| encashprocessoftenure | varchar | 100 | √ | null |
|
|
||||||||||||||
| encashpaymentmonthoftenure | varchar | 100 | √ | null |
|
|
||||||||||||||
| encashformulaoftenure | varchar | 100 | √ | null |
|
|
||||||||||||||
| carryoverexpiry | varchar | 100 | √ | null |
|
|
||||||||||||||
| encashableonseparation | bool | 1 | √ | null |
|
|
||||||||||||||
| encashunitofseparation | varchar | 100 | √ | null |
|
|
||||||||||||||
| encashvalueofseparation | float8 | 17,17 | √ | null |
|
|
||||||||||||||
| encashroundoffofseparation | varchar | 100 | √ | null |
|
|
||||||||||||||
| coffhalfdayhours | float8 | 17,17 | √ | null |
|
|
Hours required for half-day compensatory off |
|||||||||||||
| cofffulldayhours | float8 | 17,17 | √ | null |
|
|
Hours required for full-day compensatory off |
|||||||||||||
| coffconfig | varchar | 100 | √ | null |
|
|
Comp-off utilization method |
|||||||||||||
| cofflimitperiod | varchar | 100 | √ | null |
|
|
||||||||||||||
| cofflimitdays | float8 | 17,17 | √ | null |
|
|
||||||||||||||
| coffexpiry | int4 | 10 | √ | null |
|
|
||||||||||||||
| createdby | varchar | 50 | null |
|
|
|||||||||||||||
| createddate | timestamp | 29,6 | null |
|
|
|||||||||||||||
| modifiedby | varchar | 50 | null |
|
|
|||||||||||||||
| modifieddate | timestamp | 29,6 | null |
|
|
|||||||||||||||
| allow_next_calendar_request | bool | 1 | √ | null |
|
|
Cross-year leave application permission |
|||||||||||||
| leave_application_restriction_json | text | 2147483647 | √ | null |
|
|
Detailed application restriction rules |
|||||||||||||
| sandwich_type_1_applicable_for | varchar | 10 | √ | 'BOTH'::character varying |
|
|
||||||||||||||
| sandwich_type_1_applicable | bool | 1 | √ | false |
|
|
Enables Sandwich Type 1 detection |
|||||||||||||
| sandwich_type_1_continue | bool | 1 | √ | true |
|
|
||||||||||||||
| sandwich_type_1_minimum_side_1 | float8 | 17,17 | √ | 0.5 |
|
|
Minimum leave required on first side |
|||||||||||||
| sandwich_type_1_minimum_side_2 | float8 | 17,17 | √ | 0.5 |
|
|
||||||||||||||
| sandwich_type_1_minimum_off_day_count | float8 | 17,17 | √ | 1 |
|
|
Minimum off-days required for sandwich pattern |
|||||||||||||
| sandwich_type_1_minimum_leave_count | float8 | 17,17 | √ | 1 |
|
|
||||||||||||||
| sandwich_type_2_applicable_for | varchar | 10 | √ | 'HOLIDAY'::character varying |
|
|
||||||||||||||
| sandwich_type_2_applicable | bool | 1 | √ | false |
|
|
||||||||||||||
| sandwich_type_2_continue | bool | 1 | √ | true |
|
|
||||||||||||||
| sandwich_type_2_minimum_side_1 | float8 | 17,17 | √ | 0.5 |
|
|
||||||||||||||
| sandwich_type_2_minimum_side_2 | float8 | 17,17 | √ | 0.5 |
|
|
||||||||||||||
| sandwich_type_2_minimum_off_day_count | float8 | 17,17 | √ | 1 |
|
|
||||||||||||||
| sandwich_type_2_minimum_leave_count | float8 | 17,17 | √ | 1 |
|
|
||||||||||||||
| sandwich_type_3_applicable_for | varchar | 10 | √ | 'BOTH'::character varying |
|
|
||||||||||||||
| sandwich_type_3_applicable | bool | 1 | √ | false |
|
|
||||||||||||||
| sandwich_type_3_minimum_off_day_count | float8 | 17,17 | √ | 2 |
|
|
||||||||||||||
| sandwich_type_3_minimum_leave_count | float8 | 17,17 | √ | 1 |
|
|
||||||||||||||
| sandwich_type_4_applicable_for | varchar | 10 | √ | 'HOLIDAY'::character varying |
|
|
||||||||||||||
| sandwich_type_4_applicable | bool | 1 | √ | false |
|
|
||||||||||||||
| sandwich_type_4_minimum_off_day_count | float8 | 17,17 | √ | 2 |
|
|
||||||||||||||
| sandwich_type_4_minimum_leave_count | float8 | 17,17 | √ | 1 |
|
|
||||||||||||||
| parental_eligibility_days_type | varchar | 10 | √ | null |
|
|
Eligibility days calculation basis |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| pk_tbl_leavecodepolicyconfig_id | Primary key | Asc | id |
| ux_tbl_leavecodepolicyconfig_leavecodepolicyname_leavecodeid | Must be unique | Asc/Asc | leavecodepolicyname + leavecodeid |



