refactor: Refactor syncing Connections puzzles
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
namespace ConnectionsAPI.Database.Entities
|
||||
{
|
||||
public class PuzzleCard
|
||||
public class CategoriesCard
|
||||
{
|
||||
/// <summary>
|
||||
/// Primary key of the entity
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The contents of this card (the word)
|
||||
/// </summary>
|
||||
@@ -20,11 +20,11 @@
|
||||
/// <summary>
|
||||
/// The ID of the associated Connections category
|
||||
/// </summary>
|
||||
public int PuzzleCategoryId { get; set; }
|
||||
public int CategoriesCategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The associated category instance
|
||||
/// </summary>
|
||||
public virtual PuzzleCategory? PuzzleCategory { get; set; }
|
||||
public virtual CategoriesCategory? Category { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace ConnectionsAPI.Database.Entities
|
||||
{
|
||||
public class PuzzleCategory
|
||||
public class CategoriesCategory
|
||||
{
|
||||
/// <summary>
|
||||
/// Primary key of the entity
|
||||
@@ -15,21 +15,21 @@
|
||||
/// <summary>
|
||||
/// The color of the category in this Connections puzzle; Also used for sorting
|
||||
/// </summary>
|
||||
public PuzzleCategoryColor Color { get; set; }
|
||||
public CategoriesColor Color { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The ID of the associated Connections puzzle
|
||||
/// </summary>
|
||||
public int PuzzleId { get; set; }
|
||||
|
||||
public int CategoriesPuzzleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The associated puzzle instance
|
||||
/// </summary>
|
||||
public virtual Puzzle? Puzzle { get; set; }
|
||||
public virtual CategoriesPuzzle? CategoriesPuzzle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The cards associated with this category
|
||||
/// </summary>
|
||||
public ICollection<PuzzleCard> PuzzleCards { get; set; } = [];
|
||||
public ICollection<CategoriesCard> CategoriesPuzzleCards { get; set; } = [];
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace ConnectionsAPI.Database.Entities
|
||||
{
|
||||
public enum PuzzleCategoryColor
|
||||
public enum CategoriesColor
|
||||
{
|
||||
Yellow = 1,
|
||||
Green = 2,
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace ConnectionsAPI.Database.Entities
|
||||
{
|
||||
public class Puzzle
|
||||
public class CategoriesPuzzle
|
||||
{
|
||||
/// <summary>
|
||||
/// Primary key of the entity
|
||||
@@ -37,7 +37,7 @@ namespace ConnectionsAPI.Database.Entities
|
||||
/// <summary>
|
||||
/// The categories associated with this puzzle
|
||||
/// </summary>
|
||||
public virtual ICollection<PuzzleCategory> Categories { get; set; } = [];
|
||||
public virtual ICollection<CategoriesCategory> Categories { get; set; } = [];
|
||||
|
||||
[NotMapped]
|
||||
public string? PrevPrintDate { get; set; }
|
||||
Reference in New Issue
Block a user