Saltar al contenido

app.records

TablaSeguridad a nivel de fila activa

One table for all 26 record kinds (Bible tab 24, Section 3.10). Kind attributes live in 1:1 extension tables. A record is readable by its project's members and the people assigned to it, not the whole org (invariant 2). Canceled records are retained, never deleted.

Clave primaria: id

Columnas de app.records
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.projects on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id
project_iduuidNoProject the record belongs to. Never changes.Hace referencia a app.projects.id
scope_node_iduuidSíScope node of the same project the record sits under.Hace referencia a app.scope_nodes.id
record_numberbigintNoSequence number within the project, issued by private.next_sequence on insert. The display key is {project_key}-{record_number}, read through app.record_display_key.
record_kindtextNoOne of the 26 canon record kinds. Never changes after insert.Hace referencia a xpms.dim_record_subtype.record_kind
record_subtypetextSíKind-scoped subtype (Bible tab 25). The composite foreign key with record_kind refuses a subtype of another kind.Hace referencia a xpms.dim_record_subtype.record_subtype
record_statetextNoOne of the nine record states (Bible tab 26). Changes only through app.transition_record.Hace referencia a xpms.dim_record_state.record_state
titletextNoTitle in the kind's title grammar, validated on write with a correction message.
phase_codetextSíGated phase the record belongs to.Hace referencia a xpms.dim_phase.phase_code
uridtextSíURID category the record works on (dimension 2).Hace referencia a xpms.dim_category.cat_urid
xyzxpms.xyz_tagNoXYZ schema-family tag: X Resource, Y Process, Z Timeline.
xyz_basisapp.xyz_basisNoBasis of the XYZ tag: Category (equals the URID category's tag) or Declared.
owner_party_iduuidSíPerson who owns the record and does the work.Hace referencia a app.people.id
accountable_party_iduuidSíPerson accountable for the record's outcome.Hace referencia a app.people.id
starts_attimestamp with time zoneSíStart of the record's window.
ends_attimestamp with time zoneSíEnd of the record's window; not before starts_at.
due_attimestamp with time zoneSíWhen the record is due.
time_zonetextSíIANA zone the record's local times were typed in; NULL means the project's zone.
blocker_texttextSíWhat blocks the record. Required while the record is Blocked.
replan_reasontextSíWhy the record was replanned. Required while the record is Deferred.
deleted_attimestamp with time zoneSíSoft 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_byuuidSíPerson who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidSíPerson who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id
parent_record_iduuidSíSummary record this record rolls up to, in the same project (work breakdown).Hace referencia a app.records.id
wbs_codetextSíWork breakdown structure code, dot separated (1.2.1).
descriptiontextSíWhat the record involves, in sentence case.
sop_iduuidSíStandard operating procedure that governs the work.Hace referencia a app.sops.id
team_codetextSíCanon team (Bible teams) that does the work.Hace referencia a xpms.dim_team.team_id