app.gate_evidence
TableRow level security on
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.
Primary key: id
| Column | Type | Nullable | Description |
|---|---|---|---|
| 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.References app.organizations.id |
| project_id | uuid | No | Project the evidence is for.References app.projects.id |
| criterion_id | text | No | Canon gate criterion the evidence satisfies (Bible tab 06).References xpms.dim_gate_criterion.criterion_id |
| evidence_uri | text | Yes | Location of the evidence document. |
| note | text | Yes | 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.References xpms.dim_assertion_rank.rank |
| attested_by | uuid | Yes | Person who attested the evidence, set from the session.References 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 | Yes | Person who inserted the row, or null for a platform process. Set by the database.References app.people.id |
| updated_at | timestamp with time zone | No | When the row last changed. Set by the database. |
| updated_by | uuid | Yes | Person who last changed the row, or null for a platform process. Set by the database.References app.people.id |
| deleted_at | timestamp with time zone | Yes | Soft delete time. A row with deleted_at set is ignored by every access helper. |
| record_id | uuid | Yes | Record that evidences the criterion, for example a Permit or Inspection record.References app.records.id |