Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments |
|---|---|---|---|---|---|---|---|---|
| id | bigserial | 19 | √ | nextval('tbl_attendance_workschedule_id_seq'::regclass) |
|
|
Primary key |
|
| workschedulename | varchar | 255 | √ | null |
|
|
The user-friendly name of the work schedule (e.g., “Standard 5-Day WFH,” “Factory Flexi-Shift”). |
|
| flexibletype | varchar | 20 | √ | null |
|
|
Defines the type of flexible schedule applied (e.g., Daily, Weekly, Monthly, or Not Applicable). |
|
| duration | varchar | 20 | √ | null |
|
|
The standard total time duration covered by the schedule configuration (e.g., 8:00 hours). |
|
| reason | varchar | 1000 | √ | null |
|
|
General notes or justification for the creation or modification of this specific schedule configuration. |
|
| monthlyminimumhours | int4 | 10 | √ | null |
|
|
The minimum total working hours required over a monthly period to meet attendance compliance for this schedule. |
|
| weeklyminimumhours | int4 | 10 | √ | null |
|
|
The minimum total working hours required over a weekly period to meet attendance compliance for this schedule. |
|
| dailyminimumhours | int4 | 10 | √ | null |
|
|
The minimum working hours required daily to qualify for a full day of attendance credit. |
|
| dailyhalfdayminimumhours | int4 | 10 | √ | null |
|
|
The minimum working hours required daily to qualify for a half day of attendance credit. |
|
| hoursforfulldayleave | int4 | 10 | √ | null |
|
|
The number of hours used as working credit or deducted from an employee’s balance for a full day of leave. |
|
| hoursforhalfdayleave | int4 | 10 | √ | null |
|
|
The number of hours used as working credit or deducted from an employee’s balance for a half day of leave. |
|
| stage | varchar | 20 | √ | null |
|
|
The current lifecycle stage of the work schedule configuration (e.g., Draft, Active, Archived). |
|
| workingdayscount | int4 | 10 | √ | 0 |
|
|
The number of required working days in the schedule period (e.g., 5-day or 6-day week). |
|
| createdby | varchar | 50 | √ | null |
|
|
FK: public.tbl_userlogin.id or public.tbl_employee.employeeid |
|
| createddate | timestamp | 29,6 | √ | null |
|
|
Timestamp of when the work schedule configuration record was created. |
|
| 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 work schedule configuration record. |
|
| calculation_on | varchar | 20 | √ | null |
|
|
Specifies the basis for minimum hours calculation (e.g., Based on shift hours, Based on month days, Fixed value). |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| tbl_attendance_workschedule_pk_tbl_attendance_workschedule | Primary key | Asc | id |
| tbl_attendance_workschedule_qk_tbl_attendance_workschedule | Must be unique | Asc | workschedulename |
