Tearleads

superseded_container_bindings Client SQLite table

Organizations a held folder was re-homed away from by its own owner's signed create (ordinary billing-purge recovery derives fresh replacement ids instead of reusing old container ids). A superseded organization never returns for that id, so a later proof binding the folder back to one of these organizations is rejected as a replay. Retained across remote resets.

Declared in packages/client-sdk/src/data/sqlite/schema/containerSchema.ts

Columns

  • container_idtext
    • not null

    Held folder that was re-homed.

  • organization_idtext
    • not null

    Organization the folder left; binding back to it is refused.

  • superseded_attext
    • not null

    ISO-8601 time this device recorded the re-home.

Keys and constraints

  • Primary key(container_id, organization_id)

DDL

The statements the client runs to create this table and its indexes.

CREATE TABLE IF NOT EXISTS "superseded_container_bindings" (
  "container_id" TEXT NOT NULL,
  "organization_id" TEXT NOT NULL,
  "superseded_at" TEXT NOT NULL,
  PRIMARY KEY ("container_id", "organization_id")
);