Remove caching; add previous/next puzzle dates to puzzles

This commit is contained in:
2024-06-29 17:08:34 +02:00
parent e260012e20
commit e54f501f9a
8 changed files with 143 additions and 55 deletions

View File

@@ -1,4 +1,6 @@
namespace ConnectionsAPI.Database.Entities
using System.ComponentModel.DataAnnotations.Schema;
namespace ConnectionsAPI.Database.Entities
{
public class Puzzle
{
@@ -36,5 +38,10 @@
/// The categories associated with this puzzle
/// </summary>
public virtual ICollection<PuzzleCategory> Categories { get; set; } = [];
[NotMapped]
public string? PrevPrintDate { get; set; }
[NotMapped]
public string? NextPrintDate { get; set; }
}
}