<?php

namespace App\Database\Seeds;

use CodeIgniter\Database\Seeder;

class UserSeeder extends Seeder
{
    public function run()
    {
        $data = [
            'nama_lengkap' => 'Administrator KPH III',
            'username'     => 'admin',
            // Password defaultnya adalah: kph3asahan
            'password'     => password_hash('kph3asahan', PASSWORD_DEFAULT),
            'role'         => 'Admin'
        ];

        $this->db->table('tb_users')->insert($data);
    }
}