From 4a3acce1babe2c47ddae4deceb1bceb15975b13c Mon Sep 17 00:00:00 2001 From: hydrant Date: Mon, 27 Apr 2020 15:07:36 +0200 Subject: [PATCH] fix fehlende db migration --- ...427130648_UserJobSkillBusPilot.Designer.cs | 1844 +++++++++++++++++ .../20200427130648_UserJobSkillBusPilot.cs | 31 + .../DatabaseContextModelSnapshot.cs | 1195 +++++++---- 3 files changed, 2665 insertions(+), 405 deletions(-) create mode 100644 ReallifeGamemode.Database/Migrations/20200427130648_UserJobSkillBusPilot.Designer.cs create mode 100644 ReallifeGamemode.Database/Migrations/20200427130648_UserJobSkillBusPilot.cs diff --git a/ReallifeGamemode.Database/Migrations/20200427130648_UserJobSkillBusPilot.Designer.cs b/ReallifeGamemode.Database/Migrations/20200427130648_UserJobSkillBusPilot.Designer.cs new file mode 100644 index 00000000..c31f015c --- /dev/null +++ b/ReallifeGamemode.Database/Migrations/20200427130648_UserJobSkillBusPilot.Designer.cs @@ -0,0 +1,1844 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using ReallifeGamemode.Database.Models; + +namespace ReallifeGamemode.Database.Migrations +{ + [DbContext(typeof(DatabaseContext))] + [Migration("20200427130648_UserJobSkillBusPilot")] + partial class UserJobSkillBusPilot + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "3.1.3") + .HasAnnotation("PropertyAccessMode", PropertyAccessMode.PreferFieldDuringConstruction) + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.ATM", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Active") + .HasColumnType("tinyint(1)"); + + b.Property("Balance") + .HasColumnType("int"); + + b.Property("Faulty") + .HasColumnType("tinyint(1)"); + + b.Property("X") + .HasColumnType("float"); + + b.Property("Y") + .HasColumnType("float"); + + b.Property("Z") + .HasColumnType("float"); + + b.HasKey("Id"); + + b.ToTable("ATMs"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Ban", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Applied") + .HasColumnType("int"); + + b.Property("BannedBy") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("Reason") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("UntilDateTime") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.ToTable("Bans"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.BusRoute", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Description") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.HasKey("Id"); + + b.ToTable("BusRoutes"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.BusRoutePoint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("BusRouteId") + .HasColumnType("int"); + + b.Property("Description") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("X") + .HasColumnType("float"); + + b.Property("Y") + .HasColumnType("float"); + + b.Property("Z") + .HasColumnType("float"); + + b.HasKey("Id"); + + b.HasIndex("BusRouteId"); + + b.ToTable("BusRoutesPoints"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.BusinessBankAccount", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Balance") + .HasColumnType("int"); + + b.Property("BusinessId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("BusinessId") + .IsUnique(); + + b.ToTable("BusinessBankAccounts"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.BusinessData", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("BusinessId") + .HasColumnType("int"); + + b.Property("Price") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("BusinessData"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Character", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Ageing") + .HasColumnType("tinyint unsigned"); + + b.Property("AgeingOpacity") + .HasColumnType("float"); + + b.Property("BeardColor") + .HasColumnType("tinyint unsigned"); + + b.Property("Blemishes") + .HasColumnType("tinyint unsigned"); + + b.Property("BlemishesOpacity") + .HasColumnType("float"); + + b.Property("Blush") + .HasColumnType("tinyint unsigned"); + + b.Property("BlushColor") + .HasColumnType("tinyint unsigned"); + + b.Property("BlushOpacity") + .HasColumnType("float"); + + b.Property("BrowDepth") + .HasColumnType("float"); + + b.Property("BrowHeight") + .HasColumnType("float"); + + b.Property("CheekDepth") + .HasColumnType("float"); + + b.Property("CheekboneHeight") + .HasColumnType("float"); + + b.Property("CheekboneWidth") + .HasColumnType("float"); + + b.Property("ChestHair") + .HasColumnType("tinyint unsigned"); + + b.Property("ChestHairColor") + .HasColumnType("tinyint unsigned"); + + b.Property("ChestHairOpacity") + .HasColumnType("float"); + + b.Property("ChinDepth") + .HasColumnType("float"); + + b.Property("ChinHeight") + .HasColumnType("float"); + + b.Property("ChinIndent") + .HasColumnType("float"); + + b.Property("ChinWidth") + .HasColumnType("float"); + + b.Property("Complexion") + .HasColumnType("tinyint unsigned"); + + b.Property("ComplexionOpacity") + .HasColumnType("float"); + + b.Property("EyeColor") + .HasColumnType("tinyint unsigned"); + + b.Property("EyeSize") + .HasColumnType("float"); + + b.Property("EyebrowColor") + .HasColumnType("tinyint unsigned"); + + b.Property("Eyebrows") + .HasColumnType("tinyint unsigned"); + + b.Property("EyebrowsOpacity") + .HasColumnType("float"); + + b.Property("FacialHair") + .HasColumnType("tinyint unsigned"); + + b.Property("FacialHairOpacity") + .HasColumnType("float"); + + b.Property("Father") + .HasColumnType("tinyint unsigned"); + + b.Property("Freckles") + .HasColumnType("tinyint unsigned"); + + b.Property("FrecklesOpacity") + .HasColumnType("float"); + + b.Property("Gender") + .HasColumnType("tinyint(1)"); + + b.Property("Hair") + .HasColumnType("tinyint unsigned"); + + b.Property("HairColor") + .HasColumnType("tinyint unsigned"); + + b.Property("HairHighlightColor") + .HasColumnType("tinyint unsigned"); + + b.Property("JawShape") + .HasColumnType("float"); + + b.Property("JawWidth") + .HasColumnType("float"); + + b.Property("LipThickness") + .HasColumnType("float"); + + b.Property("Lipstick") + .HasColumnType("tinyint unsigned"); + + b.Property("LipstickColor") + .HasColumnType("tinyint unsigned"); + + b.Property("LipstickOpacity") + .HasColumnType("float"); + + b.Property("Makeup") + .HasColumnType("tinyint unsigned"); + + b.Property("MakeupOpacity") + .HasColumnType("float"); + + b.Property("Mother") + .HasColumnType("tinyint unsigned"); + + b.Property("NeckWidth") + .HasColumnType("float"); + + b.Property("NoseBottomHeight") + .HasColumnType("float"); + + b.Property("NoseBridgeDepth") + .HasColumnType("float"); + + b.Property("NoseBroken") + .HasColumnType("float"); + + b.Property("NoseTipHeight") + .HasColumnType("float"); + + b.Property("NoseTipLength") + .HasColumnType("float"); + + b.Property("NoseWidth") + .HasColumnType("float"); + + b.Property("Similarity") + .HasColumnType("float"); + + b.Property("SkinSimilarity") + .HasColumnType("float"); + + b.Property("SunDamage") + .HasColumnType("tinyint unsigned"); + + b.Property("SunDamageOpacity") + .HasColumnType("float"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.ToTable("Characters"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.CharacterCloth", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("ClothId") + .HasColumnType("int"); + + b.Property("Duty") + .HasColumnType("tinyint(1)"); + + b.Property("SlotId") + .HasColumnType("int"); + + b.Property("SlotType") + .HasColumnType("tinyint unsigned"); + + b.Property("Texture") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.ToTable("CharacterClothes"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.ClothCombination", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Gender") + .HasColumnType("tinyint(1)"); + + b.Property("Top") + .HasColumnType("int"); + + b.Property("Torso") + .HasColumnType("int"); + + b.Property("Undershirt") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("ClothCombinations"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Door", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Category") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("FactionId") + .HasColumnType("int"); + + b.Property("Locked") + .HasColumnType("tinyint(1)"); + + b.Property("Model") + .HasColumnType("int"); + + b.Property("Name") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("Radius") + .HasColumnType("float"); + + b.Property("X") + .HasColumnType("float"); + + b.Property("Y") + .HasColumnType("float"); + + b.Property("Z") + .HasColumnType("float"); + + b.HasKey("Id"); + + b.HasIndex("FactionId"); + + b.ToTable("Doors"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.DutyCloth", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("ClothId") + .HasColumnType("int"); + + b.Property("FactionId") + .HasColumnType("int"); + + b.Property("Gender") + .HasColumnType("tinyint(1)"); + + b.Property("SlotId") + .HasColumnType("int"); + + b.Property("SlotType") + .HasColumnType("tinyint unsigned"); + + b.HasKey("Id"); + + b.HasIndex("FactionId"); + + b.ToTable("DutyClothes"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Faction", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("BankAccountId") + .HasColumnType("int"); + + b.Property("Name") + .HasColumnType("varchar(32) CHARACTER SET utf8mb4") + .HasMaxLength(32); + + b.Property("StateOwned") + .HasColumnType("tinyint(1)"); + + b.Property("WeaponDealTime") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("BankAccountId"); + + b.ToTable("Factions"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.FactionBankAccount", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Active") + .HasColumnType("tinyint(1)"); + + b.Property("Balance") + .HasColumnType("int"); + + b.Property("Bic") + .HasColumnType("varchar(12) CHARACTER SET utf8mb4") + .HasMaxLength(12); + + b.Property("Iban") + .HasColumnType("varchar(32) CHARACTER SET utf8mb4") + .HasMaxLength(32); + + b.HasKey("Id"); + + b.ToTable("FactionBankAccounts"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.FactionRank", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("FactionId") + .HasColumnType("int"); + + b.Property("Order") + .HasColumnType("int"); + + b.Property("RankName") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.HasKey("Id"); + + b.HasIndex("FactionId"); + + b.ToTable("FactionRanks"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.FactionWeapon", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Ammount") + .HasColumnType("int"); + + b.Property("FactionId") + .HasColumnType("int"); + + b.Property("Rank") + .HasColumnType("int"); + + b.Property("SlotID") + .HasColumnType("int"); + + b.Property("WeaponModel") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.HasKey("Id"); + + b.HasIndex("FactionId"); + + b.ToTable("FactionWeapons"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.GotoPoint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Active") + .HasColumnType("tinyint(1)"); + + b.Property("Description") + .HasColumnType("varchar(32) CHARACTER SET utf8mb4") + .HasMaxLength(32); + + b.Property("X") + .HasColumnType("float"); + + b.Property("Y") + .HasColumnType("float"); + + b.Property("Z") + .HasColumnType("float"); + + b.HasKey("Id"); + + b.ToTable("GotoPoints"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Group", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("BankAccountId") + .HasColumnType("int"); + + b.Property("Name") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.HasKey("Id"); + + b.HasIndex("BankAccountId"); + + b.ToTable("Groups"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.GroupBankAccount", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Balance") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("GroupBankAccounts"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.House", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("BankAccountId") + .HasColumnType("int"); + + b.Property("CanRentIn") + .HasColumnType("tinyint(1)"); + + b.Property("LastRentSetTime") + .HasColumnType("datetime(6)"); + + b.Property("OwnerId") + .HasColumnType("int"); + + b.Property("Price") + .HasColumnType("int"); + + b.Property("RentalFee") + .HasColumnType("int"); + + b.Property("Type") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("X") + .HasColumnType("float"); + + b.Property("Y") + .HasColumnType("float"); + + b.Property("Z") + .HasColumnType("float"); + + b.HasKey("Id"); + + b.HasIndex("BankAccountId"); + + b.HasIndex("OwnerId"); + + b.ToTable("Houses"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.HouseBankAccount", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Balance") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("HouseBankAccounts"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.HouseRental", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("HouseId") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("HouseId"); + + b.HasIndex("UserId"); + + b.ToTable("HouseRentals"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Interior", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("EnterPositionStr") + .HasColumnName("EnterPosition") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("ExitPositionStr") + .HasColumnName("ExitPosition") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("Name") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.HasKey("Id"); + + b.ToTable("Interiors"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Location", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Description") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("Heading") + .HasColumnType("double"); + + b.Property("X") + .HasColumnType("double"); + + b.Property("Y") + .HasColumnType("double"); + + b.Property("Z") + .HasColumnType("double"); + + b.HasKey("Id"); + + b.ToTable("Locations"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Logs.BankAccountTransactionHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Fee") + .HasColumnType("int"); + + b.Property("MoneySent") + .HasColumnType("int"); + + b.Property("NewReceiverBalance") + .HasColumnType("int"); + + b.Property("NewSenderBalance") + .HasColumnType("int"); + + b.Property("Origin") + .HasColumnType("varchar(32) CHARACTER SET utf8mb4") + .HasMaxLength(32); + + b.Property("Receiver") + .HasColumnType("varchar(32) CHARACTER SET utf8mb4") + .HasMaxLength(32); + + b.Property("ReceiverBalance") + .HasColumnType("int"); + + b.Property("Sender") + .HasColumnType("varchar(32) CHARACTER SET utf8mb4") + .HasMaxLength(32); + + b.Property("SenderBalance") + .HasColumnType("int"); + + b.Property("Timestamp") + .ValueGeneratedOnAdd() + .HasColumnType("datetime(6)"); + + b.HasKey("Id"); + + b.ToTable("BankAccountTransactionLogs"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Logs.Death", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("CauseOfDeath") + .HasColumnType("varchar(64) CHARACTER SET utf8mb4") + .HasMaxLength(64); + + b.Property("KillerHeading") + .HasColumnType("float"); + + b.Property("KillerId") + .HasColumnType("int"); + + b.Property("KillerPositionX") + .HasColumnType("float"); + + b.Property("KillerPositionY") + .HasColumnType("float"); + + b.Property("KillerPositionZ") + .HasColumnType("float"); + + b.Property("Timestamp") + .ValueGeneratedOnAdd() + .HasColumnType("datetime(6)"); + + b.Property("VictimHeading") + .HasColumnType("float"); + + b.Property("VictimId") + .HasColumnType("int"); + + b.Property("VictimPositionX") + .HasColumnType("float"); + + b.Property("VictimPositionY") + .HasColumnType("float"); + + b.Property("VictimPositionZ") + .HasColumnType("float"); + + b.HasKey("Id"); + + b.HasIndex("KillerId"); + + b.HasIndex("VictimId"); + + b.ToTable("DeathLogs"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.News", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Active") + .HasColumnType("tinyint(1)"); + + b.Property("Caption") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("Content") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("Timestamp") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.ToTable("News"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Saves.SavedBlip", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Active") + .HasColumnType("tinyint(1)"); + + b.Property("Alpha") + .HasColumnType("tinyint unsigned"); + + b.Property("Color") + .HasColumnType("tinyint unsigned"); + + b.Property("Dimension") + .HasColumnType("tinyint unsigned"); + + b.Property("DrawDistance") + .HasColumnType("float"); + + b.Property("Name") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("PositionX") + .HasColumnType("float"); + + b.Property("PositionY") + .HasColumnType("float"); + + b.Property("PositionZ") + .HasColumnType("float"); + + b.Property("Rotation") + .HasColumnType("float"); + + b.Property("Scale") + .HasColumnType("float"); + + b.Property("ShortRange") + .HasColumnType("tinyint(1)"); + + b.Property("Sprite") + .HasColumnType("smallint"); + + b.HasKey("Id"); + + b.ToTable("Blips"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Saves.SavedMarker", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Active") + .HasColumnType("tinyint(1)"); + + b.Property("ColorA") + .HasColumnType("tinyint unsigned"); + + b.Property("ColorB") + .HasColumnType("tinyint unsigned"); + + b.Property("ColorG") + .HasColumnType("tinyint unsigned"); + + b.Property("ColorR") + .HasColumnType("tinyint unsigned"); + + b.Property("Dimension") + .HasColumnType("tinyint unsigned"); + + b.Property("DirectionX") + .HasColumnType("float"); + + b.Property("DirectionY") + .HasColumnType("float"); + + b.Property("DirectionZ") + .HasColumnType("float"); + + b.Property("PositionX") + .HasColumnType("float"); + + b.Property("PositionY") + .HasColumnType("float"); + + b.Property("PositionZ") + .HasColumnType("float"); + + b.Property("RotationX") + .HasColumnType("float"); + + b.Property("RotationY") + .HasColumnType("float"); + + b.Property("RotationZ") + .HasColumnType("float"); + + b.Property("Scale") + .HasColumnType("float"); + + b.Property("Type") + .HasColumnType("tinyint unsigned"); + + b.Property("Visible") + .HasColumnType("tinyint(1)"); + + b.HasKey("Id"); + + b.ToTable("Markers"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Saves.SavedPed", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Active") + .HasColumnType("tinyint(1)"); + + b.Property("Dimension") + .HasColumnType("tinyint unsigned"); + + b.Property("HashModel") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("Heading") + .HasColumnType("float"); + + b.Property("PositionX") + .HasColumnType("float"); + + b.Property("PositionY") + .HasColumnType("float"); + + b.Property("PositionZ") + .HasColumnType("float"); + + b.HasKey("Id"); + + b.ToTable("Peds"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Saves.SavedPickup", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Active") + .HasColumnType("tinyint(1)"); + + b.Property("Dimension") + .HasColumnType("tinyint unsigned"); + + b.Property("PositionX") + .HasColumnType("float") + .HasMaxLength(128); + + b.Property("PositionY") + .HasColumnType("float"); + + b.Property("PositionZ") + .HasColumnType("float"); + + b.Property("RespawnTime") + .HasColumnType("int"); + + b.Property("RotationX") + .HasColumnType("float"); + + b.Property("RotationY") + .HasColumnType("float"); + + b.Property("RotationZ") + .HasColumnType("float"); + + b.Property("Vehicle") + .HasColumnType("tinyint(1)"); + + b.HasKey("Id"); + + b.ToTable("Pickups"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Saves.SavedTextLabel", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Active") + .HasColumnType("tinyint(1)"); + + b.Property("ColorA") + .HasColumnType("tinyint unsigned"); + + b.Property("ColorB") + .HasColumnType("tinyint unsigned"); + + b.Property("ColorG") + .HasColumnType("tinyint unsigned"); + + b.Property("ColorR") + .HasColumnType("tinyint unsigned"); + + b.Property("Dimension") + .HasColumnType("tinyint unsigned"); + + b.Property("DrawDistance") + .HasColumnType("float"); + + b.Property("Font") + .HasColumnType("tinyint unsigned"); + + b.Property("LOS") + .HasColumnType("tinyint(1)"); + + b.Property("PositionX") + .HasColumnType("float"); + + b.Property("PositionY") + .HasColumnType("float"); + + b.Property("PositionZ") + .HasColumnType("float"); + + b.Property("Text") + .IsRequired() + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.HasKey("Id"); + + b.ToTable("TextLabels"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.ServerVehicle", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Active") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(true); + + b.Property("Discriminator") + .IsRequired() + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("DistanceDriven") + .HasColumnType("float"); + + b.Property("Heading") + .HasColumnType("float"); + + b.Property("Livery") + .HasColumnType("int"); + + b.Property("Locked") + .HasColumnType("tinyint(1)"); + + b.Property("Model") + .HasColumnType("int unsigned"); + + b.Property("NumberPlate") + .HasColumnType("varchar(8) CHARACTER SET utf8mb4") + .HasMaxLength(8); + + b.Property("PositionX") + .HasColumnType("float"); + + b.Property("PositionY") + .HasColumnType("float"); + + b.Property("PositionZ") + .HasColumnType("float"); + + b.Property("PrimaryColor") + .HasColumnType("int"); + + b.Property("SecondaryColor") + .HasColumnType("int"); + + b.Property("TankAmount") + .HasColumnType("float"); + + b.HasKey("Id"); + + b.ToTable("ServerVehicles"); + + b.HasDiscriminator("Discriminator").HasValue("ServerVehicle"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.ShopClothe", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Category") + .HasColumnType("int"); + + b.Property("ClotheId") + .HasColumnType("int"); + + b.Property("ComponentId") + .HasColumnType("int"); + + b.Property("Gender") + .HasColumnType("tinyint(1)"); + + b.Property("Price") + .HasColumnType("int"); + + b.Property("TypeId") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.HasKey("Id"); + + b.ToTable("ShopClothes"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.ShopItem", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Amount") + .HasColumnType("int"); + + b.Property("ItemId") + .HasColumnType("int"); + + b.Property("Price") + .HasColumnType("int"); + + b.Property("ShopId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("ShopItems"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.TuningGarage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("X") + .HasColumnType("float"); + + b.Property("Y") + .HasColumnType("float"); + + b.Property("Z") + .HasColumnType("float"); + + b.HasKey("Id"); + + b.ToTable("TuningGarages"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Turfs", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Color") + .HasColumnType("int"); + + b.Property("FactionId") + .HasColumnType("int"); + + b.Property("MaxValue") + .HasColumnType("int"); + + b.Property("Name") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("Owner") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("Range") + .HasColumnType("float"); + + b.Property("Rotation") + .HasColumnType("float"); + + b.Property("Surplus") + .HasColumnType("tinyint(1)"); + + b.Property("Value") + .HasColumnType("int"); + + b.Property("Vector") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("X") + .HasColumnType("float"); + + b.Property("Y") + .HasColumnType("float"); + + b.HasKey("Id"); + + b.ToTable("Turfs"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.User", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("AdminLevel") + .HasColumnType("int"); + + b.Property("BanId") + .HasColumnType("int"); + + b.Property("BankAccountId") + .HasColumnType("int"); + + b.Property("BusSkill") + .HasColumnType("int"); + + b.Property("BusinessId") + .HasColumnType("int"); + + b.Property("CharacterId") + .HasColumnType("int"); + + b.Property("Dead") + .HasColumnType("tinyint(1)"); + + b.Property("DriverLicenseBike") + .HasColumnType("tinyint(1)"); + + b.Property("DriverLicenseVehicle") + .HasColumnType("tinyint(1)"); + + b.Property("Email") + .HasColumnType("varchar(64) CHARACTER SET utf8mb4") + .HasMaxLength(64); + + b.Property("FactionId") + .HasColumnType("int"); + + b.Property("FactionLeader") + .HasColumnType("tinyint(1)"); + + b.Property("FactionRankId") + .HasColumnType("int"); + + b.Property("FlyingLicensePlane") + .HasColumnType("tinyint(1)"); + + b.Property("GroupId") + .HasColumnType("int"); + + b.Property("GroupRank") + .HasColumnType("int"); + + b.Property("Handmoney") + .HasColumnType("int"); + + b.Property("HouseId") + .HasColumnType("int"); + + b.Property("JailTime") + .HasColumnType("int"); + + b.Property("JobId") + .HasColumnType("int"); + + b.Property("LogUserId") + .HasColumnType("int"); + + b.Property("Name") + .HasColumnType("varchar(32) CHARACTER SET utf8mb4") + .HasMaxLength(32); + + b.Property("Password") + .HasColumnType("varchar(64) CHARACTER SET utf8mb4") + .HasMaxLength(64); + + b.Property("PaydayTimer") + .HasColumnType("int"); + + b.Property("PilotSkill") + .HasColumnType("int"); + + b.Property("PlayedMinutes") + .HasColumnType("int"); + + b.Property("Points") + .HasColumnType("int"); + + b.Property("PositionX") + .HasColumnType("float"); + + b.Property("PositionY") + .HasColumnType("float"); + + b.Property("PositionZ") + .HasColumnType("float"); + + b.Property("RegistrationDate") + .ValueGeneratedOnAdd() + .HasColumnType("datetime(6)"); + + b.Property("SocialClubName") + .HasColumnType("varchar(32) CHARACTER SET utf8mb4") + .HasMaxLength(32); + + b.Property("Wage") + .HasColumnType("int"); + + b.Property("Wanteds") + .HasColumnType("int"); + + b.Property("WeaponLicense") + .HasColumnType("tinyint(1)"); + + b.HasKey("Id"); + + b.HasIndex("BanId"); + + b.HasIndex("BankAccountId"); + + b.HasIndex("BusinessId") + .IsUnique(); + + b.HasIndex("CharacterId"); + + b.HasIndex("FactionId"); + + b.HasIndex("FactionRankId"); + + b.HasIndex("GroupId"); + + b.HasIndex("HouseId"); + + b.ToTable("Users"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.UserBankAccount", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Active") + .HasColumnType("tinyint(1)"); + + b.Property("Balance") + .HasColumnType("int"); + + b.Property("Bic") + .HasColumnType("varchar(12) CHARACTER SET utf8mb4") + .HasMaxLength(12); + + b.Property("Iban") + .HasColumnType("varchar(32) CHARACTER SET utf8mb4") + .HasMaxLength(32); + + b.HasKey("Id"); + + b.ToTable("UserBankAccounts"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.UserItem", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Amount") + .HasColumnType("int"); + + b.Property("ItemId") + .HasColumnType("int"); + + b.Property("Slot") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.ToTable("UserItems"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.VehicleItem", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Amount") + .HasColumnType("int"); + + b.Property("ItemId") + .HasColumnType("int"); + + b.Property("Slot") + .HasColumnType("int"); + + b.Property("VehicleId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VehicleId"); + + b.ToTable("VehicleItems"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.VehicleMod", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("ModId") + .HasColumnType("int"); + + b.Property("ServerVehicleId") + .HasColumnType("int"); + + b.Property("Slot") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("ServerVehicleId", "Slot") + .IsUnique(); + + b.ToTable("VehicleMods"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Whitelist", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("SocialClubName") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.HasKey("Id"); + + b.ToTable("WhitelistEntries"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.FactionVehicle", b => + { + b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle"); + + b.Property("Owners") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.ToTable("FactionVehicles"); + + b.HasDiscriminator().HasValue("FactionVehicle"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.GroupVehicle", b => + { + b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle"); + + b.Property("GroupId") + .HasColumnType("int"); + + b.HasIndex("GroupId"); + + b.HasDiscriminator().HasValue("GroupVehicle"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.JobVehicle", b => + { + b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle"); + + b.Property("JobId") + .HasColumnType("int"); + + b.HasDiscriminator().HasValue("JobVehicle"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.NoobSpawnVehicle", b => + { + b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle"); + + b.HasDiscriminator().HasValue("NoobSpawnVehicle"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.NoobVehicle", b => + { + b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle"); + + b.HasDiscriminator().HasValue("NoobVehicle"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Saves.SavedVehicle", b => + { + b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle"); + + b.HasDiscriminator().HasValue("SavedVehicle"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.SchoolVehicle", b => + { + b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle"); + + b.Property("SchoolId") + .HasColumnType("int"); + + b.HasDiscriminator().HasValue("SchoolVehicle"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.ShopVehicle", b => + { + b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle"); + + b.Property("BusinessId") + .HasColumnType("int"); + + b.Property("Price") + .HasColumnType("int"); + + b.ToTable("ShopVehicles"); + + b.HasDiscriminator().HasValue("ShopVehicle"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.UserVehicle", b => + { + b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle"); + + b.Property("Price") + .HasColumnName("UserVehicle_Price") + .HasColumnType("int"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasIndex("UserId"); + + b.ToTable("UserVehicles"); + + b.HasDiscriminator().HasValue("UserVehicle"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Ban", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.User", "User") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.BusRoutePoint", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.BusRoute", "BusRoute") + .WithMany("RoutePoints") + .HasForeignKey("BusRouteId"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Character", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.User", "User") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.CharacterCloth", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.User", "User") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Door", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.Faction", "Faction") + .WithMany() + .HasForeignKey("FactionId"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.DutyCloth", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.Faction", "Faction") + .WithMany() + .HasForeignKey("FactionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Faction", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.FactionBankAccount", "BankAccount") + .WithMany() + .HasForeignKey("BankAccountId"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.FactionRank", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.Faction", "Faction") + .WithMany() + .HasForeignKey("FactionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.FactionWeapon", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.Faction", "Faction") + .WithMany() + .HasForeignKey("FactionId"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Group", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.GroupBankAccount", "BankAccount") + .WithMany() + .HasForeignKey("BankAccountId"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.House", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.HouseBankAccount", "BankAccount") + .WithMany() + .HasForeignKey("BankAccountId"); + + b.HasOne("ReallifeGamemode.Database.Entities.User", "Owner") + .WithMany() + .HasForeignKey("OwnerId"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.HouseRental", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.House", "House") + .WithMany("Rentals") + .HasForeignKey("HouseId"); + + b.HasOne("ReallifeGamemode.Database.Entities.User", "User") + .WithMany() + .HasForeignKey("UserId"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.Logs.Death", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.User", "Killer") + .WithMany() + .HasForeignKey("KillerId"); + + b.HasOne("ReallifeGamemode.Database.Entities.User", "Victim") + .WithMany() + .HasForeignKey("VictimId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.News", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.User", "User") + .WithMany() + .HasForeignKey("UserId"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.User", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.Ban", "Ban") + .WithMany() + .HasForeignKey("BanId"); + + b.HasOne("ReallifeGamemode.Database.Entities.UserBankAccount", "BankAccount") + .WithMany() + .HasForeignKey("BankAccountId"); + + b.HasOne("ReallifeGamemode.Database.Entities.Character", "Character") + .WithMany() + .HasForeignKey("CharacterId"); + + b.HasOne("ReallifeGamemode.Database.Entities.Faction", "Faction") + .WithMany() + .HasForeignKey("FactionId"); + + b.HasOne("ReallifeGamemode.Database.Entities.FactionRank", "FactionRank") + .WithMany() + .HasForeignKey("FactionRankId"); + + b.HasOne("ReallifeGamemode.Database.Entities.Group", "Group") + .WithMany() + .HasForeignKey("GroupId"); + + b.HasOne("ReallifeGamemode.Database.Entities.House", "House") + .WithMany() + .HasForeignKey("HouseId"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.UserItem", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.User", "User") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.VehicleItem", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.ServerVehicle", "Vehicle") + .WithMany() + .HasForeignKey("VehicleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.VehicleMod", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.ServerVehicle", "Vehicle") + .WithMany() + .HasForeignKey("ServerVehicleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.GroupVehicle", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.Group", "Group") + .WithMany() + .HasForeignKey("GroupId"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.UserVehicle", b => + { + b.HasOne("ReallifeGamemode.Database.Entities.User", "User") + .WithMany() + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/ReallifeGamemode.Database/Migrations/20200427130648_UserJobSkillBusPilot.cs b/ReallifeGamemode.Database/Migrations/20200427130648_UserJobSkillBusPilot.cs new file mode 100644 index 00000000..4c6b39ae --- /dev/null +++ b/ReallifeGamemode.Database/Migrations/20200427130648_UserJobSkillBusPilot.cs @@ -0,0 +1,31 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace ReallifeGamemode.Database.Migrations +{ + public partial class UserJobSkillBusPilot : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "BusSkill", + table: "Users", + nullable: true); + + migrationBuilder.AddColumn( + name: "PilotSkill", + table: "Users", + nullable: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "BusSkill", + table: "Users"); + + migrationBuilder.DropColumn( + name: "PilotSkill", + table: "Users"); + } + } +} diff --git a/ReallifeGamemode.Database/Migrations/DatabaseContextModelSnapshot.cs b/ReallifeGamemode.Database/Migrations/DatabaseContextModelSnapshot.cs index c9d0faa9..a6cfde7f 100644 --- a/ReallifeGamemode.Database/Migrations/DatabaseContextModelSnapshot.cs +++ b/ReallifeGamemode.Database/Migrations/DatabaseContextModelSnapshot.cs @@ -14,25 +14,33 @@ namespace ReallifeGamemode.Database.Migrations { #pragma warning disable 612, 618 modelBuilder - .HasAnnotation("ProductVersion", "2.1.11-servicing-32099") + .HasAnnotation("ProductVersion", "3.1.3") + .HasAnnotation("PropertyAccessMode", PropertyAccessMode.PreferFieldDuringConstruction) .HasAnnotation("Relational:MaxIdentifierLength", 64); modelBuilder.Entity("ReallifeGamemode.Database.Entities.ATM", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Active"); + b.Property("Active") + .HasColumnType("tinyint(1)"); - b.Property("Balance"); + b.Property("Balance") + .HasColumnType("int"); - b.Property("Faulty"); + b.Property("Faulty") + .HasColumnType("tinyint(1)"); - b.Property("X"); + b.Property("X") + .HasColumnType("float"); - b.Property("Y"); + b.Property("Y") + .HasColumnType("float"); - b.Property("Z"); + b.Property("Z") + .HasColumnType("float"); b.HasKey("Id"); @@ -42,17 +50,23 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.Ban", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Applied"); + b.Property("Applied") + .HasColumnType("int"); - b.Property("BannedBy"); + b.Property("BannedBy") + .HasColumnType("longtext CHARACTER SET utf8mb4"); - b.Property("Reason"); + b.Property("Reason") + .HasColumnType("longtext CHARACTER SET utf8mb4"); - b.Property("UntilDateTime"); + b.Property("UntilDateTime") + .HasColumnType("int"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("int"); b.HasKey("Id"); @@ -61,14 +75,59 @@ namespace ReallifeGamemode.Database.Migrations b.ToTable("Bans"); }); + modelBuilder.Entity("ReallifeGamemode.Database.Entities.BusRoute", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("Description") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.HasKey("Id"); + + b.ToTable("BusRoutes"); + }); + + modelBuilder.Entity("ReallifeGamemode.Database.Entities.BusRoutePoint", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("BusRouteId") + .HasColumnType("int"); + + b.Property("Description") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("X") + .HasColumnType("float"); + + b.Property("Y") + .HasColumnType("float"); + + b.Property("Z") + .HasColumnType("float"); + + b.HasKey("Id"); + + b.HasIndex("BusRouteId"); + + b.ToTable("BusRoutesPoints"); + }); + modelBuilder.Entity("ReallifeGamemode.Database.Entities.BusinessBankAccount", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Balance"); + b.Property("Balance") + .HasColumnType("int"); - b.Property("BusinessId"); + b.Property("BusinessId") + .HasColumnType("int"); b.HasKey("Id"); @@ -81,169 +140,196 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.BusinessData", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("BusinessId"); + b.Property("BusinessId") + .HasColumnType("int"); - b.Property("Price"); + b.Property("Price") + .HasColumnType("int"); b.HasKey("Id"); b.ToTable("BusinessData"); }); - modelBuilder.Entity("ReallifeGamemode.Database.Entities.BusRoute", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("Description"); - - b.HasKey("Id"); - - b.ToTable("BusRoutes"); - }); - - modelBuilder.Entity("ReallifeGamemode.Database.Entities.BusRoutePoint", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); - - b.Property("BusRouteId"); - - b.Property("Description"); - - b.Property("X"); - - b.Property("Y"); - - b.Property("Z"); - - b.HasKey("Id"); - - b.HasIndex("BusRouteId"); - - b.ToTable("BusRoutesPoints"); - }); - modelBuilder.Entity("ReallifeGamemode.Database.Entities.Character", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Ageing"); + b.Property("Ageing") + .HasColumnType("tinyint unsigned"); - b.Property("AgeingOpacity"); + b.Property("AgeingOpacity") + .HasColumnType("float"); - b.Property("BeardColor"); + b.Property("BeardColor") + .HasColumnType("tinyint unsigned"); - b.Property("Blemishes"); + b.Property("Blemishes") + .HasColumnType("tinyint unsigned"); - b.Property("BlemishesOpacity"); + b.Property("BlemishesOpacity") + .HasColumnType("float"); - b.Property("Blush"); + b.Property("Blush") + .HasColumnType("tinyint unsigned"); - b.Property("BlushColor"); + b.Property("BlushColor") + .HasColumnType("tinyint unsigned"); - b.Property("BlushOpacity"); + b.Property("BlushOpacity") + .HasColumnType("float"); - b.Property("BrowDepth"); + b.Property("BrowDepth") + .HasColumnType("float"); - b.Property("BrowHeight"); + b.Property("BrowHeight") + .HasColumnType("float"); - b.Property("CheekDepth"); + b.Property("CheekDepth") + .HasColumnType("float"); - b.Property("CheekboneHeight"); + b.Property("CheekboneHeight") + .HasColumnType("float"); - b.Property("CheekboneWidth"); + b.Property("CheekboneWidth") + .HasColumnType("float"); - b.Property("ChestHair"); + b.Property("ChestHair") + .HasColumnType("tinyint unsigned"); - b.Property("ChestHairColor"); + b.Property("ChestHairColor") + .HasColumnType("tinyint unsigned"); - b.Property("ChestHairOpacity"); + b.Property("ChestHairOpacity") + .HasColumnType("float"); - b.Property("ChinDepth"); + b.Property("ChinDepth") + .HasColumnType("float"); - b.Property("ChinHeight"); + b.Property("ChinHeight") + .HasColumnType("float"); - b.Property("ChinIndent"); + b.Property("ChinIndent") + .HasColumnType("float"); - b.Property("ChinWidth"); + b.Property("ChinWidth") + .HasColumnType("float"); - b.Property("Complexion"); + b.Property("Complexion") + .HasColumnType("tinyint unsigned"); - b.Property("ComplexionOpacity"); + b.Property("ComplexionOpacity") + .HasColumnType("float"); - b.Property("EyeColor"); + b.Property("EyeColor") + .HasColumnType("tinyint unsigned"); - b.Property("EyeSize"); + b.Property("EyeSize") + .HasColumnType("float"); - b.Property("EyebrowColor"); + b.Property("EyebrowColor") + .HasColumnType("tinyint unsigned"); - b.Property("Eyebrows"); + b.Property("Eyebrows") + .HasColumnType("tinyint unsigned"); - b.Property("EyebrowsOpacity"); + b.Property("EyebrowsOpacity") + .HasColumnType("float"); - b.Property("FacialHair"); + b.Property("FacialHair") + .HasColumnType("tinyint unsigned"); - b.Property("FacialHairOpacity"); + b.Property("FacialHairOpacity") + .HasColumnType("float"); - b.Property("Father"); + b.Property("Father") + .HasColumnType("tinyint unsigned"); - b.Property("Freckles"); + b.Property("Freckles") + .HasColumnType("tinyint unsigned"); - b.Property("FrecklesOpacity"); + b.Property("FrecklesOpacity") + .HasColumnType("float"); - b.Property("Gender"); + b.Property("Gender") + .HasColumnType("tinyint(1)"); - b.Property("Hair"); + b.Property("Hair") + .HasColumnType("tinyint unsigned"); - b.Property("HairColor"); + b.Property("HairColor") + .HasColumnType("tinyint unsigned"); - b.Property("HairHighlightColor"); + b.Property("HairHighlightColor") + .HasColumnType("tinyint unsigned"); - b.Property("JawShape"); + b.Property("JawShape") + .HasColumnType("float"); - b.Property("JawWidth"); + b.Property("JawWidth") + .HasColumnType("float"); - b.Property("LipThickness"); + b.Property("LipThickness") + .HasColumnType("float"); - b.Property("Lipstick"); + b.Property("Lipstick") + .HasColumnType("tinyint unsigned"); - b.Property("LipstickColor"); + b.Property("LipstickColor") + .HasColumnType("tinyint unsigned"); - b.Property("LipstickOpacity"); + b.Property("LipstickOpacity") + .HasColumnType("float"); - b.Property("Makeup"); + b.Property("Makeup") + .HasColumnType("tinyint unsigned"); - b.Property("MakeupOpacity"); + b.Property("MakeupOpacity") + .HasColumnType("float"); - b.Property("Mother"); + b.Property("Mother") + .HasColumnType("tinyint unsigned"); - b.Property("NeckWidth"); + b.Property("NeckWidth") + .HasColumnType("float"); - b.Property("NoseBottomHeight"); + b.Property("NoseBottomHeight") + .HasColumnType("float"); - b.Property("NoseBridgeDepth"); + b.Property("NoseBridgeDepth") + .HasColumnType("float"); - b.Property("NoseBroken"); + b.Property("NoseBroken") + .HasColumnType("float"); - b.Property("NoseTipHeight"); + b.Property("NoseTipHeight") + .HasColumnType("float"); - b.Property("NoseTipLength"); + b.Property("NoseTipLength") + .HasColumnType("float"); - b.Property("NoseWidth"); + b.Property("NoseWidth") + .HasColumnType("float"); - b.Property("Similarity"); + b.Property("Similarity") + .HasColumnType("float"); - b.Property("SkinSimilarity"); + b.Property("SkinSimilarity") + .HasColumnType("float"); - b.Property("SunDamage"); + b.Property("SunDamage") + .HasColumnType("tinyint unsigned"); - b.Property("SunDamageOpacity"); + b.Property("SunDamageOpacity") + .HasColumnType("float"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("int"); b.HasKey("Id"); @@ -255,19 +341,26 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.CharacterCloth", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("ClothId"); + b.Property("ClothId") + .HasColumnType("int"); - b.Property("Duty"); + b.Property("Duty") + .HasColumnType("tinyint(1)"); - b.Property("SlotId"); + b.Property("SlotId") + .HasColumnType("int"); - b.Property("SlotType"); + b.Property("SlotType") + .HasColumnType("tinyint unsigned"); - b.Property("Texture"); + b.Property("Texture") + .HasColumnType("int"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("int"); b.HasKey("Id"); @@ -279,15 +372,20 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.ClothCombination", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Gender"); + b.Property("Gender") + .HasColumnType("tinyint(1)"); - b.Property("Top"); + b.Property("Top") + .HasColumnType("int"); - b.Property("Torso"); + b.Property("Torso") + .HasColumnType("int"); - b.Property("Undershirt"); + b.Property("Undershirt") + .HasColumnType("int"); b.HasKey("Id"); @@ -297,25 +395,35 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.Door", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Category"); + b.Property("Category") + .HasColumnType("longtext CHARACTER SET utf8mb4"); - b.Property("FactionId"); + b.Property("FactionId") + .HasColumnType("int"); - b.Property("Locked"); + b.Property("Locked") + .HasColumnType("tinyint(1)"); - b.Property("Model"); + b.Property("Model") + .HasColumnType("int"); - b.Property("Name"); + b.Property("Name") + .HasColumnType("longtext CHARACTER SET utf8mb4"); - b.Property("Radius"); + b.Property("Radius") + .HasColumnType("float"); - b.Property("X"); + b.Property("X") + .HasColumnType("float"); - b.Property("Y"); + b.Property("Y") + .HasColumnType("float"); - b.Property("Z"); + b.Property("Z") + .HasColumnType("float"); b.HasKey("Id"); @@ -327,17 +435,23 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.DutyCloth", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("ClothId"); + b.Property("ClothId") + .HasColumnType("int"); - b.Property("FactionId"); + b.Property("FactionId") + .HasColumnType("int"); - b.Property("Gender"); + b.Property("Gender") + .HasColumnType("tinyint(1)"); - b.Property("SlotId"); + b.Property("SlotId") + .HasColumnType("int"); - b.Property("SlotType"); + b.Property("SlotType") + .HasColumnType("tinyint unsigned"); b.HasKey("Id"); @@ -349,16 +463,21 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.Faction", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("BankAccountId"); + b.Property("BankAccountId") + .HasColumnType("int"); b.Property("Name") + .HasColumnType("varchar(32) CHARACTER SET utf8mb4") .HasMaxLength(32); - b.Property("StateOwned"); + b.Property("StateOwned") + .HasColumnType("tinyint(1)"); - b.Property("WeaponDealTime"); + b.Property("WeaponDealTime") + .HasColumnType("int"); b.HasKey("Id"); @@ -370,16 +489,21 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.FactionBankAccount", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Active"); + b.Property("Active") + .HasColumnType("tinyint(1)"); - b.Property("Balance"); + b.Property("Balance") + .HasColumnType("int"); b.Property("Bic") + .HasColumnType("varchar(12) CHARACTER SET utf8mb4") .HasMaxLength(12); b.Property("Iban") + .HasColumnType("varchar(32) CHARACTER SET utf8mb4") .HasMaxLength(32); b.HasKey("Id"); @@ -390,13 +514,17 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.FactionRank", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("FactionId"); + b.Property("FactionId") + .HasColumnType("int"); - b.Property("Order"); + b.Property("Order") + .HasColumnType("int"); - b.Property("RankName"); + b.Property("RankName") + .HasColumnType("longtext CHARACTER SET utf8mb4"); b.HasKey("Id"); @@ -408,17 +536,23 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.FactionWeapon", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Ammount"); + b.Property("Ammount") + .HasColumnType("int"); - b.Property("FactionId"); + b.Property("FactionId") + .HasColumnType("int"); - b.Property("Rank"); + b.Property("Rank") + .HasColumnType("int"); - b.Property("SlotID"); + b.Property("SlotID") + .HasColumnType("int"); - b.Property("WeaponModel"); + b.Property("WeaponModel") + .HasColumnType("longtext CHARACTER SET utf8mb4"); b.HasKey("Id"); @@ -430,18 +564,24 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.GotoPoint", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Active"); + b.Property("Active") + .HasColumnType("tinyint(1)"); b.Property("Description") + .HasColumnType("varchar(32) CHARACTER SET utf8mb4") .HasMaxLength(32); - b.Property("X"); + b.Property("X") + .HasColumnType("float"); - b.Property("Y"); + b.Property("Y") + .HasColumnType("float"); - b.Property("Z"); + b.Property("Z") + .HasColumnType("float"); b.HasKey("Id"); @@ -451,11 +591,14 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.Group", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("BankAccountId"); + b.Property("BankAccountId") + .HasColumnType("int"); - b.Property("Name"); + b.Property("Name") + .HasColumnType("longtext CHARACTER SET utf8mb4"); b.HasKey("Id"); @@ -467,9 +610,11 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.GroupBankAccount", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Balance"); + b.Property("Balance") + .HasColumnType("int"); b.HasKey("Id"); @@ -479,27 +624,38 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.House", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("BankAccountId"); + b.Property("BankAccountId") + .HasColumnType("int"); - b.Property("CanRentIn"); + b.Property("CanRentIn") + .HasColumnType("tinyint(1)"); - b.Property("LastRentSetTime"); + b.Property("LastRentSetTime") + .HasColumnType("datetime(6)"); - b.Property("OwnerId"); + b.Property("OwnerId") + .HasColumnType("int"); - b.Property("Price"); + b.Property("Price") + .HasColumnType("int"); - b.Property("RentalFee"); + b.Property("RentalFee") + .HasColumnType("int"); - b.Property("Type"); + b.Property("Type") + .HasColumnType("longtext CHARACTER SET utf8mb4"); - b.Property("X"); + b.Property("X") + .HasColumnType("float"); - b.Property("Y"); + b.Property("Y") + .HasColumnType("float"); - b.Property("Z"); + b.Property("Z") + .HasColumnType("float"); b.HasKey("Id"); @@ -513,9 +669,11 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.HouseBankAccount", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Balance"); + b.Property("Balance") + .HasColumnType("int"); b.HasKey("Id"); @@ -525,11 +683,14 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.HouseRental", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("HouseId"); + b.Property("HouseId") + .HasColumnType("int"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("int"); b.HasKey("Id"); @@ -543,15 +704,19 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.Interior", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); b.Property("EnterPositionStr") - .HasColumnName("EnterPosition"); + .HasColumnName("EnterPosition") + .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("ExitPositionStr") - .HasColumnName("ExitPosition"); + .HasColumnName("ExitPosition") + .HasColumnType("longtext CHARACTER SET utf8mb4"); - b.Property("Name"); + b.Property("Name") + .HasColumnType("longtext CHARACTER SET utf8mb4"); b.HasKey("Id"); @@ -561,17 +726,23 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.Location", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Description"); + b.Property("Description") + .HasColumnType("longtext CHARACTER SET utf8mb4"); - b.Property("Heading"); + b.Property("Heading") + .HasColumnType("double"); - b.Property("X"); + b.Property("X") + .HasColumnType("double"); - b.Property("Y"); + b.Property("Y") + .HasColumnType("double"); - b.Property("Z"); + b.Property("Z") + .HasColumnType("double"); b.HasKey("Id"); @@ -581,31 +752,42 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.Logs.BankAccountTransactionHistory", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Fee"); + b.Property("Fee") + .HasColumnType("int"); - b.Property("MoneySent"); + b.Property("MoneySent") + .HasColumnType("int"); - b.Property("NewReceiverBalance"); + b.Property("NewReceiverBalance") + .HasColumnType("int"); - b.Property("NewSenderBalance"); + b.Property("NewSenderBalance") + .HasColumnType("int"); b.Property("Origin") + .HasColumnType("varchar(32) CHARACTER SET utf8mb4") .HasMaxLength(32); b.Property("Receiver") + .HasColumnType("varchar(32) CHARACTER SET utf8mb4") .HasMaxLength(32); - b.Property("ReceiverBalance"); + b.Property("ReceiverBalance") + .HasColumnType("int"); b.Property("Sender") + .HasColumnType("varchar(32) CHARACTER SET utf8mb4") .HasMaxLength(32); - b.Property("SenderBalance"); + b.Property("SenderBalance") + .HasColumnType("int"); b.Property("Timestamp") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("datetime(6)"); b.HasKey("Id"); @@ -615,33 +797,46 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.Logs.Death", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); b.Property("CauseOfDeath") + .HasColumnType("varchar(64) CHARACTER SET utf8mb4") .HasMaxLength(64); - b.Property("KillerHeading"); + b.Property("KillerHeading") + .HasColumnType("float"); - b.Property("KillerId"); + b.Property("KillerId") + .HasColumnType("int"); - b.Property("KillerPositionX"); + b.Property("KillerPositionX") + .HasColumnType("float"); - b.Property("KillerPositionY"); + b.Property("KillerPositionY") + .HasColumnType("float"); - b.Property("KillerPositionZ"); + b.Property("KillerPositionZ") + .HasColumnType("float"); b.Property("Timestamp") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("datetime(6)"); - b.Property("VictimHeading"); + b.Property("VictimHeading") + .HasColumnType("float"); - b.Property("VictimId"); + b.Property("VictimId") + .HasColumnType("int"); - b.Property("VictimPositionX"); + b.Property("VictimPositionX") + .HasColumnType("float"); - b.Property("VictimPositionY"); + b.Property("VictimPositionY") + .HasColumnType("float"); - b.Property("VictimPositionZ"); + b.Property("VictimPositionZ") + .HasColumnType("float"); b.HasKey("Id"); @@ -655,17 +850,23 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.News", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Active"); + b.Property("Active") + .HasColumnType("tinyint(1)"); - b.Property("Caption"); + b.Property("Caption") + .HasColumnType("longtext CHARACTER SET utf8mb4"); - b.Property("Content"); + b.Property("Content") + .HasColumnType("longtext CHARACTER SET utf8mb4"); - b.Property("Timestamp"); + b.Property("Timestamp") + .HasColumnType("int"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("int"); b.HasKey("Id"); @@ -677,33 +878,47 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.Saves.SavedBlip", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Active"); + b.Property("Active") + .HasColumnType("tinyint(1)"); - b.Property("Alpha"); + b.Property("Alpha") + .HasColumnType("tinyint unsigned"); - b.Property("Color"); + b.Property("Color") + .HasColumnType("tinyint unsigned"); - b.Property("Dimension"); + b.Property("Dimension") + .HasColumnType("tinyint unsigned"); - b.Property("DrawDistance"); + b.Property("DrawDistance") + .HasColumnType("float"); - b.Property("Name"); + b.Property("Name") + .HasColumnType("longtext CHARACTER SET utf8mb4"); - b.Property("PositionX"); + b.Property("PositionX") + .HasColumnType("float"); - b.Property("PositionY"); + b.Property("PositionY") + .HasColumnType("float"); - b.Property("PositionZ"); + b.Property("PositionZ") + .HasColumnType("float"); - b.Property("Rotation"); + b.Property("Rotation") + .HasColumnType("float"); - b.Property("Scale"); + b.Property("Scale") + .HasColumnType("float"); - b.Property("ShortRange"); + b.Property("ShortRange") + .HasColumnType("tinyint(1)"); - b.Property("Sprite"); + b.Property("Sprite") + .HasColumnType("smallint"); b.HasKey("Id"); @@ -713,43 +928,62 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.Saves.SavedMarker", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Active"); + b.Property("Active") + .HasColumnType("tinyint(1)"); - b.Property("ColorA"); + b.Property("ColorA") + .HasColumnType("tinyint unsigned"); - b.Property("ColorB"); + b.Property("ColorB") + .HasColumnType("tinyint unsigned"); - b.Property("ColorG"); + b.Property("ColorG") + .HasColumnType("tinyint unsigned"); - b.Property("ColorR"); + b.Property("ColorR") + .HasColumnType("tinyint unsigned"); - b.Property("Dimension"); + b.Property("Dimension") + .HasColumnType("tinyint unsigned"); - b.Property("DirectionX"); + b.Property("DirectionX") + .HasColumnType("float"); - b.Property("DirectionY"); + b.Property("DirectionY") + .HasColumnType("float"); - b.Property("DirectionZ"); + b.Property("DirectionZ") + .HasColumnType("float"); - b.Property("PositionX"); + b.Property("PositionX") + .HasColumnType("float"); - b.Property("PositionY"); + b.Property("PositionY") + .HasColumnType("float"); - b.Property("PositionZ"); + b.Property("PositionZ") + .HasColumnType("float"); - b.Property("RotationX"); + b.Property("RotationX") + .HasColumnType("float"); - b.Property("RotationY"); + b.Property("RotationY") + .HasColumnType("float"); - b.Property("RotationZ"); + b.Property("RotationZ") + .HasColumnType("float"); - b.Property("Scale"); + b.Property("Scale") + .HasColumnType("float"); - b.Property("Type"); + b.Property("Type") + .HasColumnType("tinyint unsigned"); - b.Property("Visible"); + b.Property("Visible") + .HasColumnType("tinyint(1)"); b.HasKey("Id"); @@ -759,21 +993,29 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.Saves.SavedPed", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Active"); + b.Property("Active") + .HasColumnType("tinyint(1)"); - b.Property("Dimension"); + b.Property("Dimension") + .HasColumnType("tinyint unsigned"); - b.Property("HashModel"); + b.Property("HashModel") + .HasColumnType("longtext CHARACTER SET utf8mb4"); - b.Property("Heading"); + b.Property("Heading") + .HasColumnType("float"); - b.Property("PositionX"); + b.Property("PositionX") + .HasColumnType("float"); - b.Property("PositionY"); + b.Property("PositionY") + .HasColumnType("float"); - b.Property("PositionZ"); + b.Property("PositionZ") + .HasColumnType("float"); b.HasKey("Id"); @@ -783,28 +1025,39 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.Saves.SavedPickup", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Active"); + b.Property("Active") + .HasColumnType("tinyint(1)"); - b.Property("Dimension"); + b.Property("Dimension") + .HasColumnType("tinyint unsigned"); b.Property("PositionX") + .HasColumnType("float") .HasMaxLength(128); - b.Property("PositionY"); + b.Property("PositionY") + .HasColumnType("float"); - b.Property("PositionZ"); + b.Property("PositionZ") + .HasColumnType("float"); - b.Property("RespawnTime"); + b.Property("RespawnTime") + .HasColumnType("int"); - b.Property("RotationX"); + b.Property("RotationX") + .HasColumnType("float"); - b.Property("RotationY"); + b.Property("RotationY") + .HasColumnType("float"); - b.Property("RotationZ"); + b.Property("RotationZ") + .HasColumnType("float"); - b.Property("Vehicle"); + b.Property("Vehicle") + .HasColumnType("tinyint(1)"); b.HasKey("Id"); @@ -814,34 +1067,48 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.Saves.SavedTextLabel", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Active"); + b.Property("Active") + .HasColumnType("tinyint(1)"); - b.Property("ColorA"); + b.Property("ColorA") + .HasColumnType("tinyint unsigned"); - b.Property("ColorB"); + b.Property("ColorB") + .HasColumnType("tinyint unsigned"); - b.Property("ColorG"); + b.Property("ColorG") + .HasColumnType("tinyint unsigned"); - b.Property("ColorR"); + b.Property("ColorR") + .HasColumnType("tinyint unsigned"); - b.Property("Dimension"); + b.Property("Dimension") + .HasColumnType("tinyint unsigned"); - b.Property("DrawDistance"); + b.Property("DrawDistance") + .HasColumnType("float"); - b.Property("Font"); + b.Property("Font") + .HasColumnType("tinyint unsigned"); - b.Property("LOS"); + b.Property("LOS") + .HasColumnType("tinyint(1)"); - b.Property("PositionX"); + b.Property("PositionX") + .HasColumnType("float"); - b.Property("PositionY"); + b.Property("PositionY") + .HasColumnType("float"); - b.Property("PositionZ"); + b.Property("PositionZ") + .HasColumnType("float"); b.Property("Text") - .IsRequired(); + .IsRequired() + .HasColumnType("longtext CHARACTER SET utf8mb4"); b.HasKey("Id"); @@ -851,39 +1118,54 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.ServerVehicle", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); b.Property("Active") .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") .HasDefaultValue(true); b.Property("Discriminator") - .IsRequired(); + .IsRequired() + .HasColumnType("longtext CHARACTER SET utf8mb4"); - b.Property("DistanceDriven"); + b.Property("DistanceDriven") + .HasColumnType("float"); - b.Property("Heading"); + b.Property("Heading") + .HasColumnType("float"); - b.Property("Livery"); + b.Property("Livery") + .HasColumnType("int"); - b.Property("Locked"); + b.Property("Locked") + .HasColumnType("tinyint(1)"); - b.Property("Model"); + b.Property("Model") + .HasColumnType("int unsigned"); b.Property("NumberPlate") + .HasColumnType("varchar(8) CHARACTER SET utf8mb4") .HasMaxLength(8); - b.Property("PositionX"); + b.Property("PositionX") + .HasColumnType("float"); - b.Property("PositionY"); + b.Property("PositionY") + .HasColumnType("float"); - b.Property("PositionZ"); + b.Property("PositionZ") + .HasColumnType("float"); - b.Property("PrimaryColor"); + b.Property("PrimaryColor") + .HasColumnType("int"); - b.Property("SecondaryColor"); + b.Property("SecondaryColor") + .HasColumnType("int"); - b.Property("TankAmount"); + b.Property("TankAmount") + .HasColumnType("float"); b.HasKey("Id"); @@ -895,19 +1177,26 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.ShopClothe", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Category"); + b.Property("Category") + .HasColumnType("int"); - b.Property("ClotheId"); + b.Property("ClotheId") + .HasColumnType("int"); - b.Property("ComponentId"); + b.Property("ComponentId") + .HasColumnType("int"); - b.Property("Gender"); + b.Property("Gender") + .HasColumnType("tinyint(1)"); - b.Property("Price"); + b.Property("Price") + .HasColumnType("int"); - b.Property("TypeId"); + b.Property("TypeId") + .HasColumnType("longtext CHARACTER SET utf8mb4"); b.HasKey("Id"); @@ -917,15 +1206,20 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.ShopItem", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Amount"); + b.Property("Amount") + .HasColumnType("int"); - b.Property("ItemId"); + b.Property("ItemId") + .HasColumnType("int"); - b.Property("Price"); + b.Property("Price") + .HasColumnType("int"); - b.Property("ShopId"); + b.Property("ShopId") + .HasColumnType("int"); b.HasKey("Id"); @@ -935,13 +1229,17 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.TuningGarage", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("X"); + b.Property("X") + .HasColumnType("float"); - b.Property("Y"); + b.Property("Y") + .HasColumnType("float"); - b.Property("Z"); + b.Property("Z") + .HasColumnType("float"); b.HasKey("Id"); @@ -951,31 +1249,44 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.Turfs", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Color"); + b.Property("Color") + .HasColumnType("int"); - b.Property("FactionId"); + b.Property("FactionId") + .HasColumnType("int"); - b.Property("MaxValue"); + b.Property("MaxValue") + .HasColumnType("int"); - b.Property("Name"); + b.Property("Name") + .HasColumnType("longtext CHARACTER SET utf8mb4"); - b.Property("Owner"); + b.Property("Owner") + .HasColumnType("longtext CHARACTER SET utf8mb4"); - b.Property("Range"); + b.Property("Range") + .HasColumnType("float"); - b.Property("Rotation"); + b.Property("Rotation") + .HasColumnType("float"); - b.Property("Surplus"); + b.Property("Surplus") + .HasColumnType("tinyint(1)"); - b.Property("Value"); + b.Property("Value") + .HasColumnType("int"); - b.Property("Vector"); + b.Property("Vector") + .HasColumnType("longtext CHARACTER SET utf8mb4"); - b.Property("X"); + b.Property("X") + .HasColumnType("float"); - b.Property("Y"); + b.Property("Y") + .HasColumnType("float"); b.HasKey("Id"); @@ -985,78 +1296,118 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.User", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("AdminLevel"); + b.Property("AdminLevel") + .HasColumnType("int"); - b.Property("BanId"); + b.Property("BanId") + .HasColumnType("int"); - b.Property("BankAccountId"); + b.Property("BankAccountId") + .HasColumnType("int"); - b.Property("BusinessId"); + b.Property("BusSkill") + .HasColumnType("int"); - b.Property("CharacterId"); + b.Property("BusinessId") + .HasColumnType("int"); - b.Property("Dead"); + b.Property("CharacterId") + .HasColumnType("int"); - b.Property("DriverLicenseBike"); + b.Property("Dead") + .HasColumnType("tinyint(1)"); - b.Property("DriverLicenseVehicle"); + b.Property("DriverLicenseBike") + .HasColumnType("tinyint(1)"); + + b.Property("DriverLicenseVehicle") + .HasColumnType("tinyint(1)"); b.Property("Email") + .HasColumnType("varchar(64) CHARACTER SET utf8mb4") .HasMaxLength(64); - b.Property("FactionId"); + b.Property("FactionId") + .HasColumnType("int"); - b.Property("FactionLeader"); + b.Property("FactionLeader") + .HasColumnType("tinyint(1)"); - b.Property("FactionRankId"); + b.Property("FactionRankId") + .HasColumnType("int"); - b.Property("FlyingLicensePlane"); + b.Property("FlyingLicensePlane") + .HasColumnType("tinyint(1)"); - b.Property("GroupId"); + b.Property("GroupId") + .HasColumnType("int"); - b.Property("GroupRank"); + b.Property("GroupRank") + .HasColumnType("int"); - b.Property("Handmoney"); + b.Property("Handmoney") + .HasColumnType("int"); - b.Property("HouseId"); + b.Property("HouseId") + .HasColumnType("int"); - b.Property("JailTime"); + b.Property("JailTime") + .HasColumnType("int"); - b.Property("JobId"); + b.Property("JobId") + .HasColumnType("int"); - b.Property("LogUserId"); + b.Property("LogUserId") + .HasColumnType("int"); b.Property("Name") + .HasColumnType("varchar(32) CHARACTER SET utf8mb4") .HasMaxLength(32); b.Property("Password") + .HasColumnType("varchar(64) CHARACTER SET utf8mb4") .HasMaxLength(64); - b.Property("PaydayTimer"); + b.Property("PaydayTimer") + .HasColumnType("int"); - b.Property("PlayedMinutes"); + b.Property("PilotSkill") + .HasColumnType("int"); - b.Property("Points"); + b.Property("PlayedMinutes") + .HasColumnType("int"); - b.Property("PositionX"); + b.Property("Points") + .HasColumnType("int"); - b.Property("PositionY"); + b.Property("PositionX") + .HasColumnType("float"); - b.Property("PositionZ"); + b.Property("PositionY") + .HasColumnType("float"); + + b.Property("PositionZ") + .HasColumnType("float"); b.Property("RegistrationDate") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("datetime(6)"); b.Property("SocialClubName") + .HasColumnType("varchar(32) CHARACTER SET utf8mb4") .HasMaxLength(32); - b.Property("Wage"); + b.Property("Wage") + .HasColumnType("int"); - b.Property("Wanteds"); + b.Property("Wanteds") + .HasColumnType("int"); - b.Property("WeaponLicense"); + b.Property("WeaponLicense") + .HasColumnType("tinyint(1)"); b.HasKey("Id"); @@ -1083,16 +1434,21 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.UserBankAccount", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Active"); + b.Property("Active") + .HasColumnType("tinyint(1)"); - b.Property("Balance"); + b.Property("Balance") + .HasColumnType("int"); b.Property("Bic") + .HasColumnType("varchar(12) CHARACTER SET utf8mb4") .HasMaxLength(12); b.Property("Iban") + .HasColumnType("varchar(32) CHARACTER SET utf8mb4") .HasMaxLength(32); b.HasKey("Id"); @@ -1103,15 +1459,20 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.UserItem", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Amount"); + b.Property("Amount") + .HasColumnType("int"); - b.Property("ItemId"); + b.Property("ItemId") + .HasColumnType("int"); - b.Property("Slot"); + b.Property("Slot") + .HasColumnType("int"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("int"); b.HasKey("Id"); @@ -1123,15 +1484,20 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.VehicleItem", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("Amount"); + b.Property("Amount") + .HasColumnType("int"); - b.Property("ItemId"); + b.Property("ItemId") + .HasColumnType("int"); - b.Property("Slot"); + b.Property("Slot") + .HasColumnType("int"); - b.Property("VehicleId"); + b.Property("VehicleId") + .HasColumnType("int"); b.HasKey("Id"); @@ -1143,13 +1509,17 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.VehicleMod", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("ModId"); + b.Property("ModId") + .HasColumnType("int"); - b.Property("ServerVehicleId"); + b.Property("ServerVehicleId") + .HasColumnType("int"); - b.Property("Slot"); + b.Property("Slot") + .HasColumnType("int"); b.HasKey("Id"); @@ -1162,9 +1532,11 @@ namespace ReallifeGamemode.Database.Migrations modelBuilder.Entity("ReallifeGamemode.Database.Entities.Whitelist", b => { b.Property("Id") - .ValueGeneratedOnAdd(); + .ValueGeneratedOnAdd() + .HasColumnType("int"); - b.Property("SocialClubName"); + b.Property("SocialClubName") + .HasColumnType("longtext CHARACTER SET utf8mb4"); b.HasKey("Id"); @@ -1175,7 +1547,8 @@ namespace ReallifeGamemode.Database.Migrations { b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle"); - b.Property("Owners"); + b.Property("Owners") + .HasColumnType("longtext CHARACTER SET utf8mb4"); b.ToTable("FactionVehicles"); @@ -1186,12 +1559,11 @@ namespace ReallifeGamemode.Database.Migrations { b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle"); - b.Property("GroupId"); + b.Property("GroupId") + .HasColumnType("int"); b.HasIndex("GroupId"); - b.ToTable("GroupVehicle"); - b.HasDiscriminator().HasValue("GroupVehicle"); }); @@ -1199,20 +1571,23 @@ namespace ReallifeGamemode.Database.Migrations { b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle"); - b.Property("JobId"); - - b.ToTable("JobVehicle"); + b.Property("JobId") + .HasColumnType("int"); b.HasDiscriminator().HasValue("JobVehicle"); }); + modelBuilder.Entity("ReallifeGamemode.Database.Entities.NoobSpawnVehicle", b => + { + b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle"); + + b.HasDiscriminator().HasValue("NoobSpawnVehicle"); + }); + modelBuilder.Entity("ReallifeGamemode.Database.Entities.NoobVehicle", b => { b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle"); - - b.ToTable("NoobVehicle"); - b.HasDiscriminator().HasValue("NoobVehicle"); }); @@ -1220,9 +1595,6 @@ namespace ReallifeGamemode.Database.Migrations { b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle"); - - b.ToTable("SavedVehicle"); - b.HasDiscriminator().HasValue("SavedVehicle"); }); @@ -1230,9 +1602,8 @@ namespace ReallifeGamemode.Database.Migrations { b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle"); - b.Property("SchoolId"); - - b.ToTable("SchoolVehicle"); + b.Property("SchoolId") + .HasColumnType("int"); b.HasDiscriminator().HasValue("SchoolVehicle"); }); @@ -1241,9 +1612,11 @@ namespace ReallifeGamemode.Database.Migrations { b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle"); - b.Property("BusinessId"); + b.Property("BusinessId") + .HasColumnType("int"); - b.Property("Price"); + b.Property("Price") + .HasColumnType("int"); b.ToTable("ShopVehicles"); @@ -1255,9 +1628,11 @@ namespace ReallifeGamemode.Database.Migrations b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle"); b.Property("Price") - .HasColumnName("UserVehicle_Price"); + .HasColumnName("UserVehicle_Price") + .HasColumnType("int"); - b.Property("UserId"); + b.Property("UserId") + .HasColumnType("int"); b.HasIndex("UserId"); @@ -1271,7 +1646,8 @@ namespace ReallifeGamemode.Database.Migrations b.HasOne("ReallifeGamemode.Database.Entities.User", "User") .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); }); modelBuilder.Entity("ReallifeGamemode.Database.Entities.BusRoutePoint", b => @@ -1286,7 +1662,8 @@ namespace ReallifeGamemode.Database.Migrations b.HasOne("ReallifeGamemode.Database.Entities.User", "User") .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); }); modelBuilder.Entity("ReallifeGamemode.Database.Entities.CharacterCloth", b => @@ -1294,7 +1671,8 @@ namespace ReallifeGamemode.Database.Migrations b.HasOne("ReallifeGamemode.Database.Entities.User", "User") .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); }); modelBuilder.Entity("ReallifeGamemode.Database.Entities.Door", b => @@ -1309,7 +1687,8 @@ namespace ReallifeGamemode.Database.Migrations b.HasOne("ReallifeGamemode.Database.Entities.Faction", "Faction") .WithMany() .HasForeignKey("FactionId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); }); modelBuilder.Entity("ReallifeGamemode.Database.Entities.Faction", b => @@ -1324,7 +1703,8 @@ namespace ReallifeGamemode.Database.Migrations b.HasOne("ReallifeGamemode.Database.Entities.Faction", "Faction") .WithMany() .HasForeignKey("FactionId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); }); modelBuilder.Entity("ReallifeGamemode.Database.Entities.FactionWeapon", b => @@ -1372,7 +1752,8 @@ namespace ReallifeGamemode.Database.Migrations b.HasOne("ReallifeGamemode.Database.Entities.User", "Victim") .WithMany() .HasForeignKey("VictimId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); }); modelBuilder.Entity("ReallifeGamemode.Database.Entities.News", b => @@ -1418,7 +1799,8 @@ namespace ReallifeGamemode.Database.Migrations b.HasOne("ReallifeGamemode.Database.Entities.User", "User") .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); }); modelBuilder.Entity("ReallifeGamemode.Database.Entities.VehicleItem", b => @@ -1426,7 +1808,8 @@ namespace ReallifeGamemode.Database.Migrations b.HasOne("ReallifeGamemode.Database.Entities.ServerVehicle", "Vehicle") .WithMany() .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); }); modelBuilder.Entity("ReallifeGamemode.Database.Entities.VehicleMod", b => @@ -1434,7 +1817,8 @@ namespace ReallifeGamemode.Database.Migrations b.HasOne("ReallifeGamemode.Database.Entities.ServerVehicle", "Vehicle") .WithMany() .HasForeignKey("ServerVehicleId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); }); modelBuilder.Entity("ReallifeGamemode.Database.Entities.GroupVehicle", b => @@ -1449,7 +1833,8 @@ namespace ReallifeGamemode.Database.Migrations b.HasOne("ReallifeGamemode.Database.Entities.User", "User") .WithMany() .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade); + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); }); #pragma warning restore 612, 618 }