using SqlSugar;
using System;
namespace OrmTest
{
///
/// 后台用户信息表
///
public class TB_AdminUser
{
///
/// 后台用户信息表
///
public TB_AdminUser()
{
}
///
/// 后台用户信息表
///
/// 是否给ID赋值
public TB_AdminUser(bool setid)
{
}
///
/// 后台用户ID, 主键
///
[SugarColumn(IsPrimaryKey = true) ]
public System.Int64 ID { get; set; }
///
/// 用户真实姓名
///
public System.String Name { get; set; }
///
/// 用户职称
///
public System.String JobTitle { get; set; }
///
/// 用户手机号, 亦为登录后台系统的账号
///
public System.String Phone { get; set; }
///
/// 登录密码, MD5加密的, 32位
///
public string Password { get; set; }
///
/// 所属部门ID, 逻辑关联TB_AdminDepartment表的ID
///
public System.Int64 AdminDepartmentID { get; set; }
///
/// 角色ID, 逻辑关联TB_AdminRole表的ID
///
public System.Int64 AdminRoleID { get; set; }
///
/// 用户状态. -1: 离职停用, 0: 冻结, 1: 正常
///
public AdminUserStatus Status { get; set; }
///
/// 备注.
///
public System.String Remarks { get; set; }
///
/// 创建后台用户ID, 逻辑关联TB_AdminUser表的ID
///
public System.Int64 CreateAdminUserID { get; set; }
///
/// 创建时间
///
public System.DateTime CreateDateTime { get; set; }
///
/// 最后修改后台用户ID, 逻辑关联TB__AdminUser表的ID
///
public System.Int64 ModifyAdminUserID { get; set; }
///
/// 最后修改时间
///
public System.DateTime ModifyDateTime { get; set; }
///
/// 最后登录时间, null未登录过
///
public System.DateTime? LastLoginDateTime { get; set; }
///
/// 累计登录次数
///
public System.Int32 LoginCount { get; set; }
///
/// 最后修改密码的时间
///
public DateTime ModifyPasswordDateTime { get; set; }
///
/// 后台用户信息表状态枚举
/// -1: 离职停用, 0: 冻结, 1: 正常
///
public enum AdminUserStatus : sbyte
{
///
/// 离职 (停用, 类似删除)
///
Dimission = -1,
///
/// 冻结, 无法登录
///
Freeze = 0,
///
/// 正常
///
Normal = 1
}
}
}