<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class CanvasLoadingItem extends Model
{
    protected $fillable = [
    'canvas_loading_id', 
    'product_id', 
    'quantity', 
    'unit',
    'qty_returned', // Tambahkan ini
    'qty_sold'      // Tambahkan ini
    ];

    public function product() {
    return $this->belongsTo(\App\Models\Product::class, 'product_id');
    }
}