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

38 lines
798 B
PHP

<?php
namespace App\Models;
use CodeIgniter\Model;
use App\Models\Concerns\SchoolYearAutoFillTrait;
class ParentMeetingScheduleModel extends Model
{
use SchoolYearAutoFillTrait;
protected $table = 'parent_meeting_schedules';
protected $primaryKey = 'id';
protected $allowedFields = [
'student_id',
'parent_user_id',
'parent_name',
'student_name',
'class_section_name',
'date',
'time',
'notes',
'semester',
'school_year',
'status',
'created_by',
];
protected $validationRules = [
'school_year' => 'required|string|max_length[9]',
];
protected $useTimestamps = true;
protected $createdField = 'created_at';
protected $updatedField = 'updated_at';
}