mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
added sap05 overwritten to database
This commit is contained in:
parent
75da3e81ec
commit
ffcdd7de91
4 changed files with 4707 additions and 0 deletions
1
src/app/db/migrations/0132_cynical_ikaris.sql
Normal file
1
src/app/db/migrations/0132_cynical_ikaris.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE "property_details_epc" ADD COLUMN "sap_05_overwritten" boolean DEFAULT false;
|
||||
4696
src/app/db/migrations/meta/0132_snapshot.json
Normal file
4696
src/app/db/migrations/meta/0132_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -925,6 +925,13 @@
|
|||
"when": 1764191284790,
|
||||
"tag": "0131_minor_lucky_pierre",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 132,
|
||||
"version": "7",
|
||||
"when": 1764401779805,
|
||||
"tag": "0132_cynical_ikaris",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -178,6 +178,9 @@ export const propertyDetailsEpc = pgTable("property_details_epc", {
|
|||
"current_energy_demand_heating_hotwater"
|
||||
),
|
||||
estimated: boolean("estimated").default(false),
|
||||
// We indicate if the property has an overwritten SAP 05 EPC. I.e. there is a valid EPC, however it's a SAP 05
|
||||
// EPC which isn't particularly useful. This value is defaulted to False
|
||||
sap05Overwritten: boolean("sap_05_overwritten").default(false),
|
||||
// Include current estimates for energy bills, across the different types of energy
|
||||
// These predictions are based on the EPC predicted consumptions + current energy prices
|
||||
heatingEnergyCostCurrent: real("heating_cost_current"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue