PayslipTemplateSettings
Single-row table holding the admin-customized pdfme payslip template, if one has been saved.
| Table | payslip_template_settings |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 7 |
| Relationships | 0 |
| Source | backend/src/main/java/com/motorph/payroll/model/PayslipTemplateSettings.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
payslipTemplateSettingsId | Integer | payslip_template_settings_id | — | primary key, generated |
templateJson | String | template_json | Yes | — |
accentColor | String | accent_color | Yes | — |
version | Integer | version | — | — |
isLocked | Boolean | is_locked | — | — |
lastModifiedBy | String | last_modified_by | Yes | — |
lastModifiedDate | LocalDateTime | last_modified_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
PayslipTemplateSettingsRepository
Declared over PayslipTemplateSettings with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/PayslipTemplateSettingsRepository.java
| Method | Returns | Notes |
|---|---|---|
findFirstByOrderByPayslipTemplateSettingsIdAsc() | Optional<PayslipTemplateSettings> | derived |
Reached by
These controllers hold — directly or through a service they depend on — a repository over PayslipTemplateSettings.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| PayslipTemplateSettingsController | /api/payslip-template-settings | 2 | 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/.