added hubspot user table

This commit is contained in:
Khalim Conn-Kowlessar 2026-04-30 19:16:35 +00:00
parent d9929a6163
commit 0a6a01caaf
4 changed files with 8773 additions and 0 deletions

View file

@ -0,0 +1,7 @@
CREATE TABLE "hubspot_users" (
"hubspot_owner_id" text PRIMARY KEY NOT NULL,
"first_name" text,
"last_name" text,
"email" text,
"updated_at" timestamp (6) with time zone NOT NULL
);

File diff suppressed because it is too large Load diff

View file

@ -1345,6 +1345,13 @@
"when": 1777560763716,
"tag": "0191_soft_ezekiel_stane",
"breakpoints": true
},
{
"idx": 192,
"version": "7",
"when": 1777576507360,
"tag": "0192_colorful_quasimodo",
"breakpoints": true
}
]
}

View file

@ -0,0 +1,13 @@
import { pgTable, text, timestamp } from "drizzle-orm/pg-core";
import { InferModel } from "drizzle-orm";
export const hubspotUsers = pgTable("hubspot_users", {
hubspotOwnerId: text("hubspot_owner_id").primaryKey(),
firstName: text("first_name"),
lastName: text("last_name"),
email: text("email"),
updatedAt: timestamp("updated_at", { precision: 6, withTimezone: true }).notNull(),
});
export type HubspotUser = InferModel<typeof hubspotUsers>;
export type NewHubspotUser = InferModel<typeof hubspotUsers, "insert">;