Added new fields to db

This commit is contained in:
Khalim Conn-Kowlessar 2026-04-30 14:34:39 +01:00
parent 765ef62b57
commit 2957caf986

View file

@ -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(),