13 lines
No EOL
463 B
TypeScript
13 lines
No EOL
463 B
TypeScript
import { pgTable, uuid, text, timestamp } from "drizzle-orm/pg-core";
|
|
import { users } from "./users";
|
|
|
|
export const stripeAccounts = pgTable("stripe_accounts", {
|
|
id: uuid("id").defaultRandom().primaryKey(),
|
|
userId: uuid("user_id")
|
|
.notNull()
|
|
.references(() => users.id, { onDelete: "cascade" }),
|
|
stripeAccountId: text("stripe_account_id").notNull(),
|
|
createdAt: timestamp("created_at", { withTimezone: true })
|
|
.notNull()
|
|
.defaultNow(),
|
|
}); |