DayAgentGameCountryVipModel.php 774 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * DayPayModel.php UTF-8
  4. *
  5. *
  6. * @date : 2017/12/18 11:41
  7. *
  8. * @license 这不是一个自由软件,未经授权不许任何使用和传播。
  9. * @author : liguanglong <lgl@huosdk.com>
  10. * @version : HUOSDK 8.0
  11. */
  12. namespace huo\model\data;
  13. use huo\model\common\CommonModel;
  14. class DayAgentGameCountryVipModel extends CommonModel {
  15. protected $name = 'day_agent_game_country_vip';
  16. public function game(){
  17. return $this->hasOne('huo\model\game\GameModel', 'id', 'app_id');
  18. }
  19. public function country(){
  20. return $this->hasOne('huo\model\district\CountryConfModel', 'mobile_prefix', 'mobile_prefix');
  21. }
  22. public function agent(){
  23. return $this->hasOne('huo\model\user\UserModel', 'id', 'agent_id');
  24. }
  25. }