Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- QuestionLike: 같은 유저가 같은 질문에 좋아요를 중복으로 누르는 것을 DB 레벨에서 차단
ALTER TABLE question_like
ADD CONSTRAINT uq_question_like_question_user
UNIQUE (question_id, user_id);

-- UnderstandingResponse: 같은 유저가 같은 이해도 체크에 중복 응답하는 것을 DB 레벨에서 차단
ALTER TABLE understanding_response
ADD CONSTRAINT uq_understanding_response_check_user
UNIQUE (check_id, user_id);
Loading