app.sms_consent_events
TablaSeguridad a nivel de fila activa
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.
Clave primaria: id
| Columna | Tipo | Admite nulos | Descripción |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Owning org. A row never moves to another org.Hace referencia a app.organizations.id |
| person_id | uuid | Sí | Person the number belongs to, when known.Hace referencia a app.people.id |
| phone_e164 | text | No | Phone number in E.164 format. |
| action | app.sms_consent_action | No | Opt In, Opt Out or Help. |
| keyword | text | Sí | Keyword the person texted, for example STOP, when the event came by SMS. |
| source | app.consent_source | No | Where the event was captured. |
| occurred_at | timestamp with time zone | No | When it happened. Set by the database. |
| created_at | timestamp with time zone | No | When the row was inserted. Set by the database. |
| created_by | uuid | Sí | Person who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id |
| updated_at | timestamp with time zone | No | When the row last changed. Set by the database. |
| updated_by | uuid | Sí | Person who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id |
| deleted_at | timestamp with time zone | Sí | Soft delete time. A row with deleted_at set is ignored by every access helper. |