Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| historyid | bigserial | 19 | √ | nextval('tbl_shiftmasterv1history_historyid_seq'::regclass) |
|
|
Primary key of the history table |
|||||||||||||
| shiftid | int8 | 19 | √ | null |
|
|
FK: public.tbl_shiftmasterv1.shiftid |
|||||||||||||
| shiftname | varchar | 100 | √ | null |
|
|
The user-friendly name of the shift at the time this history record was created. |
|||||||||||||
| shiftcolor | varchar | 50 | √ | null |
|
|
The color code used for visual representation of the shift in this version. |
|||||||||||||
| companyid | int4 | 10 | √ | null |
|
|
FK: Reference to a company master table |
|||||||||||||
| stage | varchar | 30 | √ | null |
|
|
The lifecycle status of the shift configuration at the time of the change (e.g., Active). |
|||||||||||||
| nextdayend | bool | 1 | √ | null |
|
|
Flag indicating if the shift end time extended into the next calendar day in this version. |
|||||||||||||
| starttime | time | 15,6 | √ | null |
|
|
The scheduled start time of the shift in this version. |
|||||||||||||
| endtime | time | 15,6 | √ | null |
|
|
The scheduled end time of the shift in this version. |
|||||||||||||
| duration | varchar | 50 | √ | null |
|
|
The total scheduled duration of the shift in this version. |
|||||||||||||
| tolerancestart | numeric | 0 | √ | null |
|
|
The allowed buffer or grace time before the shift start time in this version. |
|||||||||||||
| toleranceend | numeric | 0 | √ | null |
|
|
The allowed buffer or grace time after the shift end time in this version. |
|||||||||||||
| buffertime | int8 | 19 | √ | null |
|
|
General buffer time or total non-working grace period allocated for the shift in this version. |
|||||||||||||
| fulldayhours | numeric | 0 | √ | null |
|
|
The minimum working hours required to qualify for a “Full Day” of attendance in this version. |
|||||||||||||
| halfdayhours | numeric | 0 | √ | null |
|
|
The minimum working hours required to qualify for a “Half Day” of attendance in this version. |
|||||||||||||
| shiftgroup | bool | 1 | √ | false |
|
|
FK: Reference to a shift group master table |
|||||||||||||
| description | varchar | 1000 | √ | null |
|
|
Detailed description or notes about the shift in this version. |
|||||||||||||
| 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 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 parent shift record before this history snapshot was taken. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| tbl_shiftmasterv1history_pk__tbl_shif__4d7b4abdc1069333 | Primary key | Asc | historyid |


