Skip to content

app.shift_claims

TableRow level security on

Claims on open shifts that wait for a decision under the org's claiming rule (scheduling.open_shift_claiming approval or seniority, Section 4.5.6 item 25). Written only through app.claim_open_shift, app.decide_shift_claim, app.award_open_shift and app.withdraw_shift_claim.

Primary key: id

Columns of app.shift_claims
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.shifts on insert; never accepted from the caller and never changed.References app.organizations.id
project_iduuidNoProject of the shift.References app.projects.id
shift_iduuidNoOpen shift claimed.References app.shifts.id
membership_iduuidNoMembership of the person claiming it.References app.memberships.id
claim_stateapp.shift_claim_stateNoRequested, Approved, Rejected, Withdrawn or Superseded.
decided_byuuidYesPerson who approved or rejected the claim.References app.people.id
decided_attimestamp with time zoneYesWhen the claim was approved or rejected.
reasontextYesWhy it was rejected, withdrawn or superseded, or the approver's note.
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
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.