Skip to content

Commit

Permalink
BE: [fix] 관리자 entity 제약조건 수정 #1
Browse files Browse the repository at this point in the history
  • Loading branch information
JongbeomLee623 committed Nov 1, 2024
1 parent 7caaae6 commit 33417ec
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ public class Admin {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer adminId;

@Column(nullable = false, unique = true) // 이메일 중복 방지
private String adminEmail;

@Column(nullable = false, length = 255) // 비밀번호 암호화 후 저장 시 충분한 크기로 설정
private String password;

@Column(nullable = false, length = 100)
private String adminName;
}

0 comments on commit 33417ec

Please sign in to comment.