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