app.template_versions
TablaSeguridad a nivel de fila activa
Versions of a template: project defaults and ordered items. Edited while a draft; frozen once published.
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.templates on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id |
| template_id | uuid | No | Template the version belongs to.Hace referencia a app.templates.id |
| version_number | integer | No | Version number, issued in order on insert, 1 first. |
| notes | text | Sí | What changed in this version. |
| default_time_zone | text | Sí | IANA time zone a new project starts with, when the person applying does not give one. |
| default_tier_code | text | Sí | Canon tier a new project starts with.Hace referencia a xpms.dim_tier.tier_code |
| default_region_code | text | Sí | Canon region a new project starts with.Hace referencia a xpms.dim_region.region_code |
| default_jurisdiction_id | text | Sí | Canon jurisdiction a new project starts with.Hace referencia a xpms.jurisdiction.jurisdiction_id |
| default_currency_code | character(3) | Sí | ISO 4217 currency a new project starts with.Hace referencia a private.currencies.currency_code |
| duration_days | integer | Sí | Length of the project in days; the end date is the start date plus this length less one day. |
| published_at | timestamp with time zone | Sí | When the version was published; NULL while it is a draft. Set only by app.publish_template_version. |
| 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 |