OwnerStoreOutFeeReport.php 843 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. use App\Traits\ModelLogChanging;
  5. use Illuminate\Database\Eloquent\Relations\BelongsTo;
  6. class OwnerStoreOutFeeReport extends Model
  7. {
  8. use ModelLogChanging;
  9. public $fillable = [
  10. 'owner_bill_report_id',
  11. 'counting_month',
  12. 'step', //阶梯
  13. 'unit_id',
  14. 'unit_price',//单价
  15. 'amount', //数量
  16. 'owner_id',
  17. 'work_name',//作业名称
  18. 'fee',//费用
  19. ];
  20. public $timestamps = false;
  21. public function ownerBillReport(): BelongsTo
  22. {
  23. return $this->belongsTo(OwnerBillReport::class);
  24. }
  25. public function unit(): BelongsTo
  26. {
  27. return $this->belongsTo(Unit::class);
  28. }
  29. public function owner(): BelongsTo
  30. {
  31. return $this->belongsTo(Owner::class);
  32. }
  33. }