package com.org.hktshop.entity.user;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.org.hktshop.base.BaseModel;
import com.org.hktshop.target01.TableField;
import com.org.hktshop.target01.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("hkt_users")
public class HktUser extends BaseModel {

    @ApiModelProperty("用户名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("昵称")
    @TableField("nickname")
    private String nickname;

//    @ApiModelProperty("客户编号")
//    @TableField("user_sn")
//    private String userSn;

    @ApiModelProperty("手机号码")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty("采用md5加密")
    @TableField("password")
    @JsonIgnore
    private String password;


    @TableField("belong")
    private String belong;


    @ApiModelProperty("邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("0保密 1男 2女")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty("生日 转时间戳")
    @TableField("birthday")
    private Integer birthday;

    @ApiModelProperty("身份证号码")
    @TableField("card_id")
    private String cardId;

    @ApiModelProperty("默认收获地址")
    @TableField("address_id")
    private String addressId;

//    @ApiModelProperty("qq")
//    @TableField("qq")
//    private String qq;

//    @ApiModelProperty("是否验证了手机号码 1验证 其他未验证")
//    @TableField("mobile_validated")
//    private Integer mobileValidated;

    @ApiModelProperty("注册类型 0未知  1个人 2企业")
    @TableField("reg_type")
    private String regType;

//    @ApiModelProperty("用户类型 1真实用户 0 虚拟用户")
//    @TableField("user_type")
//    private Integer userType;

    @ApiModelProperty("联系人")
    @TableField("contacts")
    private String contacts;

    @ApiModelProperty("来源 0 pc 1微信 2qq")
    @TableField("from_type")
    private Integer fromType;

//    @ApiModelProperty("第三方来源 wx/qq")
//    @TableField("oauth")
//    private String oauth;

    @ApiModelProperty("微信公众号id")
    @TableField("open_id1")
    private String openId1;

//    @ApiModelProperty("第三方 唯一标识")
//    @TableField("open_id2")
//    private String openId2;

//    @ApiModelProperty("qq 登陆标识")
//    @TableField("open_id3")
//    private String openId3;

    @ApiModelProperty("头像")
    @TableField("head_img")
    private String headImg;

//    @ApiModelProperty("省份id")
//    @TableField("province")
//    private Integer province;

//    @ApiModelProperty("城市id")
//    @TableField("city")
//    private Integer city;

//    @ApiModelProperty("街道id")
//    @TableField("district")
//    private Integer district;

    @ApiModelProperty("是否验证电子邮件")
    @TableField("email_validated")
    private Integer emailValidated;

//    @ApiModelProperty("升级效果识别状态")
//    @TableField("last_levels")
//    private Integer lastLevels;

    @ApiModelProperty("会员等级 1青铜 2黄金 3铂金 4砖石 5星耀 6皇冠")
    @TableField("level")
    private Integer level;

//    @ApiModelProperty("会员积分")
//    @TableField("active_point")
//    private Integer activePoint;

    @ApiModelProperty("经验积分")
    @TableField("empirical_point")
    private Integer empiricalPoint;

    @ApiModelProperty("消费积分")
    @TableField("consume_point")
    private Integer consumePoint;

    @ApiModelProperty("总积分")
    @TableField("total_point")
    private Integer totalPoint;

//    @ApiModelProperty("是否锁定 1 锁定 其他 正常")
//    @TableField("is_lock")
//    private Integer isLock;

    @ApiModelProperty("最后一次登录时间")
    @TableField("last_login")
    private String lastLogin;
//
//    @ApiModelProperty("最后登录ip")
//    @TableField("last_ip")
//    private String lastIp;

    @ApiModelProperty("用户订单数")
    @TableField("order_num")
    private Integer orderNum;

    @ApiModelProperty("用户消费金额")
    @TableField("total_amount")
    private String totalAmount;

    @ApiModelProperty("注册时间")
    @TableField("create_time")
    private String createTime;

    @ApiModelProperty("修改时间")
    @TableField("modify_time")
    private String modifyTime;

    @ApiModelProperty("公司名称")
    @TableField("company")
    private String company;

    @TableField("occupation")
    private String occupation;

    @TableField("industry")
    private String industry;

    @TableField("sys_type")
    private Integer sysType;

    @ApiModelProperty("收藏的商品数量")
    private Integer favoriteGoodsNum;

    @ApiModelProperty("升级条件")
    private String LevelRemark;
    @ApiModelProperty("等級积分 百分比")
    private Double levelMin;
}
