<?php
namespace App\Entities\Albaranes;

use CodeIgniter\Entity;

class AlbaranLineaEntity extends \CodeIgniter\Entity\Entity
{
    protected $attributes = [
        'id' => null,
        'albaran_id' => null,
        'pedido_linea_id' => null,
        'titulo' => null,
        'isbn' => null,
        'ref_cliente' => null,
        'cantidad' => null,
        'precio_unidad' => null,
        'total' => null,
        'iva_reducido' => null,
        'user_created_id' => null,
        'user_updated_id' => null,
        'created_at' => null,
        'updated_at' => null,
        'deleted_at' => null,
    ];

    protected $casts = [
        'id' => 'integer',
        'albaran_id' => '?integer',
        'pedido_linea_id' => '?integer',
        'titulo' => 'string',
        'isbn' => '?string',
        'ref_cliente' => '?string',
        'cantidad' => '?integer',
        'precio_unidad' => 'float',
        'total' => 'float',
        'iva_reducido' => '?boolean',
        'user_created_id' => 'integer',
        'user_updated_id' => 'integer',
    ];
}