<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

use App\Traits\ModelLogChanging;

class OwnerPriceSystem extends Model
{
    use ModelLogChanging;

    protected $fillable=[
        "owner_id","usage_fee","operation","target_id","tax_rate_id","time_unit_id"
    ];

    public function timeUnit()
    {   //时间单位
        return $this->belongsTo(Unit::class,"time_unit_id","id");
    }
    public function taxRate()
    {   //税率
        return $this->belongsTo(TaxRate::class);
    }
    public function owner()
    {   //货主
        return $this->belongsTo(Owner::class);
    }
}
