| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhUser".
- *
- * @property int $id
- * @property string $mobile 手机号
- * @property string $avatar 头像
- * @property string $userName 用户的名称,昵称,显示的名字
- * @property string $realName 真实姓名
- * @property int $sex 性别 0未知 1男性2女性
- * @property string $birthday
- * @property string $password 密码
- * @property string $payPassword 支付密码
- * @property string $openId 微信openid
- * @property string $unionId 微信同一个开放平台下(网站应用,公众号等)用户唯一标识
- * @property string $alipayId 支付宝id
- * @property int $isFull 用户信息是否完整 0完整 1不完整,通过扫码付款生成的用户有不完整的情况
- * @property int $merchantId 商户id
- * @property int $isMember 是否会员
- * @property int $subscribe 是否关注平台 0未关注 1关注
- * @property int $hasSubscribe 关注历史 0没有关注过公众号 1有关注过
- * @property string $tag 标签id列表
- * @property string $province 省
- * @property string $city 市
- * @property string $dist 区县
- * @property string $address 详细街道地址
- * @property string $addLat 纬度
- * @property string $addLong 经度
- * @property string $addPrecision 精度
- * @property int $status 帐户状态 0正常 1冻结
- * @property string $remark 商家对用户的备注信息
- * @property string $createTime 创建时间
- * @property string $updateTime
- * @property int $subscribeTime 关注时间
- */
- class xhUser extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhUser';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['sex', 'isFull', 'merchantId', 'isMember','source', 'identity', 'subscribe', 'hasSubscribe', 'status', 'subscribeTime','addTime'], 'integer'],
- [['birthday', 'createTime', 'updateTime'], 'safe'],
- [['createTime'], 'required'],
- [['mobile'], 'string', 'max' => 15],
- [['avatar'], 'string', 'max' => 200],
- [['userName', 'realName', 'alipayId'], 'string', 'max' => 50],
- [['password', 'payPassword'], 'string', 'max' => 64],
- [['openId','miniOpenId', 'unionId'], 'string', 'max' => 100],
- [['tag'], 'string', 'max' => 500],
- [['province', 'city', 'dist', 'address', 'addLat', 'addLong', 'addPrecision'], 'string', 'max' => 20],
- [['remark'], 'string', 'max' => 1000],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mobile' => 'Mobile',
- 'avatar' => 'Avatar',
- 'userName' => 'User Name',
- 'realName' => 'Real Name',
- 'sex' => 'Sex',
- 'birthday' => 'Birthday',
- 'password' => 'Password',
- 'payPassword' => 'Pay Password',
- 'openId' => 'Open ID',
- 'unionId' => 'Union ID',
- 'alipayId' => 'Alipay ID',
- 'isFull' => 'Is Full',
- 'merchantId' => 'Merchant ID',
- 'isMember' => 'Is Member',
- 'identity' => 'identity',
- 'miniOpenId' => 'miniOpenId',
- 'subscribe' => 'Subscribe',
- 'hasSubscribe' => 'has Subscribe',
- 'tag' => 'Tag',
- 'province' => 'Province',
- 'city' => 'City',
- 'dist' => 'Dist',
- 'address' => 'Address',
- 'addLat' => 'Add Lat',
- 'addLong' => 'Add Long',
- 'addPrecision' => 'Add Precision',
- 'status' => 'Status',
- 'source' => 'source',
- 'addTime' => 'addTime',
- 'remark' => 'Remark',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- 'subscribeTime' => 'Subscribe Time',
- ];
- }
- }
|