mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
Added new columns to db for summary page
This commit is contained in:
parent
01476b3c60
commit
f70c092f33
4 changed files with 37 additions and 1 deletions
|
|
@ -131,6 +131,10 @@ const SummaryTable = ({
|
|||
title: "Cost",
|
||||
scenarios: [{ scenarioName: "EPC B Scenario", data: "£32,412" }],
|
||||
},
|
||||
{
|
||||
title: "Cost (£) /unit",
|
||||
scenarios: [{ scenarioName: "EPC B Scenario", data: "£1,412" }],
|
||||
},
|
||||
{
|
||||
title: "£ per CO2 reduction",
|
||||
scenarios: [{ scenarioName: "EPC B Scenario", data: "£50" }],
|
||||
|
|
|
|||
|
|
@ -470,6 +470,13 @@
|
|||
"when": 1713102595793,
|
||||
"tag": "0066_eager_cerise",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 67,
|
||||
"version": "5",
|
||||
"when": 1713221740366,
|
||||
"tag": "0067_previous_sasquatch",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -69,6 +69,24 @@ export const portfolio = pgTable("portfolio", {
|
|||
})
|
||||
.defaultNow()
|
||||
.notNull(),
|
||||
// Aggregates added for the summary tab
|
||||
epcBreakdownPreRetrofit: text("epc_breakdown_pre_retrofit"),
|
||||
epcBreakdownPostRetrofit: text("epc_breakdown_post_retrofit"),
|
||||
nUnitsToRetrofit: integer("n_units_to_retrofit"),
|
||||
co2PerUnitPreRetrofit: text("co2_per_unit_pre_retrofit"),
|
||||
co2PerUnitPostRetrofit: text("co2_per_unit_post_retrofit"),
|
||||
energyBillPerUnitPreRetrofit: text("energy_bill_per_unit_pre_retrofit"),
|
||||
energyBillPerUnitPostRetrofit: text("energy_bill_per_unit_post_retrofit"),
|
||||
energyConsumptionPerUnitPreRetrofit: text(
|
||||
"energy_consumption_per_unit_pre_retrofit"
|
||||
),
|
||||
energyConsumptionPerUnitPostRetrofit: text(
|
||||
"energy_consumption_per_unit_post_retrofit"
|
||||
),
|
||||
valuationImprovementPerUnit: text("valuation_improvement_per_unit"),
|
||||
costPerUnit: text("cost_per_unit"),
|
||||
costPerCo2Saved: text("cost_per_co2_saved"),
|
||||
costPerSapPoint: text("cost_per_sap_point"),
|
||||
});
|
||||
|
||||
export const portfolioUsers = pgTable("portfolioUsers", {
|
||||
|
|
|
|||
|
|
@ -68,7 +68,14 @@ export default async function PortfolioSummary({
|
|||
],
|
||||
},
|
||||
{
|
||||
title: "Cost",
|
||||
title: "Cost (£)",
|
||||
scenarios: [
|
||||
{ scenarioName: "Today", data: "" },
|
||||
{ scenarioName: "Projected", data: "£32,412" },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Cost (£) /unit",
|
||||
scenarios: [
|
||||
{ scenarioName: "Today", data: "" },
|
||||
{ scenarioName: "Projected", data: "£32,412" },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue