2024-05-27 15:53:54 +02:00
|
|
|
using NodaTime;
|
|
|
|
|
|
|
|
namespace Foxnouns.Backend.Database.Models;
|
|
|
|
|
|
|
|
public class Token : BaseModel
|
|
|
|
{
|
2024-05-28 15:29:18 +02:00
|
|
|
public required byte[] Hash { get; init; }
|
2024-05-27 15:53:54 +02:00
|
|
|
public required Instant ExpiresAt { get; init; }
|
|
|
|
public required string[] Scopes { get; init; }
|
|
|
|
public bool ManuallyExpired { get; set; }
|
|
|
|
|
|
|
|
public Snowflake UserId { get; init; }
|
|
|
|
public User User { get; init; } = null!;
|
2024-05-28 15:29:18 +02:00
|
|
|
|
|
|
|
public Snowflake ApplicationId { get; set; }
|
|
|
|
public Application Application { get; set; } = null!;
|
2024-05-27 15:53:54 +02:00
|
|
|
}
|