Skip to content

Commit

Permalink
Merge pull request #74 from UMC-ON/feat/boardnpost
Browse files Browse the repository at this point in the history
fix : post엔티티 content 길이 지정
  • Loading branch information
isuHan authored Aug 21, 2024
2 parents d1adbc5 + 8ac7841 commit 69ca69e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/com/on/server/domain/post/domain/Post.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class Post extends BaseEntity {
@Column(name = "title", nullable = false)
private String title;

@Column(name = "content")
@Column(name = "content", length = 2000)
private String content;

@Column(name = "is_anonymous", nullable = false)
Expand All @@ -32,9 +32,6 @@ public class Post extends BaseEntity {
@Column(name = "is_anonymous_univ", nullable = false)
private Boolean isAnonymousUniv;

@Column(name = "comment_count")
private Integer commentCount;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "board_id", nullable = false)
private Board board;
Expand All @@ -49,4 +46,5 @@ public class Post extends BaseEntity {
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true)
@JoinColumn(name = "post_id")
private List<UuidFile> images = new ArrayList<>();

}

0 comments on commit 69ca69e

Please sign in to comment.