From 23ffcebd2dd43f2343dda8d9947dae74f8c9e6ec Mon Sep 17 00:00:00 2001 From: TZGyn Date: Sun, 20 Aug 2023 02:41:26 +0800 Subject: [PATCH] Update user hashpassword schema to not null --- lib/schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/schema.ts b/lib/schema.ts index 966a3ca..3f839fd 100644 --- a/lib/schema.ts +++ b/lib/schema.ts @@ -5,7 +5,7 @@ export const user = pgTable('users', { id: serial('id').primaryKey(), name: text('name'), email: text('email'), - hashedPassword: text('password'), + hashedPassword: text('password').notNull(), createdAt: timestamp('created_at'), updatedAt: timestamp('updated_at'), })