<?php
namespace App\Models;
use CodeIgniter\Model;

class InvoiceModel extends Model
{
    protected $table          = 'invoices';
    protected $primaryKey     = 'id';
    protected $useTimestamps  = false;
    protected $useSoftDeletes = false;
    protected $deletedField   = 'deleted_at';
    protected $allowedFields  = [
        'company_id','customer_id','job_id','quote_id','number','title','status',
        'due_date','subtotal','discount_total','tax_total','total',
        'amount_paid','balance_due','notes','footer_text','payment_terms','bank_details',
        'purchase_order_no','stripe_payment_intent','stripe_payment_link',
        'sent_at','paid_at','voided_at','voided_by','created_by',,
        'created_at', 'updated_at', 'deleted_at'
    ];
}
