Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments |
|---|---|---|---|---|---|---|---|---|
| id | bigserial | 19 | √ | nextval('tbl_attendancepolicy_history_id_seq'::regclass) |
|
|
Primary key of the history table |
|
| policyhistoryid | int8 | 19 | √ | null |
|
|
FK: public.tbl_attendancepolicy.id |
|
| policyname | varchar | 100 | √ | null |
|
|
Meaning: The user-friendly name of the attendance policy (e.g., “Standard Office Hours,” “Flexible WFH Policy”). |
|
| description | varchar | 1000 | √ | null |
|
|
Detailed description of the policy, summarizing its scope and key features at the time this history record was created. |
|
| members | text | 2147483647 | √ | null |
|
|
Meaning: Indicates which employees or groups were assigned to this policy at the time of the revision. |
|
| allowfromapp | bool | 1 | √ | null |
|
|
Flag to indicate if attendance (punch-in/out) was allowed via the mobile application in this policy version. |
|
| allowfromweb | bool | 1 | √ | null |
|
|
Flag to indicate if attendance was allowed via the web portal (desktop browser) in this policy version. |
|
| allowfrombiometric | bool | 1 | √ | null |
|
|
Flag to indicate if attendance was allowed via biometric devices in this policy version. |
|
| calculationmethod | varchar | 255 | √ | null |
|
|
Defines the basis for attendance calculation (e.g., Total Working Hours, Net Working hours-based, Single punch) used by this policy version. |
|
| multipunchallowed | bool | 1 | √ | null |
|
|
Determines if an employee was allowed multiple punch-in/out pairs in a single day under this policy version. |
|
| correctionlimits | bool | 1 | √ | null |
|
|
The maximum number of times an employee could raise a correction request within a specified period in this policy version. |
|
| correctionrequestraisedays | int4 | 10 | √ | null |
|
|
The number of days after an attendance event within which a correction request could be raised under this policy version. |
|
| correctionmaximumallow | int4 | 10 | √ | null |
|
|
The total maximum number of correction requests allowed (Monthly or per policy term) under this policy version. |
|
| regularizationlimits | bool | 1 | √ | null |
|
|
The maximum number of regularization requests allowed (e.g., for missing a punch) under this policy version. |
|
| regularizationrequestraisedays | int4 | 10 | √ | null |
|
|
The number of days after a missed punch within which a regularization request could be submitted under this policy version. |
|
| regularizationmaximumallow | int4 | 10 | √ | null |
|
|
The total maximum number of regularization requests allowed under this policy version. |
|
| timeperiodforlatecoming | int4 | 10 | √ | null |
|
|
Defines the period within the shift start time that determines a “Late Coming” event for this policy version. |
|
| timeperiodforearlygoing | int4 | 10 | √ | null |
|
|
Defines the period before the shift end time that determines an “Early Going” event for this policy version. |
|
| timeperiodfortimeoff | int4 | 10 | √ | null |
|
|
The time period required to qualify an absence as a “Time Off” event (partial day leave) for this policy version. |
|
| fixedattendance | bool | 1 | √ | null |
|
|
Flag indicating if this policy version used a fixed shift/attendance schedule. |
|
| fixedlatecominggrace | int4 | 10 | √ | null |
|
|
The grace time allowed for late-coming in a fixed attendance model for this policy version. |
|
| fixedearlygoinggrace | int4 | 10 | √ | null |
|
|
The grace time allowed for early-going in a fixed attendance model for this policy version. |
|
| allowlatecomingtype | varchar | 255 | √ | null |
|
|
The method used to calculate or allow late-coming (e.g., Daily, Monthly, Slab-based) for this policy version. |
|
| allowearlygoingtype | varchar | 255 | √ | null |
|
|
The method used to calculate or allow early-going for this policy version. |
|
| allowlatecomingminutes | int4 | 10 | √ | null |
|
|
Total aggregate late-coming minutes allowed before a penalty was applied in this policy version. |
|
| allowearlygoingminutes | int4 | 10 | √ | null |
|
|
Total aggregate early-going minutes allowed before a penalty was applied in this policy version. |
|
| allowlatecomingtime | int4 | 10 | √ | null |
|
|
Specific time boundary for late-coming for this policy version. |
|
| allowearlygoingtime | int4 | 10 | √ | null |
|
|
Specific time boundary for early-going for this policy version. |
|
| firstpunchlateby | int4 | 10 | √ | null |
|
|
A flag or value indicating if a penalty was applied based on the first punch-in being late by a certain margin in this policy version. |
|
| applypenalty | bool | 1 | √ | null |
|
|
Master flag indicating if attendance penalties were enabled in this policy version. |
|
| latecomingandearlygoingpenalty | bool | 1 | √ | null |
|
|
The type of combined penalty applied for late-coming and early-going events for this policy version. |
|
| eventtype | varchar | 255 | √ | null |
|
|
Defines what constituted a penalizable event (e.g., For Every event or after a set number of events) in this policy version. |
|
| noofevents | int4 | 10 | √ | null |
|
|
The number of late-coming/early-going events allowed before a penalty was triggered in this policy version. |
|
| fixeddeductfrom | varchar | 255 | √ | null |
|
|
Specifies what the penalty was deducted from (e.g., Leave or attendance deduction) in this policy version. |
|
| fixeddeductleavetypes | varchar | 255 | √ | null |
|
|
Comma-separated list of leave types to deduct from (Eg NBL PL) in this policy version. |
|
| fixeddeductionslab | varchar | 255 | √ | null |
|
|
JSON or Text describing the penalty slab based on events or shortfall hours for this policy version. |
|
| deductdays | float8 | 17,17 | √ | null |
|
|
The number of days (or fractional days) deducted as a penalty in this policy version. |
|
| fixedwaivepenalty | bool | 1 | √ | null |
|
|
Flag or criteria to automatically waive a penalty in this policy version. |
|
| shortfallnotification | bool | 1 | √ | null |
|
|
Flag to enable/disable notifications for attendance shortfalls in this policy version. |
|
| latecomingearlygoingnotification | bool | 1 | √ | null |
|
|
Flag to enable/disable immediate notifications for late-coming or early-going in this policy version. |
|
| flexibleattendance | bool | 1 | √ | null |
|
|
Flag indicating if this policy version used a flexible shift/attendance schedule. |
|
| flexiblegracehours | float8 | 17,17 | √ | null |
|
|
Total flexible hours/minutes allowed as a grace before a working hour shortfall was penalized in this policy version. |
|
| flexibledeductfrom | varchar | 255 | √ | null |
|
|
Specifies what the shortfall penalty was deducted from in a flexible attendance model for this policy version. |
|
| flexibledeductleavetypes | varchar | 255 | √ | null |
|
|
Leave types (PL NBL) to deduct from for flexible attendance shortfalls in this policy version. |
|
| flexibleshortfallslabhours | varchar | 255 | √ | null |
|
|
Penalty slab definition based on hours of shortfall in flexible attendance for this policy version. |
|
| flexibleshortfallnotification | bool | 1 | √ | null |
|
|
Notification flag for flexible attendance shortfalls in this policy version. |
|
| penaltywarningnotification | bool | 1 | √ | null |
|
|
Flag to enable/disable a warning notification before a penalty was applied in this policy version. |
|
| inpunchoutpunchnotification | bool | 1 | √ | null |
|
|
Flag to enable/disable confirmation notifications for every punch-in and punch-out event in this policy version. |
|
| stage | varchar | 255 | √ | null |
|
|
The Policy stage (e.g., Draft, Active, Retired) at the time this history record was created. |
|
| combineecrlgrlimit | bool | 1 | √ | null |
|
|
Flag to indicate if late-coming/early-going limits were combined or treated separately in this policy version. |
|
| createdby | varchar | 50 | √ | null |
|
|
FK: public.tbl_userlogin.id or public.tbl_employee.employeeid |
|
| createddate | timestamp | 29,6 | √ | null |
|
|
Timestamp of when this historical policy version was created/recorded. |
|
| modifiedby | varchar | 50 | √ | null |
|
|
FK: public.tbl_userlogin.id or public.tbl_employee.employeeid |
|
| modifieddate | timestamp | 29,6 | √ | null |
|
|
Timestamp of the last modification to the policy before this history record was created. |
|
| startingday | int4 | 10 | √ | 0 |
|
|
Defines the start day of the attendance/payroll cycle for this policy version. |
|
| mobilepunchinimage | int4 | 10 | √ | null |
|
|
Flag requiring an image/photo capture during mobile punch-in in this policy version. |
|
| mobilepunchoutimage | int4 | 10 | √ | null |
|
|
Flag requiring an image/photo capture during mobile punch-out in this policy version. |
|
| weblocation | varchar | 50 | √ | null |
|
|
Flag or setting for geographical location (IP/network) validation during web punch-in/out in this policy version. |
|
| mobilelocation | varchar | 50 | √ | null |
|
|
Flag or setting for GPS/geo-fencing location validation during mobile punch-in/out in this policy version. |
|
| allowedmaxtimeinotherhalf | int4 | 10 | √ | 50 |
|
|
Maximum time allowed to punch in the second half of the day in this policy version. |
|
| shiftstartnotificationtitle | varchar | 100 | √ | null |
|
|
Custom title for the shift start notification in this policy version. |
|
| shiftstartnotificationdescription | varchar | 500 | √ | null |
|
|
Custom body/description for the shift start notification in this policy version. |
|
| shiftendnotificationtitle | varchar | 100 | √ | null |
|
|
Custom title for the shift end notification in this policy version. |
|
| shiftendnotificationdescription | varchar | 500 | √ | null |
|
|
Custom body/description for the shift end notification in this policy version. |
|
| fixedshiftgracetime | int4 | 10 | √ | null |
|
|
Total non-cumulative grace time for a fixed shift in this policy version. |
|
| sandwichoffday | bool | 1 | √ | null |
|
|
Flag to determine if an off-day between two leaves/absences was counted as a leave/absence in this policy version. |
|
| looseninginout | bool | 1 | √ | null |
|
|
A mechanism to relax punch-in/out time constraints in this policy version. |
|
| timesheetonpunchin | varchar | 50 | √ | '''OFF'''::character varying |
|
|
Flag to prompt a timesheet or task entry upon punch-in in this policy version. |
|
| timesheetonpunchout | varchar | 50 | √ | '''OFF'''::character varying |
|
|
Flag to prompt a timesheet or task entry upon punch-out in this policy version. |
|
| salarydeductiontype | varchar | 50 | √ | null |
|
|
Specifies the base for salary deduction (e.g., Basic, Gross) for this policy version. |
|
| salarydeduct | float8 | 17,17 | √ | null |
|
|
Flag to show if an amount (salary) was cut as a penalty in this policy version. |
|
| salaryfulldayhour | int4 | 10 | √ | null |
|
|
The number of hours considered a “Full Day” for salary calculation in this policy version. |
|
| fixedshiftgracetimehalfday | int4 | 10 | √ | null |
|
|
Non-cumulative grace time for a fixed shift when calculating a half-day loss in this policy version. |
|
| restrictgraceafter | int4 | 10 | √ | null |
|
|
Time of day or condition after which grace time was no longer applied in this policy version. |
|
| addgracewhen | varchar | 50 | √ | null |
|
|
Condition or rule for when to apply additional grace time in this policy version. |
|
| fixedwaivepenaltyhalfday | bool | 1 | √ | null |
|
|
Flag or criteria to waive a half-day penalty in this policy version. |
|
| removeotherpenaltywhenhalfday | bool | 1 | √ | null |
|
|
Flag to indicate if other minor penalties were cleared when a major half-day penalty was applied in this policy version. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| tbl_attendancepolicy_history_pk_tbl_attendancepolicy_history | Primary key | Asc | id |
