Saltar al contenido

app.shifts

TablaSeguridad a nivel de fila activa

Crew shifts: one person (or an open slot) in one role for one block of time on a project. A shift cannot end before it starts (invariant 20).

Clave primaria: id

Columnas de app.shifts
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 shift works on.Hace referencia a app.projects.id
record_iduuidSíShift record of the same project the shift staffs, when planned through one.Hace referencia a app.records.id
scope_node_iduuidSíScope node of the same project, such as the show.Hace referencia a app.scope_nodes.id
membership_iduuidSíMembership of the assigned person; NULL for an open shift.Hace referencia a app.memberships.id
role_codetextSíCanon role worked (Roles Library).Hace referencia a xpms.role.role_code
starts_attimestamp with time zoneNoCall time.
ends_attimestamp with time zoneNoEnd of the shift; after starts_at.
time_zonetextNoIANA zone the shift times were typed in.
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
shift_stateapp.shift_stateNoShift state. Changes only through app.transition_shift, app.publish_shifts, app.accept_shift and app.claim_open_shift.
engagement_iduuidSíEngagement of the external person assigned, when the shift is worked by someone without a membership. At most one of membership_id and engagement_id; neither is an open shift.Hace referencia a app.engagements.id
scheduled_break_minutesintegerSíMeal break scheduled within the shift, in minutes.