Schichtplaner Selfhosting Manual
Table of Contents

Table data_surcharge_type

The data_surcharge_type table contains the surcharge types.

Table Description

Column Data type Description
surcharge_type_id int Primary key (Auto value)
Unique record ID
name varchar(100) Surcharge type name
Must not be empty
position int Position in the display order
Default value: 0
start_at time Start time
Default value: 00:00
end_at time End time
Default value: 00:00
date date Validity date or NULL if the surcharge type is valid on the selected weekdays
Default value: NULL
on_monday tinyint 1, if the surcharge type is not valid on a fixed date, but on Monday
Default value: 1
on_tuesday tinyint 1, if the surcharge type is not valid on a fixed date, but on Tuesday
Default value: 1
on_wednesday tinyint 1, if the surcharge type is not valid on a fixed date, but on Wednesday
Default value: 1
on_thursday tinyint 1, if the surcharge type is not valid on a fixed date, but on Thursday
Default value: 1
on_friday tinyint 1, if the surcharge type is not valid on a fixed date, but on Friday
Default value: 1
on_saturday tinyint 1, if the surcharge type is not valid on a fixed date, but on Saturday
Default value: 1
on_sunday tinyint 1, if the surcharge type is not valid on a fixed date, but on Sunday
Default value: 1
holiday_rule tinyint Holiday rules apply if the surcharge type is valid on the selected weekdays. Possible values:
  • 0: also valid on public holidays
  • 1: valid only on public holidays
  • 2: not valid on public holidays
Default value: 0
hidden tinyint 1 if the surcharge type 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