diff --git a/src/main/java/org/sopt/app/domain/entity/fortune/FortuneCard.java b/src/main/java/org/sopt/app/domain/entity/fortune/FortuneCard.java index 0066461e..b7f3ac0a 100755 --- a/src/main/java/org/sopt/app/domain/entity/fortune/FortuneCard.java +++ b/src/main/java/org/sopt/app/domain/entity/fortune/FortuneCard.java @@ -1,6 +1,7 @@ package org.sopt.app.domain.entity.fortune; import jakarta.persistence.*; +import jakarta.validation.constraints.NotNull; import lombok.*; @Getter @@ -12,12 +13,16 @@ public class FortuneCard { @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; + @NotNull private String name; + @NotNull private String description; + @NotNull @Column(columnDefinition = "TEXT") private String imageUrl; + @NotNull private String imageColorCode; }