logo

#How to import users and account balances in Peatio database

  1. Create comma-separated csv files for users and accounts with the following structure.

Users table

uidemaillevelrolestatereferral_uid
ID1000003837[email protected]3superadminactiveID1000003828

uid, email - require params

Accounts table

uidcurrency_idmain_balancelocked_balance
ID1000003837ETH105

uid, currency_id - require params

  1. Import users
   bundle exec rake import:users['file_name.csv']
  1. Import accounts (users balances)
  bundle exec rake import:accounts['file_name.csv']