From be39ffa47a31e91fb8d28162a98d19617677ca3f Mon Sep 17 00:00:00 2001 From: Suhyun Park Date: Fri, 12 Jul 2024 22:31:40 +0900 Subject: [PATCH] feat: hashedPassword is nullable --- .../20240712133129_hashed_password_nullable/migration.sql | 2 ++ prisma/schema.prisma | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 prisma/migrations/20240712133129_hashed_password_nullable/migration.sql diff --git a/prisma/migrations/20240712133129_hashed_password_nullable/migration.sql b/prisma/migrations/20240712133129_hashed_password_nullable/migration.sql new file mode 100644 index 0000000..f4ceaea --- /dev/null +++ b/prisma/migrations/20240712133129_hashed_password_nullable/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE `User` MODIFY `hashedPassword` VARCHAR(191) NULL; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index d0c2d73..8bafc85 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -43,7 +43,7 @@ model User { userId Int @id @default(autoincrement()) loginId String @unique displayName String - hashedPassword String + hashedPassword String? isHost Boolean @default(false) firstGameAt DateTime? createdAt DateTime @default(now())