LeaveRequestType
The LeaveRequestType entity, mapped to the leave_request_type table.
| Table | leave_request_type |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 3 |
| Relationships | 0 |
| Source | backend/src/main/java/com/motorph/payroll/model/LeaveRequestType.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
leaveTypeId | Integer | leave_type_id | — | primary key, generated |
leaveTypeName | String | leave_type_name | Yes | — |
maxCredits | Integer | max_credits | 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.
Referenced by
| Entity | Field | Kind |
|---|---|---|
| LeaveBalance | leaveType | @ManyToOne |
| LeaveRequest | leaveType | @ManyToOne |
Neighbourhood
Repository
LeaveRequestTypeRepository
Declared over LeaveRequestType with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/LeaveRequestTypeRepository.java
Reached by
These controllers hold — directly or through a service they depend on — a repository over LeaveRequestType.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| DemoDataController | /api/system-admin/demo-data | 3 | Billing & Platform |
| LeaveBalanceController | /api/leave-balances | 1 | HR |
| LeaveRequestController | /api/leave-requests | 7 | HR |
| LeaveTypeController | /api/leave-types | 1 | HR |
| PublicSignupController | /api/public/signup | 2 | Billing & Platform |
| TenantAdminController | /api/admin/tenants | 7 | Billing & Platform |
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/.