-- 192_study_questions_ai_status_idx.sql (2/2) -- 후속 PR (오답노트·통계) 에서 토픽별 AI 해설 ready 비율 / stale 누적 등 쿼리에 활용. -- partial index — 'none' 행 제외해서 인덱스 부피 절약 (대부분 자료는 'none' 으로 시작). CREATE INDEX IF NOT EXISTS idx_study_questions_ai_status ON study_questions (study_topic_id, ai_explanation_status) WHERE deleted_at IS NULL AND ai_explanation_status != 'none';