app.profile_shares
TableRow level security on
Consent to share profile fields with one org (Section 4.4.1): the snapshot taken when a person or company applies or is engaged. Revoking stops future updates; the org keeps the snapshot it must retain.
Primary key: id
| Column | Type | Nullable | Description |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Org the profile is shared with.References app.organizations.id |
| person_id | uuid | Yes | Person sharing their profile; NULL when a company shares.References app.people.id |
| organization_id | uuid | Yes | External account sharing its company profile; NULL when a person shares.References app.organizations.id |
| engagement_id | uuid | Yes | Engagement the share serves, once there is one; live updates flow only while it is open.References app.engagements.id |
| shared_at | timestamp with time zone | No | When consent was given. |
| revoked_at | timestamp with time zone | Yes | When consent was revoked. |
| deleted_at | timestamp with time zone | Yes | Soft delete time. A row with deleted_at set is ignored by every access helper. |
| 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 |