Skip to content

Commit

Permalink
[refactor] FortuneCard에서 NotNull 제약조건 추가 (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
kseysh committed Oct 8, 2024
1 parent 64604a5 commit 19c10b7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.sopt.app.domain.entity.fortune;

import jakarta.persistence.*;
import jakarta.validation.constraints.NotNull;
import lombok.*;

@Getter
Expand All @@ -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;
}

0 comments on commit 19c10b7

Please sign in to comment.