Skip to main content

Vacation

This model represents vacation.

PropertyTypeDescriptionInformation
idintIdentifierUnique for single vacation.
vacation_fromDateStart date of a vacationMust be prior to vacation_to.
vacation_toDateEnd date of a vacationMust be greater than vacation_from. User must have right amount of available vacation days.
daysintTotal amount of vacation daysGets counted automatically from given dates.
work_daysintTotal amount of work daysGets counted automatically from given dates.
is_approvedboolApproval statetrue for approved vacation, false for unapproved or undecided vacation.
notestringVacation noteOptional information about vacation.
applicant_idintIdentifier of applicantGets id from request by default, but could be set by Admin or Manager.
responder_idintIdentifier of respondentGets id from request by default, but could be set by Admin or Manager.
approval_dateDateApproval dateGets current day's date by default, but could be set by Admin or Manager.

Example:

{
"id": 1,
"vacation_from": "2022-11-14",
"vacation_to": "2022-11-24",
"days": 11,
"work_days": 9,
"is_approved": true,
"note": "Listopadová chalupa",
"applicant_id": 14,
"responder_id": 1,
"approval_date": "2022-10-05"
}