<?php

namespace App\Models;

use CodeIgniter\Model;

class InvoiceEventModel extends Model
{
    protected $table = 'invoice_event';
    protected $primaryKey = 'id';

    protected $allowedFields = [
        'invoice_id',
        'event_name',
        'description',
        'amount',
        'semester',
        'school_year',
        'updated_by',
        'created_at',
        'updated_at'
    ];

    protected $useTimestamps = true;
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';

    protected $returnType    = 'array'; // or 'object' if you prefer
}
