Skip to content

Commit ad408a6

Browse files
committed
✨ feat: User Entity에 Guest여부를 나타내는 checkGuest Column추가
- User 테이블 속에 유저가 Guest인지 아닌지를 나타내는 flag checkGuest를 추가 Issue Resolved: #
1 parent bb63a10 commit ad408a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

back/src/domains/user/entity/user.entity.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ export class User {
1616
@Column({ type: 'varchar', length: 10, name: 'role' })
1717
role: string;
1818

19+
@Column({ type: 'boolean', name: 'is_guest' })
20+
checkGuest: boolean;
21+
1922
@OneToMany(() => Reservation, (reservation) => reservation.user, { lazy: true })
2023
reservations: Promise<Reservation[]>;
2124
}

0 commit comments

Comments
 (0)