<?php
namespace App\Models;
use CodeIgniter\Model;

class OrdenCompraAdjuntosModel extends Model
{
    protected $DBGroup    = 'baseCompras';
    protected $table      = 'ordencompra_adjuntos';
    protected $primaryKey = 'IDAdjuntoOC';

    protected $useAutoIncrement = true;

    protected $returnType     = 'array';
    protected $useSoftDeletes = false;

    protected $allowedFields = ['IDOrdenCompra', 'Nombre', 'Extension', 'Observacion', 'EstadoAsociado','UsuarioCrea', 'FechaCrea', 'UsuarioModifica', 'FechaModifica', 'Localhost'];

    protected $useTimestamps = false;
    protected $createdField  = 'created_at';
    protected $updatedField  = 'updated_at';
    protected $deletedField  = 'deleted_at';

    protected $validationRules    = [];
    protected $validationMessages = [];
    protected $skipValidation     = false;

}