2023-05-01 23:33:47 -04:00
|
|
|
|
#nullable enable
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
using Data.Models.Client.Stats.Reference;
|
|
|
|
|
using Data.Models.Server;
|
|
|
|
|
|
|
|
|
|
namespace Data.Models.Zombie;
|
|
|
|
|
|
2023-05-07 15:18:59 -04:00
|
|
|
|
public class ZombieMatch : DatedRecord
|
2023-05-01 23:33:47 -04:00
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
public int ZombieMatchId { get; set; }
|
|
|
|
|
|
|
|
|
|
public int? MapId { get; set; }
|
|
|
|
|
[ForeignKey(nameof(MapId))]
|
|
|
|
|
public virtual EFMap? Map { get; set; }
|
|
|
|
|
|
|
|
|
|
public long? ServerId { get; set; }
|
|
|
|
|
[ForeignKey(nameof(ServerId))]
|
|
|
|
|
public virtual EFServer? Server { get; set; }
|
|
|
|
|
|
2023-05-07 15:18:59 -04:00
|
|
|
|
public int ClientsCompleted { get; set; }
|
|
|
|
|
|
2023-05-01 23:33:47 -04:00
|
|
|
|
public virtual ICollection<ZombieClientStat>? ClientStats { get; set; }
|
|
|
|
|
|
|
|
|
|
public DateTimeOffset MatchStartDate { get; set; } = DateTimeOffset.UtcNow;
|
|
|
|
|
public DateTimeOffset? MatchEndDate { get; set; }
|
|
|
|
|
}
|