Skip to content

Commit

Permalink
hotfix: playground와 엔티티 싱크 맞추기
Browse files Browse the repository at this point in the history
  • Loading branch information
hoonyworld committed Sep 17, 2024
1 parent 0688668 commit 5d869a2
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 5d869a2

Please sign in to comment.