<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class InventoryMission extends Model
{
    protected $fillable=[
        'id','inventory_id','location','commodity_id', 'produced_at', 'valid_at','stored_at','batch_number','erp_type_position','quality','stored_amount','valid_amount',
        'verified_amount','re_checked_amount','difference_amount','occupied_amount','checked',
    ];
    public function commodity(){
        return $this->belongsTo('App\Commodity','commodity_id','id');
    }
}
