new table for new deal proeprties we want

This commit is contained in:
Jun-te Kim 2026-06-08 14:42:50 +00:00
parent e974aef858
commit c2b7e00075
4 changed files with 10940 additions and 0 deletions

View file

@ -0,0 +1,4 @@
ALTER TABLE "hubspot_deal_data" ADD COLUMN "date_booking_made" timestamp (6) with time zone;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "last_contact_date" timestamp (6) with time zone;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "last_outbound_call" timestamp (6) with time zone;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "last_outbound_email" timestamp (6) with time zone;

File diff suppressed because it is too large Load diff

View file

@ -1597,6 +1597,13 @@
"when": 1780910657380,
"tag": "0228_deep_betty_ross",
"breakpoints": true
},
{
"idx": 229,
"version": "7",
"when": 1780929304935,
"tag": "0229_lively_kree",
"breakpoints": true
}
]
}

View file

@ -74,6 +74,11 @@ export const hubspotDealData = pgTable("hubspot_deal_data", {
domnaSurveyType: text("domna_survey_type"),
domnaSurveyDate: timestamp("domna_survey_date", { precision: 6, withTimezone: true }),
dateBookingMade: timestamp("date_booking_made", { precision: 6, withTimezone: true }),
lastContactDate: timestamp("last_contact_date", { precision: 6, withTimezone: true }),
lastOutboundCall: timestamp("last_outbound_call", { precision: 6, withTimezone: true }),
lastOutboundEmail: timestamp("last_outbound_email", { precision: 6, withTimezone: true }),
createdAt: timestamp("created_at", { precision: 6, withTimezone: true })
.defaultNow()
.notNull(),