CREATE TABLE "user_model_prefs" (
	"id" text PRIMARY KEY NOT NULL,
	"user_id" text NOT NULL,
	"text_provider" text,
	"text_model" text,
	"vision_provider" text,
	"vision_model" text,
	"meal_plan_provider" text,
	"meal_plan_model" text,
	"updated_at" timestamp DEFAULT now() NOT NULL,
	CONSTRAINT "user_model_prefs_user_id_unique" UNIQUE("user_id")
);
--> statement-breakpoint
ALTER TABLE "user_model_prefs" ADD CONSTRAINT "user_model_prefs_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;