EmployeeRestDay
The EmployeeRestDay entity, mapped to the employee_rest_day table.
| Table | employee_rest_day |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 2 |
| Relationships | 1 |
| Source | backend/src/main/java/com/motorph/payroll/model/EmployeeRestDay.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
id | Long | id | — | primary key, generated |
dayOfWeek | Integer | day_of_week | — | — |
Plus tenant_id, inherited from TenantOwned. Hibernate stamps it on insert and adds where tenant_id = ? to every query, so it is never written or read by application code.
Relationships
| Field | Kind | Target | Join column | Required |
|---|---|---|---|---|
employee | @ManyToOne | Employee | employee_number | Yes |
Referenced by
| Entity | Field | Kind |
|---|---|---|
| Employee | restDays | @OneToMany |
Neighbourhood
Repository
No Spring Data repository is declared over this entity. It is reached through another entity's association, through the EntityManager directly, or it is written only by a migration.
Generated page
This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.