namespace WinStudentGoalTracker.DataAccess;

public class dbRefreshToken
{
    public Guid IdRefreshToken { get; set; }
    public Guid IdUser { get; set; }
    public Guid IdProgram { get; set; }
    public required string TokenHash { get; set; }
    public required string TokenSalt { get; set; }
    public DateTime ExpiresAt { get; set; }
    public DateTime LastUsedAt { get; set; }
    public DateTime? RevokedAt { get; set; }
    public string? DeviceInfo { get; set; }
    public string? UserAgent { get; set; }
    public Guid? ReplacedByTokenId { get; set; }
    public DateTime CreatedAt { get; set; }
    public DateTime UpdatedAt { get; set; }
}
