Add max concurrent players over 24 hours badge to home
This commit is contained in:
36
Data/Models/Server/EFServerSnapshot.cs
Normal file
36
Data/Models/Server/EFServerSnapshot.cs
Normal file
@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Data.Models.Client.Stats.Reference;
|
||||
|
||||
namespace Data.Models.Server
|
||||
{
|
||||
public class EFServerSnapshot : SharedEntity
|
||||
{
|
||||
[Key]
|
||||
public long ServerSnapshotId { get; set; }
|
||||
|
||||
public DateTime CapturedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Specifies at which time block during a period the snapshot occured
|
||||
/// | 1:00 | 1:05 | 1:10 |
|
||||
/// | 5 minutes | 5 minutes | 5 minutes |
|
||||
/// | 0 | 1 | 2 |
|
||||
/// </summary>
|
||||
public int PeriodBlock { get; set; }
|
||||
|
||||
[Required]
|
||||
public long ServerId { get; set; }
|
||||
|
||||
[ForeignKey(nameof(ServerId))]
|
||||
public EFServer Server { get; set; }
|
||||
|
||||
public int MapId { get; set; }
|
||||
|
||||
[ForeignKey(nameof(MapId))]
|
||||
public EFMap Map { get; set; }
|
||||
|
||||
public int ClientCount { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user