From 00ada0ba1dee4b7b8c605ebdbe1a638dc9444cbb Mon Sep 17 00:00:00 2001 From: chaeeun-Han Date: Tue, 19 Mar 2024 16:53:04 +0900 Subject: [PATCH] refactor: Modify column name (#16) --- src/main/java/com/beotkkot/qtudy/domain/posts/Posts.java | 4 ++-- .../com/beotkkot/qtudy/dto/request/posts/PostsRequestDto.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/beotkkot/qtudy/domain/posts/Posts.java b/src/main/java/com/beotkkot/qtudy/domain/posts/Posts.java index a938cf5..733d969 100644 --- a/src/main/java/com/beotkkot/qtudy/domain/posts/Posts.java +++ b/src/main/java/com/beotkkot/qtudy/domain/posts/Posts.java @@ -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; @@ -34,7 +34,7 @@ public class Posts { // AI 요약본 @Column(columnDefinition = "TEXT") - private String aiScript; + private String summary; private int commentCount; diff --git a/src/main/java/com/beotkkot/qtudy/dto/request/posts/PostsRequestDto.java b/src/main/java/com/beotkkot/qtudy/dto/request/posts/PostsRequestDto.java index 5e55efa..c691e2d 100644 --- a/src/main/java/com/beotkkot/qtudy/dto/request/posts/PostsRequestDto.java +++ b/src/main/java/com/beotkkot/qtudy/dto/request/posts/PostsRequestDto.java @@ -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)