Added ObjectAttribute interface & classes

This commit is contained in:
Max
2024-07-27 12:49:45 +02:00
parent 5341179e94
commit c7d654a0ba
7 changed files with 63 additions and 4 deletions

View File

@@ -1,14 +1,31 @@
using DotBased.ASP.Auth.Domains.Auth;
using DotBased.Objects;
namespace DotBased.ASP.Auth.Domains.Identity;
public class UserModel
{
public string UserName { get; set; } = string.Empty;
public string PasswordHash { get; set; } = string.Empty;
public string Email { get; set; } = string.Empty;
public string PhoneNumber { get; set; } = string.Empty;
public string Name { get; set; } = string.Empty;
public string FamilyName { get; set; } = string.Empty;
public DateTime Dob { get; set; }
public string Id { get; set; } = Guid.NewGuid().ToString();
public string PasswordHash { get; set; } = string.Empty;
public string[] GroupIds { get; set; } = Array.Empty<string>();
public string[] Roles { get; set; } = Array.Empty<string>();
public bool Enabled { get; set; }
public bool EmailValidated { get; set; }
public bool PhoneNumberConfirmed { get; set; }
public bool Lockout { get; set; }
public DateTime LockoutEnd { get; set; }
public DateTime CreationStamp { get; set; }
public DateTime SecurityStamp { get; set; }
public DateTime ConcurrencyStamp { get; set; }
public int AccessFailedCount { get; set; }
public bool ExternalAuthentication { get; set; }
public List<GroupModel> Groups { get; set; } = [];
public List<RoleModel> Roles { get; set; } = [];
public List<DbObjectAttribute<IConvertible>> Attributes { get; set; } = [];
}