5~7단계 게임: 숨긴 유튜브 동기화 재생(전원 준비·버퍼링이면 모두 멈춤·30초 늦은 사람 제외·재생 오류 곡 교체), 정답 판정·점수·정답 블록, 입력 중·단축키, 힌트·스킵·다시듣기 투표, 3모드, 결과·이어풀기·다시 하기, 퀴즈 저장·불러오기 + 마지막 사람이 나가면 방 바로 닫기
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
13
apps/server/src/db/migrations/004_saved_quizzes.sql
Normal file
13
apps/server/src/db/migrations/004_saved_quizzes.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
-- 퀴즈 저장·불러오기 (docs/12 Q8): settings, songs played so far, scores per account. Discord accounts only, 20 per account.
|
||||
CREATE TABLE saved_quizzes (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
user_id TEXT NOT NULL REFERENCES users(id) ON DELETE CASCADE,
|
||||
name TEXT NOT NULL,
|
||||
config_json TEXT NOT NULL,
|
||||
played_json TEXT NOT NULL, -- song ids already asked
|
||||
scores_json TEXT NOT NULL, -- [{id, nickname, score, correct, totalMs}]
|
||||
questions INTEGER NOT NULL,
|
||||
created_at INTEGER NOT NULL,
|
||||
updated_at INTEGER NOT NULL
|
||||
);
|
||||
CREATE INDEX saved_quizzes_user ON saved_quizzes(user_id, updated_at);
|
||||
Reference in New Issue
Block a user