<?php

namespace App\Models;

use CodeIgniter\Model;

class ClienteModel extends Model
{
    protected $DBGroup          = 'default';
    protected $table            = 'cliente';
    protected $primaryKey       = 'id_cliente';
    protected $useAutoIncrement = true;
    protected $insertID         = 0;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = true;
    protected $protectFields    = true;
    protected $allowedFields    = [
                                    'id_asaas',
                                    'id_clientezpro',
                                    'cli_nome',
                                    'cli_email',
                                    'cli_email_extra',
                                    'cli_telefone',
                                    'cli_cpfcnpj',
                                    'cli_insc_estadual',
                                    'cli_endereco',
                                    'cli_endereco_numero',
                                    'cli_endereco_compl',
                                    'cli_bairro',
                                    'cli_municipio',
                                    'cli_estado_uf',
                                    'cli_pais',
                                    'cli_cep',
                                    'cli_senha',
                                    'cli_avatar',
                                    'cli_ativo',
                                  ];
    // Dates
    protected $useTimestamps = false;
    protected $dateFormat    = 'datetime';
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
    protected $deletedField  = 'deleted_at';

    

}