* Maintain DataModel for User, Role, Function and UserRole
This commit is contained in:
23
OrdersManagementDataModel/Entities/User.cs
Normal file
23
OrdersManagementDataModel/Entities/User.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
namespace OrdersManagementDataModel.Entities;
|
||||
|
||||
public class User
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Login { get; set; }
|
||||
public string PasswordHash { get; set; }
|
||||
public bool IsTemporaryPassword { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public DateTime? ActiveFrom { get; set; }
|
||||
public DateTime? ActiveTo { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string FirstName { get; set; }
|
||||
public string LastName { get; set; }
|
||||
public DateTime CreatedDate { get; set; }
|
||||
public DateTime? LastLoginDate { get; set; }
|
||||
public int FailedLoginAttempts { get; set; }
|
||||
public bool IsLocked { get; set; }
|
||||
public DateTime? LockoutEndDate { get; set; }
|
||||
public Guid RowPointer { get; set; }
|
||||
|
||||
public ICollection<UserRole> UserRoles { get; set; } = new List<UserRole>();
|
||||
}
|
||||
Reference in New Issue
Block a user