CREATE TABLE "shopping_items" (
	"id" text PRIMARY KEY NOT NULL,
	"household_id" text NOT NULL,
	"label" text NOT NULL,
	"quantity" text,
	"added_by" text NOT NULL,
	"checked_by" text,
	"checked_at" text,
	"sort_order" integer DEFAULT 0 NOT NULL,
	"created_at" text NOT NULL
);
--> statement-breakpoint
ALTER TABLE "shopping_items" ADD CONSTRAINT "shopping_items_household_id_households_id_fk" FOREIGN KEY ("household_id") REFERENCES "public"."households"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
CREATE INDEX "shopping_items_household_id_idx" ON "shopping_items" USING btree ("household_id");