CREATE TYPE "public"."main_fuel" AS ENUM('mains gas', 'mains gas (community)', 'electricity', 'LPG (bulk)', 'oil', 'house coal', 'Unknown');--> statement-breakpoint
ALTER TYPE "public"."override_component" ADD VALUE 'main_fuel';--> statement-breakpoint
CREATE TABLE "landlord_main_fuel_overrides" (
	"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
	"portfolio_id" bigint NOT NULL,
	"description" text NOT NULL,
	"value" "main_fuel" NOT NULL,
	"source" "override_source" NOT NULL,
	"created_at" timestamp with time zone DEFAULT now() NOT NULL,
	"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
	CONSTRAINT "landlord_main_fuel_overrides_portfolio_description_unique" UNIQUE("portfolio_id","description")
);
--> statement-breakpoint
ALTER TABLE "landlord_main_fuel_overrides" ADD CONSTRAINT "landlord_main_fuel_overrides_portfolio_id_portfolio_id_fk" FOREIGN KEY ("portfolio_id") REFERENCES "public"."portfolio"("id") ON DELETE cascade ON UPDATE no action;