ALTER TABLE users
  ADD COLUMN account_info JSONB;  -- JSON аккаунта прямо из get_account блокчейна

CREATE INDEX idx_users_account_info
  ON users USING GIN (account_info)
  WHERE stihi_user AND (account_info->'withdrawn')::TEXT::BIGINT > 0;

{'avg_line_length': 34.714285714285715, 'max_line_length': 81, 'alphanum_fraction': 0.7818930041152263, 'licenses': ['Apache-2.0'], 'repository_name': 'atomlab/stihi-backend-1.0', 'path': 'migrations/20181128163800_add_down_power_user_info.sql', 'size': 267, 'lang': 'SQL'}