CREATE TABLE "offer_status" (
	"id" serial PRIMARY KEY NOT NULL,
	"offer_hash" varchar(66) NOT NULL,
	"status" text NOT NULL,
	"metadata" jsonb
);
--> statement-breakpoint
ALTER TABLE "offer_status" ADD CONSTRAINT "offer_status_offer_hash_offers_hash_fk" FOREIGN KEY ("offer_hash") REFERENCES "public"."offers"("hash") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
CREATE INDEX "offer_status_offer_hash_idx" ON "offer_status" USING btree ("offer_hash");--> statement-breakpoint
CREATE INDEX "offer_status_status_idx" ON "offer_status" USING btree ("status");