Initial commit BIJ CI4
This commit is contained in:
38
app/Models/PegawaiModel.php
Normal file
38
app/Models/PegawaiModel.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class PegawaiModel extends Model
|
||||
{
|
||||
protected $table = 'pegawai';
|
||||
protected $primaryKey = 'id_pegawai';
|
||||
protected $useAutoIncrement = true;
|
||||
protected $returnType = 'array';
|
||||
protected $protectFields = true;
|
||||
/** @var list<string> */
|
||||
protected $allowedFields = [
|
||||
'nip',
|
||||
'nama_lengkap',
|
||||
'jenis_kelamin',
|
||||
'tempat_lahir',
|
||||
'tanggal_lahir',
|
||||
'photo',
|
||||
'email',
|
||||
'jabatan',
|
||||
'unit_kerja',
|
||||
'golongan_pekerjaan',
|
||||
'kantor',
|
||||
'status_kepegawaian',
|
||||
'tanggal_bergabung',
|
||||
'jadwal',
|
||||
'super_akses',
|
||||
'username',
|
||||
'password',
|
||||
'token',
|
||||
'last_login',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user