Schichtplaner Selfhosting Manual
Table of Contents

Table data_shift_requirement

The data_shift_requirement table contains the general staffing requirements for a group/shift type combination.

Table Description

Column Data type Description
shift_requirement_id int Primary key (Auto value)
Unique record ID
group_id int Foreign key to table data_group
Identifies the associated group
shift_type_id int Foreign key to table data_shift_type
Identifies the associated shift type
weekday tinyint Associated day of the week or holiday. Possible values:
  • 0, ..., 6: Monday, ..., Sunday
  • 7: Public holiday
minimum int Minimum number of employees required
Default value: 0
maximum int Maximum number of employees required, or NULL if the maximum requirement is not limited
Default value: NULL
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