import { pgTable, text, timestamp, index } from 'drizzle-orm/pg-core' export const verifications = pgTable( 'verifications', { id: text('id').primaryKey(), identifier: text('identifier').notNull(), value: text('value').notNull(), expiresAt: timestamp('expires_at', { withTimezone: true }).notNull(), createdAt: timestamp('created_at', { withTimezone: true }).notNull().defaultNow(), updatedAt: timestamp('updated_at', { withTimezone: true }) .notNull() .defaultNow() .$onUpdate(() => new Date()) }, table => [index('verifications_identifier_idx').on(table.identifier)] )