Skip to content

app.capability_documents

TableRow level security on

Venue capability documents (tech packs, rigging plots) with a validity window. A frozen document never changes; a stale one fails G3.NO_STALE_DOCS.

Primary key: id

Columns of app.capability_documents
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.venues on insert; never accepted from the caller and never changed.References app.organizations.id
venue_iduuidNoVenue.References app.venues.id
titletextNoDocument title.
document_uritextNoWhere the document is stored.
valid_fromdateNoFirst day the document is valid.
valid_todateYesLast day it is valid; after it the document is stale.
is_frozenbooleanNoTrue once frozen (G1.CAPABILITY_FROZEN); frozen documents never change.
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id