<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;

class InvoiceItem extends Model
{
    protected $fillable = ['invoice_id','description','qty','unit_price','total'];
    protected $casts    = ['unit_price'=>'decimal:2','total'=>'decimal:2'];
    public function invoice() { return $this->belongsTo(Invoice::class); }
}
