AisCardOrder.php 599 B

123456789101112131415161718192021222324252627
  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 AisCardOrder extends Model{
  11. protected $pk = 'id';
  12. /**
  13. * 好店
  14. * @return void
  15. */
  16. public function store(){
  17. return $this->hasOne('AisStore','id','store_id');
  18. }
  19. //用户
  20. public function user(){
  21. return $this->hasOne('app\common\model\SystemUser','id','uid');
  22. }
  23. }