Files
SVSimServer/DCGEngine.Database/Models/DeckEntry.cs
2025-05-18 02:27:17 -04:00

22 lines
662 B
C#

using System.ComponentModel.DataAnnotations;
using DCGEngine.Database.Interfaces;
using Microsoft.EntityFrameworkCore;
namespace DCGEngine.Database.Models;
/// <summary>
/// A deck consisting of multiple <see cref="CardEntry"/> stored in the DB.
/// </summary>
public abstract class DeckEntry : BaseEntity<Guid>
{
/// <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>();
}