Store.php 551 B

123456789101112131415161718192021222324
  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. * 判断是否VIP
  7. */
  8. namespace app\popupshop\model;
  9. use think\Model;
  10. class Store extends Model{
  11. protected $pk = 'id';
  12. protected $table = 'ai_popupshop_store';
  13. /**
  14. * 所属用户信息
  15. * @return void
  16. */
  17. Public function user()
  18. {
  19. return $this->hasOne('app\common\model\SystemUser','id','uid');
  20. }
  21. }