organizations API Postgres table
Organization catalog rows.
Declared in packages/api-shared/src/schema/organizations.ts
Description
Organizations define the top-level ownership boundary for containers, documents, manifests, and keying state. Registration creates a personal organization; the signed principal-state tables carry the organization's access policy and recipient key history.
Columns
iduuid- primary key
- not null
- default gen_random_uuid()
Stable organization id. Container and access-manifest rows copy this id as their organization boundary.
admin_group_iduuid- not null
Reserved organization-scoped group whose reachable members have organization-admin authority.
member_group_iduuid- not null
Reserved organization-scoped group whose reachable members belong to the organization.
root_container_iduuid- not null
The organization's root container, fixed at provisioning. Built-in container grants are derived from it and the two reserved groups: Admins at admin on the root, and Admins at admin plus Members at read on the derived metadata slot. They cannot be revoked or change access level, though rotation may rewrap them at the same level.
profile_document_iduuid- nullable
Optional encrypted document containing org-scoped profile fields such as customizable display name.
provisioning_user_iduuid- nullable
User-bound exact-request replay for ordinary creates. Stored atomically with genesis; registration and replacements use their own provisioning protocols. Prechange databases are reset, not backfilled.
provisioning_request_sha256text- nullable
User-bound exact-request replay for ordinary creates. Stored atomically with genesis; registration and replacements use their own provisioning protocols. Prechange databases are reset, not backfilled.
provisioning_responsejsonb- nullable
User-bound exact-request replay for ordinary creates. Stored atomically with genesis; registration and replacements use their own provisioning protocols. Prechange databases are reset, not backfilled.
created_attimestamp- not null
- default now()
Server-side insertion timestamp.
Indexes
organizations_profile_document_idx(profile_document_id)organizations_admin_group_idx(admin_group_id)
Referenced by
- operator_organization (organization_id)