reconstruction of the project
This commit is contained in:
@@ -2,11 +2,15 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\Models\BaseModel;
|
||||
|
||||
class EarlyDismissalSignature extends Model
|
||||
class EarlyDismissalSignature extends BaseModel
|
||||
{
|
||||
protected $table = 'early_dismissal_signatures';
|
||||
|
||||
// ✅ CI: timestamps enabled (created_at/updated_at)
|
||||
public $timestamps = true;
|
||||
|
||||
protected $fillable = [
|
||||
'report_date',
|
||||
'school_year',
|
||||
@@ -19,5 +23,18 @@ class EarlyDismissalSignature extends Model
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
public $timestamps = true;
|
||||
|
||||
protected $casts = [
|
||||
// report_date is stored as Y-m-d in CI validation; keep as date
|
||||
'report_date' => 'date',
|
||||
|
||||
'file_size' => 'integer',
|
||||
'uploaded_by' => 'integer',
|
||||
];
|
||||
|
||||
/* Optional relationship */
|
||||
public function uploader()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'uploaded_by');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user