<?php

namespace App\Database\Seeds;

use App\Libraries\HashLibrary;
use CodeIgniter\Database\Seeder;

class UserSeeder extends Seeder
{
    public function run()
    {
        $data = [
            [
                'first_name' => 'admin',
                'last_name' => 'Strator',
                'email' => 'admin@demo.com',
                'password' => HashLibrary::hash('1234Abcd**'),
                'role' => 'Admin',
                'status' => 'Active'
            ],

        ];

        $this->db->table('tbl_user')->insertBatch($data);
    }
}
