Skip to content

Commit

Permalink
refactor: Member status 기본값 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
cpot5620 committed Sep 15, 2023
1 parent 9084afd commit b30c821
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import java.util.Objects;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.ColumnDefault;

@Embeddable
@NoArgsConstructor(access = PROTECTED)
Expand All @@ -39,6 +40,7 @@ public class MemberInfo {
private Role role;

@Enumerated(EnumType.STRING)
@ColumnDefault(value = "NORMAL")
@Column(nullable = false)
private Status status;

Expand Down

0 comments on commit b30c821

Please sign in to comment.