Schichtplaner Selfhosting Manual
Table of Contents

Table data_leave_type

The data_leave_type table contains the leave types.

Table Description

Column Data type Description
leave_type_id int Primary key (Auto value)
Unique record ID
name varchar(100) Leave types name
Must not be empty
short_name varchar(100) Short name of the leave type
Must not be empty
position int Position in the display order
Default value: 0
color_text char(6) Text color in hex format
Default value: 000000
color_bk char(6) Background color in hex format
Default value: FFFFFF
color_bar char(6) Bar color in hex format
Default value: FF0000
bold_text tinyint 1 for bold text, otherwise 0
Default value: 0
charge_type tinyint Creditable working time. Possible values:
  • 0: no credit
  • 1: hours of absence
  • 2: fixed number of hours (per day of absence)
Default value: 0
charge_hours double Hours to be credited when charge_type is set to 2
Default value: 0
entitled tinyint 1 if the absence type is linked to an entitlement, otherwise 0.
Default value: 0
default_entitlement_in_days double Default entitlement in days
Default value: 30
entitlement_carry_over tinyint 1 if a remaining entitlement is to be carried over to the following year, otherwise 0
Default value: 0
count_all tinyint 1 if all days of absence (including non-working days) should be counted, otherwise 0
Default value: 1
no_absence tinyint not used in the Schichtplaner program
deduct_overtime_hours tinyint not used in the Schichtplaner program
category tinyint Assigned category (0: no restriction)
Possible values: 0 - 20
Default value: 0
valid_days char(8) Validity days: Value 1 means valid, otherwise 0
Index 0: Monday,..., 6: Sunday, 7: Public holiday
Default value: 11111111
hidden tinyint 1 if the leave 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