package com.red.circle.console.infra.database.rds.entity.admin;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.red.circle.console.infra.database.rds.enums.StatusEnum;
import com.red.circle.framework.mybatis.entity.TimestampBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 系统用户表.
 * </p>
 *
 * @author pengliang
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("sys_user")
public class User extends TimestampBaseEntity {

  private static final long serialVersionUID = 1L;

  @TableId(value = "uid", type = IdType.AUTO)
  private Integer id;

  /**
   * 登陆名
   */
  private String loginName;
  /**
   * 登陆名
   */
  private String password;
  /**
   * 昵称
   */
  private String nickname;

  /**
   * 邮箱
   */
  private String email;

  /**
   * 手机
   */
  private String phone;
  /**
   * IP地址
   */
  private String ip;

  /**
   * 状态 0：禁用 1：正常
   */
  private StatusEnum status;

}
