mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
rmoving isActive from recMaterials
This commit is contained in:
parent
6b6a588b07
commit
7e14b9cffc
4 changed files with 1250 additions and 3 deletions
1
src/app/db/migrations/0030_special_hydra.sql
Normal file
1
src/app/db/migrations/0030_special_hydra.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE "recommendation_materials" DROP COLUMN IF EXISTS "is_active";
|
||||
1240
src/app/db/migrations/meta/0030_snapshot.json
Normal file
1240
src/app/db/migrations/meta/0030_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -211,6 +211,13 @@
|
|||
"when": 1691752817584,
|
||||
"tag": "0029_handy_the_liberteens",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 30,
|
||||
"version": "5",
|
||||
"when": 1691753400997,
|
||||
"tag": "0030_special_hydra",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -36,6 +36,8 @@ export const recommendation = pgTable("recommendation", {
|
|||
type: text("type").notNull(),
|
||||
description: text("description").notNull(),
|
||||
estimatedCost: real("estimated_cost"),
|
||||
// default will indicate whether a mtaterial is currently being used in a recommendation and we will use this boolean to switch
|
||||
// between materials in the UI and switch off all materials entirely
|
||||
default: boolean("default").notNull(),
|
||||
startingUValue: real("starting_u_value"),
|
||||
newUValue: real("new_u_value"),
|
||||
|
|
@ -60,9 +62,6 @@ export const recommendationMaterials = pgTable("recommendation_materials", {
|
|||
.notNull()
|
||||
.references(() => material.id),
|
||||
createdAt: timestamp("created_at").notNull().defaultNow(),
|
||||
// isActive will indicate whether a mtaterial is currently being used in a recommendation and we will use this boolean to switch
|
||||
// between materials in the UI and switch off all materials entirely
|
||||
isActive: boolean("is_active").notNull(),
|
||||
});
|
||||
|
||||
export const plan = pgTable("plan", {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue