Files
FullAutoWaterCheck/全自动水压检测仪/DATA/User.cs
2026-01-26 18:47:27 +08:00

30 lines
796 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
namespace .DATA
{
/// <summary>
/// 用户模型类
/// </summary>
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; }
}
/// <summary>
/// 用户角色枚举
/// </summary>
public enum UserRoleEnum
{
Normal = 0, // 普通用户
Admin = 1 // 管理员
}
}