PayrollSettingsSnapshot
One payroll setting as it was when a run's payslips were generated (see V125).
| Table | payroll_settings_snapshot |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 4 |
| Relationships | 0 |
| Source | backend/src/main/java/com/motorph/payroll/model/PayrollSettingsSnapshot.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
snapshotId | Integer | snapshot_id | — | primary key, generated |
payrollId | Integer | payroll_id | — | — |
fieldName | String | field_name | — | — |
fieldValue | String | field_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.
Repository
PayrollSettingsSnapshotRepository
Declared over PayrollSettingsSnapshot with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/PayrollSettingsSnapshotRepository.java
| Method | Returns | Notes |
|---|---|---|
findAllByPayrollIdOrderBySnapshotIdAsc(Integer payrollId) | List<PayrollSettingsSnapshot> | derived |
deleteAllForPayroll(@Param("payrollId") Integer payrollId) | void | explicit @Query, modifying |
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/.