Files
SVSimServer/DCGEngine.Database/Models/DeckEntry.cs
2024-09-12 00:35:31 -04:00

20 lines
588 B
C#

using System.ComponentModel.DataAnnotations;
namespace DCGEngine.Database.Models;
/// <summary>
/// A deck consisting of multiple <see cref="CardEntry"/> stored in the DB.
/// </summary>
public abstract class DeckEntry : BaseEntity<long>
{
/// <summary>
/// How this deck is referred to internally.
/// </summary>
[Required(AllowEmptyStrings = false)]
public virtual string Name { get; set; } = string.Empty;
/// <summary>
/// The cards present in this deck.
/// </summary>
public virtual List<DeckCard> Cards { get; set; } = new List<DeckCard>();
}