DROP INDEX IF EXISTS idx_outbox_scheduled;
CREATE INDEX idx_outbox_scheduled ON outbox(scheduled_at)
    WHERE scheduled_at IS NOT NULL AND status = 'queued';
