diff --git a/src/main/java/shop/cazait/domain/checklog/entity/CheckLog.java b/src/main/java/shop/cazait/domain/checklog/entity/CheckLog.java index 69921d11..4556a1ca 100644 --- a/src/main/java/shop/cazait/domain/checklog/entity/CheckLog.java +++ b/src/main/java/shop/cazait/domain/checklog/entity/CheckLog.java @@ -18,11 +18,11 @@ public class CheckLog { private Long id; @ManyToOne(fetch = FetchType.LAZY) - @JoinColumn(name = "user_id") + @JoinColumn(name = "user_id", nullable = false) private User user; @ManyToOne(fetch = FetchType.LAZY) - @JoinColumn(name = "cafe_id") + @JoinColumn(name = "cafe_id", nullable = false) private Cafe cafe; @Builder