Initial commit BIJ CI4
This commit is contained in:
37
app/Models/AdminUserModel.php
Normal file
37
app/Models/AdminUserModel.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?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',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user