Created energy assessments documents table

This commit is contained in:
Khalim Conn-Kowlessar 2024-09-04 11:17:57 +01:00
parent e5a00d4454
commit b5777e380c
3 changed files with 2884 additions and 0 deletions

View file

@ -0,0 +1,14 @@
DO $$ BEGIN
CREATE TYPE "document_type" AS ENUM('EPR', 'Condition Report', 'Evidence Report', 'Summary Information', 'Floor Plan', 'Scenario EPR');
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "energy_assessment_documents" (
"id" bigserial PRIMARY KEY NOT NULL,
"uprn" bigint NOT NULL,
"energy_assessment_id" bigint NOT NULL,
"document_type" "document_type" NOT NULL,
"document_location" text NOT NULL,
"uploaded_at" timestamp (6) with time zone DEFAULT now() NOT NULL
);

File diff suppressed because it is too large Load diff

View file

@ -638,6 +638,13 @@
"when": 1723570008314,
"tag": "0090_youthful_silver_centurion",
"breakpoints": true
},
{
"idx": 91,
"version": "5",
"when": 1725445028849,
"tag": "0091_fuzzy_doctor_spectrum",
"breakpoints": true
}
]
}