1 2 3 4 5 6 7 8 9 10 11 12 13
namespace IOL.BookmarkThing.Server.Models.Database; public class AccessToken : Base { public User User { get; set; } public DateTime ExpiryDate { get; set; } public bool AllowRead { get; set; } public bool AllowCreate { get; set; } public bool AllowUpdate { get; set; } public bool AllowDelete { get; set; } public bool HasExpired => ExpiryDate < DateTime.UtcNow; }