package com.sqx.modules.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 用户
 *
 */
@Data
@ApiModel("用户")
@TableName("tb_user")
public class UserEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 用户ID
	 */
	@ApiModelProperty("用户id")
	@TableId(type = IdType.AUTO,value = "user_id")
	private Long userId;

	/**
	 * 用户类型 1普通用户  2技师
	 */
	@ApiModelProperty("用户类型 1普通用户  2技师")
	@TableField("type")
	private Integer type;


	/**
	 * 用户名
	 */
	@ApiModelProperty("用户名")
	@TableField("user_name")
	private String userName;

	/**
	 * 手机号
	 */
	@ApiModelProperty("手机号")
	private String phone;

	/**
	 * 头像
	 */
	@ApiModelProperty("头像")
	private String avatar;
	/**
	 * 扫码渠道
	 */
	@ApiModelProperty("扫码渠道")
	private String scanningChannel;
	/**
	 * 性别 1男 2女
	 */
	@ApiModelProperty("性别 1男 2女")
	private Integer sex;
	/**
	 * 年龄
	 */
	@ApiModelProperty("年龄")
	private Integer age;

	/**
	 * 微信小程序openid
	 */
	@ApiModelProperty("微信小程序openid")
	@TableField("open_id")
	private String openId;

	private String artificerOpenId;

	/**
	 * 微信app openid
	 */
	@ApiModelProperty("微信公众号openid")
	@TableField("wx_open_id")
	private String wxOpenId;

	/**
	 * 密码
	 */
	private String password;

	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private String createTime;

	/**
	 * 更新时间
	 */
	@TableField("update_time")
	private String updateTime;

	/**
	 * 苹果id
	 */
	@TableField("apple_id")
	private String appleId;

	/**
	 * 手机类型 1安卓 2ios
	 */
	@TableField("sys_phone")
	private Integer sysPhone;

	/**
	 * 状态 1正常 2禁用
	 */
	private Integer status;

	/**
	 * 来源 app 小程序 公众号
	 */
	private String platform;

	/**
	 * 积分
	 */
	private Integer jifen;

	/**
	 * 邀请码
	 */
	@TableField("invitation_code")
	private String invitationCode;

	/**
	 * 邀请人邀请码
	 */
	@TableField("inviter_code")
	private String inviterCode;

	private String clientid;

	private String zhiFuBao;

	private String zhiFuBaoName;

	/**
	 * 0未认证  1个人认证审核中  2个人认证成功  3个人认证失败
	 */
	private Integer isAuthentication;

	/**
	 * 保证金状态  1待缴纳 2已缴纳 3申请退款中
	 */
	private Integer isCashDeposit;

	/**
	 * 申请时间
	 */
	private String cashDepositTime;

	/**
	 * 是否领取新人优惠券
	 */
	private Integer isCoupon;

	private Integer risk;

	/**
	 * 申请代理商
	 */
	private Integer isAgency;

	private BigDecimal userRate;

	private BigDecimal shopRate;

	/**
	 * 公会id
	 */
	private Long consortiaId;

	/**
	 * 是否是商家 1是
	 */
	private Integer isShop;

	/**
	 *  银行卡号
	 */
	private String bankCard;

	/**
	 * 银行名称
	 */
	private String bankCardName;

	/**
	 * 银行卡用户名
	 */
	private String bankCardUserName;

	/**
	 * 银行卡开户行地址
	 */
	private String bankCardAddress;

	/**
	 * 扫二维码注册用户绑定商家ID
	 */
	private String bindingConsortiaId;

	@TableField(exist = false)
	private Integer member;
	@TableField(exist = false)
	private Integer scanningChannelCount;

	@TableField(exist = false)
	private Integer ordersCount;

	@TableField(exist = false)
	private String vipEndTime;

	@TableField(exist = false)
	private BigDecimal money;

	@TableField(exist = false)
	private String shopName;

	@TableField(exist = false)
	private Long artificerId;

	@TableField(exist = false)
	private String artificerName;


	@TableField(exist = false)
	private String loglattime;

	@TableField(exist = false)
	private String loglataddress;

	private String blJjrCode;
	private BigDecimal blJjrRate;

	@TableField(exist = false)
	private String jjrName;

}
