app.work_detail_shares
TablaSeguridad a nivel de fila activa
A person's consent to share chosen categories of their work details with the org that engages them, for one engagement (Section 4.5.6 item 10, Section 14.3). Written only by app.share_work_details and app.revoke_work_detail_share; one live share per engagement. The org reads what was shared through app.shared_work_details while the share stands and the engagement is open.
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.engagements on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id |
| engagement_id | uuid | No | Engagement the share serves.Hace referencia a app.engagements.id |
| person_id | uuid | No | Person sharing, the engagement's party.Hace referencia a app.people.id |
| consent_record_id | uuid | No | The work_details_sharing consent record for the org.Hace referencia a app.consent_records.id |
| categories | app.work_detail_category[] | No | Categories shared, each once, in enum order. |
| shared_at | timestamp with time zone | No | When the share was given. |
| revoked_at | timestamp with time zone | Sí | When the person revoked it; NULL while it stands. |
| 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. |