Saltar al contenido

app.engagements

TablaSeguridad a nivel de fila activa

A person or an external organization working one project of an org in one external role (Section 4.4.4, engagement contract, decision D16). Role, classification, pay basis and arrangement identify the canon rate card, which is never repeated. External users read engagements only through api_external projections, never this table (Section 8.7).

Clave primaria: id

Columnas de app.engagements
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 engagement works.Hace referencia a app.projects.id
person_iduuidSíEngaged person. With a counterparty, the person the vendor or agency supplies.Hace referencia a app.people.id
counterparty_iduuidSíEngaged external organization (the external account), as the org-side counterparty row. Required for vendor-supplied labor (XOS-ENG-4).Hace referencia a app.counterparties.id
role_typeapp.external_role_typeNoExternal role type (Section 4.4.2): Client, Vendor, Contractor, Crew, Staff, Artist, Artist Representative or Sponsor.
role_codetextSíCanon role (Roles Library, decision D12). NULL exactly for Client and Sponsor engagements, which carry no work terms (1624).Hace referencia a xpms.rate_card.role_code
worker_classificationtextSíCanon worker classification (decision D16). NULL exactly for Client and Sponsor engagements (1624).Hace referencia a xpms.rate_card.worker_classification
pay_basistextSíCanon pay basis; NULL for an unpaid classification (XOS-ENG-1) and for Client and Sponsor engagements (1624).Hace referencia a xpms.pay_basis.label
arrangementtextSíCanon arrangement; NULL exactly when the pay basis is NULL.Hace referencia a xpms.arrangement.label
agreed_rate_minorbigintSíAgreed rate in minor units per pay basis unit, when it differs from the rate card; NULL reads the rate card, and is always NULL for Client and Sponsor engagements (1624). Restricted (data.restricted.read.payroll).
currency_codecharacter(3)SíISO 4217 currency of the agreed rate.Hace referencia a private.currencies.currency_code
employment_statustextSíEmployment status; employees only (XOS-ENG-2, XOS-ENG-3).Hace referencia a private.employment_statuses.label
flsa_statustextSíFLSA status; employees only (XOS-ENG-2, XOS-ENG-3).Hace referencia a private.flsa_statuses.label
labor_agreement_iduuidSíLabor agreement the employee works under; employees only (XOS-ENG-3).Hace referencia a app.labor_agreements.id
start_datedateNoFirst day of the engagement.
end_datedateSíLast day of the engagement; NULL while open-ended.
engagement_stateapp.engagement_stateNoEngagement state. Changes only through app.transition_engagement.
internal_notetextSíInternal org note. Never visible externally (Section 4.4.1).
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
application_iduuidSíAccepted application the engagement came from (Section 4.4.4 stage 5), when it came from the marketplace.Hace referencia a app.applications.id