app.gate_evidence
TablaSeguridad a nivel de fila activa
Gate evidence on one evidence spine (Section 3.4, Section 7.4): one row per piece of evidence against a gate criterion. Withdrawn evidence is soft deleted and stops counting.
Clave primaria: id
| Columna | Tipo | Admite nulos | Descripción |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Owning org, derived from app.projects on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id |
| project_id | uuid | No | Project the evidence is for.Hace referencia a app.projects.id |
| criterion_id | text | No | Canon gate criterion the evidence satisfies (Bible tab 06).Hace referencia a xpms.dim_gate_criterion.criterion_id |
| evidence_uri | text | Sí | Location of the evidence document. |
| note | text | Sí | What the evidence shows. |
| assertion_rank | integer | No | Assertion rank of the evidence, 0 to 4 (Bible tab 22). Rank 0 is an absent claim and never satisfies a criterion.Hace referencia a xpms.dim_assertion_rank.rank |
| attested_by | uuid | Sí | Person who attested the evidence, set from the session.Hace referencia a app.people.id |
| attested_at | timestamp with time zone | No | When the evidence was attested, 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. |
| record_id | uuid | Sí | Record that evidences the criterion, for example a Permit or Inspection record.Hace referencia a app.records.id |