RemittanceRecord.php 893 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: shenyang
  5. * Date: 2018/6/8
  6. * Time: 下午4:15
  7. */
  8. namespace app\common\models;
  9. use app\common\traits\HasProcessTrait;
  10. use Illuminate\Database\Eloquent\Collection;
  11. /**
  12. * Class TransferRecord
  13. * @package app\common\models
  14. * @property string report_url
  15. * @property int process_id
  16. * @property Process process
  17. * @property OrderPay orderPay
  18. */
  19. class RemittanceRecord extends BaseModel
  20. {
  21. use HasProcessTrait;
  22. protected $table = 'yz_remittance_record';
  23. protected $guarded = ['id'];
  24. /**
  25. * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
  26. */
  27. public function orderPay()
  28. {
  29. return $this->belongsTo(OrderPay::class);
  30. }
  31. /**
  32. * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
  33. */
  34. public function member()
  35. {
  36. return $this->belongsTo(Member::class, 'uid');
  37. }
  38. }