Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| shiftid | bigserial | 19 | √ | nextval('tbl_shiftmasterv1_shiftid_seq'::regclass) |
|
|
Primary key |
||||||||||||||||||||||
| shiftname | varchar | 100 | √ | null |
|
|
The user-friendly name of the shift (e.g., “General Day Shift,” “Night Production Shift”). |
||||||||||||||||||||||
| shiftcolor | varchar | 50 | √ | null |
|
|
A color code (e.g., HEX code) used for visual representation of the shift on schedules or dashboards. |
||||||||||||||||||||||
| stage | varchar | 30 | √ | null |
|
|
The current lifecycle status of the shift configuration (e.g., Draft, Active, Archived). |
||||||||||||||||||||||
| nextdayend | bool | 1 | √ | null |
|
|
Flag indicating if the shift end time extends into the next calendar day (e.g., a night shift starting at 10 PM and ending at 6 AM). |
||||||||||||||||||||||
| starttime | time | 15,6 | √ | null |
|
|
The scheduled start time of the shift. |
||||||||||||||||||||||
| endtime | time | 15,6 | √ | null |
|
|
The scheduled end time of the shift. |
||||||||||||||||||||||
| duration | varchar | 50 | √ | null |
|
|
The total scheduled duration of the shift in hours and minutes, including breaks. |
||||||||||||||||||||||
| tolerancestart | numeric | 0 | √ | null |
|
|
The allowed buffer or grace time before the shift start time during which a punch-in is considered “On Time.” |
||||||||||||||||||||||
| toleranceend | numeric | 0 | √ | null |
|
|
The allowed buffer or grace time after the shift end time during which a punch-out is considered “On Time.” |
||||||||||||||||||||||
| buffertime | int8 | 19 | √ | null |
|
|
General buffer time or total non-working grace period allocated for the shift. |
||||||||||||||||||||||
| fulldayhours | numeric | 0 | √ | null |
|
|
The minimum working hours required to qualify for a “Full Day” of attendance. |
||||||||||||||||||||||
| halfdayhours | numeric | 0 | √ | null |
|
|
The minimum working hours required to qualify for a “Half Day” of attendance. |
||||||||||||||||||||||
| shiftgroup | bool | 1 | √ | false |
|
|
FK: Reference to a shift group master table |
||||||||||||||||||||||
| description | varchar | 1000 | √ | null |
|
|
Detailed description or notes about the shift, including break times or specific rules. |
||||||||||||||||||||||
| createdby | varchar | 50 | √ | null |
|
|
FK: public.tbl_userlogin.id or public.tbl_employee.employeeid |
||||||||||||||||||||||
| createddate | timestamp | 29,6 | √ | null |
|
|
Timestamp of when the shift 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 shift record. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| tbl_shiftmasterv1_pk__tbl_shif__c0a8388128c631ef | Primary key | Asc | shiftid |


