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

@@ -1,3 +1,5 @@
using System.ComponentModel.DataAnnotations;
namespace DCGEngine.Database.Models;
/// <summary>
@@ -8,7 +10,8 @@ public abstract class CardEntry : BaseEntity<long>
/// <summary>
/// The name of this card used internally, to separate it from any localization key stored.
/// </summary>
public virtual string InternalName { get; set; }
[Required(AllowEmptyStrings = false)]
public virtual string Name { get; set; } = string.Empty;
/// <summary>
/// The offensive power of this card.