principal_policy_commits API Postgres table
Declared in packages/api-shared/src/schema/principalPolicyCommits.ts
Columns
request_hashtext- primary key
- not null
Hex SHA-256 of the canonical JSON of the operation kind (policy commit, group create, or group delete), organization id, group id, requester, and request body. A retry of the same request finds its receipt by it.
organization_iduuid- not null
Organization the operation ran in; organization purge deletes by it.
group_iduuid- nullable
Null for standalone writes and deletions, whose target group is already gone.
requester_user_iduuid- not null
User who sent the request. Only that user, still an organization admin, can replay it.
response_jsontext- not null
JSON receipt naming the principal policy heads the operation produced. A replay rebuilds its response from them.
created_attimestamp- not null
- default now()
Server-side insertion timestamp.
Indexes
principal_policy_commits_organization_idx(organization_id)principal_policy_commits_group_idx(group_id)