fix #12: simplify auth adapter, add verifications table

This commit is contained in:
Christopher Mayor
2026-04-27 11:22:42 -07:00
parent 024f3cb1f7
commit 273b600e98
4 changed files with 24 additions and 6 deletions

View File

@@ -38,6 +38,15 @@ export const accounts = pgTable("accounts", {
updatedAt: timestamp("updated_at", { withTimezone: true }).defaultNow().notNull(),
});
export const verifications = pgTable("verifications", {
id: text("id").primaryKey().$defaultFn(() => createId()),
identifier: text("identifier").notNull(),
value: text("value").notNull(),
expiresAt: timestamp("expires_at").notNull(),
createdAt: timestamp("created_at", { withTimezone: true }).defaultNow(),
updatedAt: timestamp("updated_at", { withTimezone: true }).defaultNow(),
});
export const comparisonStatusEnum = pgEnum("comparison_status", [
"researching",
"completed",