| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- /**
- * @package merchant
- *
- * @author Qinii
- * @day 2020-07-18
- *
- *
- */
- namespace app\common\model\system\merchant;
- use app\common\model\BaseModel;
- class MerchantIntention extends BaseModel
- {
- /**
- * @return string
- * @author xaboy
- * @day 2020-03-30
- */
- public static function tablePk(): string
- {
- return 'mer_intention_id';
- }
- /**
- * @return string
- * @author xaboy
- * @day 2020-03-30
- */
- public static function tableName(): string
- {
- return 'merchant_intention';
- }
- public function merchantCate()
- {
- return $this->hasOne(MerchantCategory::class, 'merchant_category_id', 'cate_id');
- }
- }
|