<?php

namespace App\Models;

use CodeIgniter\Model;

class ClienteZproModel extends Model
{
    protected $DBGroup          = 'default';
    protected $table            = 'cliente_zpro';
    protected $primaryKey       = 'id_cli_zpro';
    protected $useAutoIncrement = true;
    protected $insertID         = 0;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = true;
    protected $protectFields    = true;
    protected $allowedFields    = [
                                    'clizpr_apiUrl',
                                    'clizpr_token',
                                    'id_temant',
                                    'status',
                                    'name',
                                    'maxUsers',
                                    'maxConnections',
                                    'acceptTerms',
                                    'email',
                                    'password',
                                    'userName',
                                    'identity',
                                    'profile',
                                    'trial',
                                    'trialPeriod',
                                  ];
    // Dates
    protected $useTimestamps = false;
    protected $dateFormat    = 'datetime';
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
    protected $deletedField  = 'deleted_at';
}