<?php 
namespace App\Models; 

use CodeIgniter\Model; 

class CompanySettingModel extends Model 
{ 
    protected $table            = 'company_settings'; 
    protected $primaryKey       = 'id_setting'; 
    protected $allowedFields    = [ 
        'company_name', 
        'owner_name', 
        'email', 
        'phone', 
        'address', 
        'logo_url', 
        'favicon_url', 
        'npwp', 
        'rekening_bank', 
        'monthly_po_limit' 
    ]; 

    // (Opsional) Tambahkan baris di bawah ini JIKA di tabel database Anda
    // terdapat kolom 'created_at' dan 'updated_at' agar terisi otomatis
    // protected $useTimestamps = true;
}