Schichtplaner Selfhosting Manual
Table of Contents

Table data_shift_cycle_element

The data_shift_cycle_element table contains the shift cycle elements, i.e., the shifts from which the shift cycle is built.

Table Description

Column Data type Description
shift_cycle_element_id int Primary key (Auto value)
Unique record ID
shift_cycle_id int Foreign key to table data_shift_cycle
Identifies the associated shift cycle
shift_type_id int Foreign key to table data_shift_type
Identifies the associated shift type
workplace_id int Foreign key to table data_workplace
Identifies the associated workplace. NULL if no workplace is assigned.
Default value: NULL
position int The position of the element within the shift cycle.
deleted tinyint 1 for deleted entry, otherwise 0.
Default value: 0
set_null_on_delete tinyint Must be set to NULL if the entry is deleted, otherwise to 1.
Default value: 1
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.

Note: For a shift cycle, the position of the elements must be unique.