CREATE TABLE "epc_store" (
	"id" serial PRIMARY KEY NOT NULL,
	"uprn" bigint,
	"epc_api_created_at" timestamp DEFAULT now() NOT NULL,
	"epc_api" jsonb NOT NULL,
	"epc_page_created_at" timestamp DEFAULT now() NOT NULL,
	"epc_page" text NOT NULL,
	"epc_page_rrn" text NOT NULL
);
--> statement-breakpoint
CREATE TABLE "property_installed_measures" (
	"id" bigserial PRIMARY KEY NOT NULL,
	"uprn" bigint NOT NULL,
	"measure_type" "type" NOT NULL,
	"created_at" timestamp DEFAULT now() NOT NULL,
	"installed_at" timestamp DEFAULT now() NOT NULL
);
