add tests batch 20
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
class ClassProgressReport extends BaseModel
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'class_progress_reports';
|
||||
|
||||
// ✅ legacy: useTimestamps = true (created_at/updated_at)
|
||||
@@ -36,14 +36,14 @@ class ClassProgressReport extends BaseModel
|
||||
|
||||
protected $casts = [
|
||||
'class_section_id' => 'integer',
|
||||
'teacher_id' => 'integer',
|
||||
'teacher_id' => 'integer',
|
||||
|
||||
// change to 'datetime' if your columns are DATETIME
|
||||
'week_start' => 'date',
|
||||
'week_end' => 'date',
|
||||
'week_start' => 'date',
|
||||
'week_end' => 'date',
|
||||
|
||||
// If flags_json is JSON in DB, this makes it an array automatically
|
||||
'flags_json' => 'array',
|
||||
'flags_json' => 'array',
|
||||
];
|
||||
|
||||
/* Optional relationships */
|
||||
|
||||
Reference in New Issue
Block a user