mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
Adding valuation uplift to roi
This commit is contained in:
parent
f70c092f33
commit
ad5f233465
7 changed files with 3328 additions and 2 deletions
13
src/app/db/migrations/0067_previous_sasquatch.sql
Normal file
13
src/app/db/migrations/0067_previous_sasquatch.sql
Normal 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;
|
||||
1
src/app/db/migrations/0068_demonic_roughhouse.sql
Normal file
1
src/app/db/migrations/0068_demonic_roughhouse.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE "portfolio" ADD COLUMN "valuation_return_on_investment" text;
|
||||
1649
src/app/db/migrations/meta/0067_snapshot.json
Normal file
1649
src/app/db/migrations/meta/0067_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
1655
src/app/db/migrations/meta/0068_snapshot.json
Normal file
1655
src/app/db/migrations/meta/0068_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -477,6 +477,13 @@
|
|||
"when": 1713221740366,
|
||||
"tag": "0067_previous_sasquatch",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 68,
|
||||
"version": "5",
|
||||
"when": 1713222141154,
|
||||
"tag": "0068_demonic_roughhouse",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -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", {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"target": "es5",
|
||||
// "target": "ESNext",
|
||||
// "target": "es5",
|
||||
"target": "ESNext",
|
||||
"lib": ["dom", "dom.iterable", "esnext"],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue