Files
2026-03-08 16:33:24 -04:00

33 lines
706 B
PHP

<?php
namespace App\Models;
use App\Models\BaseModel;
class ClassPreparationLog extends BaseModel
{
protected $table = 'class_preparation_log';
// CI: useTimestamps = false
public $timestamps = false;
protected $fillable = [
'class_section_id',
'class_section',
'school_year',
'prep_data',
'created_at',
];
protected $casts = [
'class_section_id' => 'integer',
// If prep_data is JSON in DB, use 'array' (or 'json') cast:
'prep_data' => 'array',
];
// Optional relationship
public function classSection()
{
return $this->belongsTo(ClassSection::class, 'class_section_id');
}
}