<?php

namespace App\Models;

use App\Models\BaseModel;

class ClassProgressAttachment extends BaseModel
{
    protected $table = 'class_progress_attachments';

    // CI: 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');
    }
}