mirror of
https://github.com/rafi1212122/BLHX.Server.git
synced 2025-12-13 23:14:57 +01:00
this took soo long, but here you are wells
This commit is contained in:
@@ -178,6 +178,30 @@ namespace BLHX.Server.Common.Migrations.Player
|
||||
b.ToTable("Ships");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BLHX.Server.Common.Database.ResourceField", b =>
|
||||
{
|
||||
b.Property<int>("Type")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<uint>("PlayerUid")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<DateTime>("LastHarvestTime")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<uint>("Level")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<DateTime>("UpgradeTime")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Type", "PlayerUid");
|
||||
|
||||
b.HasIndex("PlayerUid");
|
||||
|
||||
b.ToTable("ResourceFields");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BLHX.Server.Common.Database.PlayerResource", b =>
|
||||
{
|
||||
b.HasOne("BLHX.Server.Common.Database.Player", "Player")
|
||||
@@ -200,8 +224,21 @@ namespace BLHX.Server.Common.Migrations.Player
|
||||
b.Navigation("Player");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BLHX.Server.Common.Database.ResourceField", b =>
|
||||
{
|
||||
b.HasOne("BLHX.Server.Common.Database.Player", "Player")
|
||||
.WithMany("ResourceFields")
|
||||
.HasForeignKey("PlayerUid")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Player");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BLHX.Server.Common.Database.Player", b =>
|
||||
{
|
||||
b.Navigation("ResourceFields");
|
||||
|
||||
b.Navigation("Resources");
|
||||
|
||||
b.Navigation("Ships");
|
||||
|
||||
Reference in New Issue
Block a user