|
|
using SqlSugar;
|
|
|
using System;
|
|
|
using System.ComponentModel;
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
namespace GDZZ.Core.Entity;
|
|
|
|
|
|
/// <summary>
|
|
|
/// 用户表
|
|
|
/// </summary>
|
|
|
[SugarTable("sys_user")]
|
|
|
[Description("用户表")]
|
|
|
public class SysUser : DBEntityTenant
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 账号
|
|
|
/// </summary>
|
|
|
[Required, MaxLength(20)]
|
|
|
[SugarColumn(ColumnDescription = "账号")]
|
|
|
public string Account { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 密码(默认MD5加密)
|
|
|
/// </summary>
|
|
|
[Required, MaxLength(50)]
|
|
|
[SugarColumn(ColumnDescription = "密码(默认MD5加密)")]
|
|
|
public string Password { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 昵称
|
|
|
/// </summary>
|
|
|
[MaxLength(20)]
|
|
|
[SugarColumn(ColumnDescription = "昵称", IsNullable = true)]
|
|
|
public string NickName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 姓名
|
|
|
/// </summary>
|
|
|
[MaxLength(20)]
|
|
|
[SugarColumn(ColumnDescription = "姓名", IsNullable = true)]
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 头像
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "头像", IsNullable = true)]
|
|
|
public string Avatar { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 生日
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "生日", IsNullable = true)]
|
|
|
public DateTime Birthday { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 性别-男_1、女_2
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "性别-男_1、女_2")]
|
|
|
public Gender Sex { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 邮箱
|
|
|
/// </summary>
|
|
|
[MaxLength(20)]
|
|
|
[SugarColumn(ColumnDescription = "邮箱", IsNullable = true)]
|
|
|
public string Email { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 手机
|
|
|
/// </summary>
|
|
|
[MaxLength(20)]
|
|
|
[SugarColumn(ColumnDescription = "手机", IsNullable = true)]
|
|
|
public string Phone { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 电话
|
|
|
/// </summary>
|
|
|
[MaxLength(20)]
|
|
|
[SugarColumn(ColumnDescription = "电话", IsNullable = true)]
|
|
|
public string Tel { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 最后登录IP
|
|
|
/// </summary>
|
|
|
[MaxLength(20)]
|
|
|
[SugarColumn(ColumnDescription = "最后登录IP", IsNullable = true)]
|
|
|
public string LastLoginIp { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 最后登录时间
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "最后登录时间", IsNullable = true)]
|
|
|
public DateTime LastLoginTime { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 管理员类型-超级管理员_1、非管理员_2
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "管理员类型-超级管理员_1、非管理员_2")]
|
|
|
public AdminType? AdminType { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 状态-正常_0、停用_1、删除_2
|
|
|
/// </summary>
|
|
|
[SugarColumn(ColumnDescription = "状态-正常_0、停用_1、删除_2")]
|
|
|
public CommonStatus Status { get; set; } = CommonStatus.ENABLE;
|
|
|
}
|