From 5d869a2a97fb612121a86f5494c3f4a9c11c6a5d Mon Sep 17 00:00:00 2001 From: DongHoon Lee Date: Wed, 18 Sep 2024 02:14:08 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20playground=EC=99=80=20=EC=97=94?= =?UTF-8?q?=ED=8B=B0=ED=8B=B0=20=EC=8B=B1=ED=81=AC=20=EB=A7=9E=EC=B6=94?= =?UTF-8?q?=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/member_block/MemberBlock.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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