OwnerStoragePriceModel.php 549 B

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