mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
Merge branch 'main' of https://github.com/Hestia-Homes/assessment-model into feature/solar-map
This commit is contained in:
commit
2a51eae7ec
10 changed files with 19012 additions and 2 deletions
3
src/app/db/migrations/0165_small_khan.sql
Normal file
3
src/app/db/migrations/0165_small_khan.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ALTER TYPE "public"."file_source" ADD VALUE 'ecmk';--> statement-breakpoint
|
||||
ALTER TYPE "public"."file_type" ADD VALUE 'ecmk_site_note';--> statement-breakpoint
|
||||
ALTER TYPE "public"."file_type" ADD VALUE 'ecmk_rd_sap_site_note';
|
||||
1
src/app/db/migrations/0166_melodic_crusher_hogan.sql
Normal file
1
src/app/db/migrations/0166_melodic_crusher_hogan.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE "hubspot_deal_data" ADD COLUMN "coordination_comments" text;
|
||||
1
src/app/db/migrations/0167_wise_agent_zero.sql
Normal file
1
src/app/db/migrations/0167_wise_agent_zero.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE "property_details_epc" ADD COLUMN "environment_impact_current" real;
|
||||
6320
src/app/db/migrations/meta/0165_snapshot.json
Normal file
6320
src/app/db/migrations/meta/0165_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
6326
src/app/db/migrations/meta/0166_snapshot.json
Normal file
6326
src/app/db/migrations/meta/0166_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
6332
src/app/db/migrations/meta/0167_snapshot.json
Normal file
6332
src/app/db/migrations/meta/0167_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1156,6 +1156,27 @@
|
|||
"when": 1775310006908,
|
||||
"tag": "0164_high_sumo",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 165,
|
||||
"version": "7",
|
||||
"when": 1775577933185,
|
||||
"tag": "0165_small_khan",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 166,
|
||||
"version": "7",
|
||||
"when": 1775658752820,
|
||||
"tag": "0166_melodic_crusher_hogan",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 167,
|
||||
"version": "7",
|
||||
"when": 1775747945070,
|
||||
"tag": "0167_wise_agent_zero",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -43,6 +43,7 @@ export const hubspotDealData = pgTable("hubspot_deal_data", {
|
|||
measuresLodgementDate: timestamp("measures_lodgement_date", { precision: 6, withTimezone: true }),
|
||||
lodgementDate: timestamp("lodgement_date", { precision: 6, withTimezone: true }),
|
||||
expectedCommencementDate: timestamp("expected_commencement_date", { precision: 6, withTimezone: true }),
|
||||
coordination_comments: text("coordination_comments"),
|
||||
surveyor: text("surveyor"),
|
||||
damnpMouldAndRepairComments: text("damp_mould_and_repairs_comments"),
|
||||
confirmedSurveyDate: timestamp("confirmed_survey_date", { precision: 6, withTimezone: true }),
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -9,13 +9,16 @@ export const fileType = pgEnum("file_type", [
|
|||
"pas_significance",
|
||||
"par_photo_pack",
|
||||
"pas_2023_property",
|
||||
"pas_2023_occupancy"
|
||||
"pas_2023_occupancy",
|
||||
"ecmk_site_note",
|
||||
"ecmk_rd_sap_site_note"
|
||||
]);
|
||||
|
||||
export const fileSource = pgEnum("file_source", [
|
||||
"pas hub",
|
||||
"sharepoint",
|
||||
"hubspot"
|
||||
"hubspot",
|
||||
"ecmk"
|
||||
]);
|
||||
|
||||
export const uploadedFiles = pgTable(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue