Skip to content

Conversation

jyc-coder
Copy link
Owner

게시글과 댓글은 모두 회원이 작성하는데, 그 연관관계가 ERD 와 같이 자바코드에 표현되지 않았다.
createdBy를 작성자라고 생각할수 있겠지만, 해당 필드보다는 계정의 고유 id를 사용하는 것이 이상적인 방향이라고 생각해서 도메인 설계를 수정함.

테이블 필드 수정으로 영향 받은 `data.sql`테스트 데이터도 모두 업데이트
게시글 -> 댓글컬렉션의 정렬기준을 최신순으로 적용 (`createdBy` DESC)
@jyc-coder jyc-coder added the enhancement New feature or request label Aug 21, 2022
@jyc-coder jyc-coder added this to the 게시판 만들기 milestone Aug 21, 2022
@jyc-coder jyc-coder self-assigned this Aug 21, 2022
Copy link
Owner Author

@jyc-coder jyc-coder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jyc-coder jyc-coder merged commit 10475d2 into main Aug 21, 2022
@jyc-coder jyc-coder deleted the feature/#23-entity_update branch August 21, 2022 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant