MerchantIntention.php 697 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * @package merchant
  4. *
  5. * @author Qinii
  6. * @day 2020-07-18
  7. *
  8. *
  9. */
  10. namespace app\common\model\system\merchant;
  11. use app\common\model\BaseModel;
  12. class MerchantIntention extends BaseModel
  13. {
  14. /**
  15. * @return string
  16. * @author xaboy
  17. * @day 2020-03-30
  18. */
  19. public static function tablePk(): string
  20. {
  21. return 'mer_intention_id';
  22. }
  23. /**
  24. * @return string
  25. * @author xaboy
  26. * @day 2020-03-30
  27. */
  28. public static function tableName(): string
  29. {
  30. return 'merchant_intention';
  31. }
  32. public function merchantCate()
  33. {
  34. return $this->hasOne(MerchantCategory::class, 'merchant_category_id', 'cate_id');
  35. }
  36. }