Skip to main content

PayrollApproval

The PayrollApproval entity, mapped to the payroll_approval table.

Tablepayroll_approval
Tenant-scopedYes — extends TenantOwned
Columns3
Relationships2
Sourcebackend/src/main/java/com/motorph/payroll/model/PayrollApproval.java

Columns​

FieldTypeColumnNullNotes
approvalIdIntegerapproval_id—primary key, generated
approvalDateLocalDateTimeapproval_date——
statusStringstatus——

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​

FieldKindTargetJoin columnRequired
payroll@ManyToOnePayrollpayroll_idYes
approver@ManyToOneEmployeeapprover_idYes

Neighbourhood​

Repository​

PayrollApprovalRepository​

Declared over PayrollApproval with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/PayrollApprovalRepository.java

MethodReturnsNotes
findAllByPayroll_PayrollIdOrderByApprovalDateDesc(Integer payrollId)List<PayrollApproval>derived

Reached by​

These controllers hold — directly or through a service they depend on — a repository over PayrollApproval.

ControllerBase pathEndpointsModule
DemoDataController/api/system-admin/demo-data3Billing & Platform
PayrollController/api/payroll8Payroll

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/.