mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-12 14:05:08 +10:00
fix: migrate better auth 2fa schema
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE "two_factor" ADD COLUMN "failed_verification_count" integer DEFAULT 0;--> statement-breakpoint
|
||||
ALTER TABLE "two_factor" ADD COLUMN "locked_until" timestamp with time zone;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -139,6 +139,8 @@ export const twoFactor = pg.pgTable(
|
||||
secret: pg.text("secret").notNull(),
|
||||
backupCodes: pg.text("backup_codes").notNull(),
|
||||
verified: pg.boolean("verified").notNull().default(true),
|
||||
failedVerificationCount: pg.integer("failed_verification_count").default(0),
|
||||
lockedUntil: pg.timestamp("locked_until", { withTimezone: true }),
|
||||
createdAt: pg.timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
||||
updatedAt: pg
|
||||
.timestamp("updated_at", { withTimezone: true })
|
||||
|
||||
Reference in New Issue
Block a user