Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments |
|---|---|---|---|---|---|---|---|---|
| id | bigserial | 19 | √ | nextval('tbl_attendance_workschedule_history_id_seq'::regclass) |
|
|
Primary key of the history table |
|
| workschedulename | varchar | 255 | √ | null |
|
|
The name of the work schedule configuration at the time of this history record. |
|
| flexibletype | varchar | 20 | √ | null |
|
|
The type of flexible schedule applied (e.g., Daily, Weekly, Monthly, or Not Applicable). |
|
| duration | varchar | 20 | √ | null |
|
|
The total time duration covered by the schedule configuration (e.g., 8:00 hours). |
|
| reason | varchar | 1000 | √ | null |
|
|
The justification or comment provided for the change that led to the creation of this history record. |
|
| monthlyminimumhours | int4 | 10 | √ | null |
|
|
The minimum total working hours required monthly to meet attendance compliance. |
|
| weeklyminimumhours | int4 | 10 | √ | null |
|
|
The minimum total working hours required weekly to meet attendance compliance. |
|
| dailyminimumhours | int4 | 10 | √ | null |
|
|
The minimum working hours required daily to qualify for a full day of attendance. |
|
| dailyhalfdayminimumhours | int4 | 10 | √ | null |
|
|
The minimum working hours required daily to qualify for a half day of attendance. |
|
| hoursforfulldayleave | int4 | 10 | √ | null |
|
|
The number of hours deducted from an employee’s balance or used as working credit for a full day of leave. |
|
| hoursforhalfdayleave | int4 | 10 | √ | null |
|
|
The number of hours deducted from an employee’s balance or used as working credit for a half day of leave. |
|
| workscheduleid | int8 | 19 | √ | null |
|
|
FK: public.tbl_attendance_workschedule_master.id |
|
| stage | varchar | 20 | √ | null |
|
|
The lifecycle stage of the work schedule configuration (e.g., Active) at the time of the change. |
|
| workingdayscount | int4 | 10 | √ | 0 |
|
|
The number of required working days in the schedule period (e.g., 5 or 6). |
|
| createdby | varchar | 50 | √ | null |
|
|
FK: public.tbl_userlogin.id or public.tbl_employee.employeeid |
|
| createddate | timestamp | 29,6 | √ | null |
|
|
Timestamp of when the historical record was created (i.e., when the modification to the master record occurred). |
|
| 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 master work schedule record before this history snapshot was taken. |
|
| calculation_on | varchar | 20 | √ | null |
|
|
Specifies the basis for minimum hours calculation (e.g., Based on total hors , Based on Net Hours ). |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| tbl_attendance_workschedule_history_pk_tbl_attendance_worksched | Primary key | Asc | id |
