Hydra/Hydra.Backend/Database/Models/Token.cs

17 lines
483 B
C#
Raw Normal View History

2024-08-04 15:57:10 +02:00
using NodaTime;
namespace Hydra.Backend.Database.Models;
public class Token : BaseModel
{
public required byte[] Hash { get; init; }
public required Instant ExpiresAt { get; init; }
public required string[] Scopes { get; init; }
public bool ManuallyExpired { get; set; }
public Ulid UserId { get; init; }
public Account Account { get; init; } = null!;
public Ulid ApplicationId { get; set; }
public Application Application { get; set; } = null!;
}