From da9e96bd4491ebbd606c6fd61b7e3bbeb0212a96 Mon Sep 17 00:00:00 2001 From: KWAKMANBO Date: Mon, 2 Dec 2024 14:00:23 +0900 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20UserEntity=20o?= =?UTF-8?q?ption=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - guest는 패스워드가 필요없으므로 password를 nullable로 변경 - is_guest default값을 0(false)로 변경 Issue Resolved: # --- back/src/domains/user/entity/user.entity.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/back/src/domains/user/entity/user.entity.ts b/back/src/domains/user/entity/user.entity.ts index 3f986c79..22dfb173 100644 --- a/back/src/domains/user/entity/user.entity.ts +++ b/back/src/domains/user/entity/user.entity.ts @@ -10,13 +10,13 @@ export class User { @Column({ type: 'varchar', length: 255, name: 'login_id' }) loginId: string; - @Column({ type: 'varchar', length: 255, name: 'login_password' }) - loginPassword: string; + @Column({ type: 'varchar', length: 255, name: 'login_password', nullable: true }) + loginPassword: string | null; @Column({ type: 'varchar', length: 10, name: 'role' }) role: string; - @Column({ type: 'boolean', name: 'is_guest' }) + @Column({ type: 'boolean', name: 'is_guest', default: 0 }) checkGuest: boolean; @OneToMany(() => Reservation, (reservation) => reservation.user, { lazy: true })