<?php

namespace App;

//use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class BChequeItem extends Model
{
//    use HasFactory;

    protected $table = 'b_cheque_items';
    protected $primaryKey = 'id_b_cheque_items';

    protected $fillable = [
        'b_cheque_id',
        'marka',
        'item',
        'bori',
        'weight',
        'rate',
        'amount',
        'created_by'
    ];

    public function bCheque()
    {
        return $this->belongsTo(BCheque::class, 'b_cheque_id', 'id_b_cheque');
    }
}
