app.organizations
TableRow level security on
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.
Primary key: id
| Column | Type | Nullable | Description |
|---|---|---|---|
| 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 | Yes | Partner org of a client org (Section 4.6.1). Three levels at most: a partner cannot have a parent partner.References app.organizations.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. |
| 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.References xpms.organization_type.label |