<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use App\Traits\ModelTimeFormat;

use App\Traits\ModelLogChanging;

class Warehouse extends Model
{
    use ModelLogChanging;

    use ModelTimeFormat;
    protected $fillable=['name','code',"production_capacity","reduced_production_capacity_coefficient","address","principal","phone"];

    public function userWorkgroups(){
        return $this->hasMany('App\UserWorkgroup');
    }
}
