OwnerInStorageRule.php 532 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. use App\Traits\LogModelChanging;
  5. class OwnerInStorageRule extends Model
  6. {
  7. use LogModelChanging;
  8. protected $fillable = [
  9. "owner_price_operation_id", //作业计费ID
  10. "amount", //计量
  11. "unit_id", //单位ID
  12. "unit_price", //单价
  13. ];
  14. public $timestamps=false;
  15. public function unit()
  16. { //单位
  17. return $this->hasOne(Unit::class,"id","unit_id");
  18. }
  19. }