Files
reallife-gamemode/ReallifeGamemode.Server/Migrations/20190706132925_UserWage.Designer.cs
2019-07-06 15:51:36 +02:00

1162 lines
34 KiB
C#

// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using ReallifeGamemode.Server.Models;
namespace ReallifeGamemode.Migrations
{
[DbContext(typeof(DatabaseContext))]
[Migration("20190706132925_UserWage")]
partial class UserWage
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.2.0-rtm-35687")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("ReallifeGamemode.Server.Entities.ATM", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<bool>("Active");
b.Property<int>("Balance");
b.Property<bool>("Faulty");
b.Property<float>("X");
b.Property<float>("Y");
b.Property<float>("Z");
b.HasKey("Id");
b.ToTable("ATMs");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Ban", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int>("Applied");
b.Property<string>("BannedBy");
b.Property<string>("Reason");
b.Property<int>("UntilDateTime");
b.Property<int>("UserId");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("Bans");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.BusinessBankAccount", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int>("Balance");
b.Property<int>("BusinessId");
b.HasKey("Id");
b.HasIndex("BusinessId")
.IsUnique();
b.ToTable("BusinessBankAccounts");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Character", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<byte>("Ageing");
b.Property<float>("AgeingOpacity");
b.Property<byte>("BeardColor");
b.Property<byte>("Blemishes");
b.Property<float>("BlemishesOpacity");
b.Property<byte>("Blush");
b.Property<byte>("BlushColor");
b.Property<float>("BlushOpacity");
b.Property<float>("BrowDepth");
b.Property<float>("BrowHeight");
b.Property<float>("CheekDepth");
b.Property<float>("CheekboneHeight");
b.Property<float>("CheekboneWidth");
b.Property<byte>("ChestHair");
b.Property<byte>("ChestHairColor");
b.Property<float>("ChestHairOpacity");
b.Property<float>("ChinDepth");
b.Property<float>("ChinHeight");
b.Property<float>("ChinIndent");
b.Property<float>("ChinWidth");
b.Property<byte>("Complexion");
b.Property<float>("ComplexionOpacity");
b.Property<byte>("EyeColor");
b.Property<float>("EyeSize");
b.Property<byte>("EyebrowColor");
b.Property<byte>("Eyebrows");
b.Property<float>("EyebrowsOpacity");
b.Property<byte>("FacialHair");
b.Property<float>("FacialHairOpacity");
b.Property<byte>("Father");
b.Property<byte>("Freckles");
b.Property<float>("FrecklesOpacity");
b.Property<bool>("Gender");
b.Property<byte>("Hair");
b.Property<byte>("HairColor");
b.Property<byte>("HairHighlightColor");
b.Property<float>("JawShape");
b.Property<float>("JawWidth");
b.Property<float>("LipThickness");
b.Property<byte>("Lipstick");
b.Property<byte>("LipstickColor");
b.Property<float>("LipstickOpacity");
b.Property<byte>("Makeup");
b.Property<float>("MakeupOpacity");
b.Property<byte>("Mother");
b.Property<float>("NeckWidth");
b.Property<float>("NoseBottomHeight");
b.Property<float>("NoseBridgeDepth");
b.Property<float>("NoseBroken");
b.Property<float>("NoseTipHeight");
b.Property<float>("NoseTipLength");
b.Property<float>("NoseWidth");
b.Property<float>("Similarity");
b.Property<float>("SkinSimilarity");
b.Property<byte>("SunDamage");
b.Property<float>("SunDamageOpacity");
b.Property<int>("UserId");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("Characters");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.CharacterCloth", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int>("ClothId");
b.Property<bool>("Duty");
b.Property<int>("SlotId");
b.Property<byte>("SlotType");
b.Property<int>("Texture");
b.Property<int>("UserId");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("CharacterClothes");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.ClothCombination", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<bool>("Gender");
b.Property<int>("Top");
b.Property<int>("Torso");
b.Property<int>("Undershirt");
b.HasKey("Id");
b.ToTable("ClothCombinations");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Door", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("Category");
b.Property<int?>("FactionId");
b.Property<bool>("Locked");
b.Property<int>("Model");
b.Property<string>("Name");
b.Property<float>("Radius");
b.Property<float>("X");
b.Property<float>("Y");
b.Property<float>("Z");
b.HasKey("Id");
b.HasIndex("FactionId");
b.ToTable("Doors");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.DutyCloth", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int>("ClothId");
b.Property<int>("FactionId");
b.Property<bool>("Gender");
b.Property<int>("SlotId");
b.Property<byte>("SlotType");
b.HasKey("Id");
b.HasIndex("FactionId");
b.ToTable("DutyClothes");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Faction", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("Name")
.HasMaxLength(32);
b.Property<bool>("StateOwned");
b.HasKey("Id");
b.ToTable("Factions");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.FactionBankAccount", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<bool>("Active");
b.Property<int>("Balance");
b.Property<string>("Bic")
.HasMaxLength(12);
b.Property<int>("FactionId");
b.Property<string>("Iban")
.HasMaxLength(32);
b.HasKey("Id");
b.HasIndex("FactionId");
b.ToTable("FactionBankAccounts");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.FactionRank", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int>("FactionId");
b.Property<int>("Order");
b.Property<string>("RankName");
b.HasKey("Id");
b.HasIndex("FactionId");
b.ToTable("FactionRanks");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.GotoPoint", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<bool>("Active");
b.Property<string>("Description")
.HasMaxLength(32);
b.Property<float>("X");
b.Property<float>("Y");
b.Property<float>("Z");
b.HasKey("Id");
b.ToTable("GotoPoints");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Group", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("Name");
b.HasKey("Id");
b.ToTable("Groups");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.GroupBankAccount", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int>("Balance");
b.Property<int?>("GroupId");
b.HasKey("Id");
b.HasIndex("GroupId");
b.ToTable("GroupBankAccounts");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.House", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int>("Price");
b.Property<string>("Type");
b.Property<int?>("UserId");
b.Property<float>("X");
b.Property<float>("Y");
b.Property<float>("Z");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("Houses");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Interior", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("EnterPositionStr")
.HasColumnName("EnterPosition");
b.Property<string>("ExitPositionStr")
.HasColumnName("ExitPosition");
b.Property<string>("Name");
b.HasKey("Id");
b.ToTable("Interiors");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Logs.BankAccountTransactionHistory", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int>("Fee");
b.Property<int>("MoneySent");
b.Property<int>("NewReceiverBalance");
b.Property<int>("NewSenderBalance");
b.Property<string>("Origin")
.HasMaxLength(32);
b.Property<string>("Receiver")
.HasMaxLength(32);
b.Property<int>("ReceiverBalance");
b.Property<string>("Sender")
.HasMaxLength(32);
b.Property<int>("SenderBalance");
b.Property<DateTime>("Timestamp")
.ValueGeneratedOnAdd();
b.HasKey("Id");
b.ToTable("BankAccountTransactionLogs");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Logs.Death", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("CauseOfDeath")
.HasMaxLength(64);
b.Property<float>("KillerHeading");
b.Property<int?>("KillerId");
b.Property<float>("KillerPositionX");
b.Property<float>("KillerPositionY");
b.Property<float>("KillerPositionZ");
b.Property<DateTime>("Timestamp")
.ValueGeneratedOnAdd();
b.Property<float>("VictimHeading");
b.Property<int>("VictimId");
b.Property<float>("VictimPositionX");
b.Property<float>("VictimPositionY");
b.Property<float>("VictimPositionZ");
b.HasKey("Id");
b.HasIndex("KillerId");
b.HasIndex("VictimId");
b.ToTable("DeathLogs");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.News", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<bool>("Active");
b.Property<string>("Caption");
b.Property<string>("Content");
b.Property<int>("Timestamp");
b.Property<int?>("UserId");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("News");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Saves.SavedBlip", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<bool>("Active");
b.Property<byte>("Alpha");
b.Property<byte>("Color");
b.Property<byte>("Dimension");
b.Property<float>("DrawDistance");
b.Property<string>("Name");
b.Property<float>("PositionX");
b.Property<float>("PositionY");
b.Property<float>("PositionZ");
b.Property<float>("Rotation");
b.Property<float>("Scale");
b.Property<bool>("ShortRange");
b.Property<short>("Sprite");
b.HasKey("Id");
b.ToTable("Blips");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Saves.SavedMarker", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<bool>("Active");
b.Property<byte>("ColorA");
b.Property<byte>("ColorB");
b.Property<byte>("ColorG");
b.Property<byte>("ColorR");
b.Property<byte>("Dimension");
b.Property<float>("DirectionX");
b.Property<float>("DirectionY");
b.Property<float>("DirectionZ");
b.Property<float>("PositionX");
b.Property<float>("PositionY");
b.Property<float>("PositionZ");
b.Property<float>("RotationX");
b.Property<float>("RotationY");
b.Property<float>("RotationZ");
b.Property<float>("Scale");
b.Property<byte>("Type");
b.Property<bool>("Visible");
b.HasKey("Id");
b.ToTable("Markers");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Saves.SavedPed", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<bool>("Active");
b.Property<byte>("Dimension");
b.Property<string>("HashModel");
b.Property<float>("Heading");
b.Property<float>("PositionX");
b.Property<float>("PositionY");
b.Property<float>("PositionZ");
b.HasKey("Id");
b.ToTable("Peds");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Saves.SavedPickup", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<bool>("Active");
b.Property<byte>("Dimension");
b.Property<float>("PositionX")
.HasMaxLength(128);
b.Property<float>("PositionY");
b.Property<float>("PositionZ");
b.Property<int>("RespawnTime");
b.Property<float>("RotationX");
b.Property<float>("RotationY");
b.Property<float>("RotationZ");
b.Property<bool>("Vehicle");
b.HasKey("Id");
b.ToTable("Pickups");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Saves.SavedTextLabel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<bool>("Active");
b.Property<byte>("ColorA");
b.Property<byte>("ColorB");
b.Property<byte>("ColorG");
b.Property<byte>("ColorR");
b.Property<byte>("Dimension");
b.Property<float>("DrawDistance");
b.Property<byte>("Font");
b.Property<bool>("LOS");
b.Property<float>("PositionX");
b.Property<float>("PositionY");
b.Property<float>("PositionZ");
b.Property<string>("Text")
.IsRequired();
b.HasKey("Id");
b.ToTable("TextLabels");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.ServerVehicle", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<bool>("Active")
.ValueGeneratedOnAdd()
.HasDefaultValue(true);
b.Property<string>("Discriminator")
.IsRequired();
b.Property<float>("DistanceDriven");
b.Property<float>("Heading");
b.Property<bool>("Locked");
b.Property<uint>("Model");
b.Property<string>("NumberPlate")
.HasMaxLength(8);
b.Property<float>("PositionX");
b.Property<float>("PositionY");
b.Property<float>("PositionZ");
b.Property<int>("PrimaryColor");
b.Property<int>("SecondaryColor");
b.Property<float>("TankAmount");
b.HasKey("Id");
b.ToTable("ServerVehicles");
b.HasDiscriminator<string>("Discriminator").HasValue("ServerVehicle");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.TuningGarage", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<float>("X");
b.Property<float>("Y");
b.Property<float>("Z");
b.HasKey("Id");
b.ToTable("TuningGarages");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.User", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int>("AdminLevel");
b.Property<int?>("BanId");
b.Property<int?>("BusinessId");
b.Property<int?>("CharacterId");
b.Property<bool>("Dead");
b.Property<string>("Email")
.HasMaxLength(64);
b.Property<int?>("FactionId");
b.Property<bool>("FactionLeader");
b.Property<int?>("FactionRankId");
b.Property<int?>("GroupId");
b.Property<int>("GroupRank");
b.Property<int>("Handmoney");
b.Property<int?>("HouseId");
b.Property<int?>("JobId");
b.Property<int>("LogUserId");
b.Property<string>("Name")
.HasMaxLength(32);
b.Property<string>("Password")
.HasMaxLength(64);
b.Property<float>("PositionX");
b.Property<float>("PositionY");
b.Property<float>("PositionZ");
b.Property<DateTime>("RegistrationDate")
.ValueGeneratedOnAdd();
b.Property<string>("SocialClubName")
.HasMaxLength(32);
b.Property<int>("Wage");
b.Property<int>("Wanteds");
b.HasKey("Id");
b.HasIndex("BanId");
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.Server.Entities.UserBankAccount", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<bool>("Active");
b.Property<int>("Balance");
b.Property<string>("Bic")
.HasMaxLength(12);
b.Property<string>("Iban")
.HasMaxLength(32);
b.Property<int>("UserId");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("UserBankAccounts");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.UserItem", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int>("Amount");
b.Property<int>("ItemId");
b.Property<int>("Slot");
b.Property<int>("UserId");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("UserItems");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.VehicleMod", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int>("ModId");
b.Property<int>("ServerVehicleId");
b.Property<int>("Slot");
b.HasKey("Id");
b.HasIndex("ServerVehicleId", "Slot")
.IsUnique();
b.ToTable("VehicleMods");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Whitelist", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("SocialClubName");
b.HasKey("Id");
b.ToTable("WhitelistEntries");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.FactionVehicle", b =>
{
b.HasBaseType("ReallifeGamemode.Server.Entities.ServerVehicle");
b.Property<int?>("FactionId");
b.HasIndex("FactionId");
b.ToTable("FactionVehicles");
b.HasDiscriminator().HasValue("FactionVehicle");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.GroupVehicle", b =>
{
b.HasBaseType("ReallifeGamemode.Server.Entities.ServerVehicle");
b.Property<int?>("GroupId");
b.HasIndex("GroupId");
b.HasDiscriminator().HasValue("GroupVehicle");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.JobVehicle", b =>
{
b.HasBaseType("ReallifeGamemode.Server.Entities.ServerVehicle");
b.Property<int>("JobId");
b.HasDiscriminator().HasValue("JobVehicle");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Saves.SavedVehicle", b =>
{
b.HasBaseType("ReallifeGamemode.Server.Entities.ServerVehicle");
b.HasDiscriminator().HasValue("SavedVehicle");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.ShopVehicle", b =>
{
b.HasBaseType("ReallifeGamemode.Server.Entities.ServerVehicle");
b.Property<int>("BusinessId");
b.Property<int>("Price");
b.ToTable("ShopVehicles");
b.HasDiscriminator().HasValue("ShopVehicle");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.UserVehicle", b =>
{
b.HasBaseType("ReallifeGamemode.Server.Entities.ServerVehicle");
b.Property<int>("UserId");
b.HasIndex("UserId");
b.ToTable("UserVehicles");
b.HasDiscriminator().HasValue("UserVehicle");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Ban", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.User", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Character", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.User", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.CharacterCloth", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.User", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Door", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.Faction", "Faction")
.WithMany()
.HasForeignKey("FactionId");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.DutyCloth", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.Faction", "Faction")
.WithMany()
.HasForeignKey("FactionId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.FactionBankAccount", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.Faction", "Faction")
.WithMany()
.HasForeignKey("FactionId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.FactionRank", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.Faction", "Faction")
.WithMany()
.HasForeignKey("FactionId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.GroupBankAccount", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.Group", "Group")
.WithMany()
.HasForeignKey("GroupId");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.House", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.User", "User")
.WithMany()
.HasForeignKey("UserId");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Logs.Death", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.User", "Killer")
.WithMany()
.HasForeignKey("KillerId");
b.HasOne("ReallifeGamemode.Server.Entities.User", "Victim")
.WithMany()
.HasForeignKey("VictimId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.News", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.User", "User")
.WithMany()
.HasForeignKey("UserId");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.User", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.Ban", "Ban")
.WithMany()
.HasForeignKey("BanId");
b.HasOne("ReallifeGamemode.Server.Entities.Character", "Character")
.WithMany()
.HasForeignKey("CharacterId");
b.HasOne("ReallifeGamemode.Server.Entities.Faction", "Faction")
.WithMany()
.HasForeignKey("FactionId");
b.HasOne("ReallifeGamemode.Server.Entities.FactionRank", "FactionRank")
.WithMany()
.HasForeignKey("FactionRankId");
b.HasOne("ReallifeGamemode.Server.Entities.Group", "Group")
.WithMany()
.HasForeignKey("GroupId");
b.HasOne("ReallifeGamemode.Server.Entities.House", "House")
.WithMany()
.HasForeignKey("HouseId");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.UserBankAccount", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.User", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.UserItem", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.User", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.VehicleMod", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.ServerVehicle", "Vehicle")
.WithMany()
.HasForeignKey("ServerVehicleId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.FactionVehicle", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.Faction", "Faction")
.WithMany()
.HasForeignKey("FactionId");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.GroupVehicle", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.Group", "Group")
.WithMany()
.HasForeignKey("GroupId");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.UserVehicle", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.User", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
#pragma warning restore 612, 618
}
}
}