CREATE TABLE "consumed_per_user_and_nonce" (
	"id" serial PRIMARY KEY NOT NULL,
	"chain_id" bigint NOT NULL,
	"offering" varchar(42) NOT NULL,
	"nonce" bigint NOT NULL,
	"consumed" bigint NOT NULL,
	"created_at" timestamp DEFAULT now() NOT NULL
);
--> statement-breakpoint
CREATE INDEX "consumed_per_user_and_nonce_chain_id_offering_nonce_created_at_idx" ON "consumed_per_user_and_nonce" USING btree ("chain_id","offering","nonce","created_at" desc);