DTOs for index mostly done, doing DB models
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
Reference in New Issue
Block a user