ToS Acceptances Table
Component Detail
Data Layer
low complexity
backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Database table storing immutable records of Terms of Service acceptance events. Each row captures the organization, the accepting user, the ToS version accepted, and the UTC timestamp of acceptance. Used for audit purposes and to gate subscription activation.
tos-acceptances-table
Responsibilities
- Persist acceptance records with user, organization, version, and timestamp
- Support lookup of whether an organization has accepted the current version
- Provide audit trail for legal compliance
Interfaces
insert(orgId, userId, version, acceptedAt): void
findLatestByOrg(orgId): TosAcceptance | null
findAll(orgId): TosAcceptance[]