Skip to content

app.role_assignments

TableRow level security on

People assigned to canon workforce roles on a project (Section 7.4 People, playbook Personnel Roster and Roles Library). The role is one of the 61 canon workforce roles; its staffing ratio and ratio basis are read from canon (xpms.dim_role), never copied. A person holds a role on a project once while it is Proposed or Active.

Primary key: id

Columns of app.role_assignments
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.projects on insert; never accepted from the caller and never changed.References app.organizations.id
project_iduuidNoProject the role is worked on.References app.projects.id
scope_node_iduuidYesScope node of the project, when narrower than the project.References app.scope_nodes.id
role_codetextNoCanon workforce role (xpms.dim_role).References xpms.dim_role.role_code
person_iduuidNoPerson assigned, an active member of the org when assigned. External people work through engagements (A28).References app.people.id
requisition_iduuidYesRequisition the assignment fills, when it came from one.References app.requisitions.id
staffing_basisapp.staffing_basisNoRatio when planned from the canon staffing ratio (the role has one), Fixed when the canon basis is a fixed count per tier, Declared otherwise.
starts_ondateYesFirst day in the role.
ends_ondateYesLast day in the role.
assignment_stateapp.role_assignment_stateNoAssignment state. Changes only through app.transition_role_assignment.
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