-- 227_progress_due_idx.sql
-- 복습 큐 due_today 탭 — 사용자별 due_at 오름차순 조회 빠르게.

CREATE INDEX IF NOT EXISTS idx_progress_due
    ON study_question_progress (user_id, due_at)
    WHERE due_at IS NOT NULL;
