We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c0ca85 commit 6c6e3f9Copy full SHA for 6c6e3f9
src/main/java/dmu/dasom/api/domain/news/entity/NewsEntity.java
@@ -12,6 +12,7 @@
12
13
@Getter
14
@Entity
15
+@Table(name = "news")
16
@NoArgsConstructor
17
@AllArgsConstructor
18
@Builder
@@ -28,11 +29,13 @@ public class NewsEntity extends BaseEntity {
28
29
@Column(nullable = false, length = 100)
30
private String title;
31
32
+ @Lob
33
@NotNull
34
@Schema(description = "뉴스 내용", example = "뉴스 예제 내용")
- @Column(columnDefinition = "TEXT", nullable = false)
35
+ @Column(nullable = false)
36
private String content;
37
38
+
39
@Schema(description = "뉴스 이미지 URL", example = "http://example.com/image.jpg")
40
@Column(length = 255)
41
private String imageUrl;
0 commit comments