Appearance
Holiday
hrms.holiday
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
date | date | date | required |
holiday_name | holiday name | text | required |
type | type | select | one of: Gazetted Holiday, Restricted Holiday, Floating Holiday; default "Gazetted Holiday" |
active | active | check | default true |
Unique together: date + holiday_name
Permissions
| Role | Can |
|---|---|
hrms:admin | read, create, update, delete |
hrms:payroll | read |
hrms:manager | read |
hrms:employee | read |
API
http
GET /api/hrms/holiday?<field>=<value>&limit=100&offset=0
POST /api/hrms/holiday
GET /api/hrms/holiday/:id
PATCH /api/hrms/holiday/:id
DELETE /api/hrms/holiday/:id