-- 181_study_topics_idx_user.sql (3/6)
-- 사용자별 active 주제 목록 조회용 partial index.

CREATE INDEX IF NOT EXISTS idx_study_topics_user
    ON study_topics (user_id, sort_order, id)
    WHERE deleted_at IS NULL;
