2021-01-24 12:47:19 -05:00
|
|
|
|
// <auto-generated />
|
|
|
|
|
using System;
|
2021-03-22 12:09:25 -04:00
|
|
|
|
using Data.MigrationContext;
|
2021-01-24 12:47:19 -05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
namespace Data.Migrations.MySql
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(MySqlDatabaseContext))]
|
2021-03-22 12:09:25 -04:00
|
|
|
|
[Migration("20210315222843_AddAdvancedStats")]
|
|
|
|
|
partial class AddAdvancedStats
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
|
|
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
|
modelBuilder
|
|
|
|
|
.HasAnnotation("ProductVersion", "3.1.10")
|
|
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.EFACSnapshotVector3", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ACSnapshotVector3Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Active")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("SnapshotId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Vector3Id")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("ACSnapshotVector3Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("SnapshotId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Vector3Id");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFACSnapshotVector3");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Data.Models.Client.EFClient", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ClientId")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Active")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("AliasLinkId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Connections")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("CurrentAliasId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("FirstConnection")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("LastConnection")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Level")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Masked")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<long>("NetworkId")
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Password")
|
|
|
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PasswordSalt")
|
|
|
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("TotalConnectionTime")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("ClientId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("AliasLinkId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("CurrentAliasId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("NetworkId")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFClients");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Data.Models.Client.EFClientKill", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<long>("KillId")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Active")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("AttackerId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Damage")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("DeathOriginVector3Id")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("DeathType")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("Fraction")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("HitLoc")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsKill")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("KillOriginVector3Id")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Map")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<long>("ServerId")
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("VictimId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("ViewAnglesVector3Id")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("VisibilityPercentage")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Weapon")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("When")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("KillId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("AttackerId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("DeathOriginVector3Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("KillOriginVector3Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ServerId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("VictimId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ViewAnglesVector3Id");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFClientKills");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Data.Models.Client.EFClientMessage", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<long>("MessageId")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Active")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("ClientId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Message")
|
|
|
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("SentIngame")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<long>("ServerId")
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("TimeSent")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("MessageId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ServerId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("TimeSent");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFClientMessages");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.EFACSnapshot", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("SnapshotId")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Active")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("ClientId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("CurrentSessionLength")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("CurrentStrain")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("CurrentViewAngleId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Deaths")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("Distance")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("EloRating")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("HitDestinationId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("HitLocation")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("HitOriginId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("HitType")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Hits")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Kills")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("LastStrainAngleId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("RecoilOffset")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("SessionAngleOffset")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("SessionAverageSnapValue")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("SessionSPM")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("SessionScore")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("SessionSnapHits")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("StrainAngleBetween")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("TimeSinceLastEvent")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("WeaponId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("When")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("SnapshotId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("CurrentViewAngleId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("HitDestinationId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("HitOriginId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("LastStrainAngleId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFACSnapshot");
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.EFClientHitStatistic", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int>("ClientHitStatisticId")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int>("ClientId")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<DateTime>("CreatedDateTime")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int>("DamageInflicted")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int>("DamageReceived")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int>("DeathCount")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int>("HitCount")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int?>("HitLocationId")
|
|
|
|
|
.HasColumnType("int");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int>("KillCount")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int?>("MeansOfDeathId")
|
|
|
|
|
.HasColumnType("int");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int>("ReceivedHitCount")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int?>("Score")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<long?>("ServerId")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int>("SuicideCount")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<DateTime?>("UpdatedDateTime")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int?>("UsageSeconds")
|
|
|
|
|
.HasColumnType("int");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int?>("WeaponAttachmentComboId")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int?>("WeaponId")
|
|
|
|
|
.HasColumnType("int");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasKey("ClientHitStatisticId");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasIndex("ClientId");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasIndex("HitLocationId");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasIndex("MeansOfDeathId");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
|
|
|
|
b.HasIndex("ServerId");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasIndex("WeaponAttachmentComboId");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasIndex("WeaponId");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.ToTable("EFClientHitStatistics");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.EFClientRankingHistory", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<long>("ClientRankingHistoryId")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("ClientId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<DateTime>("CreatedDateTime")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<bool>("Newest")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<double?>("PerformanceMetric")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("Ranking")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<long?>("ServerId")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<DateTime?>("UpdatedDateTime")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<double?>("ZScore")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.HasKey("ClientRankingHistoryId");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasIndex("Ranking");
|
|
|
|
|
|
2021-01-24 12:47:19 -05:00
|
|
|
|
b.HasIndex("ServerId");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasIndex("UpdatedDateTime");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasIndex("ZScore");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFClientRankingHistory");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.EFClientRatingHistory", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("RatingHistoryId")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Active")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("ClientId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("RatingHistoryId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFClientRatingHistory");
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.EFClientStatistics", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ClientId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<long>("ServerId")
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Active")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("AverageSnapValue")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Deaths")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("EloRating")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Kills")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("MaxStrain")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("RollingWeightedKDR")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("SPM")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("Skill")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("SnapHitCount")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("TimePlayed")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<DateTime?>("UpdatedAt")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("ZScore")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.HasKey("ClientId", "ServerId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ServerId");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasIndex("ZScore");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ClientId", "TimePlayed", "ZScore");
|
|
|
|
|
|
2021-01-24 12:47:19 -05:00
|
|
|
|
b.ToTable("EFClientStatistics");
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.EFHitLocationCount", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("HitLocationCountId")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Active")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("EFClientStatisticsClientId")
|
|
|
|
|
.HasColumnName("EFClientStatisticsClientId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<long>("EFClientStatisticsServerId")
|
|
|
|
|
.HasColumnName("EFClientStatisticsServerId")
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("HitCount")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<float>("HitOffsetAverage")
|
|
|
|
|
.HasColumnType("float");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Location")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<float>("MaxAngleDistance")
|
|
|
|
|
.HasColumnType("float");
|
|
|
|
|
|
|
|
|
|
b.HasKey("HitLocationCountId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("EFClientStatisticsServerId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("EFClientStatisticsClientId", "EFClientStatisticsServerId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFHitLocationCounts");
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.EFRating", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("RatingId")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Active")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("ActivityAmount")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Newest")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("Performance")
|
|
|
|
|
.HasColumnType("double");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Ranking")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("RatingHistoryId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<long?>("ServerId")
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("When")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("RatingId");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasIndex("RatingHistoryId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ServerId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Performance", "Ranking", "When");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("When", "ServerId", "Performance", "ActivityAmount");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFRating");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.Reference.EFHitLocation", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("HitLocationId")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("CreatedDateTime")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Game")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("UpdatedDateTime")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("HitLocationId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Name");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFHitLocations");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.Reference.EFMap", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("MapId")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("CreatedDateTime")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Game")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("UpdatedDateTime")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("MapId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFMaps");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.Reference.EFMeansOfDeath", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("MeansOfDeathId")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("CreatedDateTime")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Game")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("UpdatedDateTime")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("MeansOfDeathId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFMeansOfDeath");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.Reference.EFWeapon", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("WeaponId")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("CreatedDateTime")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Game")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("varchar(255) CHARACTER SET utf8mb4");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<DateTime?>("UpdatedDateTime")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasKey("WeaponId");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasIndex("Name");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.ToTable("EFWeapons");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.Reference.EFWeaponAttachment", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int>("WeaponAttachmentId")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<DateTime>("CreatedDateTime")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int>("Game")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.IsRequired()
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<DateTime?>("UpdatedDateTime")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasKey("WeaponAttachmentId");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.ToTable("EFWeaponAttachments");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.Reference.EFWeaponAttachmentCombo", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int>("WeaponAttachmentComboId")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int>("Attachment1Id")
|
|
|
|
|
.HasColumnType("int");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int?>("Attachment2Id")
|
|
|
|
|
.HasColumnType("int");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int?>("Attachment3Id")
|
|
|
|
|
.HasColumnType("int");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<DateTime>("CreatedDateTime")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<int>("Game")
|
|
|
|
|
.HasColumnType("int");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.Property<DateTime?>("UpdatedDateTime")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasKey("WeaponAttachmentComboId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Attachment1Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Attachment2Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Attachment3Id");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFWeaponAttachmentCombos");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.EFAlias", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("AliasId")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Active")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateAdded")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("IPAddress")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("LinkId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("varchar(24) CHARACTER SET utf8mb4")
|
|
|
|
|
.HasMaxLength(24);
|
|
|
|
|
|
|
|
|
|
b.Property<string>("SearchableName")
|
|
|
|
|
.HasColumnType("varchar(24) CHARACTER SET utf8mb4")
|
|
|
|
|
.HasMaxLength(24);
|
|
|
|
|
|
|
|
|
|
b.HasKey("AliasId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("IPAddress");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("LinkId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Name");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("SearchableName");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Name", "IPAddress")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFAlias");
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.EFAliasLink", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("AliasLinkId")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Active")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("AliasLinkId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFAliasLinks");
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.EFChangeHistory", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ChangeHistoryId")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Active")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Comment")
|
|
|
|
|
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
|
|
|
|
|
.HasMaxLength(128);
|
|
|
|
|
|
|
|
|
|
b.Property<string>("CurrentValue")
|
|
|
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("ImpersonationEntityId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("OriginEntityId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PreviousValue")
|
|
|
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("TargetEntityId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("TimeChanged")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("TypeOfChange")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("ChangeHistoryId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFChangeHistory");
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.EFMeta", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("MetaId")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Active")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("ClientId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("Created")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Extra")
|
|
|
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Key")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("varchar(32) CHARACTER SET utf8mb4")
|
|
|
|
|
.HasMaxLength(32);
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("LinkedMetaId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("Updated")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Value")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
|
|
|
|
|
|
b.HasKey("MetaId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Key");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("LinkedMetaId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFMeta");
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.EFPenalty", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("PenaltyId")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Active")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("AutomatedOffense")
|
|
|
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("Expires")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsEvadedOffense")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("LinkId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("OffenderId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Offense")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("PunisherId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Type")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("When")
|
|
|
|
|
.HasColumnType("datetime(6)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("PenaltyId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("LinkId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("OffenderId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("PunisherId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFPenalties");
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Server.EFServer", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<long>("ServerId")
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Active")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("EndPoint")
|
|
|
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("GameName")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("HostName")
|
|
|
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsPasswordProtected")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Port")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("ServerId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFServers");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Data.Models.Server.EFServerStatistics", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("StatisticId")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Active")
|
|
|
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
|
|
|
|
|
|
b.Property<long>("ServerId")
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
|
|
|
|
b.Property<long>("TotalKills")
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
|
|
|
|
b.Property<long>("TotalPlayTime")
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
|
|
|
|
b.HasKey("StatisticId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ServerId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EFServerStatistics");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Data.Models.Vector3", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Vector3Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<float>("X")
|
|
|
|
|
.HasColumnType("float");
|
|
|
|
|
|
|
|
|
|
b.Property<float>("Y")
|
|
|
|
|
.HasColumnType("float");
|
|
|
|
|
|
|
|
|
|
b.Property<float>("Z")
|
|
|
|
|
.HasColumnType("float");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Vector3Id");
|
|
|
|
|
|
|
|
|
|
b.ToTable("Vector3");
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.EFACSnapshotVector3", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("Data.Models.Client.Stats.EFACSnapshot", "Snapshot")
|
|
|
|
|
.WithMany("PredictedViewAngles")
|
|
|
|
|
.HasForeignKey("SnapshotId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.HasOne("Data.Models.Vector3", "Vector")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("Vector3Id")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Data.Models.Client.EFClient", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.EFAliasLink", "AliasLink")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
2021-03-22 12:09:25 -04:00
|
|
|
|
.HasForeignKey("AliasLinkId")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.EFAlias", "CurrentAlias")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
2021-03-22 12:09:25 -04:00
|
|
|
|
.HasForeignKey("CurrentAliasId")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
2021-03-22 12:09:25 -04:00
|
|
|
|
});
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.EFClientKill", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("Data.Models.Client.EFClient", "Attacker")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
2021-03-22 12:09:25 -04:00
|
|
|
|
.HasForeignKey("AttackerId")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Vector3", "DeathOrigin")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
2021-03-22 12:09:25 -04:00
|
|
|
|
.HasForeignKey("DeathOriginVector3Id");
|
|
|
|
|
|
|
|
|
|
b.HasOne("Data.Models.Vector3", "KillOrigin")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("KillOriginVector3Id");
|
|
|
|
|
|
|
|
|
|
b.HasOne("Data.Models.Server.EFServer", "Server")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("ServerId")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Client.EFClient", "Victim")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
2021-03-22 12:09:25 -04:00
|
|
|
|
.HasForeignKey("VictimId")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
2021-03-22 12:09:25 -04:00
|
|
|
|
|
|
|
|
|
b.HasOne("Data.Models.Vector3", "ViewAngles")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("ViewAnglesVector3Id");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.EFClientMessage", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Client.EFClient", "Client")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("ClientId")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Server.EFServer", "Server")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
2021-03-22 12:09:25 -04:00
|
|
|
|
.HasForeignKey("ServerId")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.EFACSnapshot", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Client.EFClient", "Client")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
2021-03-22 12:09:25 -04:00
|
|
|
|
.HasForeignKey("ClientId")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Vector3", "CurrentViewAngle")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
2021-03-22 12:09:25 -04:00
|
|
|
|
.HasForeignKey("CurrentViewAngleId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
2021-01-24 12:47:19 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Vector3", "HitDestination")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
2021-03-22 12:09:25 -04:00
|
|
|
|
.HasForeignKey("HitDestinationId")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Vector3", "HitOrigin")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
2021-03-22 12:09:25 -04:00
|
|
|
|
.HasForeignKey("HitOriginId")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Vector3", "LastStrainAngle")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
2021-03-22 12:09:25 -04:00
|
|
|
|
.HasForeignKey("LastStrainAngleId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
2021-01-24 12:47:19 -05:00
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.EFClientHitStatistic", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Client.EFClient", "Client")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("ClientId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Client.Stats.Reference.EFHitLocation", "HitLocation")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
2021-03-22 12:09:25 -04:00
|
|
|
|
.HasForeignKey("HitLocationId");
|
|
|
|
|
|
|
|
|
|
b.HasOne("Data.Models.Client.Stats.Reference.EFMeansOfDeath", "MeansOfDeath")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("MeansOfDeathId");
|
|
|
|
|
|
|
|
|
|
b.HasOne("Data.Models.Server.EFServer", "Server")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("ServerId");
|
|
|
|
|
|
|
|
|
|
b.HasOne("Data.Models.Client.Stats.Reference.EFWeaponAttachmentCombo", "WeaponAttachmentCombo")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("WeaponAttachmentComboId");
|
|
|
|
|
|
|
|
|
|
b.HasOne("Data.Models.Client.Stats.Reference.EFWeapon", "Weapon")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("WeaponId");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.EFClientRankingHistory", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("Data.Models.Client.EFClient", "Client")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("ClientId")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
2021-03-22 12:09:25 -04:00
|
|
|
|
|
|
|
|
|
b.HasOne("Data.Models.Server.EFServer", "Server")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("ServerId");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.EFClientRatingHistory", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Client.EFClient", "Client")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("ClientId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.EFClientStatistics", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Client.EFClient", "Client")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("ClientId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Server.EFServer", "Server")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("ServerId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.EFHitLocationCount", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Client.EFClient", "Client")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("EFClientStatisticsClientId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Server.EFServer", "Server")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("EFClientStatisticsServerId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Client.Stats.EFClientStatistics", null)
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany("HitLocations")
|
|
|
|
|
.HasForeignKey("EFClientStatisticsClientId", "EFClientStatisticsServerId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.EFRating", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Client.Stats.EFClientRatingHistory", "RatingHistory")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany("Ratings")
|
|
|
|
|
.HasForeignKey("RatingHistoryId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Server.EFServer", "Server")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("ServerId");
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.Client.Stats.Reference.EFWeaponAttachmentCombo", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Client.Stats.Reference.EFWeaponAttachment", "Attachment1")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
2021-03-22 12:09:25 -04:00
|
|
|
|
.HasForeignKey("Attachment1Id")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
2021-03-22 12:09:25 -04:00
|
|
|
|
|
|
|
|
|
b.HasOne("Data.Models.Client.Stats.Reference.EFWeaponAttachment", "Attachment2")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("Attachment2Id");
|
|
|
|
|
|
|
|
|
|
b.HasOne("Data.Models.Client.Stats.Reference.EFWeaponAttachment", "Attachment3")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("Attachment3Id");
|
2021-01-24 12:47:19 -05:00
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.EFAlias", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.EFAliasLink", "Link")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany("Children")
|
|
|
|
|
.HasForeignKey("LinkId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.EFMeta", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Client.EFClient", "Client")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany("Meta")
|
|
|
|
|
.HasForeignKey("ClientId");
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.EFMeta", "LinkedMeta")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("LinkedMetaId")
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
});
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
modelBuilder.Entity("Data.Models.EFPenalty", b =>
|
2021-01-24 12:47:19 -05:00
|
|
|
|
{
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.EFAliasLink", "Link")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany("ReceivedPenalties")
|
|
|
|
|
.HasForeignKey("LinkId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Client.EFClient", "Offender")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany("ReceivedPenalties")
|
|
|
|
|
.HasForeignKey("OffenderId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
b.HasOne("Data.Models.Client.EFClient", "Punisher")
|
2021-01-24 12:47:19 -05:00
|
|
|
|
.WithMany("AdministeredPenalties")
|
|
|
|
|
.HasForeignKey("PunisherId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
});
|
2021-03-22 12:09:25 -04:00
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Data.Models.Server.EFServerStatistics", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("Data.Models.Server.EFServer", "Server")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("ServerId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
});
|
2021-01-24 12:47:19 -05:00
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|