-- 312_eid_weekly_recap_idx.sql — 303_eid_weekly_recap.sql 분리본 (single-statement). asyncpg 러너가 prepared statement 로 처리해 multi-statement 거부 → 1 stmt/파일. 내용 불변.

CREATE INDEX IF NOT EXISTS idx_eid_recap_user_current
    ON eid_weekly_recap (user_id, created_at DESC) WHERE status = 'active';
