etiqueta impresora

This commit is contained in:
amazuecos
2025-04-02 08:16:58 +02:00
parent bb78f9cbd8
commit d42f46d280
8 changed files with 343 additions and 1 deletions

View File

@ -0,0 +1,57 @@
<?php
namespace App\Models\Configuracion;
use App\Entities\Configuracion\ImpresoraEtiquetaEntity;
use App\Models\BaseModel;
class ImpresoraEtiquetaModel extends BaseModel
{
protected $table = "etiqueta_impresoras";
/**
* Whether primary key uses auto increment.
*
* @var bool
*/
protected $primaryKey = 'id';
protected $useAutoIncrement = true;
protected $returnType = ImpresoraEtiquetaEntity::class;
protected $useSoftDeletes = true;
protected $protectFields = true;
protected $allowedFields = [
"name",
"tipo",
"ip",
"port",
"user",
"pass",
"description"
];
protected $useTimestamps = true;
protected $dateFormat = 'datetime';
protected $createdField = "created_at";
protected $updatedField = 'updated_at';
protected $deletedField = 'deleted_at';
protected bool $allowEmptyInserts = false;
protected bool $updateOnlyChanged = true;
// Validation
protected $validationRules = [];
protected $validationMessages = [];
protected $skipValidation = false;
protected $cleanValidationRules = true;
// Callbacks
protected $allowCallbacks = false;
protected $beforeInsert = [];
protected $afterInsert = [];
protected $beforeUpdate = [];
protected $afterUpdate = [];
protected $beforeFind = [];
protected $afterFind = [];
protected $beforeDelete = [];
protected $afterDelete = [];
}