/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.person.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import java.time.LocalDate;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 会员表--小程序端，app端注册的会员信息实体类
 *
 * @author BladeX
 * @since 2021-04-23
 */
@Data
@TableName("app_member")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Member对象", description = "会员表--小程序端，app端注册的会员信息")
public class Member extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 会员姓名（真实姓名）
	*/
		@ApiModelProperty(value = "会员姓名（真实姓名）")
		private String name;
	/**
	* 电话号码
	*/
		@ApiModelProperty(value = "电话号码")
		private String phone;
	/**
	* 登录密码(md5字符串)
	*/
		@ApiModelProperty(value = "登录密码(md5字符串)")
		private String password;
	/**
	* 性别  0-未定义  1-男 2-女
	*/
		@ApiModelProperty(value = "性别  0-未定义  1-男 2-女")
		private Integer sex;
	/**
	* 认证状态：{ 0：未认证，1：待审审核，2：已认证 }
	*/
		@ApiModelProperty(value = "认证状态：{ 0：未认证，1：待审审核，2：已认证 }")
		private Integer state;
	/**
	* 微信小程序openid
	*/
		@ApiModelProperty(value = "微信小程序openid")
		private String openid;
	/**
	* 会员注册来源，0-小程序添加 1-后台添加  2-后台导入 3-app添加
	*/
		@ApiModelProperty(value = "会员注册来源，0-小程序添加 1-后台添加  2-后台导入 3-app添加")
		private Integer createType;
	/**
	* 头像
	*/
		@ApiModelProperty(value = "头像")
		private String headImage;
	/**
	* 生日
	*/
		@ApiModelProperty(value = "生日")
		private LocalDate birthday;
	/**
	* 身份证号码
	*/
		@ApiModelProperty(value = "身份证号码")
		private String idcard;
	/**
	* 注册ip
	*/
		@ApiModelProperty(value = "注册ip")
		private String createIp;
	/**
	* 异常标识，为1时是异常状态
	*/
		@ApiModelProperty(value = "异常标识，为1时是异常状态")
		private Boolean errorFlag;
	/**
	* 启用状态：{1：启用，2：禁用}
	*/
		@ApiModelProperty(value = "启用状态：{1：启用，2：禁用}")
		private Boolean enable;
	/**
	* 手机型号
	*/
		@ApiModelProperty(value = "手机型号")
		private String telType;


}
