app.consent_records
TablaSeguridad a nivel de fila activa
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.
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 | No | Person who consented.Hace referencia a app.people.id |
| purpose_code | text | No | Purpose consented to.Hace referencia a private.consent_purposes.code |
| notice_version | text | No | Version of the notice or policy shown when consent was given. |
| source | app.consent_source | No | Where consent was captured. |
| captured_at | timestamp with time zone | No | When consent was given. Set by the database. |
| captured_ip | inet | Sí | Client IP address at capture, as evidence. Set by the database. |
| withdrawn_at | timestamp with time zone | Sí | When the person withdrew consent, or null while it stands. |
| 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. |