22 lines
662 B
C#
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>();
|
|
} |