diff --git a/src/app/db/schema/crm/hubspot_deal_table.ts b/src/app/db/schema/crm/hubspot_deal_table.ts index 0948a3c8..607269fd 100644 --- a/src/app/db/schema/crm/hubspot_deal_table.ts +++ b/src/app/db/schema/crm/hubspot_deal_table.ts @@ -1,4 +1,4 @@ -import { pgTable, uuid, text, timestamp } from "drizzle-orm/pg-core"; +import { pgTable, uuid, text, timestamp, boolean } from "drizzle-orm/pg-core"; import { InferModel } from "drizzle-orm"; export const hubspotDealData = pgTable("hubspot_deal_data", { @@ -58,6 +58,17 @@ export const hubspotDealData = pgTable("hubspot_deal_data", { confirmedSurveyTime: text("confirmed_survey_time"), surveyedDate: timestamp("surveyed_date", { precision: 6, withTimezone: true }), + surveyType: text("survey_type"), + measuresForPibiOrdered: text("measures_for_pibi_ordered"), + pibiOrderDate: timestamp("pibi_order_date", { precision: 6, withTimezone: true }), + pibiCompletedDate: timestamp("pibi_completed_date", { precision: 6, withTimezone: true }), + propertyHaltedDate: timestamp("property_halted_date", { precision: 6, withTimezone: true }), + propertyHaltedReason: text("property_halted_reason"), + technicalApprovedMeasuresForInstall: text("technical_approved_measures_for_install"), + sentToInstallerForPricing: timestamp("sent_to_installer_for_pricing", { precision: 6, withTimezone: true }), + domnaSurveyRequired: boolean("domna_survey_required"), + domnaSurveyDate: timestamp("domna_survey_date", { precision: 6, withTimezone: true }), + createdAt: timestamp("created_at", { precision: 6, withTimezone: true }) .defaultNow() .notNull(),