mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-12 08:08:06 -05:00
zombie stats code
This commit is contained in:
@ -42,6 +42,11 @@ namespace Data.Models.Client.Stats
|
||||
|
||||
[ForeignKey(nameof(WeaponAttachmentComboId))]
|
||||
public virtual EFWeaponAttachmentCombo WeaponAttachmentCombo { get; set; }
|
||||
|
||||
public int? PerformanceBucketId { get; set; }
|
||||
|
||||
[ForeignKey(nameof(PerformanceBucketId))]
|
||||
public virtual EFPerformanceBucket PerformanceBucket { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// how many hits the player got
|
||||
|
@ -25,6 +25,9 @@ namespace Data.Models.Client.Stats
|
||||
public int? Ranking { get; set; }
|
||||
public double? ZScore { get; set; }
|
||||
public double? PerformanceMetric { get; set; }
|
||||
public string PerformanceBucket { get; set; }
|
||||
|
||||
public int? PerformanceBucketId { get; set; }
|
||||
[ForeignKey(nameof(PerformanceBucketId))]
|
||||
public EFPerformanceBucket PerformanceBucket { get; set; }
|
||||
}
|
||||
}
|
||||
|
12
Data/Models/Client/Stats/EFClientStatTag.cs
Normal file
12
Data/Models/Client/Stats/EFClientStatTag.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Data.Models.Client.Stats;
|
||||
|
||||
public class EFClientStatTag : DatedRecord
|
||||
{
|
||||
[Key]
|
||||
public int ZombieStatTagId { get; set; }
|
||||
|
||||
[MaxLength(128)]
|
||||
public string TagName { get; set; }
|
||||
}
|
23
Data/Models/Client/Stats/EFClientStatTagValue.cs
Normal file
23
Data/Models/Client/Stats/EFClientStatTagValue.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Data.Models.Client.Stats;
|
||||
|
||||
public class EFClientStatTagValue : DatedRecord
|
||||
{
|
||||
[Key]
|
||||
public long ZombieClientStatTagValueId { get; set; }
|
||||
|
||||
public int? StatValue { get; set; }
|
||||
|
||||
[Required]
|
||||
public int StatTagId { get; set; }
|
||||
|
||||
[ForeignKey(nameof(StatTagId))]
|
||||
public EFClientStatTag StatTag { get; set; }
|
||||
|
||||
public int ClientId { get; set; }
|
||||
|
||||
[ForeignKey(nameof(ClientId))]
|
||||
public EFClient Client { get; set; }
|
||||
}
|
15
Data/Models/Client/Stats/EFPerformanceBucket.cs
Normal file
15
Data/Models/Client/Stats/EFPerformanceBucket.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Data.Models.Client.Stats;
|
||||
|
||||
public class EFPerformanceBucket
|
||||
{
|
||||
[Key]
|
||||
public int PerformanceBucketId { get; set; }
|
||||
|
||||
[MaxLength(256)]
|
||||
public string BucketCode { get; set; }
|
||||
|
||||
[MaxLength(256)]
|
||||
public string BucketName { get; set; }
|
||||
}
|
Reference in New Issue
Block a user