first commit

This commit is contained in:
Dhananjaya99
2026-09-28 11:51:12 +05:30
commit 73056da0d5
57 changed files with 7654 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
using System.ComponentModel.DataAnnotations;
namespace AuthHex.Models
{
public class Token
{
public Guid TokenId { get; set; }
public Guid UserId { get; set; }
public User? User { get; set; }
public string? TokenHash { get; set; }
public string? Type { get; set; } // email verify, password reset, etc.
public DateTime ExpiresAt { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime? UsedAt { get; set; }
}
}