Merge pull request #312 from Hestia-Homes/feature/new-file-type-and-source-for-audits

New file type and source for audits
This commit is contained in:
Jun-te Kim 2026-06-09 15:21:39 +01:00 committed by GitHub
commit 23a275ae85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10940 additions and 1 deletions

View file

@ -0,0 +1,2 @@
ALTER TYPE "public"."file_source" ADD VALUE 'audit_generator';--> statement-breakpoint
ALTER TYPE "public"."file_type" ADD VALUE 'ventilation_audit' BEFORE 'other';

File diff suppressed because it is too large Load diff

View file

@ -1604,6 +1604,13 @@
"when": 1780929304935,
"tag": "0229_lively_kree",
"breakpoints": true
},
{
"idx": 230,
"version": "7",
"when": 1781013441630,
"tag": "0230_wet_epoch",
"breakpoints": true
}
]
}

View file

@ -55,8 +55,11 @@ export const fileType = pgEnum("file_type", [
"medium_term_improvement_plan",
// Design
"retrofit_design_doc",
// Audit
"ventilation_audit",
// Other
"other"
]);
export const fileSource = pgEnum("file_source", [
@ -66,7 +69,8 @@ export const fileSource = pgEnum("file_source", [
"ecmk",
"contractor",
"magic_plan",
"coordination_hub"
"coordination_hub",
"audit_generator"
]);
export const uploadedFiles = pgTable(