Files
SVSimServer/SVSim.Database/Models/ClassEntry.cs
2025-05-18 02:27:17 -04:00

22 lines
547 B
C#

using System.ComponentModel.DataAnnotations.Schema;
using DCGEngine.Database.Models;
namespace SVSim.Database.Models;
public class ClassEntry : BaseEntity<int>
{
/// <summary>
/// The name of the class.
/// </summary>
public string Name { get; set; } = string.Empty;
#region Navigation Properties
public List<LeaderSkinEntry> LeaderSkins { get; set; } = new List<LeaderSkinEntry>();
[NotMapped]
public LeaderSkinEntry? DefaultLeaderSkin => LeaderSkins.FirstOrDefault(skin => skin.Id == Id);
#endregion
}