Table of Contents
- Introduction
- Important Instructions
- Requirements
- Database
- Tables
- change_log
- data_absence
- data_booking
- data_custom_shift
- data_employee
- data_employee_access
- data_employment_period
- data_fixed_shift
- data_group
- data_group_access
- data_holiday
- data_individual_working_time
- data_leave_ban
- data_leave_entitlement
- data_leave_type
- data_membership
- data_modified_shift
- data_note
- data_overtime
- data_shift_cycle
- data_shift_cycle_assignment
- data_shift_cycle_element
- data_shift_cycle_exception
- data_shift_requirement
- data_shift_type
- data_shift_type_restriction
- data_special_period
- data_special_shift_requirement
- data_special_weekday_requirement
- data_surcharge_type
- data_user_setting
- data_user_specification
- data_working_time_model
- data_workplace
- Tables
Table data_custom_shift
The data_custom_shift table contains the custom shifts of the employees, i.e., the duties to which no predefined shift type is assigned.
Table Description
| Column | Data type | Description |
|---|---|---|
| custom_shift_id | int | Primary key (Auto value) Unique record ID |
| employee_id | int | Foreign key to table data_employee Identifies the associated employee |
| workplace_id | int | Foreign key to table data_workplace Identifies the associated workplace. NULL if no workplace is assigned. Default value: NULL |
| date | date | Validity date |
| name | varchar(100) | Name of the custom shift Must not be empty |
| short_name | varchar(100) | Short name of the custom shift. Must not be empty |
| color_text | char(6) | Text color in hex format Default value: 000000 |
| color_bk | char(6) | Background color in hex format Default value: FFFFFF |
| color_bar | char(6) | Bar color in hex format Default value: FF0000 |
| bold_text | tinyint | 1 for bold text, otherwise 0 Default value: 0 |
| part_count | tinyint | Number of work intervals. Possible values: 1-3 Default value: 1 |
| start_at_0 | time | Start time of the 1. work interval Default value: 00:00 |
| end_at_0 | time | End time of the 1. work interval Default value: 00:00 |
| start_at_1 | time | Start time of the 2. work interval Default value: 00:00 |
| end_at_1 | time | End time of the 2. work interval Default value: 00:00 |
| start_at_2 | time | Start time of the 3. work interval Default value: 00:00 |
| end_at_2 | time | End time of the 3. work interval Default value: 00:00 |
| actual_hours | double | Actual hours to be credited for custom shift Default value: 0.0 |
| no_surcharge | tinyint | 1 if no surcharge hours should be charged for the custom shift, otherwise 0. Default value: 0 |
| plan_type | tinyint | Plan in which the custom shift is valid. Possible values:
|
| deleted | tinyint | 1 for deleted entry, otherwise 0. Default value: 0 |
| transaction_id | bigint unsigned | For internal use only |
| created_at | timestamp(6) | Record creation time Default value: current time |
| updated_at | timestamp(6) | Last record update time Default value: current time |
Notes:
- The working time intervals must not overlap.
- The framework working time, i.e. the time between the beginning of the first working time interval and the end of the last working time interval, must not exceed 24 hours.