Skip to content

app.legal_acceptances

TableRow level security on

Append-only log of legal document acceptances (Section 14.4): who accepted which version of which document, when and from which IP, and for which org when accepted on its behalf. Written only by app.record_legal_acceptances; never updated or deleted.

Primary key: id

Columns of app.legal_acceptances
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidYesOrg the acceptance binds, when accepted on its behalf (for example the Terms of Service and DPA at signup); NULL for a personal acceptance such as the Worker Terms.References app.organizations.id
person_iduuidNoPerson who accepted.References app.people.id
user_iduuidNoSign-in the person used, kept as evidence even after the sign-in is deleted.
document_slugtextNoLegal document slug from legal/index.yaml, as published at /legal/{slug}.
document_versiontextNoSemantic version of the document text accepted.
accepted_attimestamp with time zoneNoWhen the acceptance was recorded. Set by the database.
ipinetYesClient IP address the acceptance came from, as reported by the platform server or seen by the database.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.