User.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace plugin\admin\app\model;
  3. use plugin\admin\app\model\Base;
  4. /**
  5. * @property integer $id 主键(主键)
  6. * @property string $name 昵称
  7. * @property string $mobile 手机
  8. * @property string $password 密码
  9. * @property string $money 收益余额(元)
  10. * @property string $money_one 慈善钱包(元)
  11. * @property string $money_two 佣金钱包(元)
  12. * @property integer $status 禁用
  13. * @property integer $pid 一级ID
  14. * @property integer $ppid 二级ID
  15. * @property integer $toppid 三级ID
  16. * @property integer $is_autonym 是否实名 0未实名 2已实名
  17. * @property string $last_time 登录时间
  18. * @property string $last_ip 登录ip
  19. * @property string $join_time 注册时间
  20. * @property string $join_ip 注册ip
  21. * @property integer $last_login 在线时间戳
  22. * @property integer $is_app 是否为手机登录
  23. * @property string $token 登录命令牌
  24. * @property string $created_at 创建时间
  25. * @property string $updated_at 更新时间
  26. */
  27. class User extends Base
  28. {
  29. /**
  30. * The table associated with the model.
  31. *
  32. * @var string
  33. */
  34. protected $table = 'wa_users';
  35. /**
  36. * The primary key associated with the table.
  37. *
  38. * @var string
  39. */
  40. protected $primaryKey = 'id';
  41. public function pidData()
  42. {
  43. return $this->hasOne(User::class,'id','pid');
  44. }
  45. }