mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
Created energy assessments documents table
This commit is contained in:
parent
e5a00d4454
commit
b5777e380c
3 changed files with 2884 additions and 0 deletions
14
src/app/db/migrations/0091_fuzzy_doctor_spectrum.sql
Normal file
14
src/app/db/migrations/0091_fuzzy_doctor_spectrum.sql
Normal 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
|
||||
);
|
||||
2863
src/app/db/migrations/meta/0091_snapshot.json
Normal file
2863
src/app/db/migrations/meta/0091_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue