PayrollApproval
The PayrollApproval entity, mapped to the payroll_approval table.
| Table | payroll_approval |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 3 |
| Relationships | 2 |
| Source | backend/src/main/java/com/motorph/payroll/model/PayrollApproval.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
approvalId | Integer | approval_id | — | primary key, generated |
approvalDate | LocalDateTime | approval_date | — | — |
status | String | status | — | — |
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 |
|---|---|---|---|---|
payroll | @ManyToOne | Payroll | payroll_id | Yes |
approver | @ManyToOne | Employee | approver_id | Yes |
Neighbourhood
Repository
PayrollApprovalRepository
Declared over PayrollApproval with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/PayrollApprovalRepository.java
| Method | Returns | Notes |
|---|---|---|
findAllByPayroll_PayrollIdOrderByApprovalDateDesc(Integer payrollId) | List<PayrollApproval> | derived |
Reached by
These controllers hold — directly or through a service they depend on — a repository over PayrollApproval.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| DemoDataController | /api/system-admin/demo-data | 3 | Billing & Platform |
| PayrollController | /api/payroll | 8 | Payroll |
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/.