Skip to content

app.documents

TableRow level security on

Documents of the org or of a project; project documents follow invariant 2. Content lives in append-only versions.

Primary key: id

Columns of app.documents
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org. A row never moves to another org.References app.organizations.id
project_iduuidYesProject the document belongs to; NULL for an org-wide document.References app.projects.id
titletextNoDocument title.
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
std_document_idtextYesDocument & Asset Library row the document was copied from (xpms.std_document_library); NULL for a document the org added. A copy starts with no version: the org uploads its own file.References xpms.std_document_library.record_id