1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 23:31:13 -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

@ -15,7 +15,7 @@ namespace Data.Migrations.Sqlite
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "6.0.1");
modelBuilder.HasAnnotation("ProductVersion", "8.0.1");
modelBuilder.Entity("Data.Models.Client.EFACSnapshotVector3", b =>
{
@ -1181,7 +1181,7 @@ namespace Data.Migrations.Sqlite
b.Property<DateTimeOffset>("CreatedDateTime")
.HasColumnType("TEXT");
b.Property<int>("DamageDealt")
b.Property<long>("DamageDealt")
.HasColumnType("INTEGER");
b.Property<int>("DamageReceived")
@ -1193,6 +1193,9 @@ namespace Data.Migrations.Sqlite
b.Property<int>("Downs")
.HasColumnType("INTEGER");
b.Property<int>("HeadshotKills")
.HasColumnType("INTEGER");
b.Property<int>("Headshots")
.HasColumnType("INTEGER");
@ -1230,6 +1233,8 @@ namespace Data.Migrations.Sqlite
b.HasIndex("MatchId");
b.ToTable("EFZombieClientStat", (string)null);
b.UseTptMappingStrategy();
});
modelBuilder.Entity("Data.Models.Zombie.ZombieClientStatRecord", b =>
@ -1271,6 +1276,47 @@ namespace Data.Migrations.Sqlite
b.ToTable("EFZombieClientStatRecord", (string)null);
});
modelBuilder.Entity("Data.Models.Zombie.ZombieEventLog", b =>
{
b.Property<long>("ZombieEventLogId")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<int?>("AssociatedClientId")
.HasColumnType("INTEGER");
b.Property<DateTimeOffset>("CreatedDateTime")
.HasColumnType("TEXT");
b.Property<int>("EventType")
.HasColumnType("INTEGER");
b.Property<int?>("MatchId")
.HasColumnType("INTEGER");
b.Property<double?>("NumericalValue")
.HasColumnType("REAL");
b.Property<int?>("SourceClientId")
.HasColumnType("INTEGER");
b.Property<string>("TextualValue")
.HasColumnType("TEXT");
b.Property<DateTimeOffset?>("UpdatedDateTime")
.HasColumnType("TEXT");
b.HasKey("ZombieEventLogId");
b.HasIndex("AssociatedClientId");
b.HasIndex("MatchId");
b.HasIndex("SourceClientId");
b.ToTable("EFZombieEvents", (string)null);
});
modelBuilder.Entity("Data.Models.Zombie.ZombieMatch", b =>
{
b.Property<int>("ZombieMatchId")
@ -1283,9 +1329,6 @@ namespace Data.Migrations.Sqlite
b.Property<DateTimeOffset>("CreatedDateTime")
.HasColumnType("TEXT");
b.Property<int?>("EFClientClientId")
.HasColumnType("INTEGER");
b.Property<int?>("MapId")
.HasColumnType("INTEGER");
@ -1303,8 +1346,6 @@ namespace Data.Migrations.Sqlite
b.HasKey("ZombieMatchId");
b.HasIndex("EFClientClientId");
b.HasIndex("MapId");
b.HasIndex("ServerId");
@ -1337,15 +1378,15 @@ namespace Data.Migrations.Sqlite
b.Property<double>("AverageRoundReached")
.HasColumnType("REAL");
b.Property<int?>("EFClientClientId")
.HasColumnType("INTEGER");
b.Property<double>("HeadshotPercentage")
.HasColumnType("REAL");
b.Property<int>("HighestRound")
.HasColumnType("INTEGER");
b.Property<long?>("ServerId")
.HasColumnType("INTEGER");
b.Property<int>("TotalMatchesCompleted")
.HasColumnType("INTEGER");
@ -1355,7 +1396,7 @@ namespace Data.Migrations.Sqlite
b.Property<int>("TotalRoundsPlayed")
.HasColumnType("INTEGER");
b.HasIndex("EFClientClientId");
b.HasIndex("ServerId");
b.ToTable("EFZombieAggregateClientStat", (string)null);
});
@ -1364,11 +1405,6 @@ namespace Data.Migrations.Sqlite
{
b.HasBaseType("Data.Models.Zombie.ZombieClientStat");
b.Property<int?>("EFClientClientId")
.HasColumnType("INTEGER");
b.HasIndex("EFClientClientId");
b.ToTable("EFZombieMatchClientStat", (string)null);
});
@ -1379,9 +1415,6 @@ namespace Data.Migrations.Sqlite
b.Property<TimeSpan?>("Duration")
.HasColumnType("TEXT");
b.Property<int?>("EFClientClientId")
.HasColumnType("INTEGER");
b.Property<DateTimeOffset?>("EndTime")
.HasColumnType("TEXT");
@ -1397,8 +1430,6 @@ namespace Data.Migrations.Sqlite
b.Property<TimeSpan?>("TimeAlive")
.HasColumnType("TEXT");
b.HasIndex("EFClientClientId");
b.ToTable("EFZombieRoundClientStat", (string)null);
});
@ -1852,7 +1883,7 @@ namespace Data.Migrations.Sqlite
.IsRequired();
b.HasOne("Data.Models.Zombie.ZombieMatch", "Match")
.WithMany("ClientStats")
.WithMany()
.HasForeignKey("MatchId");
b.Navigation("Client");
@ -1875,12 +1906,29 @@ namespace Data.Migrations.Sqlite
b.Navigation("Round");
});
modelBuilder.Entity("Data.Models.Zombie.ZombieEventLog", b =>
{
b.HasOne("Data.Models.Client.EFClient", "AssociatedClient")
.WithMany()
.HasForeignKey("AssociatedClientId");
b.HasOne("Data.Models.Zombie.ZombieMatch", "Match")
.WithMany()
.HasForeignKey("MatchId");
b.HasOne("Data.Models.Client.EFClient", "SourceClient")
.WithMany()
.HasForeignKey("SourceClientId");
b.Navigation("AssociatedClient");
b.Navigation("Match");
b.Navigation("SourceClient");
});
modelBuilder.Entity("Data.Models.Zombie.ZombieMatch", b =>
{
b.HasOne("Data.Models.Client.EFClient", null)
.WithMany("ZombieMatches")
.HasForeignKey("EFClientClientId");
b.HasOne("Data.Models.Client.Stats.Reference.EFMap", "Map")
.WithMany()
.HasForeignKey("MapId");
@ -1896,23 +1944,21 @@ namespace Data.Migrations.Sqlite
modelBuilder.Entity("Data.Models.Zombie.ZombieAggregateClientStat", b =>
{
b.HasOne("Data.Models.Client.EFClient", null)
.WithMany("ZombieAggregateClientStats")
.HasForeignKey("EFClientClientId");
b.HasOne("Data.Models.Server.EFServer", "Server")
.WithMany()
.HasForeignKey("ServerId");
b.HasOne("Data.Models.Zombie.ZombieClientStat", null)
.WithOne()
.HasForeignKey("Data.Models.Zombie.ZombieAggregateClientStat", "ZombieClientStatId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Server");
});
modelBuilder.Entity("Data.Models.Zombie.ZombieMatchClientStat", b =>
{
b.HasOne("Data.Models.Client.EFClient", null)
.WithMany("ZombieMatchClientStats")
.HasForeignKey("EFClientClientId");
b.HasOne("Data.Models.Zombie.ZombieClientStat", null)
.WithOne()
.HasForeignKey("Data.Models.Zombie.ZombieMatchClientStat", "ZombieClientStatId")
@ -1922,10 +1968,6 @@ namespace Data.Migrations.Sqlite
modelBuilder.Entity("Data.Models.Zombie.ZombieRoundClientStat", b =>
{
b.HasOne("Data.Models.Client.EFClient", null)
.WithMany("ZombieRoundClientStats")
.HasForeignKey("EFClientClientId");
b.HasOne("Data.Models.Zombie.ZombieClientStat", null)
.WithOne()
.HasForeignKey("Data.Models.Zombie.ZombieRoundClientStat", "ZombieClientStatId")
@ -1941,15 +1983,7 @@ namespace Data.Migrations.Sqlite
b.Navigation("ReceivedPenalties");
b.Navigation("ZombieAggregateClientStats");
b.Navigation("ZombieClientStats");
b.Navigation("ZombieMatchClientStats");
b.Navigation("ZombieMatches");
b.Navigation("ZombieRoundClientStats");
});
modelBuilder.Entity("Data.Models.Client.Stats.EFACSnapshot", b =>
@ -1973,11 +2007,6 @@ namespace Data.Migrations.Sqlite
b.Navigation("ReceivedPenalties");
});
modelBuilder.Entity("Data.Models.Zombie.ZombieMatch", b =>
{
b.Navigation("ClientStats");
});
#pragma warning restore 612, 618
}
}