From 4ed3572592475c040efcba6381760c9b4f9ed5a5 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 28 Nov 2023 11:56:22 +0000 Subject: [PATCH] Added labour days to database --- src/app/db/migrations/meta/_journal.json | 7 +++++++ src/app/db/schema/portfolio.ts | 1 + src/app/db/schema/recommendations.ts | 1 + 3 files changed, 9 insertions(+) diff --git a/src/app/db/migrations/meta/_journal.json b/src/app/db/migrations/meta/_journal.json index 0b7be6ca..70ab08e0 100644 --- a/src/app/db/migrations/meta/_journal.json +++ b/src/app/db/migrations/meta/_journal.json @@ -358,6 +358,13 @@ "when": 1700765818548, "tag": "0050_clumsy_wind_dancer", "breakpoints": true + }, + { + "idx": 51, + "version": "5", + "when": 1701172557411, + "tag": "0051_fat_callisto", + "breakpoints": true } ] } \ No newline at end of file diff --git a/src/app/db/schema/portfolio.ts b/src/app/db/schema/portfolio.ts index 16de559e..d605b522 100644 --- a/src/app/db/schema/portfolio.ts +++ b/src/app/db/schema/portfolio.ts @@ -56,6 +56,7 @@ export const portfolio = pgTable("portfolio", { propertyValuationIncrease: real("property_valuation_increase"), // Unit is always £ so we don't need to store unit for the moment rentalYieldIncrease: real("rental_yield_increase"), // Unit is always £ so we don't need to store unit for the moment totalWorkHours: real("total_work_hours"), + labourDays: real("labour_days"), createdAt: timestamp("created_at", { precision: 6, withTimezone: true, diff --git a/src/app/db/schema/recommendations.ts b/src/app/db/schema/recommendations.ts index d9fd0bd1..6c498d2a 100644 --- a/src/app/db/schema/recommendations.ts +++ b/src/app/db/schema/recommendations.ts @@ -35,6 +35,7 @@ export const recommendation = pgTable("recommendation", { propertyValuationIncrease: real("property_valuation_increase"), rentalYieldIncrease: real("rental_yield_increase"), totalWorkHours: real("total_work_hours"), + labourDays: real("labour_days"), }); export const unitQuantity: [string, ...string[]] = ["m2", "part"];