We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
요청사항을 반영하여 회원 별 총 출석일수와 연속 출석일수를 반환하는 API를 개발하면 됩니다.
member 테이블에 총 출석일을 저장하는 컬럼이 추가되었습니다.
total_attendance
INT NOT NULL DEFAULT 0
attendance
attendance_AFTER_INSERT
UPDATE member SET total_attendance = total_attendance + 1 WHERE id = NEW.member_id;
member_id
member
The text was updated successfully, but these errors were encountered:
No branches or pull requests
사전 수행 issue
이슈 내용
요청사항을 반영하여 회원 별 총 출석일수와 연속 출석일수를 반환하는 API를 개발하면 됩니다.
참고사항
member 테이블에 총 출석일을 저장하는 컬럼이 추가되었습니다.
total_attendance
INT NOT NULL DEFAULT 0
attendance
테이블에 트리거가 추가되었습니다.attendance_AFTER_INSERT
UPDATE member SET total_attendance = total_attendance + 1 WHERE id = NEW.member_id;
attendance
에 데이터가 추가되면 해당member_id
에 맞는member
의total_attendance
를 1씩 늘려주는 트리거입니다.total_attendance
를 수정할 필요가 없을 것 같습니다!이슈 수행 사항
The text was updated successfully, but these errors were encountered: