<?php

namespace App\Models;

use CodeIgniter\Model;

class InvoiceModel extends Model
{
    protected $table = "invoices";
    protected $primaryKey = "id";
    protected $returnType = "array";
    protected $allowedFields = [
        "client_id",
        "quotation_id",
        "invoice_number",
        "invoice_date",
        "due_date",
        "status",
        "notes",
        "subtotal",
        "total",
    ];
    protected $useTimestamps = true;
}
