Merge pull request #377 from Hestia-Homes/feature/hubspot-deal-planning-columns

feat(crm): add planning/address-profiling columns to hubspot_deal_data
This commit is contained in:
Jun-te Kim 2026-07-08 15:50:34 +01:00 committed by GitHub
commit e9b03fef1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12226 additions and 0 deletions

View file

@ -0,0 +1,8 @@
ALTER TABLE "hubspot_deal_data" ADD COLUMN "design_constraints" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "planning_comments" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "planning_status" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "planning_suggested_approach" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "planning_authority" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "designated_area" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "article_4_pd_rights" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "listed_building" text;

File diff suppressed because it is too large Load diff

View file

@ -1863,6 +1863,13 @@
"when": 1783511384352,
"tag": "0266_hesitant_bromley",
"breakpoints": true
},
{
"idx": 267,
"version": "7",
"when": 1783521828294,
"tag": "0267_add_hubspot_deal_planning_columns",
"breakpoints": true
}
]
}

View file

@ -83,6 +83,15 @@ export const hubspotDealData = pgTable("hubspot_deal_data", {
numberOfAttempts: text("number_of_attempts"),
clientBookingReference: text("client_booking_reference"),
designConstraints: text("design_constraints"),
planningComments: text("planning_comments"),
planningStatus: text("planning_status"),
planningSuggestedApproach: text("planning_suggested_approach"),
planningAuthority: text("planning_authority"),
designatedArea: text("designated_area"),
article4PdRights: text("article_4_pd_rights"),
listedBuilding: text("listed_building"),
createdAt: timestamp("created_at", { precision: 6, withTimezone: true })
.defaultNow()
.notNull(),