assessment-model/src/app/db/migrations/0128_thin_wiccan.sql
2025-11-25 13:35:27 +00:00

17 lines
544 B
SQL

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
);