diff --git a/main/src/main/java/org/sopt/makers/crew/main/external/playground/entity/member_block/MemberBlock.java b/main/src/main/java/org/sopt/makers/crew/main/external/playground/entity/member_block/MemberBlock.java index aa4f439f..d7a1b793 100644 --- a/main/src/main/java/org/sopt/makers/crew/main/external/playground/entity/member_block/MemberBlock.java +++ b/main/src/main/java/org/sopt/makers/crew/main/external/playground/entity/member_block/MemberBlock.java @@ -12,26 +12,34 @@ import lombok.AccessLevel; import lombok.Getter; import lombok.NoArgsConstructor; +import org.hibernate.annotations.Immutable; @Entity @Table(name = "member_block") @Getter +@Immutable @NoArgsConstructor(access = AccessLevel.PROTECTED) public class MemberBlock { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; + @Column(name = "created_at") private LocalDateTime createdAt; + @Column(name = "updated_at") private LocalDateTime updatedAt; + @NotNull @Column(name = "is_blocked") private Boolean isBlocked = true; + + @NotNull @Column(name = "blocked_member_id") - private Long blockedId; - @Column(name = "blocker_id") - private Long blockerId; + private Long blockedMember; -} + @NotNull + @Column(name = "blocker_id") + private Long blocker; +} \ No newline at end of file