| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- namespace plugin\admin\app\model;
- use plugin\admin\app\model\Base;
- /**
- * @property integer $id 主键(主键)
- * @property string $name 昵称
- * @property string $mobile 手机
- * @property string $password 密码
- * @property string $money 收益余额(元)
- * @property string $money_one 慈善钱包(元)
- * @property string $money_two 佣金钱包(元)
- * @property integer $status 禁用
- * @property integer $pid 一级ID
- * @property integer $ppid 二级ID
- * @property integer $toppid 三级ID
- * @property integer $is_autonym 是否实名 0未实名 2已实名
- * @property string $last_time 登录时间
- * @property string $last_ip 登录ip
- * @property string $join_time 注册时间
- * @property string $join_ip 注册ip
- * @property integer $last_login 在线时间戳
- * @property integer $is_app 是否为手机登录
- * @property string $token 登录命令牌
- * @property string $created_at 创建时间
- * @property string $updated_at 更新时间
- */
- class User extends Base
- {
- /**
- * The table associated with the model.
- *
- * @var string
- */
- protected $table = 'wa_users';
- /**
- * The primary key associated with the table.
- *
- * @var string
- */
- protected $primaryKey = 'id';
- public function pidData()
- {
- return $this->hasOne(User::class,'id','pid');
- }
-
-
- }
|