Merge pull request #209 from Hestia-Homes/feature/hubspot_data

added new deal properties
This commit is contained in:
KhalimCK 2026-03-31 15:16:57 +01:00 committed by GitHub
commit 367180b641
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6264 additions and 0 deletions

View file

@ -0,0 +1,22 @@
ALTER TABLE "hubspot_deal_data" ADD COLUMN "pashub_link" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "sharepoint_link" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "dampmould_growth" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "pre_sap" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "coordinator" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "mtp_completion_date" timestamp (6) with time zone;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "mtp_re_model_completion_date" timestamp (6) with time zone;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "ioe_v3_completion_date" timestamp (6) with time zone;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "proposed_measures" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "approved_package" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "designer" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "design_completion_date" timestamp (6) with time zone;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "actual_measures_installed" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "installer" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "installer_handover" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "lodgement_status" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "measures_lodgement_date" timestamp (6) with time zone;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "lodgement_date" timestamp (6) with time zone;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "expected_commencement_date" timestamp (6) with time zone;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "surveyor" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "confirmed_survey_date" timestamp (6) with time zone;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "confirmed_survey_time" text;

File diff suppressed because it is too large Load diff

View file

@ -1114,6 +1114,13 @@
"when": 1774538269794,
"tag": "0158_ancient_colleen_wing",
"breakpoints": true
},
{
"idx": 159,
"version": "7",
"when": 1774965050131,
"tag": "0159_sad_molly_hayes",
"breakpoints": true
}
]
}

View file

@ -22,6 +22,29 @@ export const hubspotDealData = pgTable("hubspot_deal_data", {
coordinationStatus: text("coordination_status"),
designStatus: text("design_status"),
pashubLink: text("pashub_link"),
sharepointLink: text("sharepoint_link"),
dampmouldGrowth: text("dampmould_growth"),
preSap: text("pre_sap"),
coordinator: text("coordinator"),
mtpCompletionDate: timestamp("mtp_completion_date", { precision: 6, withTimezone: true }),
mtpReModelCompletionDate: timestamp("mtp_re_model_completion_date", { precision: 6, withTimezone: true }),
ioeV3CompletionDate: timestamp("ioe_v3_completion_date", { precision: 6, withTimezone: true }),
proposedMeasures: text("proposed_measures"),
approvedPackage: text("approved_package"),
designer: text("designer"),
designCompletionDate: timestamp("design_completion_date", { precision: 6, withTimezone: true }),
actualMeasuresInstalled: text("actual_measures_installed"),
installer: text("installer"),
installerHandover: text("installer_handover"),
lodgementStatus: text("lodgement_status"),
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 }),
surveyor: text("surveyor"),
confirmedSurveyDate: timestamp("confirmed_survey_date", { precision: 6, withTimezone: true }),
confirmedSurveyTime: text("confirmed_survey_time"),
createdAt: timestamp("created_at", { precision: 6, withTimezone: true })
.defaultNow()
.notNull(),