added envronment impact to db

This commit is contained in:
Khalim Conn-Kowlessar 2026-04-09 15:20:40 +00:00
parent a41f18fb07
commit 0fbe5a2a6d
4 changed files with 6342 additions and 0 deletions

View file

@ -0,0 +1 @@
ALTER TABLE "property_details_epc" ADD COLUMN "environment_impact_current" real;

File diff suppressed because it is too large Load diff

View file

@ -1170,6 +1170,13 @@
"when": 1775658752820,
"tag": "0166_melodic_crusher_hogan",
"breakpoints": true
},
{
"idx": 167,
"version": "7",
"when": 1775747945070,
"tag": "0167_wise_agent_zero",
"breakpoints": true
}
]
}

View file

@ -269,6 +269,8 @@ export const propertyDetailsEpc = pgTable(
lodgedCo2Emissions: real("lodged_co2_emissions"),
lodgedHeatDemand: real("lodged_heat_demand"),
hasBeenRemodelled: boolean("has_been_remodelled").default(false),
// additional fields
environment_impact_current: real("environment_impact_current"),
},
(table) => [
uniqueIndex("uq_property_details_epc_property_portfolio").on(