PayrollSettingsChange
Field-level audit trail for a payroll settings save; one row per changed field.
| Table | payroll_settings_changes |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 6 |
| Relationships | 1 |
| Source | backend/src/main/java/com/motorph/payroll/model/PayrollSettingsChange.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
changeId | Integer | change_id | — | primary key, generated |
modifiedBy | String | modified_by | — | — |
modificationDate | LocalDateTime | modification_date | — | — |
fieldChanged | String | field_changed | — | — |
oldValue | String | old_value | Yes | — |
newValue | String | new_value | 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.
Relationships
| Field | Kind | Target | Join column | Required |
|---|---|---|---|---|
payrollSettings | @ManyToOne | PayrollSettings | payroll_settings_id | Yes |
Neighbourhood
Repository
PayrollSettingsChangeRepository
Declared over PayrollSettingsChange with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/PayrollSettingsChangeRepository.java
| Method | Returns | Notes |
|---|---|---|
findAllByPayrollSettings_PayrollSettingsIdOrderByModificationDateDesc(Integer payrollSettingsId) | List<PayrollSettingsChange> | derived |
Reached by
These controllers hold — directly or through a service they depend on — a repository over PayrollSettingsChange.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| PayrollSettingsChangesController | /api/payroll-settings-changes | 1 | Payroll |
| PayrollSettingsController | /api/payroll-settings | 4 | 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/.