fix house

This commit is contained in:
hydrant
2019-07-16 20:42:05 +02:00
parent 976c285662
commit 3082b0bab2
10 changed files with 2606 additions and 19 deletions

View File

@@ -61,6 +61,40 @@ namespace ReallifeGamemode.Migrations
b.ToTable("Bans");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.BusRoute", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("Description");
b.HasKey("Id");
b.ToTable("BusRoutes");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.BusRoutePoint", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int?>("BusRouteId");
b.Property<string>("Description");
b.Property<float>("X");
b.Property<float>("Y");
b.Property<float>("Z");
b.HasKey("Id");
b.HasIndex("BusRouteId");
b.ToTable("BusRoutesPoints");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.BusinessBankAccount", b =>
{
b.Property<int>("Id")
@@ -409,12 +443,12 @@ namespace ReallifeGamemode.Migrations
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int?>("OwnerId");
b.Property<int>("Price");
b.Property<string>("Type");
b.Property<int?>("UserId");
b.Property<float>("X");
b.Property<float>("Y");
@@ -423,7 +457,7 @@ namespace ReallifeGamemode.Migrations
b.HasKey("Id");
b.HasIndex("UserId");
b.HasIndex("OwnerId");
b.ToTable("Houses");
});
@@ -828,6 +862,8 @@ namespace ReallifeGamemode.Migrations
b.Property<string>("SocialClubName")
.HasMaxLength(32);
b.Property<int>("Wage");
b.Property<int>("Wanteds");
b.HasKey("Id");
@@ -999,6 +1035,13 @@ namespace ReallifeGamemode.Migrations
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.BusRoutePoint", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.BusRoute", "BusRoute")
.WithMany("RoutePoints")
.HasForeignKey("BusRouteId");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Character", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.User", "User")
@@ -1055,9 +1098,9 @@ namespace ReallifeGamemode.Migrations
modelBuilder.Entity("ReallifeGamemode.Server.Entities.House", b =>
{
b.HasOne("ReallifeGamemode.Server.Entities.User", "User")
b.HasOne("ReallifeGamemode.Server.Entities.User", "Owner")
.WithMany()
.HasForeignKey("UserId");
.HasForeignKey("OwnerId");
});
modelBuilder.Entity("ReallifeGamemode.Server.Entities.Logs.Death", b =>