juntekim.com/stripe_to_invoice/lib/schema/processedStripeEvents.ts
2026-01-20 23:08:49 +00:00

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