<?php

namespace App\Models;

use CodeIgniter\Model;

class CompanyModel extends Model
{
    protected $table = 'companies';
    protected $primaryKey = 'id';
    protected $allowedFields = [
        'name', 'full_name', 'address', 'city', 'country', 'phone', 'fax', 'gsm',
        'email', 'tax_id', 'ice', 'logo', 'currency', 'default_vat_rate',
        'invoice_prefix', 'invoice_start_number', 'payment_terms',
        'bank_name', 'bank_rib', 'smtp_host', 'smtp_user', 'smtp_pass', 'is_active'
    ];
    protected $returnType = 'array';
    protected $useTimestamps = true;
}
