Schichtplaner Selfhosting Manual
Table of Contents

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:
  • 0: Actual plan
  • 1: Target plan
Default value: 0
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.