init backend presensi
This commit is contained in:
25
app/Modules/Discipline/Models/ViolationCategoryModel.php
Normal file
25
app/Modules/Discipline/Models/ViolationCategoryModel.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Modules\Discipline\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class ViolationCategoryModel extends Model
|
||||
{
|
||||
protected $table = 'violation_categories';
|
||||
protected $primaryKey = 'id';
|
||||
protected $useAutoIncrement = true;
|
||||
protected $returnType = 'array';
|
||||
protected $useSoftDeletes = false;
|
||||
protected $protectFields = true;
|
||||
protected $allowedFields = [
|
||||
'code',
|
||||
'name',
|
||||
'description',
|
||||
];
|
||||
|
||||
protected $useTimestamps = true;
|
||||
protected $createdField = 'created_at';
|
||||
protected $updatedField = 'updated_at';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user