app.domain_events
TablaSeguridad a nivel de fila activa
Append-only domain event table that webhook delivery reads (Section 10.1). Rows are written only by database triggers, so every state change is emitted exactly once.
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 |
| event_type | text | No | Event code from the catalog, for example record.state_changed.Hace referencia a private.domain_event_types.code |
| subject_table | text | No | Table of the row the event describes. |
| subject_id | uuid | No | Id of the row the event describes. |
| project_id | uuid | Sí | Project of the subject, when it belongs to one, for per-project subscriptions.Hace referencia a app.projects.id |
| data | jsonb | No | Outbound webhook payload: the subject fields the event names. Never carries restricted columns. |
| occurred_at | timestamp with time zone | No | When the event happened. |
| 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. |