<?php

namespace App\Models;

use CodeIgniter\Model;

class ClaimFilesModel extends Model
{
    protected $table            = 'partner_claim_files';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;

    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;

    protected $allowedFields    = [
        'claim_id',
        'file_name',
        'file_path',
        'file_extension',
        'file_mime_type',
        'is_active',
        'created_by',
        'updated_by',
    ];

    // Auto timestamps
    protected $useTimestamps = true;
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
}
