Skip to content

Commit

Permalink
feat: admin unique 제약조건 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
xxeol2 committed Sep 15, 2023
1 parent 7eef431 commit fc009ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/main/java/com/festago/admin/domain/Admin.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.festago.admin.domain;

import com.festago.common.domain.BaseTimeEntity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
Expand All @@ -13,6 +14,7 @@ public class Admin extends BaseTimeEntity {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@Column(unique = true)
private String username;

private String password;
Expand Down

0 comments on commit fc009ed

Please sign in to comment.