fix(auth): add account, session, and verification schemas; make passwordHash nullable

This commit is contained in:
2026-01-30 18:10:00 +00:00
parent e5814e1914
commit f1919ca0e1
5 changed files with 20 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ export const users = pgTable('users', {
id: uuid('id').defaultRandom().primaryKey(),
email: varchar('email', { length: 255 }).notNull().unique(),
name: varchar('name', { length: 255 }).notNull(),
passwordHash: varchar('password_hash', { length: 255 }).notNull(),
passwordHash: varchar('password_hash', { length: 255 }),
emailVerified: boolean('email_verified').default(false).notNull(),
image: text('image'),
createdAt: timestamp('created_at', { withTimezone: true }).defaultNow().notNull(),