<?php
namespace App\Entities\Albaranes;

use CodeIgniter\Entity;

class AlbaranEntity extends \CodeIgniter\Entity\Entity
{
    protected $attributes = [
        'id' => null,
        'envio_id' => null,
        'cliente_id' => null,
        'serie_id' => null,
        'numero_albaran' => null,
        'mostrar_precios' => null,
        'direccion_albaran' => null,
        'att_albaran' => null,
        'fecha_albaran' => null,
        'user_created_id' => null,
        'user_updated_id' => null,
        'created_at' => null,
        'updated_at' => null,
        'deleted_at' => null,
        'cajas' => null,
    ];

    protected $dates = ['created_at', 'updated_at', 'deleted_at'];

    protected $casts = [
        'id' => 'integer',
        'envio_id' => '?integer',
        'presupuesto_id' => '?integer',
        'presupuesto_direccion_id' => '?integer',
        'cliente_id' => '?integer',
        'serie_id' => '?integer',
        'numero_albaran' => '?string',
        'mostrar_precios' => '?boolean',
        'total' => 'float',
        'direccion_albaran' => '?string',
        'att_albaran' => '?string',
        'user_created_id' => 'integer',
        'user_updated_id' => 'integer',
        'fecha_albaran' => '?datetime',
    ];

    // Agrega tus métodos personalizados aquí
}
