1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-24 22:20:35 -05:00

Additional zombie stast work

This commit is contained in:
RaidMax
2024-02-11 22:10:12 -06:00
parent 122b6dc79d
commit e1461582fa
45 changed files with 7663 additions and 292 deletions

View File

@ -1,6 +1,5 @@
#nullable enable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Data.Models.Client.Stats.Reference;
@ -12,6 +11,8 @@ public class ZombieMatch : DatedRecord
{
[Key]
public int ZombieMatchId { get; set; }
[NotMapped] public override long Id => ZombieMatchId;
public int? MapId { get; set; }
[ForeignKey(nameof(MapId))]
@ -22,8 +23,6 @@ public class ZombieMatch : DatedRecord
public virtual EFServer? Server { get; set; }
public int ClientsCompleted { get; set; }
public virtual ICollection<ZombieClientStat>? ClientStats { get; set; }
public DateTimeOffset MatchStartDate { get; set; } = DateTimeOffset.UtcNow;
public DateTimeOffset? MatchEndDate { get; set; }