using Microsoft.AspNetCore.Identity;

namespace Marco.Pms.Model.Authentication
{
    public class RefreshToken
    {
        public Guid Id { get; set; }
        public string? Token { get; set; }
        public string? UserId { get; set; }
        public DateTime ExpiryDate { get; set; }
        public bool IsRevoked { get; set; }
        public bool IsUsed { get; set; }
        public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
        public DateTime? RevokedAt { get; set; }


        // Relationship with the User
        public IdentityUser? User { get; set; }
    }
}
