PayslipTemplate
A named, tenant-owned payslip template saved from the Designer.
| Table | payslip_template |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 9 |
| Relationships | 0 |
| Source | backend/src/main/java/com/motorph/payroll/model/PayslipTemplate.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
payslipTemplateId | Integer | payslip_template_id | — | primary key, generated |
name | String | name | — | — |
description | String | description | Yes | — |
templateJson | String | template_json | — | — |
accentColor | String | accent_color | Yes | — |
createdBy | String | created_by | Yes | — |
createdAt | LocalDateTime | created_at | — | — |
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
PayslipTemplateRepository
Declared over PayslipTemplate with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/PayslipTemplateRepository.java
| Method | Returns | Notes |
|---|---|---|
findAllByOrderByNameAsc() | List<PayslipTemplate> | derived |
existsByNameIgnoreCase(String name) | boolean | derived |
existsByNameIgnoreCaseAndPayslipTemplateIdNot(String name, Integer payslipTemplateId) | boolean | derived |
Reached by
These controllers hold — directly or through a service they depend on — a repository over PayslipTemplate.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| PayslipTemplateController | /api/payslip-templates | 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/.