mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-07-22 08:48:34 +00:00
17 lines
544 B
SQL
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
|
|
);
|