1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-07 21:58:06 -05:00
2024-07-02 16:27:28 -05:00

26 lines
873 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Data.Abstractions;
using Data.Models.Client.Stats;
namespace Data.Models.Server
{
public class EFServer : SharedEntity, IUniqueId
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public long ServerId { get; set; }
[Required]
public int Port { get; set; }
public string EndPoint { get; set; }
public Reference.Game? GameName { get; set; }
public string HostName { get; set; }
public bool IsPasswordProtected { get; set; }
public int? PerformanceBucketId { get; set; }
[ForeignKey(nameof(PerformanceBucketId))]
public EFPerformanceBucket PerformanceBucket { get; set; }
public long Id => ServerId;
public string Value => EndPoint;
}
}