Skip to content

app.sops

TableRow level security on

Standard operating procedures. Publishing a new version asks everyone to acknowledge again. Listed in code order.

Primary key: id

Columns of app.sops
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org. A row never moves to another org.References app.organizations.id
codetextNoSOP code, such as SOP-001.
titletextNoSOP title.
bodytextNoProcedure as rich text.
versionintegerNoVersion number, raised on each publish.
published_attimestamp with time zoneYesWhen the current version was published.
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_sop_idtextYesStandard Library SOP the row was copied from (xpms.std_sop); NULL for an SOP the org wrote. The org edits its copy freely.References xpms.std_sop.sop_id