BankCash.php 718 B

12345678910111213141516171819202122232425262728293031
  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. * 用户银行表 Table<ai_popupshop_bank_cash>
  7. */
  8. namespace app\popupshop\model;
  9. use think\Model;
  10. class BankCash extends Model{
  11. protected $pk = 'id';
  12. protected $table = 'ai_popupshop_bank_cash';
  13. /**
  14. * 绑定的用户
  15. * @return void
  16. */
  17. public function User(){
  18. return $this->hasOne('app\common\model\SystemUser','id','user_id');
  19. }
  20. /**
  21. * 提醒信息
  22. */
  23. public function info(){
  24. return $this->hasOne('BankInfo','user_id','user_id');
  25. }
  26. }