app.partner_standing_grants
TableRow level security on
A standing grant written into the partner and client agreement (Section 4.6.1): the client Owner lets the partner's staff read one area of the client org until an expiry of at most a year, citing the agreement clause. Each issues an org-level record_grants row; either side may end it early. Partner staff never write through one.
Primary key: id
| Column | Type | Nullable | Description |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Client org that granted the access.References app.organizations.id |
| partner_org_id | uuid | No | Partner org whose staff may read.References app.organizations.id |
| capability_code | text | No | The scope: one read capability, of those a support session may grant.References app.capabilities.code |
| agreement_reference | text | No | The clause of the partner and client agreement that provides the grant. |
| valid_from | timestamp with time zone | No | When access began. |
| valid_to | timestamp with time zone | No | When access ends on its own, at most a year after it began. |
| record_grant_id | uuid | No | Org-level record grant the standing grant issued.References app.record_grants.id |
| ended_at | timestamp with time zone | Yes | When someone ended the grant early. |
| ended_by | uuid | Yes | Person who ended it early.References app.people.id |
| 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. |