add tests batch 20
This commit is contained in:
+12
-10
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
|
||||
class FinalExam extends BaseModel
|
||||
{
|
||||
protected $table = 'final_exam';
|
||||
@@ -31,19 +33,19 @@ class FinalExam extends BaseModel
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'student_id' => 'integer',
|
||||
'school_id' => 'integer',
|
||||
'student_id' => 'integer',
|
||||
'school_id' => 'integer',
|
||||
'class_section_id' => 'integer',
|
||||
'updated_by' => 'integer',
|
||||
'updated_by' => 'integer',
|
||||
|
||||
// score is often numeric; adjust if yours is integer
|
||||
'score' => 'decimal:2',
|
||||
'max_points' => 'decimal:2',
|
||||
'locked_by' => 'integer',
|
||||
'locked_at' => 'datetime',
|
||||
'score' => 'decimal:2',
|
||||
'max_points' => 'decimal:2',
|
||||
'locked_by' => 'integer',
|
||||
'locked_at' => 'datetime',
|
||||
|
||||
'created_at' => 'datetime',
|
||||
'updated_at' => 'datetime',
|
||||
'created_at' => 'datetime',
|
||||
'updated_at' => 'datetime',
|
||||
];
|
||||
|
||||
/* Optional relationships */
|
||||
@@ -80,4 +82,4 @@ class FinalExam extends BaseModel
|
||||
|
||||
return $row?->score;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user