Schichtplaner Selfhosting Manual
Table of Contents

Table data_leave_entitlement

The data_leave_entitlement table contains the employees' vacation entitlements.

Table Description

Column Data type Description
leave_entitlement_id int Primary key (Auto value)
Unique record ID
employee_id int Foreign key to table data_employee
Identifies the associated employee
leave_type_id int Foreign key to table data_leave_type
Identifies the associated leave type
year int year for which the entitlement applies
entitlement double Entitlement (in hours or days, excluding remaining vacation days from the previous year)
Default value: 0.0
remaining_from_previous_year double remaining vacation days from the previous year
Default value: 0.0
in_days tinyint 0 if the entitlement is specified in hours, 1 if the entitlement is specified in days.
Default value: 1
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