Schichtplaner Selfhosting Manual
Table of Contents

Table data_shift_type_restriction

The data_shift_type_restriction table contains the shift type restrictions, i.e., the individual specifications as to whether a particular shift type can be assigned to an employee.

Table Description

Column Data type Description
shift_type_restriction_id int Primary key (Auto value)
Unique record ID
employee_id int Foreign key to table data_employee
Identifies the associated employee
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
restriction tinyint Limitation. Possible values:
  • 0: no restriction
  • 1: only assign employees upon request
  • 2: never assign employees
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