Skip to content

app.templates

TableRow level security on

Org templates (Section 4.10): reusable starting points for projects. Content lives in template_versions; the current version is the latest published one.

Primary key: id

Columns of app.templates
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org. A row never moves to another org.References app.organizations.id
nametextNoTemplate name, unique in the org.
descriptiontextYesWhen to use the template.
template_kindapp.template_kindNoWhat the template creates; Project.
current_version_iduuidYesLatest published version, used when the template is applied; NULL until a version is published. Set only by app.publish_template_version.References app.template_versions.id
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