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
| Column | Type | Nullable | Description |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Owning org, derived from app.shifts on insert; never accepted from the caller and never changed.References app.organizations.id |
| project_id | uuid | No | Project of the shift.References app.projects.id |
| shift_id | uuid | No | Open shift claimed.References app.shifts.id |
| membership_id | uuid | No | Membership of the person claiming it.References app.memberships.id |
| claim_state | app.shift_claim_state | No | Requested, Approved, Rejected, Withdrawn or Superseded. |
| decided_by | uuid | Yes | Person who approved or rejected the claim.References app.people.id |
| decided_at | timestamp with time zone | Yes | When the claim was approved or rejected. |
| reason | text | Yes | Why it was rejected, withdrawn or superseded, or the approver's note. |
| created_at | timestamp with time zone | No | When the row was inserted. Set by the database. |
| created_by | uuid | Yes | Person who inserted the row, or null for a platform process. Set by the database.References app.people.id |
| updated_at | timestamp with time zone | No | When the row last changed. Set by the database. |
| updated_by | uuid | Yes | Person who last changed the row, or null for a platform process. Set by the database.References app.people.id |
| deleted_at | timestamp with time zone | Yes | Soft delete time. A row with deleted_at set is ignored by every access helper. |