| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- /**
- * @package merchant
- *
- * @author xaboy
- * @day 2020/5/30
- *
- *
- */
- namespace app\common\model\merchant\order;
- use app\common\model\BaseModel;
- use app\common\model\system\merchant\Merchant;
- class OrderMerchant extends BaseModel
- {
- public static function tablePk(): string
- {
- return 'id';
- }
- public static function tableName(): string
- {
- return 'order_merchant';
- }
- public function merchant()
- {
- return $this->hasOne(Merchant::class, 'mer_id', 'mer_id');
- }
- }
|