Skip to main content

LegalDocumentAcceptance

One person acknowledging one version of one legal document.

Tablelegal_document_acceptance
Tenant-scopedYes — extends TenantOwned
Columns5
Relationships0
Sourcebackend/src/main/java/com/motorph/payroll/model/LegalDocumentAcceptance.java

Columns​

FieldTypeColumnNullNotes
idIntegerlegal_document_acceptance_id—primary key, generated
userIdIntegeruser_id——
documentTypeLegalDocumentTypedocument_type—enum
documentVersionStringdocument_version——
acceptedAtInstantaccepted_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

MethodReturnsNotes
findByUserIdOrderByAcceptedAtAsc(Integer userId)List<LegalDocumentAcceptance>derived

Reached by​

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

ControllerBase pathEndpointsModule
PublicLegalController/api/public/legal1Billing & Platform
PublicSignupController/api/public/signup2Billing & Platform
TenantAdminController/api/admin/tenants13Billing & 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/.