<?php
namespace App\Entities\Configuracion;

use CodeIgniter\Entity;

class Maquina extends \CodeIgniter\Entity\Entity
{
    protected $attributes = [
        "id" => null,
        "nombre" => null,
        "is_padre" => false,
        "tipo" => null,
        "velocidad" => 0.0,
        "ancho" => 100.0,
        "alto" => 100.0,
        "ancho_impresion" => 0.0,
        "alto_impresion" => 0.0,
        "alto_click" => 0.0,
        "padre_id" => null,
        "min" => 1,
        "max" => 1000000,
        "duracion_jornada" => 8,
        "orden_planning" => 1,
        "is_rotativa" => false,
        "precio_tinta_negro" => 0.0,
        "is_tinta" => false,
        "precio_tinta_color" => 0.0,
        "velocidad_corte" => 0.0,
        "precio_hora_corte" => 0.0,
        "metrosxminuto" => 0.0,
        "forzar_num_formas_horizontales_portada" => null,
        "forzar_num_formas_verticales_portada" => null,
        "observaciones" => "",
        "is_deleted" => 0,
        "created_at" => null,
        "updated_at" => null,
        "user_created_id" => 0,
        "user_updated_id" => 0,
    ];
    protected $casts = [
        "is_padre" => "boolean",
        "velocidad" => "float",
        "ancho" => "?float",
        "alto" => "?float",
        "ancho_impresion" => "float",
        "alto_impresion" => "float",
        "alto_click" => "float",
        "padre_id" => "?int",
        "min" => "int",
        "max" => "int",
        "duracion_jornada" => "int",
        "orden_planning" => "int",
        "is_rotativa" => "boolean",
        "precio_tinta_negro" => "float",
        "is_tinta" => "boolean",
        "precio_tinta_color" => "float",
        "velocidad_corte" => "float",
        "precio_hora_corte" => "float",
        "forzar_num_formas_horizontales_portada" => "?int",
        "forzar_num_formas_verticales_portada" => "?int",
        "is_deleted" => "int",
        "user_created_id" => "int",
        "user_updated_id" => "int",
    ];
}
