<?php
namespace App\Entities\Tarifas;

use CodeIgniter\Entity;

class TarifaextraEntity extends \CodeIgniter\Entity\Entity
{
    protected $attributes = [
        "id" => null,
        "nombre" => null,
        "code" => null,
        "comment" => null,
        "precio" => null,
        "margen" => 0,
        "mostrar_en_presupuesto" => 1,
        "mostrar_en_presupuesto_cliente" => false,
        "user_created_id" => 1,
        "user_update_id" => 1,
        "is_deleted" => 0,
        "deleted_at" => null,
        "created_at" => null,
        "updated_at" => null,
    ];
    protected $casts = [
        "precio" => "float",
        "code" => "string",
        "comment" => "string",
        "margen" => "float",
        "mostrar_en_presupuesto" => "int",
        "mostrar_en_presupuesto_cliente" => "bool",
        "user_created_id" => "int",
        "user_update_id" => "int",
        "is_deleted" => "int",
    ];
}
