-- Indexes for crypto payout logic:
-- 1) existsByUserIdAndStatus(userId, status) - at most one PROCESSING per user check
-- 2) findByStatusInAndPaymentIdIsNotNullOrderByUpdatedAtAsc - cron sync batch (status + updated_at)
CREATE INDEX idx_payouts_user_status ON payouts(user_id, status);
CREATE INDEX idx_payouts_status_updated_at ON payouts(status, updated_at);
