using System; using System.Collections.Generic; using zero.Core.Attributes; using zero.Core.Identity; namespace zero.Core.Entities { public class BackofficeUser : ZeroEntity, IBackofficeUser { /// public string Username { get; set; } /// public string CurrentAppId { get; set; } /// public bool IsSuper { get; set; } /// public string Email { get; set; } /// public bool IsEmailConfirmed { get; set; } /// public string PasswordHash { get; set; } /// public string SecurityStamp { get; set; } /// public string AvatarId { get; set; } /// public string LanguageId { get; set; } /// public List RoleIds { get; set; } = new List(); /// public List Claims { get; set; } = new List(); /// public string PasswordResetToken { get; set; } /// public DateTimeOffset? PasswordResetTokenExpirationDate { get; set; } /// public int AccessFailedCount { get; set; } /// public bool LockoutEnabled { get; set; } /// public DateTimeOffset? LockoutEnd { get; set; } ///// //public bool TwoFactorEnabled { get; set; } ///// //public string TwoFactorAuthenticatorKey { get; set; } ///// //public List TwoFactorRecoveryCodes { get; set; } = new List(); } [Collection("BackofficeUsers")] public interface IBackofficeUser : IZeroEntity, IZeroDbConventions, IIdentityUserWithRoles { /// /// Currently selected app id for the backoffice /// public string CurrentAppId { get; set; } /// /// sudo. /// The user who created the instance. /// bool IsSuper { get; set; } /// /// Avatar image /// string AvatarId { get; set; } /// /// Backoffice display language /// string LanguageId { get; set; } } }