app.shift_claims
TablaSeguridad a nivel de fila activa
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.
Clave primaria: id
| Columna | Tipo | Admite nulos | Descripción |
|---|---|---|---|
| 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.Hace referencia a app.organizations.id |
| project_id | uuid | No | Project of the shift.Hace referencia a app.projects.id |
| shift_id | uuid | No | Open shift claimed.Hace referencia a app.shifts.id |
| membership_id | uuid | No | Membership of the person claiming it.Hace referencia a app.memberships.id |
| claim_state | app.shift_claim_state | No | Requested, Approved, Rejected, Withdrawn or Superseded. |
| decided_by | uuid | Sí | Person who approved or rejected the claim.Hace referencia a app.people.id |
| decided_at | timestamp with time zone | Sí | When the claim was approved or rejected. |
| reason | text | Sí | 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 | Sí | Person who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id |
| updated_at | timestamp with time zone | No | When the row last changed. Set by the database. |
| updated_by | uuid | Sí | Person who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id |
| deleted_at | timestamp with time zone | Sí | Soft delete time. A row with deleted_at set is ignored by every access helper. |