<?php

namespace App\Models\Universal;

use Illuminate\Database\Eloquent\Model;

class PedidoDetalle extends Model
{
    protected $connection = 'universal';

    protected $table = 'pedidos_detalle';

    protected $primaryKey = 'id_pedido_detalle';

    public $incrementing = true;

    protected $keyType = 'int';

    protected $guarded = [];

    protected function casts(): array
    {
        return [
            'quantity_detalle' => 'decimal:2',
            'price_detalle' => 'decimal:2',
            'tax_detalle' => 'decimal:2',
            'total_linea' => 'decimal:2',
        ];
    }
}
