<?php


use Phinx\Seed\AbstractSeed;

class AWalletSeeder extends AbstractSeed
{

    public function run()
    {            

            $data = [];

            $data[] = [
                'type' => 1,
                'address' => getenv('WALLET_BTC'),
                'created_at'    => date('Y-m-d H:i:s'),
                'updated_at'    => date('Y-m-d H:i:s'),
            ];

            $data[] = [
                'type' => 2,
                'address' => getenv('WALLET_ETH'),
                'network' => getenv('WALLET_ETH_NET'),
                'created_at'    => date('Y-m-d H:i:s'),
                'updated_at'    => date('Y-m-d H:i:s'),
            ];

            $data[] = [
                'type' => 3,
                'address' => getenv('WALLET_DOGE'),
                'created_at'    => date('Y-m-d H:i:s'),
                'updated_at'    => date('Y-m-d H:i:s'),
            ];

            $data[] = [
                'type' => 4,
                'address' => getenv('WALLET_USDT'),
                'network' => getenv('WALLET_USDT_NET'),
                'created_at'    => date('Y-m-d H:i:s'),
                'updated_at'    => date('Y-m-d H:i:s'),
            ];

            $data[] = [
                'type' => 5,
                'address' => getenv('WALLET_SOL'),
                'created_at'    => date('Y-m-d H:i:s'),
                'updated_at'    => date('Y-m-d H:i:s'),
            ];

            $data[] = [
                'type' => 6,
                'address' => getenv('WALLET_LTC'),
                'created_at'    => date('Y-m-d H:i:s'),
                'updated_at'    => date('Y-m-d H:i:s'),
            ];
    
            $this->table('wallets')->insert($data)->save();
        

    }
}