CREATE TABLE "user_feature_prefs" (
	"id" text PRIMARY KEY NOT NULL,
	"user_id" text NOT NULL,
	"nutrition" boolean DEFAULT true NOT NULL,
	"pantry" boolean DEFAULT true NOT NULL,
	"meal_plan" boolean DEFAULT true NOT NULL,
	"shopping_lists" boolean DEFAULT true NOT NULL,
	"collections" boolean DEFAULT true NOT NULL,
	"messages" boolean DEFAULT true NOT NULL,
	"updated_at" timestamp DEFAULT now() NOT NULL,
	CONSTRAINT "user_feature_prefs_user_id_unique" UNIQUE("user_id")
);
--> statement-breakpoint
ALTER TABLE "user_feature_prefs" ADD CONSTRAINT "user_feature_prefs_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;