53 lines
1.2 KiB
C#
53 lines
1.2 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using SVSim.Database.Common;
|
|
using SVSim.Database.Enums;
|
|
|
|
namespace SVSim.Database.Models;
|
|
|
|
public class ShadowverseCardEntry : BaseEntity<long>
|
|
{
|
|
/// <summary>
|
|
/// The internal name of this card (not the localized display name).
|
|
/// </summary>
|
|
[Required(AllowEmptyStrings = false)]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Attack stat (atk on the wire).
|
|
/// </summary>
|
|
public int? Attack { get; set; }
|
|
|
|
/// <summary>
|
|
/// Life / defense stat (life on the wire).
|
|
/// </summary>
|
|
public int? Defense { get; set; }
|
|
|
|
/// <summary>
|
|
/// Play cost (cost on the wire).
|
|
/// </summary>
|
|
public int? PrimaryResourceCost { 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 CardCollectionInfo? CollectionInfo { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region Navigation Properties
|
|
|
|
/// <summary>
|
|
/// The class this card belongs to, or null for neutral cards.
|
|
/// </summary>
|
|
public ClassEntry? Class { get; set; }
|
|
|
|
#endregion
|
|
}
|