app.template_items
TablaSeguridad a nivel de fila activa
Items of a template version, in order: scope nodes created under the new project's engagement root, and records created in the new project.
Clave primaria: id
| Columna | Tipo | Admite nulos | Descripción |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Owning org, derived from app.template_versions on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id |
| template_version_id | uuid | No | Version the item belongs to.Hace referencia a app.template_versions.id |
| item_kind | app.template_item_kind | No | Scope Node or Record. |
| sort_order | integer | No | Position in the version, 1 first. |
| name | text | No | Scope node name, or record title. |
| scope_kind | app.scope_kind | Sí | For a scope node: Show or Standing Venue. |
| scope_code_suffix | text | Sí | For a scope node: code after the project key, such as E02 for {KEY}-E02. Unique in the version. |
| record_kind | text | Sí | For a record: canon record kind.Hace referencia a xpms.dim_record_kind.record_kind |
| xyz | xpms.xyz_tag | Sí | For a record: schema family tag (X Resource, Y Process, Z Timeline), declared. |
| phase_code | text | Sí | For a record: canon phase the record belongs to, if any.Hace referencia a xpms.dim_phase.phase_code |
| due_offset_days | integer | Sí | For a record: due this many days after the project start (negative for before); NULL for no due date. |
| deleted_at | timestamp with time zone | Sí | Soft delete time. A row with deleted_at set is ignored by every access helper. |
| created_at | timestamp with time zone | No | When the row was inserted. Set by the database. |
| created_by | uuid | Sí | Person who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id |
| updated_at | timestamp with time zone | No | When the row last changed. Set by the database. |
| updated_by | uuid | Sí | Person who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id |