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

@@ -0,0 +1,25 @@
using Microsoft.EntityFrameworkCore;
namespace DCGEngine.Database.Models;
/// <summary>
/// A <see cref="CardEntry"/> that is in a <see cref="DeckEntry"/> X times.
/// </summary>
[Owned]
public class DeckCard
{
/// <summary>
/// The card in the deck.
/// </summary>
public virtual CardEntry Card { get; set; }
/// <summary>
/// The number of the card that is in the deck.
/// </summary>
public virtual int Count { get; set; }
/// <summary>
/// The deck this belongs to.
/// </summary>
public virtual DeckEntry Deck { get; set; }
}