Files
alrahma_sunday_school_api/app/Models/EarlyDismissalSignature.php
root e13df69885
API CI/CD / Validate (composer + pint) (push) Successful in 3m6s
API CI/CD / Test (PHPUnit) (push) Failing after 4m53s
API CI/CD / Build frontend assets (push) Successful in 1m2s
API CI/CD / Security audit (push) Failing after 59s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
fix unittests issues
2026-07-07 20:56:32 -04:00

28 lines
749 B
PHP

<?php
namespace App\Models;
class EarlyDismissalSignature extends BaseModel
{
protected $table = 'early_dismissal_signatures';
// ✅ legacy: timestamps enabled (created_at/updated_at)
public $timestamps = true;
protected $fillable = ['report_date', 'school_year', 'semester', 'filename', 'original_name', 'mime_type', 'file_size', 'uploaded_by', 'created_at', 'updated_at'];
protected $casts = [
// report_date is stored as Y-m-d in legacy 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');
}
}