This commit is contained in:
Dhananjaya99
2026-07-08 11:11:50 +05:30
parent 2cd2741f77
commit de7b40a147
51 changed files with 6839 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
namespace AuthHex.Models;
public class UserMfa
{
public Guid UserMfaId { get; set; }
public Guid UserId { get; set; }
public User User { get; set; } = null!;
public string? SecretKey { get; set; } // encrypted
public bool? IsEnabled { get; set; }
public bool? IsVerified { get; set; } = false;
public string? BackupCodes { get; set; } // JSON array of backup codes
public DateTime? LastUsedAt { get; set; }
public DateTime? VerifiedAt { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime? UpdatedAt { get; set; }
}