Initial commit BIJ CI4

This commit is contained in:
BIJ Dev
2026-04-21 05:49:17 +07:00
commit fa38ac6b24
13170 changed files with 866701 additions and 0 deletions

0
app/Models/.gitkeep Normal file
View File

View 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',
];
}

View 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',
];
}

View 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',
];
}