feat: 학교 관리 4대 기능 — 개인과제, 복습과제, 풀이상세, 선생님 노트

Backend:
- Assignment에 type(new/review), targetUserIds, teacherNote 필드 추가
- 학생 목록에서 targetUserIds 기반 개인 과제 필터링
- GET /assignments/:id/submissions/:userId/details 엔드포인트 (문제별 시간/필기/정오)

Frontend:
- 과제 생성: 유형 토글(새문제/복습) + 개별 학생 지정 + 선생님 해설 노트
- 과제 상세: 학생 클릭 → 풀이 상세 모달 (문제별 시간, 정오, 필기 이미지)
- 학생 뷰: 완료된 과제에 선생님 해설 노트 표시

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
reloop
2026-04-19 18:25:36 +09:00
parent b27d9a4240
commit b27417a10e
8 changed files with 700 additions and 15 deletions

View File

@@ -0,0 +1,6 @@
-- AlterTable: Add type, targetUserIds, teacherNoteUrl, teacherNoteText to assignments
ALTER TABLE `assignments`
ADD COLUMN `type` ENUM('newProblem', 'review') NOT NULL DEFAULT 'newProblem',
ADD COLUMN `targetUserIds` JSON NULL,
ADD COLUMN `teacherNoteUrl` VARCHAR(191) NULL,
ADD COLUMN `teacherNoteText` LONGTEXT NULL;