1845 lines
63 KiB
C#
1845 lines
63 KiB
C#
// <auto-generated />
|
|
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<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Active")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("Balance")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Faulty")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<float>("X")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Y")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Z")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("ATMs");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Ban", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Applied")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("BannedBy")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.Property<string>("Reason")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.Property<int>("UntilDateTime")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("Bans");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.BusRoute", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("BusRoutes");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.BusRoutePoint", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("BusRouteId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.Property<float>("X")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Y")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Z")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("BusRouteId");
|
|
|
|
b.ToTable("BusRoutesPoints");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.BusinessBankAccount", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Balance")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BusinessId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("BusinessId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("BusinessBankAccounts");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.BusinessData", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BusinessId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Price")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("BusinessData");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Character", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<byte>("Ageing")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<float>("AgeingOpacity")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<byte>("BeardColor")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<byte>("Blemishes")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<float>("BlemishesOpacity")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<byte>("Blush")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<byte>("BlushColor")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<float>("BlushOpacity")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("BrowDepth")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("BrowHeight")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("CheekDepth")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("CheekboneHeight")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("CheekboneWidth")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<byte>("ChestHair")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<byte>("ChestHairColor")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<float>("ChestHairOpacity")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("ChinDepth")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("ChinHeight")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("ChinIndent")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("ChinWidth")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<byte>("Complexion")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<float>("ComplexionOpacity")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<byte>("EyeColor")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<float>("EyeSize")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<byte>("EyebrowColor")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<byte>("Eyebrows")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<float>("EyebrowsOpacity")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<byte>("FacialHair")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<float>("FacialHairOpacity")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<byte>("Father")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<byte>("Freckles")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<float>("FrecklesOpacity")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<bool>("Gender")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<byte>("Hair")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<byte>("HairColor")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<byte>("HairHighlightColor")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<float>("JawShape")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("JawWidth")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("LipThickness")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<byte>("Lipstick")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<byte>("LipstickColor")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<float>("LipstickOpacity")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<byte>("Makeup")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<float>("MakeupOpacity")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<byte>("Mother")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<float>("NeckWidth")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("NoseBottomHeight")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("NoseBridgeDepth")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("NoseBroken")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("NoseTipHeight")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("NoseTipLength")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("NoseWidth")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Similarity")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("SkinSimilarity")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<byte>("SunDamage")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<float>("SunDamageOpacity")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("Characters");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.CharacterCloth", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ClothId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Duty")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("SlotId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<byte>("SlotType")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<int>("Texture")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("CharacterClothes");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.ClothCombination", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Gender")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("Top")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Torso")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Undershirt")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("ClothCombinations");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Door", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Category")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.Property<int?>("FactionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Locked")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("Model")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.Property<float>("Radius")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("X")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Y")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Z")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("FactionId");
|
|
|
|
b.ToTable("Doors");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.DutyCloth", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ClothId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("FactionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Gender")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("SlotId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<byte>("SlotType")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("FactionId");
|
|
|
|
b.ToTable("DutyClothes");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Faction", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("BankAccountId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("varchar(32) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(32);
|
|
|
|
b.Property<bool>("StateOwned")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("WeaponDealTime")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("BankAccountId");
|
|
|
|
b.ToTable("Factions");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.FactionBankAccount", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Active")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("Balance")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Bic")
|
|
.HasColumnType("varchar(12) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(12);
|
|
|
|
b.Property<string>("Iban")
|
|
.HasColumnType("varchar(32) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(32);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("FactionBankAccounts");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.FactionRank", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("FactionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Order")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("RankName")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("FactionId");
|
|
|
|
b.ToTable("FactionRanks");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.FactionWeapon", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Ammount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("FactionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Rank")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SlotID")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("WeaponModel")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("FactionId");
|
|
|
|
b.ToTable("FactionWeapons");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.GotoPoint", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Active")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("varchar(32) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(32);
|
|
|
|
b.Property<float>("X")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Y")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Z")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("GotoPoints");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Group", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("BankAccountId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("BankAccountId");
|
|
|
|
b.ToTable("Groups");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.GroupBankAccount", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Balance")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("GroupBankAccounts");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.House", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("BankAccountId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("CanRentIn")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<DateTime>("LastRentSetTime")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int?>("OwnerId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Price")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("RentalFee")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Type")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.Property<float>("X")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Y")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Z")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("BankAccountId");
|
|
|
|
b.HasIndex("OwnerId");
|
|
|
|
b.ToTable("Houses");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.HouseBankAccount", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Balance")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("HouseBankAccounts");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.HouseRental", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("HouseId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("HouseId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("HouseRentals");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Interior", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("EnterPositionStr")
|
|
.HasColumnName("EnterPosition")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.Property<string>("ExitPositionStr")
|
|
.HasColumnName("ExitPosition")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Interiors");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Location", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.Property<double>("Heading")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<double>("X")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<double>("Y")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<double>("Z")
|
|
.HasColumnType("double");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Locations");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Logs.BankAccountTransactionHistory", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Fee")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MoneySent")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("NewReceiverBalance")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("NewSenderBalance")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Origin")
|
|
.HasColumnType("varchar(32) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(32);
|
|
|
|
b.Property<string>("Receiver")
|
|
.HasColumnType("varchar(32) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(32);
|
|
|
|
b.Property<int>("ReceiverBalance")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Sender")
|
|
.HasColumnType("varchar(32) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(32);
|
|
|
|
b.Property<int>("SenderBalance")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("Timestamp")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("BankAccountTransactionLogs");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Logs.Death", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("CauseOfDeath")
|
|
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(64);
|
|
|
|
b.Property<float>("KillerHeading")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int?>("KillerId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("KillerPositionX")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("KillerPositionY")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("KillerPositionZ")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<DateTime>("Timestamp")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<float>("VictimHeading")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("VictimId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("VictimPositionX")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("VictimPositionY")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("VictimPositionZ")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("KillerId");
|
|
|
|
b.HasIndex("VictimId");
|
|
|
|
b.ToTable("DeathLogs");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.News", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Active")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Caption")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.Property<string>("Content")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.Property<int>("Timestamp")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("News");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Saves.SavedBlip", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Active")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<byte>("Alpha")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<byte>("Color")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<byte>("Dimension")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<float>("DrawDistance")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.Property<float>("PositionX")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("PositionY")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("PositionZ")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Rotation")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Scale")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<bool>("ShortRange")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<short>("Sprite")
|
|
.HasColumnType("smallint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Blips");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Saves.SavedMarker", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Active")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<byte>("ColorA")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<byte>("ColorB")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<byte>("ColorG")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<byte>("ColorR")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<byte>("Dimension")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<float>("DirectionX")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("DirectionY")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("DirectionZ")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("PositionX")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("PositionY")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("PositionZ")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("RotationX")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("RotationY")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("RotationZ")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Scale")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<byte>("Type")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<bool>("Visible")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Markers");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Saves.SavedPed", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Active")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<byte>("Dimension")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<string>("HashModel")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.Property<float>("Heading")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("PositionX")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("PositionY")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("PositionZ")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Peds");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Saves.SavedPickup", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Active")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<byte>("Dimension")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<float>("PositionX")
|
|
.HasColumnType("float")
|
|
.HasMaxLength(128);
|
|
|
|
b.Property<float>("PositionY")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("PositionZ")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("RespawnTime")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("RotationX")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("RotationY")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("RotationZ")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<bool>("Vehicle")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Pickups");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Saves.SavedTextLabel", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Active")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<byte>("ColorA")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<byte>("ColorB")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<byte>("ColorG")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<byte>("ColorR")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<byte>("Dimension")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<float>("DrawDistance")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<byte>("Font")
|
|
.HasColumnType("tinyint unsigned");
|
|
|
|
b.Property<bool>("LOS")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<float>("PositionX")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("PositionY")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("PositionZ")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("Text")
|
|
.IsRequired()
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("TextLabels");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.ServerVehicle", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Active")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("tinyint(1)")
|
|
.HasDefaultValue(true);
|
|
|
|
b.Property<string>("Discriminator")
|
|
.IsRequired()
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.Property<float>("DistanceDriven")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Heading")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("Livery")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Locked")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<uint>("Model")
|
|
.HasColumnType("int unsigned");
|
|
|
|
b.Property<string>("NumberPlate")
|
|
.HasColumnType("varchar(8) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(8);
|
|
|
|
b.Property<float>("PositionX")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("PositionY")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("PositionZ")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("PrimaryColor")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("SecondaryColor")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("TankAmount")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("ServerVehicles");
|
|
|
|
b.HasDiscriminator<string>("Discriminator").HasValue("ServerVehicle");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.ShopClothe", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Category")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ClotheId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ComponentId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Gender")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("Price")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("TypeId")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("ShopClothes");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.ShopItem", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Amount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ItemId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Price")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ShopId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("ShopItems");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.TuningGarage", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("X")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Y")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Z")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("TuningGarages");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Turfs", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Color")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("FactionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MaxValue")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.Property<string>("Owner")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.Property<float>("Range")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Rotation")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<bool>("Surplus")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("Value")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Vector")
|
|
.HasColumnType("longtext CHARACTER SET utf8mb4");
|
|
|
|
b.Property<float>("X")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("Y")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Turfs");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.User", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("AdminLevel")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("BanId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("BankAccountId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("BusSkill")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("BusinessId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("CharacterId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Dead")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("DriverLicenseBike")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("DriverLicenseVehicle")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Email")
|
|
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(64);
|
|
|
|
b.Property<int?>("FactionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("FactionLeader")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int?>("FactionRankId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("FlyingLicensePlane")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int?>("GroupId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("GroupRank")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Handmoney")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("HouseId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("JailTime")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("JobId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("LogUserId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("varchar(32) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(32);
|
|
|
|
b.Property<string>("Password")
|
|
.HasColumnType("varchar(64) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(64);
|
|
|
|
b.Property<int>("PaydayTimer")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("PilotSkill")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("PlayedMinutes")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Points")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<float>("PositionX")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("PositionY")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<float>("PositionZ")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<DateTime>("RegistrationDate")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("SocialClubName")
|
|
.HasColumnType("varchar(32) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(32);
|
|
|
|
b.Property<int>("Wage")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Wanteds")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("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<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Active")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("Balance")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Bic")
|
|
.HasColumnType("varchar(12) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(12);
|
|
|
|
b.Property<string>("Iban")
|
|
.HasColumnType("varchar(32) CHARACTER SET utf8mb4")
|
|
.HasMaxLength(32);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("UserBankAccounts");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.UserItem", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Amount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ItemId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Slot")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("UserItems");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.VehicleItem", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Amount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ItemId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Slot")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("VehicleId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("VehicleId");
|
|
|
|
b.ToTable("VehicleItems");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.VehicleMod", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ModId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ServerVehicleId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Slot")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ServerVehicleId", "Slot")
|
|
.IsUnique();
|
|
|
|
b.ToTable("VehicleMods");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Whitelist", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("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<string>("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<int?>("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<int>("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<int>("SchoolId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasDiscriminator().HasValue("SchoolVehicle");
|
|
});
|
|
|
|
modelBuilder.Entity("ReallifeGamemode.Database.Entities.ShopVehicle", b =>
|
|
{
|
|
b.HasBaseType("ReallifeGamemode.Database.Entities.ServerVehicle");
|
|
|
|
b.Property<int>("BusinessId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("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<int?>("Price")
|
|
.HasColumnName("UserVehicle_Price")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("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
|
|
}
|
|
}
|
|
}
|