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

42 lines
984 B
PHP

<?php
namespace App\Models;
use CodeIgniter\Model;
use App\Models\Concerns\SchoolYearAutoFillTrait;
class StudentSectionDistributionDraftModel extends Model
{
use SchoolYearAutoFillTrait;
protected $table = 'student_section_distribution_drafts';
protected $primaryKey = 'id';
protected $returnType = 'array';
protected $useAutoIncrement = true;
protected $protectFields = true;
protected $allowedFields = [
'student_id',
'class_id',
'class_section_id',
'school_year',
'previous_school_year',
'previous_final_score',
'score_group',
'status',
'batch_key',
'created_by',
'applied_at',
'created_at',
'updated_at',
];
protected $validationRules = [
'school_year' => 'required|string|max_length[20]',
];
protected $useTimestamps = true;
protected $createdField = 'created_at';
protected $updatedField = 'updated_at';
}