UserOfflineRecharge.php 805 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * @package merchant
  4. *
  5. * @author xaboy
  6. * @day 2020/6/2
  7. *
  8. *
  9. */
  10. namespace app\common\model\user;
  11. use app\common\model\BaseModel;
  12. /**
  13. * 用户线下充值
  14. * Class UserOfflineRecharge
  15. * @package app\common\model\user
  16. * @author php迷途小书童
  17. * @created 2021/1/30 15:57
  18. */
  19. class UserOfflineRecharge extends BaseModel
  20. {
  21. /**
  22. * @return string|null
  23. * @author xaboy
  24. * @day 2020/6/2
  25. */
  26. public static function tablePk(): ?string
  27. {
  28. return 'offline_recharge_id';
  29. }
  30. /**
  31. * @return string
  32. * @author xaboy
  33. * @day 2020/6/2
  34. */
  35. public static function tableName(): string
  36. {
  37. return 'user_offline_recharge';
  38. }
  39. public function user()
  40. {
  41. return $this->hasOne(User::class, 'uid', 'uid');
  42. }
  43. }