app.project_shares
TableRow level security on
A project shared with a partner org (Section 8.5). The partner's members read the project and its shared scope nodes through projections without internal columns, and hold the share's project role on it; each org keeps its own records. Revoked by deleting the share; both audit ledgers record it.
Primary key: id
| Column | Type | Nullable | Description |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Owning org, derived from app.projects on insert; never accepted from the caller and never changed.References app.organizations.id |
| project_id | uuid | No | Shared project, owned by org_id.References app.projects.id |
| partner_organization_id | uuid | No | Organization the project is shared with; never the owning org.References app.organizations.id |
| project_role | app.project_role | No | Project role every active member of the partner org holds on the shared project. |
| valid_from | timestamp with time zone | No | When the share starts. |
| valid_to | timestamp with time zone | Yes | When the share ends on its own; NULL while open-ended. |
| 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 |