12345678910111213141516171819202122232425 |
- <?php
- namespace app\model;
- use think\Model;
- class LotteryLuckyUser extends Model
- {
- public function good()
- {
- return $this->hasOne(LotteryActivityGoods::class, 'id','good_id');
- }
- public function user()
- {
- return $this->hasOne(User::class, 'id','uid');
- }
- public function lotteryuser(){
- return $this->hasOne(LotteryUser::class, 'uid','uid');
- }
- public function emp(){
- return $this->hasOne(Employee::class, 'id','empid');
- }
- }
|