CardUserOrder.php 662 B

12345678910111213141516171819202122232425262728
  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\allwin\model;
  9. use think\Model;
  10. class CardUserOrder extends Model{
  11. protected $pk = 'id';
  12. protected $table = 'ai_allwin_card_user_order';
  13. /**
  14. * 好店
  15. * @return void
  16. */
  17. public function store(){
  18. return $this->hasOne('AllwinStore','id','store_id');
  19. }
  20. //用户
  21. public function user(){
  22. return $this->hasOne('app\common\model\SystemUser','id','user_id');
  23. }
  24. }