<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class PurchaseRequestBoqItem extends Model
{
    protected $table = 'pr_boq_items';

     protected $fillable = [
        'task_id',
        'boq_id',
        'item_id',
        'quantity',
        'rate_per_unit',
        'total_cost',
        'purchase_request_id'
    ];

   public function item() {
     return $this->belongsTo('App\Item','item_id');
   }

}
