add test batches

This commit is contained in:
root
2026-06-08 23:45:55 -04:00
parent c792b8be05
commit 8d4d610b82
1480 changed files with 22587 additions and 10762 deletions
+6 -5
View File
@@ -2,6 +2,8 @@
namespace App\Models;
use App\Models\BaseModel;
class GradingLock extends BaseModel
{
protected $table = 'grading_locks';
@@ -22,9 +24,9 @@ class GradingLock extends BaseModel
protected $casts = [
'class_section_id' => 'integer',
'is_locked' => 'boolean',
'locked_by' => 'integer',
'locked_at' => 'datetime',
'is_locked' => 'boolean',
'locked_by' => 'integer',
'locked_at' => 'datetime',
];
/* Optional relationships */
@@ -61,7 +63,6 @@ class GradingLock extends BaseModel
public static function isLocked(int $classSectionId, string $semester, string $schoolYear): bool
{
$row = static::getLock($classSectionId, $semester, $schoolYear);
return (bool) ($row?->is_locked ?? false);
}
}
}