DTOs for index mostly done, doing DB models
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user