Initial commit BIJ CI4
This commit is contained in:
0
app/Models/.gitkeep
Normal file
0
app/Models/.gitkeep
Normal file
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',
|
||||
];
|
||||
}
|
||||
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',
|
||||
];
|
||||
}
|
||||
37
app/Models/PresensiModel.php
Normal file
37
app/Models/PresensiModel.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class PresensiModel extends Model
|
||||
{
|
||||
protected $table = 'presensi';
|
||||
protected $primaryKey = 'id_presensi';
|
||||
protected $useAutoIncrement = true;
|
||||
protected $returnType = 'array';
|
||||
protected $protectFields = true;
|
||||
/** @var list<string> */
|
||||
protected $allowedFields = [
|
||||
'pegawai',
|
||||
'tanggal',
|
||||
'jadwal',
|
||||
'jam_masuk',
|
||||
'ket_masuk',
|
||||
'photo_masuk',
|
||||
'jam_pulang',
|
||||
'ket_pulang',
|
||||
'photo_pulang',
|
||||
'mulai_istirahat',
|
||||
'beres_istirahat',
|
||||
'is_istirahat',
|
||||
'lat_masuk',
|
||||
'lng_masuk',
|
||||
'lat_pulang',
|
||||
'lng_pulang',
|
||||
'jarak_masuk',
|
||||
'jarak_pulang',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user