-- +goose Up

ALTER TABLE rental_orders
  ADD KEY idx_rental_orders_offline_settled_at (offline_settled_at, settlement_mode, offline_settlement_status);

ALTER TABLE withdrawal_requests
  ADD KEY idx_withdrawal_requests_paid_at (status, paid_at);

-- +goose Down

ALTER TABLE withdrawal_requests
  DROP KEY idx_withdrawal_requests_paid_at;

ALTER TABLE rental_orders
  DROP KEY idx_rental_orders_offline_settled_at;
