dormant_container_metadata Client SQLite table
Organization attribution for container metadata retained after access loss. The container row is removed on revocation, so this marker retains the organization scope needed by a later access-restoration sweep.
Declared in packages/client-sdk/src/data/sqlite/schema/containerSchema.ts
Columns
container_idtext- primary key
- not null
Removed container whose metadata document rows are retained.
organization_idtext- not null
Organization the retained metadata is attributed to; the restoration sweep runs per organization.
retained_attext- not null
ISO-8601 time the container was removed and its metadata retained.
Indexes
dormant_container_metadata_organization_idx(organization_id, container_id)
DDL
The statements the client runs to create this table and its indexes.
CREATE TABLE IF NOT EXISTS "dormant_container_metadata" (
"container_id" TEXT NOT NULL PRIMARY KEY,
"organization_id" TEXT NOT NULL,
"retained_at" TEXT NOT NULL
);
CREATE INDEX IF NOT EXISTS "dormant_container_metadata_organization_idx" ON "dormant_container_metadata" ("organization_id", "container_id");