<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Model;

#[Fillable(['stock_transfer_id', 'product_id', 'quantity'])]
class StockTransferItem extends Model
{
    protected function casts(): array
    {
        return ['quantity' => 'decimal:3'];
    }

    public function product()
    {
        return $this->belongsTo(Product::class);
    }
}
