OwnerStoragePriceModel.php 610 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. use App\Traits\LogModelChanging;
  5. class OwnerStoragePriceModel extends Model
  6. {
  7. use LogModelChanging;
  8. protected $fillable = [
  9. "counting_type", //计费类型
  10. "using_type", //用仓类型
  11. "minimum_area", //最低起租面积
  12. "price", //单价
  13. "discount_type", //减免类型
  14. "discount_value", //减免值
  15. "unit_id", //单位ID
  16. ];
  17. public function unit()
  18. { //单位
  19. return $this->hasOne(Unit::class,"id","unit_id");
  20. }
  21. }