using TakeoutSaaS.Shared.Abstractions.Entities; namespace TakeoutSaaS.Domain.Identity.Entities; /// /// 管理后台账户实体(平台、租户或商户员工)。 /// public sealed class IdentityUser : IMultiTenantEntity { /// /// 用户 ID。 /// public Guid Id { get; set; } /// /// 登录账号。 /// public string Account { get; set; } = string.Empty; /// /// 展示名称。 /// public string DisplayName { get; set; } = string.Empty; /// /// 密码哈希。 /// public string PasswordHash { get; set; } = string.Empty; /// /// 所属租户。 /// public Guid TenantId { get; set; } /// /// 所属商户(平台管理员为空)。 /// public Guid? MerchantId { get; set; } /// /// 角色集合。 /// public string[] Roles { get; set; } = Array.Empty(); /// /// 权限集合。 /// public string[] Permissions { get; set; } = Array.Empty(); /// /// 头像地址。 /// public string? Avatar { get; set; } }