hanf continuation
This commit is contained in:
@@ -154,6 +154,37 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
b.ToTable("BusinessData");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ReallifeGamemode.Database.Entities.CannabisPlant", b =>
|
||||
{
|
||||
b.Property<long>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<bool>("Harvested")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<DateTime>("PlantDate")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<int>("PlantedById")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<float>("X")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<float>("Y")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<float>("Z")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("PlantedById");
|
||||
|
||||
b.ToTable("CannabisPlants");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Character", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -1931,6 +1962,15 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
.HasForeignKey("BusRouteId");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ReallifeGamemode.Database.Entities.CannabisPlant", b =>
|
||||
{
|
||||
b.HasOne("ReallifeGamemode.Database.Entities.User", "PlantedBy")
|
||||
.WithMany()
|
||||
.HasForeignKey("PlantedById")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ReallifeGamemode.Database.Entities.Character", b =>
|
||||
{
|
||||
b.HasOne("ReallifeGamemode.Database.Entities.User", "User")
|
||||
|
||||
Reference in New Issue
Block a user