10 lines
408 B
TypeScript
10 lines
408 B
TypeScript
import { pgTable, text, timestamp, uuid } from "drizzle-orm/pg-core";
|
|
|
|
export const processedStripeEvents = pgTable("processed_stripe_events", {
|
|
id: uuid("id").defaultRandom().primaryKey(),
|
|
stripeEventId: text("stripe_event_id").notNull().unique(),
|
|
stripeAccountId: text("stripe_account_id").notNull(),
|
|
createdAt: timestamp("created_at", { withTimezone: true })
|
|
.notNull()
|
|
.defaultNow(),
|
|
});
|