What: Add an endpoint that allows users to submit feedback on quiz questions (e.g., "this question is unclear", "wrong answer marked as correct").
Why: Quiz quality depends on user feedback. Without a feedback mechanism, bad questions persist and harm the learning experience.
Scope: Create quiz_feedback table with quiz_id, question_id, user_id, type (unclear/wrong/other), comment, created_at. Add endpoint that accepts feedback and stores it. Admin can review feedback to improve questions.
Acceptance criteria:
- Users can submit feedback on specific questions
- Feedback includes type and optional comment
- Duplicate feedback from same user is prevented
- Admin can view feedback summary per question
Technical context: src/modules/quizzes/quiz.service.ts — quiz operations. src/database/schema.ts — schema definitions.
What: Add an endpoint that allows users to submit feedback on quiz questions (e.g., "this question is unclear", "wrong answer marked as correct").
Why: Quiz quality depends on user feedback. Without a feedback mechanism, bad questions persist and harm the learning experience.
Scope: Create
quiz_feedbacktable with quiz_id, question_id, user_id, type (unclear/wrong/other), comment, created_at. Add endpoint that accepts feedback and stores it. Admin can review feedback to improve questions.Acceptance criteria:
Technical context:
src/modules/quizzes/quiz.service.ts— quiz operations.src/database/schema.ts— schema definitions.