-
Notifications
You must be signed in to change notification settings - Fork 0
[feat/#58] 사용자 문항/새끼문항 제출, 통계 도메인 설계 및 구현 #80
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
sejoon00
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.
수고하셨습니다
| private Long id; | ||
|
|
||
| @Column(name = "member_statistics_id", nullable = false) | ||
| private Long memberStatisticsId; |
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.
사용자 통계와 틀린 개념 통계, 맞은 개념 통계의 연관 관계에서 다대일보다는 일대다가 더 적합한 경우일 수 있다는 생각이 드네요.
각 개별 통계는 사용자 통계를 알 필요가 없지만, 사용자 통계는 루트 엔티티로서 통계를 취합하고 계산하는 책임을 가지고 있습니다.
그래서 각 통계를 List로 가지고 있다면, 사용자 통계에서 이들을 관리하고, 계산하는 데 훨씬 용이할 것 같다는 생각입니다.
|
|
||
| @Column(name = "problem_set_id", nullable = false) | ||
| private Long problemSetId; | ||
|
|
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.
진척도가 추가되면 좋을 것 같습니다.
SetSubmit에서 하위 문제들을 몇 번까지 풀었는지 진척도를 계산할 수 있는 비즈니스로직도 추가되면 좋을 것 같아요
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.
진척도는 추후, 조회 API 구현 시 Dto필드에 추가하겠습니다!
💡 Issue
📄 Description
📌 도메인 설계 변경 사항
문항제출 & 새끼문항제출
사용자 통계
📌 추후 고려 사항