Add project files.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
namespace Media.JoshHeaps.Net.Models;
|
||||
|
||||
public class UserLoginInfo
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string Email { get; set; } = string.Empty;
|
||||
public string Username { get; set; } = string.Empty;
|
||||
public bool IsActive { get; set; }
|
||||
public bool EmailVerified { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
namespace Media.JoshHeaps.Net.Models;
|
||||
|
||||
public class UserProfile
|
||||
{
|
||||
public long UserId { get; set; }
|
||||
public string? Bio { get; set; }
|
||||
public string? AvatarUrl { get; set; }
|
||||
public string? Location { get; set; }
|
||||
public string? Website { get; set; }
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
}
|
||||
|
||||
public class UserDashboard
|
||||
{
|
||||
public long UserId { get; set; }
|
||||
public string Username { get; set; } = string.Empty;
|
||||
public string Email { get; set; } = string.Empty;
|
||||
public bool EmailVerified { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime? LastLogin { get; set; }
|
||||
public UserProfile Profile { get; set; } = new();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace Media.JoshHeaps.Net.Models;
|
||||
|
||||
public class UserRow
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string Email { get; set; } = string.Empty;
|
||||
public string Username { get; set; } = string.Empty;
|
||||
public string PasswordHash { get; set; } = string.Empty;
|
||||
public bool IsActive { get; set; }
|
||||
public bool EmailVerified { get; set; }
|
||||
public int FailedAttempts { get; set; }
|
||||
public DateTime? LockedUntil { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user