app.organizations
TablaSeguridad a nivel de fila activa
Every company on the platform: a tenant (with a subscription), an external account, or both (Section 4.8.1). Holds only organization-owned identity facts.
Clave primaria: id
| Columna | Tipo | Admite nulos | Descripción |
|---|---|---|---|
| id | uuid | No | Organization id. Tenant tables store it as org_id. |
| slug | text | No | Lowercase hyphenated URL segment, unique across the platform (Section 4.5.3). |
| name | text | No | Organization display name. |
| parent_org_id | uuid | Sí | Partner org of a client org (Section 4.6.1). Three levels at most: a partner cannot have a parent partner.Hace referencia a app.organizations.id |
| 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. |
| organization_type | text | No | Legal form of the organization (decision D17): For-Profit, Nonprofit or Public Agency. Decides which worker classifications its engagements may use (rule XOS-ENG-6). Defaults to For-Profit, the most restrictive form.Hace referencia a xpms.organization_type.label |