using System;
namespace 全自动水压检测仪.DATA
{
///
/// 用户模型类
///
public class User
{
public int Id { get; set; }
public string Username { get; set; }
public string PasswordHash { get; set; }
public string Salt { get; set; }
public int UserRole { get; set; } // 0=普通用户,1=管理员
public int Status { get; set; } // 0=禁用,1=启用
public DateTime CreateTime { get; set; }
public DateTime? UpdateTime { get; set; }
public DateTime? LastLoginTime { get; set; }
}
///
/// 用户角色枚举
///
public enum UserRoleEnum
{
Normal = 0, // 普通用户
Admin = 1 // 管理员
}
}