MchIdUser.php 612 B

12345678910111213141516171819202122232425
  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 MchIdUser extends Model{
  11. protected $pk = 'id';
  12. protected $table = 'ai_allwin_mch_user';
  13. //商家
  14. public function store(){
  15. return $this->hasOne('AllwinStore','id','store_id');
  16. }
  17. //用户
  18. public function user(){
  19. return $this->hasOne('app\common\model\SystemUser','id','uid');
  20. }
  21. }