<?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    = [];


}
