Newsbot.Collector/Newsbot.Collector.Domain/Entities/RefreshTokenEntity.cs
James Tombleson 4cacc03fb8
Some checks failed
continuous-integration/drone/pr Build is failing
Getting things setup to support token refresh
2023-07-10 22:41:39 -07:00

21 lines
599 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.AspNetCore.Identity;
namespace Newsbot.Collector.Domain.Entities;
public class RefreshTokenEntity
{
[Key]
public string? Token { get; set; }
public string? JwtId { get; set; }
public DateTime CreatedDate { get; set; }
public DateTime ExpiryDate { get; set; }
public bool Used { get; set; }
public bool Invalidated { get; set; }
public string? UserId { get; set; }
[ForeignKey(nameof(UserId))]
public IdentityUser? User { get; set; }
}