operator_organization API Postgres table
The platform's one operator organization. Root access is membership of its reserved Admins group at the current signed state: an identity holds root exactly while it is one of the organization's administrators, so granting and revoking root are signed Admins policy commits by those administrators, and every operator can read the roster profiles the root console labels operators with.
Declared in packages/api-shared/src/schema/operatorOrganization.ts
Description
The table holds at most one row: its primary key is a boolean that must be true. With no row, no identity holds root. The API CLI's designate-operator-org writes it; nothing else does.
Columns
singletonboolean- primary key
- not null
- default true
Always true; the primary key that admits one row.
organization_iduuid- not null
- references organizations (
id)
The designated organization. The foreign key refuses deleting the organization while it is designated.
designated_attimestamp- not null
- default now()
When the API CLI designated it.
Keys and constraints
- Check operator_organization_singleton
"singleton"