<?php

namespace App\Models;

use CodeIgniter\Model;

class OrganizacaoModel extends Model
{
    protected $DBGroup          = 'default';
    protected $table            = 'organizacao';
    protected $primaryKey       = 'id_organizacao';
    protected $useAutoIncrement = true;
    protected $insertID         = 0;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = true;
    protected $protectFields    = true;
    protected $allowedFields    = [
                                    'org_responsavel',
                                    'org_responsavel_cpf',
                                    'org_nome',
                                    'org_nome_fantasia',
                                    'org_cnpj',
                                    'org_insc_municipal',
                                    'org_endereco',
                                    'org_endereco_numero',
                                    'org_endereco_compl',
                                    'org_bairro',
                                    'org_municipio',
                                    'org_estado_uf',
                                    'org_pais',
                                    'org_cep',
                                    'org_email',
                                    'org_email_disparo',
                                    'org_email_senha',
                                    'org_email_protocol',
                                    'org_email_smtp',
                                    'org_email_port',
                                    'org_botUrl',
                                    'org_botAuth',
                                    'org_botHash',
                                  ];
    // Dates
    protected $useTimestamps = false;
    protected $dateFormat    = 'datetime';
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
    protected $deletedField  = 'deleted_at';

    


    
    
}
