Skip to content

app.template_items

TableRow level security on

Items of a template version, in order: scope nodes created under the new project's engagement root, and records created in the new project.

Primary key: id

Columns of app.template_items
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.template_versions on insert; never accepted from the caller and never changed.References app.organizations.id
template_version_iduuidNoVersion the item belongs to.References app.template_versions.id
item_kindapp.template_item_kindNoScope Node or Record.
sort_orderintegerNoPosition in the version, 1 first.
nametextNoScope node name, or record title.
scope_kindapp.scope_kindYesFor a scope node: Show or Standing Venue.
scope_code_suffixtextYesFor a scope node: code after the project key, such as E02 for {KEY}-E02. Unique in the version.
record_kindtextYesFor a record: canon record kind.References xpms.dim_record_kind.record_kind
xyzxpms.xyz_tagYesFor a record: schema family tag (X Resource, Y Process, Z Timeline), declared.
phase_codetextYesFor a record: canon phase the record belongs to, if any.References xpms.dim_phase.phase_code
due_offset_daysintegerYesFor a record: due this many days after the project start (negative for before); NULL for no due date.
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