EmployeePayoutHistory
One change to, or reveal of, an employee's payout account.
| Table | employee_payout_history |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 8 |
| Relationships | 0 |
| Source | backend/src/main/java/com/motorph/payroll/model/EmployeePayoutHistory.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
historyId | Integer | history_id | — | primary key, generated |
employeeId | Integer | employee_id | — | — |
action | String | action | — | — |
changedBy | String | changed_by | — | — |
ipAddress | String | ip_address | Yes | — |
changedAt | LocalDateTime | changed_at | — | — |
oldSummary | String | old_summary | Yes | — |
newSummary | String | new_summary | 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
EmployeePayoutHistoryRepository
Declared over EmployeePayoutHistory with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/EmployeePayoutHistoryRepository.java
| Method | Returns | Notes |
|---|---|---|
findByEmployeeIdOrderByChangedAtDescHistoryIdDesc(Integer employeeId, Pageable pageable) | Page<EmployeePayoutHistory> | derived |
Reached by
These controllers hold — directly or through a service they depend on — a repository over EmployeePayoutHistory.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| EmployeePayoutController | /api/employees/{employeeNumber}/payout | 4 | 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/.