<?php

declare(strict_types=1);

namespace App\Models;

use CodeIgniter\Model;

/**
 * Pengguna panel admin CI3 (Ion Auth) — tabel admin_users.
 */
class AdminUserModel extends Model
{
    protected $table         = 'admin_users';
    protected $primaryKey  = 'id';
    protected $returnType  = 'array';
    protected $allowedFields = [
        'ip_address',
        'username',
        'password',
        'salt',
        'email',
        'activation_code',
        'forgotten_password_code',
        'forgotten_password_time',
        'remember_code',
        'created_on',
        'last_login',
        'active',
        'first_name',
        'last_name',
        'photo',
        'nama_lengkap',
        'no_telepon',
        'id_pegawai',
    ];
}
