mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
new wall types
This commit is contained in:
parent
41d33ff399
commit
9612b1fd4b
4 changed files with 9724 additions and 5 deletions
4
src/app/db/migrations/0206_tense_raza.sql
Normal file
4
src/app/db/migrations/0206_tense_raza.sql
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
ALTER TABLE "landlord_wall_type_overrides" ALTER COLUMN "value" SET DATA TYPE text;--> statement-breakpoint
|
||||
DROP TYPE "public"."wall_type";--> statement-breakpoint
|
||||
CREATE TYPE "public"."wall_type" AS ENUM('Cavity wall, filled cavity', 'Cavity wall, as built, insulated (assumed)', 'Cavity wall, as built, no insulation (assumed)', 'Cavity wall, as built, partial insulation (assumed)', 'Cavity wall, with internal insulation', 'Cavity wall, with external insulation', 'Cavity wall, filled cavity and internal insulation', 'Cavity wall, filled cavity and external insulation', 'Solid brick, as built, no insulation (assumed)', 'Solid brick, as built, insulated (assumed)', 'Solid brick, as built, partial insulation (assumed)', 'Solid brick, with internal insulation', 'Solid brick, with external insulation', 'Timber frame, as built, no insulation (assumed)', 'Timber frame, as built, insulated (assumed)', 'Timber frame, as built, partial insulation (assumed)', 'Timber frame, with additional insulation', 'Sandstone, as built, no insulation (assumed)', 'Sandstone, as built, insulated (assumed)', 'Sandstone, as built, partial insulation (assumed)', 'Sandstone, with internal insulation', 'Sandstone, with external insulation', 'Granite or whin, as built, no insulation (assumed)', 'Granite or whin, as built, insulated (assumed)', 'Granite or whin, as built, partial insulation (assumed)', 'Granite or whin, with internal insulation', 'Granite or whin, with external insulation', 'System built, as built, no insulation (assumed)', 'System built, as built, insulated (assumed)', 'System built, as built, partial insulation (assumed)', 'System built, with internal insulation', 'System built, with external insulation', 'Park home wall, as built', 'Park home wall, with internal insulation', 'Park home wall, with external insulation', 'Cob, as built', 'Cob, with internal insulation', 'Cob, with external insulation', 'Curtain wall', 'Curtain Wall, as built, no insulation (assumed)', 'Curtain Wall, as built, insulated (assumed)', 'Curtain Wall, filled cavity', 'Curtain Wall, with internal insulation', 'Basement wall', 'Basement wall, as built', 'Unknown');--> statement-breakpoint
|
||||
ALTER TABLE "landlord_wall_type_overrides" ALTER COLUMN "value" SET DATA TYPE "public"."wall_type" USING "value"::"public"."wall_type";
|
||||
9667
src/app/db/migrations/meta/0206_snapshot.json
Normal file
9667
src/app/db/migrations/meta/0206_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1443,6 +1443,13 @@
|
|||
"when": 1779791011744,
|
||||
"tag": "0205_wonderful_pixie",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 206,
|
||||
"version": "7",
|
||||
"when": 1779805963297,
|
||||
"tag": "0206_tense_raza",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -9,7 +9,7 @@ import {
|
|||
} from "drizzle-orm/pg-core";
|
||||
import { portfolio } from "./portfolio";
|
||||
|
||||
// Enum string values mirror /workspaces/home/github/Model/domain/sal/*.py
|
||||
// Enum string values mirror /workspaces/home/github/Model/domain/landlord_description_overrides/*.py
|
||||
// exactly (PropertyType.value, WallType.value). Keep in sync — see
|
||||
// docs/adr/0002-landlord-override-vocabulary.md.
|
||||
export const PropertyTypeValues: [string, ...string[]] = [
|
||||
|
|
@ -22,10 +22,51 @@ export const PropertyTypeValues: [string, ...string[]] = [
|
|||
];
|
||||
|
||||
export const WallTypeValues: [string, ...string[]] = [
|
||||
"Cavity",
|
||||
"Solid Brick",
|
||||
"Timber frame",
|
||||
"Sandstone",
|
||||
"Cavity wall, filled cavity",
|
||||
"Cavity wall, as built, insulated (assumed)",
|
||||
"Cavity wall, as built, no insulation (assumed)",
|
||||
"Cavity wall, as built, partial insulation (assumed)",
|
||||
"Cavity wall, with internal insulation",
|
||||
"Cavity wall, with external insulation",
|
||||
"Cavity wall, filled cavity and internal insulation",
|
||||
"Cavity wall, filled cavity and external insulation",
|
||||
"Solid brick, as built, no insulation (assumed)",
|
||||
"Solid brick, as built, insulated (assumed)",
|
||||
"Solid brick, as built, partial insulation (assumed)",
|
||||
"Solid brick, with internal insulation",
|
||||
"Solid brick, with external insulation",
|
||||
"Timber frame, as built, no insulation (assumed)",
|
||||
"Timber frame, as built, insulated (assumed)",
|
||||
"Timber frame, as built, partial insulation (assumed)",
|
||||
"Timber frame, with additional insulation",
|
||||
"Sandstone, as built, no insulation (assumed)",
|
||||
"Sandstone, as built, insulated (assumed)",
|
||||
"Sandstone, as built, partial insulation (assumed)",
|
||||
"Sandstone, with internal insulation",
|
||||
"Sandstone, with external insulation",
|
||||
"Granite or whin, as built, no insulation (assumed)",
|
||||
"Granite or whin, as built, insulated (assumed)",
|
||||
"Granite or whin, as built, partial insulation (assumed)",
|
||||
"Granite or whin, with internal insulation",
|
||||
"Granite or whin, with external insulation",
|
||||
"System built, as built, no insulation (assumed)",
|
||||
"System built, as built, insulated (assumed)",
|
||||
"System built, as built, partial insulation (assumed)",
|
||||
"System built, with internal insulation",
|
||||
"System built, with external insulation",
|
||||
"Park home wall, as built",
|
||||
"Park home wall, with internal insulation",
|
||||
"Park home wall, with external insulation",
|
||||
"Cob, as built",
|
||||
"Cob, with internal insulation",
|
||||
"Cob, with external insulation",
|
||||
"Curtain wall",
|
||||
"Curtain Wall, as built, no insulation (assumed)",
|
||||
"Curtain Wall, as built, insulated (assumed)",
|
||||
"Curtain Wall, filled cavity",
|
||||
"Curtain Wall, with internal insulation",
|
||||
"Basement wall",
|
||||
"Basement wall, as built",
|
||||
"Unknown",
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue