| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- /**
- * @package merchant
- *
- * @author xaboy
- * @day 2020/5/27
- *
- *
- */
- namespace app\common\model\user;
- use app\common\model\BaseModel;
- use app\common\model\store\product\Product;
- class UserVisit extends BaseModel
- {
- public static function tablePk(): ?string
- {
- return 'user_visit_id';
- }
- public static function tableName(): string
- {
- return 'user_visit';
- }
- public function product()
- {
- return $this->hasOne(Product::class,'product_id','type_id');
- }
- }
|