added cavity wall insulation as material type to db

This commit is contained in:
Khalim Conn-Kowlessar 2023-10-09 11:08:02 +08:00
parent f23812130f
commit 99ed655ec8
5 changed files with 1308 additions and 0 deletions

View file

@ -55,6 +55,8 @@ export async function POST(request: NextRequest) {
// status: 200,
// });
console.log("Triggering plan with body: ", validatedBody);
// For the moment, we don't await any response from the backend, since we haven't split out the trigger
fetch(`${process.env.FASTAPI_API_URL}/v1/plan/trigger`, {
method: "POST",

View file

@ -0,0 +1 @@
ALTER TYPE "type" ADD VALUE 'cavity_wall_insulation';

File diff suppressed because it is too large Load diff

View file

@ -267,6 +267,13 @@
"when": 1692623678223,
"tag": "0037_awesome_harry_osborn",
"breakpoints": true
},
{
"idx": 38,
"version": "5",
"when": 1696820822620,
"tag": "0038_conscious_paper_doll",
"breakpoints": true
}
]
}

View file

@ -14,6 +14,7 @@ export const MaterialType: [string, ...string[]] = [
"solid_floor_insulation",
"external_wall_insulation",
"internal_wall_insulation",
"cavity_wall_insulation",
];
export const materialTypeEnum = pgEnum("type", MaterialType);