Files
SVSimServer/SVSim.Database/Models/ClassEntry.cs
2026-05-23 14:18:01 -04:00

22 lines
543 B
C#

using System.ComponentModel.DataAnnotations.Schema;
using SVSim.Database.Common;
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
}