Files
root 716cc8b8d3
Tests / PHPUnit (push) Failing after 1m20s
fix school year for all tables
2026-07-18 14:45:38 -04:00

34 lines
706 B
PHP

<?php
namespace App\Models;
use CodeIgniter\Model;
use App\Models\Concerns\SchoolYearAutoFillTrait;
class ScoreCommentModel extends Model
{
use SchoolYearAutoFillTrait;
protected $table = 'score_comments';
protected $primaryKey = 'id';
protected $allowedFields = [
'student_id',
'class_section_id',
'score_type',
'semester',
'school_year',
'comment',
'comment_review',
'reviewed_by',
'commented_by',
'created_at'
];
protected $validationRules = [
'school_year' => 'required|string|max_length[9]',
];
public $timestamps = false; // because we're using MySQL's default timestamp
}