Skip to content

app.sms_consent_events

TableRow level security on

SMS consent ledger per org and phone number (Section 14.5): opt-ins with their source, STOP opt-outs and HELP requests. Append-only; the latest Opt In or Opt Out decides whether the org may text the number.

Primary key: id

Columns of app.sms_consent_events
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org. A row never moves to another org.References app.organizations.id
person_iduuidYesPerson the number belongs to, when known.References app.people.id
phone_e164textNoPhone number in E.164 format.
actionapp.sms_consent_actionNoOpt In, Opt Out or Help.
keywordtextYesKeyword the person texted, for example STOP, when the event came by SMS.
sourceapp.consent_sourceNoWhere the event was captured.
occurred_attimestamp with time zoneNoWhen it happened. Set 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.