DTOs for index mostly done, doing DB models
This commit is contained in:
@@ -1,12 +1,37 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using DCGEngine.Database.Models;
|
||||
using SVSim.Database.Enums;
|
||||
|
||||
namespace SVSim.Database.Models;
|
||||
|
||||
public class ShadowverseCardEntry : CardEntry
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public override long Id { get; set; }
|
||||
/// <summary>
|
||||
/// The rarity of this card.
|
||||
/// </summary>
|
||||
public Rarity Rarity { get; set; }
|
||||
|
||||
#region Owned
|
||||
|
||||
/// <summary>
|
||||
/// Info about this card in the collection, if it can be collected.
|
||||
/// </summary>
|
||||
public CollectionInfo? CollectionInfo { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Navigation Properties
|
||||
|
||||
/// <summary>
|
||||
/// The class this card belongs to, or optionally none for neutral cards.
|
||||
/// </summary>
|
||||
public ClassEntry? Class { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The set this card belongs to.
|
||||
/// </summary>
|
||||
public CardSetEntry CardSet { get; set; } = new ShadowverseCardSetEntry();
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user