add school year model

This commit is contained in:
root
2026-06-07 00:52:01 -04:00
parent a192ed433d
commit 6866aedf42
36 changed files with 4771 additions and 88 deletions
+31
View File
@@ -0,0 +1,31 @@
<?php
namespace App\Models;
class SchoolYear extends BaseModel
{
public const STATUS_DRAFT = 'draft';
public const STATUS_ACTIVE = 'active';
public const STATUS_CLOSED = 'closed';
public const STATUS_ARCHIVED = 'archived';
protected $table = 'school_years';
protected $fillable = [
'name',
'start_date',
'end_date',
'status',
'is_current',
'closed_at',
'closed_by',
];
protected $casts = [
'start_date' => 'date',
'end_date' => 'date',
'is_current' => 'boolean',
'closed_at' => 'datetime',
'closed_by' => 'integer',
];
}