<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class GoodReceiptDetail extends Model
{
    protected $primaryKey = 'id_grd';
    protected $table = 'good_receipts_details';
    protected $fillable = [
        'good_receipts_id',
        'goods_name',
        'marka',
        'bori',
        'weight',
        'rate',
        'notes',
    ];

    public function goodReceipt()
    {
        return $this->belongsTo(GoodReceipt::class, 'good_receipts_id');
    }
}
