MerchantHaikeApply.php 838 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * @package merchant
  4. *
  5. * @author xaboy
  6. * @day 2020/5/30
  7. *
  8. *
  9. */
  10. namespace app\common\model\merchant\apply;
  11. use app\common\model\BaseModel;
  12. use app\common\model\system\merchant\Merchant;
  13. use app\common\model\user\User;
  14. /**
  15. * 申请海科业务模型
  16. * Class MerchantHaikeApply
  17. * @package app\common\model\merchant\apply
  18. * @author php迷途小书童
  19. * @created 2021/1/28 14:30
  20. */
  21. class MerchantHaikeApply extends BaseModel
  22. {
  23. public static function tablePk(): ?string
  24. {
  25. return 'id';
  26. }
  27. public static function tableName(): string
  28. {
  29. return 'merchant_haike_apply';
  30. }
  31. public function merchant()
  32. {
  33. return $this->hasOne(Merchant::class, 'mer_id', 'mer_id');
  34. }
  35. public function user()
  36. {
  37. return $this->hasOne(User::class, 'uid', 'uid');
  38. }
  39. }