<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ProductBarcode extends Model
{
    protected $table = 'product_barcodes';

    protected $primaryKey = 'barcode_id';

    public $timestamps = false;

    protected $fillable = [
        'product_id',
        'barcode',
        'gross_weight',
        'net_weight',
        'stone_weight',
        'making_charge',
        'status'
    ];

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