Merge pull request #265 from Hestia-Homes/feature/new-file-types
Some checks failed
Test Suite / unit-tests (push) Has been cancelled

Uploaded Files: new file type and file source for MagicPlan
This commit is contained in:
Daniel Roth 2026-05-08 16:15:29 +01:00 committed by GitHub
commit 88af4ec00e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9401 additions and 0 deletions

View file

@ -0,0 +1,2 @@
ALTER TYPE "public"."file_source" ADD VALUE 'magic_plan';--> statement-breakpoint
ALTER TYPE "public"."file_type" ADD VALUE 'magic_plan_json';

File diff suppressed because it is too large Load diff

View file

@ -1394,6 +1394,13 @@
"when": 1778176651140,
"tag": "0198_panoramic_triathlon",
"breakpoints": true
},
{
"idx": 199,
"version": "7",
"when": 1778249728162,
"tag": "0199_rich_mandroid",
"breakpoints": true
}
]
}

View file

@ -47,6 +47,8 @@ export const fileType = pgEnum("file_type", [
"installer_qualifications",
"installer_feedback",
"contractor_other",
// MagicPlan
"magic_plan_json"
]);
export const fileSource = pgEnum("file_source", [
@ -55,6 +57,7 @@ export const fileSource = pgEnum("file_source", [
"hubspot",
"ecmk",
"contractor",
"magic_plan"
]);
export const uploadedFiles = pgTable(