AisVipUser.php 753 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2017 https://www.sapixx.com All rights reserved.
  4. * @license Licensed (http://www.apache.org/licenses/LICENSE-2.0).
  5. * @author pillar<ltmn@qq.com>
  6. * 会员
  7. */
  8. namespace app\ais\model;
  9. use think\Model;
  10. class AisVipUser extends Model{
  11. //关联用户信息
  12. public function user(){
  13. return $this->hasOne('app\common\model\SystemUser','id','uid');
  14. }
  15. //管理店铺
  16. public function store(){
  17. return $this->hasOne('AisStore','manage_uid','uid');
  18. }
  19. //管理会员
  20. public function vip(){
  21. return $this->hasOne('AisVip','id','vip_id');
  22. }
  23. //管理会员
  24. public function bank(){
  25. return $this->hasOne('AisBank','uid','uid');
  26. }
  27. }