<?php

namespace App\Models;

use CodeIgniter\Model;

class FaturamentoModel extends Model
{
    protected $DBGroup          = 'default';
    protected $table            = 'faturamento';
    protected $primaryKey       = 'id_faturamento';
    protected $useAutoIncrement = true;
    protected $insertID         = 0;
    protected $returnType       = 'array';
    protected $useSoftDeletes   = true;
    protected $protectFields    = true;
    protected $allowedFields    = [
                                    'id_cliente',
                                    'fatcat_nome',
                                    'fatfor_nome',
                                    'fat_descricao',
                                    'fat_data',
                                    'fat_valor',
                                  ];
    // Dates
    protected $useTimestamps = false;
    protected $dateFormat    = 'datetime';
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
    protected $deletedField  = 'deleted_at';

    

}