| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- /**
- * @package merchant
- *
- * @author xaboy
- * @day 2020/5/30
- *
- *
- */
- namespace app\common\model\merchant\apply;
- use app\common\model\BaseModel;
- use app\common\model\system\merchant\Merchant;
- use app\common\model\user\User;
- /**
- * 申请海科业务模型
- * Class MerchantHaikeApply
- * @package app\common\model\merchant\apply
- * @author php迷途小书童
- * @created 2021/1/28 14:30
- */
- class MerchantHaikeApply extends BaseModel
- {
- public static function tablePk(): ?string
- {
- return 'id';
- }
- public static function tableName(): string
- {
- return 'merchant_haike_apply';
- }
- public function merchant()
- {
- return $this->hasOne(Merchant::class, 'mer_id', 'mer_id');
- }
- public function user()
- {
- return $this->hasOne(User::class, 'uid', 'uid');
- }
- }
|