-- CreateTable: idempotency ledger for one-time data backfills run from the -- production image's start command (apps/api/Dockerfile CMD -> -- src/scripts/backfill-runtime.ts). One row per completed backfill, keyed -- by an opaque backfill name; presence of the row is the "already done, -- don't repeat" signal. See the `BackfillState` model doc comment. CREATE TABLE "backfill_state" ( "key" TEXT NOT NULL, "completed_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, CONSTRAINT "backfill_state_pkey" PRIMARY KEY ("key") );