<?php

namespace App\Models;

use CodeIgniter\Model;

class FaturaFormapgtoBoletoModel extends Model
{
    protected $DBGroup          = 'default';
    protected $table            = 'fatura_formapgto_boleto';
    protected $primaryKey       = 'id_formapgtoboleto';
    protected $useAutoIncrement = true;
    protected $insertID         = 0;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = true;
    protected $protectFields    = true;
    protected $allowedFields    = [
                                    'id_fatura',
                                    'forbol_codigo',
                                    'forbol_duedate',
                                    'forbol_checkouturl',
                                    'forbol_link',
                                    'forbol_installmentlink',
                                    'forbol_paynumber',
                                    'forbol_billetdetails',
                                    'forbol_barcodenumber',
                                    'forbol_paymenttoken',
                                  ];

    // Dates
    protected $useTimestamps = false;
    protected $dateFormat    = 'datetime';
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
    protected $deletedField  = 'deleted_at';

    // Validation
    protected $validationRules      = [];
    protected $validationMessages   = [];
    protected $skipValidation       = false;
    protected $cleanValidationRules = true;

}
