<?php

namespace App\Modules\Discipline\Models;

use CodeIgniter\Model;

class DisciplineLevelModel extends Model
{
    protected $table            = 'discipline_levels';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;
    protected $protectFields    = true;
    protected $allowedFields    = [
        'min_score',
        'max_score',
        'title',
        'school_action',
        'executor',
        'is_active',
    ];

    protected $useTimestamps = true;
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
}

