<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class OwnerInStorageRule extends Model
{
    protected $fillable = [
        "owner_price_operation_id", //作业计费ID
        "amount",                   //计量
        "unit_id",                  //单位ID
        "unit_price",               //单价
    ];
    public $timestamps=false;

    public function unit()
    {   //单位
        return $this->hasOne(Unit::class,"id","unit_id");
    }
}
