app.delegations
TableRow level security on
Time-boxed delegation of a member's capability to another member of the same org, for example approvals while out of office. One hop only: delegated capabilities are not delegated again.
Primary key: id
| Column | Type | Nullable | Description |
|---|---|---|---|
| id | uuid | No | Delegation id. |
| org_id | uuid | No | Org of the delegator, derived from the membership.References app.organizations.id |
| delegator_membership_id | uuid | No | Member who delegates.References app.memberships.id |
| delegate_membership_id | uuid | No | Member who acts for the delegator; never the delegator.References app.memberships.id |
| capability_code | text | Yes | Delegated capability; null delegates every approve-class capability the delegator holds.References app.capabilities.code |
| valid_from | timestamp with time zone | No | When the delegation starts. |
| valid_to | timestamp with time zone | No | When the delegation ends. Delegations always expire. |
| reason | text | No | Why the delegation exists. |
| 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. |