add map to campaign
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michele 2021-09-01 23:53:52 +01:00
parent 4c345bd044
commit 4d40add598
13 changed files with 1722 additions and 12 deletions

View file

@ -258,17 +258,12 @@ namespace Sledgemapper.Api.Migrations
b.Property<int>("CampaignId")
.HasColumnType("INTEGER");
b.Property<Guid?>("CampaignId1")
.HasColumnType("TEXT");
b.Property<string>("MapName")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("MapId");
b.HasIndex("CampaignId1");
b.ToTable("Maps");
});
@ -327,6 +322,9 @@ namespace Sledgemapper.Api.Migrations
b.HasKey("SessionId");
b.HasIndex("CampaignId", "SessionName")
.IsUnique();
b.ToTable("Sessions");
});
@ -480,11 +478,13 @@ namespace Sledgemapper.Api.Migrations
b.Navigation("Owner");
});
modelBuilder.Entity("Sledgemapper.Api.Core.Entities.Map", b =>
modelBuilder.Entity("Sledgemapper.Api.Models.Session", b =>
{
b.HasOne("Sledgemapper.Api.Core.Entities.Campaign", null)
.WithMany("Maps")
.HasForeignKey("CampaignId1");
.HasForeignKey("CampaignId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Sledgemapper.Entities.User", b =>