package com.yh.saas.plugin.yiliangyiyun.entity;

import com.baomidou.mybatisplus.activerecord.Model;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;

import com.baomidou.mybatisplus.enums.IdType;
import com.yh.saas.common.support.entity.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author Gongdc
 * @since 2021-07-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("common_user")
public class CommonUser extends BaseModel<CommonUser> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 密码
     */
    private String password;
    /**
     * 角色ID
     */
    private String roleIds;
    /**
     * 头像
     */
    private String avatarUrl;
    /**
     * 用户名
     */
    private String userName;
    /**
     * 状态：1 正常 0 冻结
     */
    private Integer status;
    /**
     * 签名图片
     */
    private String signImg;
    /**
     * 微信号
     */
    private String wechatNo;
    /**
     * 所属公司ID
     */
    private String companyId;
    /**
     * 登录token
     */
    private String accessToken;
    /**
     * 粮信userID
     */
    private String liangxinId;
    /**
     * 推送id
     */
    private String cid;
    /**
     * 注册码
     */
    @TableField(exist = false)
    private String verifyCode;

    /**
     * 身份信息
     */
    @TableField(exist = false)
    private String  identityFlag ;

    /**
     * 身份信息
     */
    @TableField(exist = false)
    private String  driverFlag ;

    /**
     * biaoshi
     */
    @TableField(exist = false)
    private String flag;
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
