Merge pull request #247 from Hestia-Homes/feature/additional-db-columns

Feature/additional db columns
This commit is contained in:
Daniel Roth 2026-04-30 17:05:59 +01:00 committed by GitHub
commit b43c566d82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8732 additions and 1 deletions

View file

@ -0,0 +1,10 @@
ALTER TABLE "hubspot_deal_data" ADD COLUMN "survey_type" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "measures_for_pibi_ordered" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "pibi_order_date" timestamp (6) with time zone;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "pibi_completed_date" timestamp (6) with time zone;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "property_halted_date" timestamp (6) with time zone;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "property_halted_reason" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "technical_approved_measures_for_install" text;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "sent_to_installer_for_pricing" timestamp (6) with time zone;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "domna_survey_required" boolean;--> statement-breakpoint
ALTER TABLE "hubspot_deal_data" ADD COLUMN "domna_survey_date" timestamp (6) with time zone;

File diff suppressed because it is too large Load diff

View file

@ -1338,6 +1338,13 @@
"when": 1777392681924,
"tag": "0190_worried_drax",
"breakpoints": true
},
{
"idx": 191,
"version": "7",
"when": 1777560763716,
"tag": "0191_soft_ezekiel_stane",
"breakpoints": true
}
]
}

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