Schichtplaner Selfhosting Manual
Table of Contents

Table data_shift_cycle

The data_shift_cycle table contains the metadata of the shift cycles.

Table Description

Column Data type Description
shift_cycle_id int Primary key (Auto value)
Unique record ID
name varchar(100) Shift cycle name
Must not be empty
position int Position in the display order
Default value: 0
length int Model length in units
Default value: 1
unit tinyint Unit for the length of the model. Possible values:
  • 0: day
  • 1: week
Default value: 1
hidden tinyint 1 if the shift cycle should be hidden in lists, otherwise 0
Default value: 0
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
Default value: current time

Note: The shift cycle elements are stored in the table data_shift_cycle_element.