<?php

namespace App\Models;

use CodeIgniter\Model;

class FinanceAttachmentModel extends Model
{
    protected $table            = 'finance_attachments';
    protected $primaryKey       = 'id';
    protected $useAutoIncrement = true;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = false;
    protected $useTimestamps    = true;
    protected $createdField     = 'created_at';
    protected $updatedField     = 'updated_at';

    protected $allowedFields = [
        'transaction_id', 'church_id', 'file_path', 'original_name', 'mime_type', 'file_size',
    ];
}
