WorkSuspension
A government-declared work suspension (calamity/weather "walang pasok" advisory), distinct from the national holiday calendar.
| Table | work_suspensions |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 5 |
| Relationships | 0 |
| Source | backend/src/main/java/com/motorph/payroll/model/WorkSuspension.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
suspensionId | Integer | suspension_id | — | primary key, generated |
suspensionDate | LocalDate | suspension_date | — | unique |
reason | String | reason | — | — |
createdBy | String | created_by | Yes | — |
createdDate | LocalDateTime | created_date | Yes | — |
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.
Repository
WorkSuspensionRepository
Declared over WorkSuspension with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/WorkSuspensionRepository.java
| Method | Returns | Notes |
|---|---|---|
findAllBySuspensionDateBetweenOrderBySuspensionDateAsc(LocalDate from, LocalDate to) | List<WorkSuspension> | derived |
existsBySuspensionDate(LocalDate suspensionDate) | boolean | derived |
findAllByOrderBySuspensionDateDesc() | List<WorkSuspension> | derived |
Reached by
These controllers hold — directly or through a service they depend on — a repository over WorkSuspension.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| DemoDataController | /api/system-admin/demo-data | 3 | Billing & Platform |
| PayrollController | /api/payroll | 8 | Payroll |
| RecognitionAwardController | /api/recognition-awards | 7 | HR |
| WorkSuspensionController | /api/work-suspensions | 3 | HR |
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/.