app.record_grants
TablaSeguridad a nivel de fila activa
Access to an org, workspace, team, project or record granted to a person or another organization with scope and expiry, for example a standing partner grant (Section 4.6.1).
Clave primaria: id
| Columna | Tipo | Admite nulos | Descripción |
|---|---|---|---|
| id | uuid | No | Grant id. |
| org_id | uuid | No | Org that owns the target, derived from it by private.scope_org.Hace referencia a app.organizations.id |
| target_kind | app.grant_target_kind | No | Kind of target. |
| target_id | uuid | No | Target row id. |
| capability_code | text | No | Capability the grant allows on the target.Hace referencia a app.capabilities.code |
| grantee_person_id | uuid | Sí | Person who receives access; null when an organization does.Hace referencia a app.people.id |
| grantee_org_id | uuid | Sí | Organization whose active members receive access; null when a person does.Hace referencia a app.organizations.id |
| valid_from | timestamp with time zone | No | When access starts. |
| valid_to | timestamp with time zone | No | When access ends. Record grants always expire. |
| granted_by | uuid | Sí | Person who granted it; never the grantee.Hace referencia a app.people.id |
| reason | text | No | Why the grant was made, for example the partner agreement clause. |
| 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. |