organization_presentation_denials Client SQLite table
Durable record of a server 403/404 for one requester's presentation projection. Written before the revoked rows are purged so a purge failure followed by an offline restart cannot serve the revoked projection; cleared only by a successful authoritative reconcile for the same scope.
Declared in packages/client-sdk/src/data/sqlite/schema/organizationReadModelSchema.ts
Columns
organization_idtext- not null
Organization whose projection was denied.
requester_user_idtext- not null
Local user the server denied.
projectiontext- not null
Denied projection:
readModel(the organization read model) orusage(the data usage snapshot).denied_attext- not null
ISO-8601 time of the latest denial for this scope.
Keys and constraints
- Primary key
(organization_id, requester_user_id, projection)
DDL
The statements the client runs to create this table and its indexes.
CREATE TABLE IF NOT EXISTS "organization_presentation_denials" (
"organization_id" TEXT NOT NULL,
"requester_user_id" TEXT NOT NULL,
"projection" TEXT NOT NULL,
"denied_at" TEXT NOT NULL,
PRIMARY KEY ("organization_id", "requester_user_id", "projection")
);