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