Adding valuation uplift to roi

This commit is contained in:
Khalim Conn-Kowlessar 2024-04-16 00:02:42 +01:00
parent f70c092f33
commit ad5f233465
7 changed files with 3328 additions and 2 deletions

View file

@ -0,0 +1,13 @@
ALTER TABLE "portfolio" ADD COLUMN "epc_breakdown_pre_retrofit" text;--> statement-breakpoint
ALTER TABLE "portfolio" ADD COLUMN "epc_breakdown_post_retrofit" text;--> statement-breakpoint
ALTER TABLE "portfolio" ADD COLUMN "n_units_to_retrofit" integer;--> statement-breakpoint
ALTER TABLE "portfolio" ADD COLUMN "co2_per_unit_pre_retrofit" text;--> statement-breakpoint
ALTER TABLE "portfolio" ADD COLUMN "co2_per_unit_post_retrofit" text;--> statement-breakpoint
ALTER TABLE "portfolio" ADD COLUMN "energy_bill_per_unit_pre_retrofit" text;--> statement-breakpoint
ALTER TABLE "portfolio" ADD COLUMN "energy_bill_per_unit_post_retrofit" text;--> statement-breakpoint
ALTER TABLE "portfolio" ADD COLUMN "energy_consumption_per_unit_pre_retrofit" text;--> statement-breakpoint
ALTER TABLE "portfolio" ADD COLUMN "energy_consumption_per_unit_post_retrofit" text;--> statement-breakpoint
ALTER TABLE "portfolio" ADD COLUMN "valuation_improvement_per_unit" text;--> statement-breakpoint
ALTER TABLE "portfolio" ADD COLUMN "cost_per_unit" text;--> statement-breakpoint
ALTER TABLE "portfolio" ADD COLUMN "cost_per_co2_saved" text;--> statement-breakpoint
ALTER TABLE "portfolio" ADD COLUMN "cost_per_sap_point" text;

View file

@ -0,0 +1 @@
ALTER TABLE "portfolio" ADD COLUMN "valuation_return_on_investment" text;

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -477,6 +477,13 @@
"when": 1713221740366,
"tag": "0067_previous_sasquatch",
"breakpoints": true
},
{
"idx": 68,
"version": "5",
"when": 1713222141154,
"tag": "0068_demonic_roughhouse",
"breakpoints": true
}
]
}

View file

@ -87,6 +87,7 @@ export const portfolio = pgTable("portfolio", {
costPerUnit: text("cost_per_unit"),
costPerCo2Saved: text("cost_per_co2_saved"),
costPerSapPoint: text("cost_per_sap_point"),
valuationReturnOnInvestment: text("valuation_return_on_investment"),
});
export const portfolioUsers = pgTable("portfolioUsers", {

View file

@ -1,8 +1,8 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"target": "es5",
// "target": "ESNext",
// "target": "es5",
"target": "ESNext",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,