mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
Added new fields to db
This commit is contained in:
parent
765ef62b57
commit
2957caf986
1 changed files with 12 additions and 1 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue