DTOs for index mostly done, doing DB models

This commit is contained in:
gamer147
2024-09-12 00:35:31 -04:00
parent ac3b002d74
commit 79505e0c1a
69 changed files with 1523 additions and 21 deletions

View File

@@ -1,3 +1,5 @@
using System.ComponentModel.DataAnnotations;
namespace DCGEngine.Database.Models;
/// <summary>
@@ -8,10 +10,11 @@ public abstract class DeckEntry : BaseEntity<long>
/// <summary>
/// How this deck is referred to internally.
/// </summary>
public virtual string InternalName { get; set; }
[Required(AllowEmptyStrings = false)]
public virtual string Name { get; set; } = string.Empty;
/// <summary>
/// The cards present in this deck.
/// </summary>
public virtual List<CardEntry> Cards { get; set; }
public virtual List<DeckCard> Cards { get; set; } = new List<DeckCard>();
}