refactor: properly rename connections-related tables; top-level namespaces
This commit is contained in:
34
Database/Entities/ConnectionsCategory.cs
Normal file
34
Database/Entities/ConnectionsCategory.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
namespace ConnectionsAPI.Database.Entities;
|
||||
|
||||
public class ConnectionsCategory
|
||||
{
|
||||
/// <summary>
|
||||
/// Primary key of the entity
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The name of the category in this Connections puzzle
|
||||
/// </summary>
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// The color of the category in this Connections puzzle; Also used for sorting
|
||||
/// </summary>
|
||||
public ConnectionsColor Color { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The ID of the associated Connections puzzle
|
||||
/// </summary>
|
||||
public int ConnectionsPuzzleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The associated puzzle instance
|
||||
/// </summary>
|
||||
public virtual ConnectionsPuzzle? ConnectionsPuzzle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The cards associated with this category
|
||||
/// </summary>
|
||||
public ICollection<ConnectionsCard> Cards { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user