mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
added hubspot user table
This commit is contained in:
parent
d9929a6163
commit
0a6a01caaf
4 changed files with 8773 additions and 0 deletions
7
src/app/db/migrations/0192_colorful_quasimodo.sql
Normal file
7
src/app/db/migrations/0192_colorful_quasimodo.sql
Normal 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
|
||||
);
|
||||
8746
src/app/db/migrations/meta/0192_snapshot.json
Normal file
8746
src/app/db/migrations/meta/0192_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
13
src/app/db/schema/crm/hubspot_user_table.ts
Normal file
13
src/app/db/schema/crm/hubspot_user_table.ts
Normal 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">;
|
||||
Loading…
Add table
Reference in a new issue