feat: 일부 테이블에 date 컬럼 추가 및 unique 제약 추가 & 리팩토링 & 예외 처리 추가 #60
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 요약(Summary)
전반적으로 기능들의 안정성을 강화하기 위한 작업들을 진행했습니다.
일부 테이블에 date 컬럼 추가 및 unique 제약 추가 등
answer_entries테이블의 경우 굳이 soft delete가 필요하지 않아 제거daily_reports,answer_entries테이블에 date 컬럼 추가와 unique 제약 추가-> 유저당 오늘의 답변과 오늘의 리포트가 하루에 한 개씩임을 보장하기 위함
예외 처리 추가
리팩토링
TodayDateTimeProvider헬퍼 클래스에 중복 로직들을 메소드로 추출하고TodayDateTimeRangeDto클래스 구현 및 기존 코드 리팩토링🔗 Related Issue
💬 공유사항
오늘의 날짜 시작, 내일 날짜 시작까지의 범위는 레포지토리의 쿼리에서 오늘의 기록만 조회할 때 사용됩니다.
✅ PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.