This commit is contained in:
@@ -3,9 +3,12 @@
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
use App\Models\Concerns\SchoolYearAutoFillTrait;
|
||||
|
||||
class ReportCardAcknowledgementModel extends Model
|
||||
{
|
||||
use SchoolYearAutoFillTrait;
|
||||
|
||||
protected $table = 'report_card_acknowledgements';
|
||||
protected $primaryKey = 'id';
|
||||
protected $allowedFields = [
|
||||
@@ -20,6 +23,10 @@ class ReportCardAcknowledgementModel extends Model
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
protected $validationRules = [
|
||||
'school_year' => 'required|string|max_length[9]',
|
||||
];
|
||||
|
||||
protected $useTimestamps = true;
|
||||
protected $createdField = 'created_at';
|
||||
protected $updatedField = 'updated_at';
|
||||
|
||||
Reference in New Issue
Block a user