CREATE TABLE "household_settings" (
	"id" text PRIMARY KEY NOT NULL,
	"household_id" text NOT NULL,
	"owner_name" text DEFAULT 'Ich' NOT NULL,
	"partner_name" text DEFAULT 'Partner' NOT NULL,
	"user_share_percent" numeric(5, 2) DEFAULT '50' NOT NULL,
	"monthly_budget" numeric(12, 2) DEFAULT '400' NOT NULL,
	"currency" text DEFAULT 'EUR' NOT NULL,
	"split_child_costs" boolean DEFAULT true NOT NULL,
	"onboarding_complete" boolean DEFAULT false NOT NULL,
	"created_at" timestamp DEFAULT now() NOT NULL,
	"updated_at" timestamp DEFAULT now() NOT NULL,
	CONSTRAINT "household_settings_household_id_unique" UNIQUE("household_id")
);
--> statement-breakpoint
ALTER TABLE "household_settings" ADD CONSTRAINT "household_settings_household_id_households_id_fk" FOREIGN KEY ("household_id") REFERENCES "public"."households"("id") ON DELETE cascade ON UPDATE no action;