<?php

namespace App\Models;

use CodeIgniter\Model;

class ContabilModel extends Model
{
    protected $DBGroup          = 'default';
    protected $table            = 'contabil_s';
    protected $primaryKey       = 'id_contabil_s';
    protected $useAutoIncrement = true;
    protected $insertID         = 0;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = true;
    protected $protectFields    = true;
    protected $allowedFields    = [
                                    'id_fatura',
                                    'con_cnpj_prestador',
                                    'con_ref',
                                    'con_numero_rps',
                                    'con_status',
                                    'con_numero',
                                    'con_codigo_verificacao',
                                    'con_data_emissao',
                                    'con_url',
                                    'con_caminho_xml_nota_fiscal',
                                  ];
    // Dates
    protected $useTimestamps = false;
    protected $dateFormat    = 'datetime';
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
    protected $deletedField  = 'deleted_at';

    

}