added sap05 overwritten to database

This commit is contained in:
Khalim Conn-Kowlessar 2025-11-29 07:37:20 +00:00
parent 75da3e81ec
commit ffcdd7de91
4 changed files with 4707 additions and 0 deletions

View file

@ -0,0 +1 @@
ALTER TABLE "property_details_epc" ADD COLUMN "sap_05_overwritten" boolean DEFAULT false;

File diff suppressed because it is too large Load diff

View file

@ -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
}
]
}

View file

@ -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"),