Skip to content

app.consent_records

TableRow level security on

Consent given by a person to an org for one purpose (Section 14.3): the notice version shown, where and when it was captured, and its withdrawal. One row per grant; a withdrawal closes the row and a new grant opens a new row.

Primary key: id

Columns of app.consent_records
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org. A row never moves to another org.References app.organizations.id
person_iduuidNoPerson who consented.References app.people.id
purpose_codetextNoPurpose consented to.References private.consent_purposes.code
notice_versiontextNoVersion of the notice or policy shown when consent was given.
sourceapp.consent_sourceNoWhere consent was captured.
captured_attimestamp with time zoneNoWhen consent was given. Set by the database.
captured_ipinetYesClient IP address at capture, as evidence. Set by the database.
withdrawn_attimestamp with time zoneYesWhen the person withdrew consent, or null while it stands.
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.