2025-07-19 09:25:01 +08:00
|
|
|
|
namespace DMS.Core.Models;
|
2025-06-20 18:53:29 +08:00
|
|
|
|
|
2025-07-21 14:35:17 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 领域模型:代表一个用户。
|
|
|
|
|
|
/// </summary>
|
2025-06-20 18:53:29 +08:00
|
|
|
|
public class User
|
|
|
|
|
|
{
|
2025-07-15 22:18:37 +08:00
|
|
|
|
public int Id { get; set; }
|
2025-07-21 14:35:17 +08:00
|
|
|
|
public string Username { get; set; }
|
|
|
|
|
|
public string PasswordHash { get; set; } // 存储密码哈希值
|
|
|
|
|
|
public string Role { get; set; } // 用户角色,例如 "Admin", "Operator"
|
|
|
|
|
|
public bool IsActive { get; set; }
|
2025-06-20 18:53:29 +08:00
|
|
|
|
}
|