Files
alrahma_sunday_school_api/app/Models/ClassProgressAttachment.php
T
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

30 lines
729 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class ClassProgressAttachment extends BaseModel
{
use HasFactory;
protected $table = 'class_progress_attachments';
// legacy: useTimestamps = false
public $timestamps = false;
protected $fillable = ['report_id', 'file_path', 'original_name', 'mime_type', 'file_size', 'created_at'];
protected $casts = [
'report_id' => 'integer',
'file_size' => 'integer',
];
// Optional relationship
public function report()
{
// replace ClassProgressReport::class with your actual report model if different
return $this->belongsTo(ClassProgressReport::class, 'report_id');
}
}