-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: chat 도메인 리팩토링 #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dh2906
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!
| LEFT JOIN FETCH cr.chatMessages | ||
| WHERE cr.sender.id = :userId OR cr.receiver.id = :userId | ||
| ORDER BY cr.updatedAt DESC | ||
| ORDER BY cr.lastMessageSentAt DESC NULLS LAST |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lastMessageSentAt가 NULL인 채팅방이 여럿인 경우 정렬 기준이 어떻게 되어 나오나요??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DB가 읽은 순서대로 나오는 거 같은데, 추가 정렬 기준으로 id를 넣으면 좋을 거 같네용
🔍 개요
🚀 주요 변경 내용
chat_room 테이블 컬럼 추가
채팅방 리스트 정렬 조건 수정
ChatRoom의 OneToMany 삭제
💬 참고 사항
✅ Checklist (완료 조건)