<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class OwnerStoragePriceModel extends Model
{
    protected $fillable = [
        "counting_type",    //计费类型
        "using_type",       //用仓类型
        "minimum_area",     //最低起租面积
        "price",            //单价
        "discount_type",    //减免类型
        "discount_value",   //减免值
        "unit_id",          //单位ID
    ];

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