OwnerOutStorageRule.php 619 B

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