LegalDocumentAcceptance
One person acknowledging one version of one legal document.
| Table | legal_document_acceptance |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 5 |
| Relationships | 0 |
| Source | backend/src/main/java/com/motorph/payroll/model/LegalDocumentAcceptance.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
id | Integer | legal_document_acceptance_id | — | primary key, generated |
userId | Integer | user_id | — | — |
documentType | LegalDocumentType | document_type | — | enum |
documentVersion | String | document_version | — | — |
acceptedAt | Instant | accepted_at | — | — |
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
LegalDocumentAcceptanceRepository
Declared over LegalDocumentAcceptance with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/LegalDocumentAcceptanceRepository.java
| Method | Returns | Notes |
|---|---|---|
findByUserIdOrderByAcceptedAtAsc(Integer userId) | List<LegalDocumentAcceptance> | derived |
Reached by
These controllers hold — directly or through a service they depend on — a repository over LegalDocumentAcceptance.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| PublicLegalController | /api/public/legal | 1 | Billing & Platform |
| PublicSignupController | /api/public/signup | 2 | Billing & Platform |
| TenantAdminController | /api/admin/tenants | 13 | 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/.