Skip to content

Commit

Permalink
refactor: Modify column name (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaeeun-Han committed Mar 19, 2024
1 parent a96b276 commit 00ada0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/beotkkot/qtudy/domain/posts/Posts.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class Posts {
private Long postId;

@Column(nullable = false)
private Long userUid;
private Long kakaoId;

@Column(nullable = false)
private String title;
Expand All @@ -34,7 +34,7 @@ public class Posts {

// AI 요약본
@Column(columnDefinition = "TEXT")
private String aiScript;
private String summary;

private int commentCount;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ public Posts toEntity(Long uid) {
String tagString = String.join(",", tag);

return Posts.builder()
.userUid(uid)
.kakaoId(uid)
.title(title)
.content(content)
.aiScript(summary)
.summary(summary)
.tag(tagString)
.createdAt(writeDatetime)
.commentCount(0)
Expand Down

0 comments on commit 00ada0b

Please sign in to comment.