diff --git a/ProjectLighthouse/Migrations/20211019021627_InitialCreate.Designer.cs b/ProjectLighthouse/Migrations/20211019021627_InitialCreate.Designer.cs
deleted file mode 100644
index 053a8eee..00000000
--- a/ProjectLighthouse/Migrations/20211019021627_InitialCreate.Designer.cs
+++ /dev/null
@@ -1,326 +0,0 @@
-//
-
-using LBPUnion.ProjectLighthouse;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-using ProjectLighthouse;
-
-namespace ProjectLighthouse.Migrations
-{
- [DbContext(typeof(Database))]
- [Migration("20211019021627_InitialCreate")]
- partial class InitialCreate
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("Relational:MaxIdentifierLength", 64)
- .HasAnnotation("ProductVersion", "5.0.11");
-
- modelBuilder.Entity("ProjectLighthouse.Types.Comment", b =>
- {
- b.Property("CommentId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("Message")
- .HasColumnType("longtext");
-
- b.Property("PosterUserId")
- .HasColumnType("int");
-
- b.Property("TargetUserId")
- .HasColumnType("int");
-
- b.Property("ThumbsDown")
- .HasColumnType("int");
-
- b.Property("ThumbsUp")
- .HasColumnType("int");
-
- b.Property("Timestamp")
- .HasColumnType("bigint");
-
- b.HasKey("CommentId");
-
- b.HasIndex("PosterUserId");
-
- b.HasIndex("TargetUserId");
-
- b.ToTable("Comments");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.Location", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("X")
- .HasColumnType("int");
-
- b.Property("Y")
- .HasColumnType("int");
-
- b.HasKey("Id");
-
- b.ToTable("Locations");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.QueuedLevel", b =>
- {
- b.Property("QueuedLevelId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("SlotId")
- .HasColumnType("int");
-
- b.Property("UserId")
- .HasColumnType("int");
-
- b.HasKey("QueuedLevelId");
-
- b.HasIndex("SlotId");
-
- b.HasIndex("UserId");
-
- b.ToTable("QueuedLevels");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.Slot", b =>
- {
- b.Property("SlotId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("AuthorLabels")
- .HasColumnType("longtext");
-
- b.Property("BackgroundHash")
- .HasColumnType("longtext");
-
- b.Property("CreatorId")
- .HasColumnType("int");
-
- b.Property("Description")
- .HasColumnType("longtext");
-
- b.Property("IconHash")
- .HasColumnType("longtext");
-
- b.Property("InitiallyLocked")
- .HasColumnType("tinyint(1)");
-
- b.Property("Lbp1Only")
- .HasColumnType("tinyint(1)");
-
- b.Property("LocationId")
- .HasColumnType("int");
-
- b.Property("MaximumPlayers")
- .HasColumnType("int");
-
- b.Property("MinimumPlayers")
- .HasColumnType("int");
-
- b.Property("MoveRequired")
- .HasColumnType("tinyint(1)");
-
- b.Property("Name")
- .HasColumnType("longtext");
-
- b.Property("Resource")
- .HasColumnType("longtext");
-
- b.Property("RootLevel")
- .HasColumnType("longtext");
-
- b.Property("Shareable")
- .HasColumnType("int");
-
- b.Property("SubLevel")
- .HasColumnType("tinyint(1)");
-
- b.HasKey("SlotId");
-
- b.HasIndex("CreatorId");
-
- b.HasIndex("LocationId");
-
- b.ToTable("Slots");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.GameToken", b =>
- {
- b.Property("TokenId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("UserId")
- .HasColumnType("int");
-
- b.Property("UserToken")
- .HasColumnType("longtext");
-
- b.HasKey("TokenId");
-
- b.ToTable("Tokens");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.User", b =>
- {
- b.Property("UserId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("Biography")
- .HasColumnType("longtext");
-
- b.Property("BooHash")
- .HasColumnType("longtext");
-
- b.Property("CommentCount")
- .HasColumnType("int");
-
- b.Property("CommentsEnabled")
- .HasColumnType("tinyint(1)");
-
- b.Property("FavouriteSlotCount")
- .HasColumnType("int");
-
- b.Property("FavouriteUserCount")
- .HasColumnType("int");
-
- b.Property("Game")
- .HasColumnType("int");
-
- b.Property("HeartCount")
- .HasColumnType("int");
-
- b.Property("IconHash")
- .HasColumnType("longtext");
-
- b.Property("Lists")
- .HasColumnType("int");
-
- b.Property("LocationId")
- .HasColumnType("int");
-
- b.Property("LolCatFtwCount")
- .HasColumnType("int");
-
- b.Property("PhotosByMeCount")
- .HasColumnType("int");
-
- b.Property("PhotosWithMeCount")
- .HasColumnType("int");
-
- b.Property("Pins")
- .HasColumnType("longtext");
-
- b.Property("PlanetHash")
- .HasColumnType("longtext");
-
- b.Property("ReviewCount")
- .HasColumnType("int");
-
- b.Property("StaffChallengeBronzeCount")
- .HasColumnType("int");
-
- b.Property("StaffChallengeGoldCount")
- .HasColumnType("int");
-
- b.Property("StaffChallengeSilverCount")
- .HasColumnType("int");
-
- b.Property("UsedSlots")
- .HasColumnType("int");
-
- b.Property("Username")
- .HasColumnType("longtext");
-
- b.Property("YayHash")
- .HasColumnType("longtext");
-
- b.HasKey("UserId");
-
- b.HasIndex("LocationId");
-
- b.ToTable("Users");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.Comment", b =>
- {
- b.HasOne("ProjectLighthouse.Types.User", "Poster")
- .WithMany()
- .HasForeignKey("PosterUserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("ProjectLighthouse.Types.User", "Target")
- .WithMany()
- .HasForeignKey("TargetUserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Poster");
-
- b.Navigation("Target");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.QueuedLevel", b =>
- {
- b.HasOne("ProjectLighthouse.Types.Slot", "Slot")
- .WithMany()
- .HasForeignKey("SlotId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("ProjectLighthouse.Types.User", "User")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Slot");
-
- b.Navigation("User");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.Slot", b =>
- {
- b.HasOne("ProjectLighthouse.Types.User", "Creator")
- .WithMany()
- .HasForeignKey("CreatorId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("ProjectLighthouse.Types.Location", "Location")
- .WithMany()
- .HasForeignKey("LocationId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Creator");
-
- b.Navigation("Location");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.User", b =>
- {
- b.HasOne("ProjectLighthouse.Types.Location", "Location")
- .WithMany()
- .HasForeignKey("LocationId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Location");
- });
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/ProjectLighthouse/Migrations/20211019021627_InitialCreate.cs b/ProjectLighthouse/Migrations/20211019021627_InitialCreate.cs
index 8b375ed1..0d74ff57 100644
--- a/ProjectLighthouse/Migrations/20211019021627_InitialCreate.cs
+++ b/ProjectLighthouse/Migrations/20211019021627_InitialCreate.cs
@@ -1,8 +1,11 @@
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
-
+using LBPUnion.ProjectLighthouse;
+using Microsoft.EntityFrameworkCore.Infrastructure;
namespace ProjectLighthouse.Migrations
{
+ [DbContext(typeof(Database))]
+ [Migration("20211019021627_InitialCreate")]
public partial class InitialCreate : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
diff --git a/ProjectLighthouse/Migrations/20211019031221_HeartedLevels.Designer.cs b/ProjectLighthouse/Migrations/20211019031221_HeartedLevels.Designer.cs
deleted file mode 100644
index 43af2c8a..00000000
--- a/ProjectLighthouse/Migrations/20211019031221_HeartedLevels.Designer.cs
+++ /dev/null
@@ -1,366 +0,0 @@
-//
-
-using LBPUnion.ProjectLighthouse;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-using ProjectLighthouse;
-
-namespace ProjectLighthouse.Migrations
-{
- [DbContext(typeof(Database))]
- [Migration("20211019031221_HeartedLevels")]
- partial class HeartedLevels
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("Relational:MaxIdentifierLength", 64)
- .HasAnnotation("ProductVersion", "5.0.11");
-
- modelBuilder.Entity("ProjectLighthouse.Types.Comment", b =>
- {
- b.Property("CommentId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("Message")
- .HasColumnType("longtext");
-
- b.Property("PosterUserId")
- .HasColumnType("int");
-
- b.Property("TargetUserId")
- .HasColumnType("int");
-
- b.Property("ThumbsDown")
- .HasColumnType("int");
-
- b.Property("ThumbsUp")
- .HasColumnType("int");
-
- b.Property("Timestamp")
- .HasColumnType("bigint");
-
- b.HasKey("CommentId");
-
- b.HasIndex("PosterUserId");
-
- b.HasIndex("TargetUserId");
-
- b.ToTable("Comments");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.HeartedLevel", b =>
- {
- b.Property("HeartedLevelId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("SlotId")
- .HasColumnType("int");
-
- b.Property("UserId")
- .HasColumnType("int");
-
- b.HasKey("HeartedLevelId");
-
- b.HasIndex("SlotId");
-
- b.HasIndex("UserId");
-
- b.ToTable("HeartedLevels");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.Location", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("X")
- .HasColumnType("int");
-
- b.Property("Y")
- .HasColumnType("int");
-
- b.HasKey("Id");
-
- b.ToTable("Locations");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.QueuedLevel", b =>
- {
- b.Property("QueuedLevelId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("SlotId")
- .HasColumnType("int");
-
- b.Property("UserId")
- .HasColumnType("int");
-
- b.HasKey("QueuedLevelId");
-
- b.HasIndex("SlotId");
-
- b.HasIndex("UserId");
-
- b.ToTable("QueuedLevels");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.Slot", b =>
- {
- b.Property("SlotId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("AuthorLabels")
- .HasColumnType("longtext");
-
- b.Property("BackgroundHash")
- .HasColumnType("longtext");
-
- b.Property("CreatorId")
- .HasColumnType("int");
-
- b.Property("Description")
- .HasColumnType("longtext");
-
- b.Property("IconHash")
- .HasColumnType("longtext");
-
- b.Property("InitiallyLocked")
- .HasColumnType("tinyint(1)");
-
- b.Property("Lbp1Only")
- .HasColumnType("tinyint(1)");
-
- b.Property("LocationId")
- .HasColumnType("int");
-
- b.Property("MaximumPlayers")
- .HasColumnType("int");
-
- b.Property("MinimumPlayers")
- .HasColumnType("int");
-
- b.Property("MoveRequired")
- .HasColumnType("tinyint(1)");
-
- b.Property("Name")
- .HasColumnType("longtext");
-
- b.Property("Resource")
- .HasColumnType("longtext");
-
- b.Property("RootLevel")
- .HasColumnType("longtext");
-
- b.Property("Shareable")
- .HasColumnType("int");
-
- b.Property("SubLevel")
- .HasColumnType("tinyint(1)");
-
- b.HasKey("SlotId");
-
- b.HasIndex("CreatorId");
-
- b.HasIndex("LocationId");
-
- b.ToTable("Slots");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.GameToken", b =>
- {
- b.Property("TokenId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("UserId")
- .HasColumnType("int");
-
- b.Property("UserToken")
- .HasColumnType("longtext");
-
- b.HasKey("TokenId");
-
- b.ToTable("Tokens");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.User", b =>
- {
- b.Property("UserId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("Biography")
- .HasColumnType("longtext");
-
- b.Property("BooHash")
- .HasColumnType("longtext");
-
- b.Property("CommentCount")
- .HasColumnType("int");
-
- b.Property("CommentsEnabled")
- .HasColumnType("tinyint(1)");
-
- b.Property("FavouriteSlotCount")
- .HasColumnType("int");
-
- b.Property("FavouriteUserCount")
- .HasColumnType("int");
-
- b.Property("Game")
- .HasColumnType("int");
-
- b.Property("HeartCount")
- .HasColumnType("int");
-
- b.Property("IconHash")
- .HasColumnType("longtext");
-
- b.Property("Lists")
- .HasColumnType("int");
-
- b.Property("LocationId")
- .HasColumnType("int");
-
- b.Property("LolCatFtwCount")
- .HasColumnType("int");
-
- b.Property("PhotosByMeCount")
- .HasColumnType("int");
-
- b.Property("PhotosWithMeCount")
- .HasColumnType("int");
-
- b.Property("Pins")
- .HasColumnType("longtext");
-
- b.Property("PlanetHash")
- .HasColumnType("longtext");
-
- b.Property("ReviewCount")
- .HasColumnType("int");
-
- b.Property("StaffChallengeBronzeCount")
- .HasColumnType("int");
-
- b.Property("StaffChallengeGoldCount")
- .HasColumnType("int");
-
- b.Property("StaffChallengeSilverCount")
- .HasColumnType("int");
-
- b.Property("UsedSlots")
- .HasColumnType("int");
-
- b.Property("Username")
- .HasColumnType("longtext");
-
- b.Property("YayHash")
- .HasColumnType("longtext");
-
- b.HasKey("UserId");
-
- b.HasIndex("LocationId");
-
- b.ToTable("Users");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.Comment", b =>
- {
- b.HasOne("ProjectLighthouse.Types.User", "Poster")
- .WithMany()
- .HasForeignKey("PosterUserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("ProjectLighthouse.Types.User", "Target")
- .WithMany()
- .HasForeignKey("TargetUserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Poster");
-
- b.Navigation("Target");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.HeartedLevel", b =>
- {
- b.HasOne("ProjectLighthouse.Types.Slot", "Slot")
- .WithMany()
- .HasForeignKey("SlotId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("ProjectLighthouse.Types.User", "User")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Slot");
-
- b.Navigation("User");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.QueuedLevel", b =>
- {
- b.HasOne("ProjectLighthouse.Types.Slot", "Slot")
- .WithMany()
- .HasForeignKey("SlotId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("ProjectLighthouse.Types.User", "User")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Slot");
-
- b.Navigation("User");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.Slot", b =>
- {
- b.HasOne("ProjectLighthouse.Types.User", "Creator")
- .WithMany()
- .HasForeignKey("CreatorId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("ProjectLighthouse.Types.Location", "Location")
- .WithMany()
- .HasForeignKey("LocationId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Creator");
-
- b.Navigation("Location");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.User", b =>
- {
- b.HasOne("ProjectLighthouse.Types.Location", "Location")
- .WithMany()
- .HasForeignKey("LocationId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Location");
- });
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/ProjectLighthouse/Migrations/20211019031221_HeartedLevels.cs b/ProjectLighthouse/Migrations/20211019031221_HeartedLevels.cs
index 7c19023e..f481f79d 100644
--- a/ProjectLighthouse/Migrations/20211019031221_HeartedLevels.cs
+++ b/ProjectLighthouse/Migrations/20211019031221_HeartedLevels.cs
@@ -1,8 +1,11 @@
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
-
+using LBPUnion.ProjectLighthouse;
+using Microsoft.EntityFrameworkCore.Infrastructure;
namespace ProjectLighthouse.Migrations
{
+ [DbContext(typeof(Database))]
+ [Migration("20211019031221_HeartedLevels")]
public partial class HeartedLevels : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
diff --git a/ProjectLighthouse/Migrations/20211019203627_LastMatches.Designer.cs b/ProjectLighthouse/Migrations/20211019203627_LastMatches.Designer.cs
deleted file mode 100644
index 03647fc8..00000000
--- a/ProjectLighthouse/Migrations/20211019203627_LastMatches.Designer.cs
+++ /dev/null
@@ -1,380 +0,0 @@
-//
-
-using LBPUnion.ProjectLighthouse;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-using ProjectLighthouse;
-
-namespace ProjectLighthouse.Migrations
-{
- [DbContext(typeof(Database))]
- [Migration("20211019203627_LastMatches")]
- partial class LastMatches
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("Relational:MaxIdentifierLength", 64)
- .HasAnnotation("ProductVersion", "5.0.11");
-
- modelBuilder.Entity("ProjectLighthouse.Types.Comment", b =>
- {
- b.Property("CommentId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("Message")
- .HasColumnType("longtext");
-
- b.Property("PosterUserId")
- .HasColumnType("int");
-
- b.Property("TargetUserId")
- .HasColumnType("int");
-
- b.Property("ThumbsDown")
- .HasColumnType("int");
-
- b.Property("ThumbsUp")
- .HasColumnType("int");
-
- b.Property("Timestamp")
- .HasColumnType("bigint");
-
- b.HasKey("CommentId");
-
- b.HasIndex("PosterUserId");
-
- b.HasIndex("TargetUserId");
-
- b.ToTable("Comments");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.HeartedLevel", b =>
- {
- b.Property("HeartedLevelId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("SlotId")
- .HasColumnType("int");
-
- b.Property("UserId")
- .HasColumnType("int");
-
- b.HasKey("HeartedLevelId");
-
- b.HasIndex("SlotId");
-
- b.HasIndex("UserId");
-
- b.ToTable("HeartedLevels");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.LastMatch", b =>
- {
- b.Property("UserId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("Timestamp")
- .HasColumnType("bigint");
-
- b.HasKey("UserId");
-
- b.ToTable("LastMatches");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.Location", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("X")
- .HasColumnType("int");
-
- b.Property("Y")
- .HasColumnType("int");
-
- b.HasKey("Id");
-
- b.ToTable("Locations");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.QueuedLevel", b =>
- {
- b.Property("QueuedLevelId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("SlotId")
- .HasColumnType("int");
-
- b.Property("UserId")
- .HasColumnType("int");
-
- b.HasKey("QueuedLevelId");
-
- b.HasIndex("SlotId");
-
- b.HasIndex("UserId");
-
- b.ToTable("QueuedLevels");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.Slot", b =>
- {
- b.Property("SlotId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("AuthorLabels")
- .HasColumnType("longtext");
-
- b.Property("BackgroundHash")
- .HasColumnType("longtext");
-
- b.Property("CreatorId")
- .HasColumnType("int");
-
- b.Property("Description")
- .HasColumnType("longtext");
-
- b.Property("IconHash")
- .HasColumnType("longtext");
-
- b.Property("InitiallyLocked")
- .HasColumnType("tinyint(1)");
-
- b.Property("Lbp1Only")
- .HasColumnType("tinyint(1)");
-
- b.Property("LocationId")
- .HasColumnType("int");
-
- b.Property("MaximumPlayers")
- .HasColumnType("int");
-
- b.Property("MinimumPlayers")
- .HasColumnType("int");
-
- b.Property("MoveRequired")
- .HasColumnType("tinyint(1)");
-
- b.Property("Name")
- .HasColumnType("longtext");
-
- b.Property("Resource")
- .HasColumnType("longtext");
-
- b.Property("RootLevel")
- .HasColumnType("longtext");
-
- b.Property("Shareable")
- .HasColumnType("int");
-
- b.Property("SubLevel")
- .HasColumnType("tinyint(1)");
-
- b.HasKey("SlotId");
-
- b.HasIndex("CreatorId");
-
- b.HasIndex("LocationId");
-
- b.ToTable("Slots");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.GameToken", b =>
- {
- b.Property("TokenId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("UserId")
- .HasColumnType("int");
-
- b.Property("UserToken")
- .HasColumnType("longtext");
-
- b.HasKey("TokenId");
-
- b.ToTable("Tokens");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.User", b =>
- {
- b.Property("UserId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("Biography")
- .HasColumnType("longtext");
-
- b.Property("BooHash")
- .HasColumnType("longtext");
-
- b.Property("CommentCount")
- .HasColumnType("int");
-
- b.Property("CommentsEnabled")
- .HasColumnType("tinyint(1)");
-
- b.Property("FavouriteSlotCount")
- .HasColumnType("int");
-
- b.Property("FavouriteUserCount")
- .HasColumnType("int");
-
- b.Property("Game")
- .HasColumnType("int");
-
- b.Property("HeartCount")
- .HasColumnType("int");
-
- b.Property("IconHash")
- .HasColumnType("longtext");
-
- b.Property("Lists")
- .HasColumnType("int");
-
- b.Property("LocationId")
- .HasColumnType("int");
-
- b.Property("LolCatFtwCount")
- .HasColumnType("int");
-
- b.Property("PhotosByMeCount")
- .HasColumnType("int");
-
- b.Property("PhotosWithMeCount")
- .HasColumnType("int");
-
- b.Property("Pins")
- .HasColumnType("longtext");
-
- b.Property("PlanetHash")
- .HasColumnType("longtext");
-
- b.Property("ReviewCount")
- .HasColumnType("int");
-
- b.Property("StaffChallengeBronzeCount")
- .HasColumnType("int");
-
- b.Property("StaffChallengeGoldCount")
- .HasColumnType("int");
-
- b.Property("StaffChallengeSilverCount")
- .HasColumnType("int");
-
- b.Property("UsedSlots")
- .HasColumnType("int");
-
- b.Property("Username")
- .HasColumnType("longtext");
-
- b.Property("YayHash")
- .HasColumnType("longtext");
-
- b.HasKey("UserId");
-
- b.HasIndex("LocationId");
-
- b.ToTable("Users");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.Comment", b =>
- {
- b.HasOne("ProjectLighthouse.Types.User", "Poster")
- .WithMany()
- .HasForeignKey("PosterUserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("ProjectLighthouse.Types.User", "Target")
- .WithMany()
- .HasForeignKey("TargetUserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Poster");
-
- b.Navigation("Target");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.HeartedLevel", b =>
- {
- b.HasOne("ProjectLighthouse.Types.Slot", "Slot")
- .WithMany()
- .HasForeignKey("SlotId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("ProjectLighthouse.Types.User", "User")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Slot");
-
- b.Navigation("User");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.QueuedLevel", b =>
- {
- b.HasOne("ProjectLighthouse.Types.Slot", "Slot")
- .WithMany()
- .HasForeignKey("SlotId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("ProjectLighthouse.Types.User", "User")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Slot");
-
- b.Navigation("User");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.Slot", b =>
- {
- b.HasOne("ProjectLighthouse.Types.User", "Creator")
- .WithMany()
- .HasForeignKey("CreatorId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("ProjectLighthouse.Types.Location", "Location")
- .WithMany()
- .HasForeignKey("LocationId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Creator");
-
- b.Navigation("Location");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.User", b =>
- {
- b.HasOne("ProjectLighthouse.Types.Location", "Location")
- .WithMany()
- .HasForeignKey("LocationId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Location");
- });
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/ProjectLighthouse/Migrations/20211019203627_LastMatches.cs b/ProjectLighthouse/Migrations/20211019203627_LastMatches.cs
index 392e8f8c..58f834f1 100644
--- a/ProjectLighthouse/Migrations/20211019203627_LastMatches.cs
+++ b/ProjectLighthouse/Migrations/20211019203627_LastMatches.cs
@@ -1,8 +1,11 @@
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
-
+using LBPUnion.ProjectLighthouse;
+using Microsoft.EntityFrameworkCore.Infrastructure;
namespace ProjectLighthouse.Migrations
{
+ [DbContext(typeof(Database))]
+ [Migration("20211019203627_LastMatches")]
public partial class LastMatches : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
diff --git a/ProjectLighthouse/Migrations/20211020220840_ResourceList.Designer.cs b/ProjectLighthouse/Migrations/20211020220840_ResourceList.Designer.cs
deleted file mode 100644
index 11880c79..00000000
--- a/ProjectLighthouse/Migrations/20211020220840_ResourceList.Designer.cs
+++ /dev/null
@@ -1,380 +0,0 @@
-//
-
-using LBPUnion.ProjectLighthouse;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-using ProjectLighthouse;
-
-namespace ProjectLighthouse.Migrations
-{
- [DbContext(typeof(Database))]
- [Migration("20211020220840_ResourceList")]
- partial class ResourceList
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("Relational:MaxIdentifierLength", 64)
- .HasAnnotation("ProductVersion", "5.0.11");
-
- modelBuilder.Entity("ProjectLighthouse.Types.Comment", b =>
- {
- b.Property("CommentId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("Message")
- .HasColumnType("longtext");
-
- b.Property("PosterUserId")
- .HasColumnType("int");
-
- b.Property("TargetUserId")
- .HasColumnType("int");
-
- b.Property("ThumbsDown")
- .HasColumnType("int");
-
- b.Property("ThumbsUp")
- .HasColumnType("int");
-
- b.Property("Timestamp")
- .HasColumnType("bigint");
-
- b.HasKey("CommentId");
-
- b.HasIndex("PosterUserId");
-
- b.HasIndex("TargetUserId");
-
- b.ToTable("Comments");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.HeartedLevel", b =>
- {
- b.Property("HeartedLevelId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("SlotId")
- .HasColumnType("int");
-
- b.Property("UserId")
- .HasColumnType("int");
-
- b.HasKey("HeartedLevelId");
-
- b.HasIndex("SlotId");
-
- b.HasIndex("UserId");
-
- b.ToTable("HeartedLevels");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.LastMatch", b =>
- {
- b.Property("UserId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("Timestamp")
- .HasColumnType("bigint");
-
- b.HasKey("UserId");
-
- b.ToTable("LastMatches");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.Location", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("X")
- .HasColumnType("int");
-
- b.Property("Y")
- .HasColumnType("int");
-
- b.HasKey("Id");
-
- b.ToTable("Locations");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.QueuedLevel", b =>
- {
- b.Property("QueuedLevelId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("SlotId")
- .HasColumnType("int");
-
- b.Property("UserId")
- .HasColumnType("int");
-
- b.HasKey("QueuedLevelId");
-
- b.HasIndex("SlotId");
-
- b.HasIndex("UserId");
-
- b.ToTable("QueuedLevels");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.Slot", b =>
- {
- b.Property("SlotId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("AuthorLabels")
- .HasColumnType("longtext");
-
- b.Property("BackgroundHash")
- .HasColumnType("longtext");
-
- b.Property("CreatorId")
- .HasColumnType("int");
-
- b.Property("Description")
- .HasColumnType("longtext");
-
- b.Property("IconHash")
- .HasColumnType("longtext");
-
- b.Property("InitiallyLocked")
- .HasColumnType("tinyint(1)");
-
- b.Property("Lbp1Only")
- .HasColumnType("tinyint(1)");
-
- b.Property("LocationId")
- .HasColumnType("int");
-
- b.Property("MaximumPlayers")
- .HasColumnType("int");
-
- b.Property("MinimumPlayers")
- .HasColumnType("int");
-
- b.Property("MoveRequired")
- .HasColumnType("tinyint(1)");
-
- b.Property("Name")
- .HasColumnType("longtext");
-
- b.Property("ResourceCollection")
- .HasColumnType("longtext");
-
- b.Property("RootLevel")
- .HasColumnType("longtext");
-
- b.Property("Shareable")
- .HasColumnType("int");
-
- b.Property("SubLevel")
- .HasColumnType("tinyint(1)");
-
- b.HasKey("SlotId");
-
- b.HasIndex("CreatorId");
-
- b.HasIndex("LocationId");
-
- b.ToTable("Slots");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.GameToken", b =>
- {
- b.Property("TokenId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("UserId")
- .HasColumnType("int");
-
- b.Property("UserToken")
- .HasColumnType("longtext");
-
- b.HasKey("TokenId");
-
- b.ToTable("Tokens");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.User", b =>
- {
- b.Property("UserId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("Biography")
- .HasColumnType("longtext");
-
- b.Property("BooHash")
- .HasColumnType("longtext");
-
- b.Property("CommentCount")
- .HasColumnType("int");
-
- b.Property("CommentsEnabled")
- .HasColumnType("tinyint(1)");
-
- b.Property("FavouriteSlotCount")
- .HasColumnType("int");
-
- b.Property("FavouriteUserCount")
- .HasColumnType("int");
-
- b.Property("Game")
- .HasColumnType("int");
-
- b.Property("HeartCount")
- .HasColumnType("int");
-
- b.Property("IconHash")
- .HasColumnType("longtext");
-
- b.Property("Lists")
- .HasColumnType("int");
-
- b.Property("LocationId")
- .HasColumnType("int");
-
- b.Property("LolCatFtwCount")
- .HasColumnType("int");
-
- b.Property("PhotosByMeCount")
- .HasColumnType("int");
-
- b.Property("PhotosWithMeCount")
- .HasColumnType("int");
-
- b.Property("Pins")
- .HasColumnType("longtext");
-
- b.Property("PlanetHash")
- .HasColumnType("longtext");
-
- b.Property("ReviewCount")
- .HasColumnType("int");
-
- b.Property("StaffChallengeBronzeCount")
- .HasColumnType("int");
-
- b.Property("StaffChallengeGoldCount")
- .HasColumnType("int");
-
- b.Property("StaffChallengeSilverCount")
- .HasColumnType("int");
-
- b.Property("UsedSlots")
- .HasColumnType("int");
-
- b.Property("Username")
- .HasColumnType("longtext");
-
- b.Property("YayHash")
- .HasColumnType("longtext");
-
- b.HasKey("UserId");
-
- b.HasIndex("LocationId");
-
- b.ToTable("Users");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.Comment", b =>
- {
- b.HasOne("ProjectLighthouse.Types.User", "Poster")
- .WithMany()
- .HasForeignKey("PosterUserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("ProjectLighthouse.Types.User", "Target")
- .WithMany()
- .HasForeignKey("TargetUserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Poster");
-
- b.Navigation("Target");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.HeartedLevel", b =>
- {
- b.HasOne("ProjectLighthouse.Types.Slot", "Slot")
- .WithMany()
- .HasForeignKey("SlotId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("ProjectLighthouse.Types.User", "User")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Slot");
-
- b.Navigation("User");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.QueuedLevel", b =>
- {
- b.HasOne("ProjectLighthouse.Types.Slot", "Slot")
- .WithMany()
- .HasForeignKey("SlotId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("ProjectLighthouse.Types.User", "User")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Slot");
-
- b.Navigation("User");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.Slot", b =>
- {
- b.HasOne("ProjectLighthouse.Types.User", "Creator")
- .WithMany()
- .HasForeignKey("CreatorId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.HasOne("ProjectLighthouse.Types.Location", "Location")
- .WithMany()
- .HasForeignKey("LocationId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Creator");
-
- b.Navigation("Location");
- });
-
- modelBuilder.Entity("ProjectLighthouse.Types.User", b =>
- {
- b.HasOne("ProjectLighthouse.Types.Location", "Location")
- .WithMany()
- .HasForeignKey("LocationId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("Location");
- });
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/ProjectLighthouse/Migrations/20211020220840_ResourceList.cs b/ProjectLighthouse/Migrations/20211020220840_ResourceList.cs
index 55e66249..48f709a5 100644
--- a/ProjectLighthouse/Migrations/20211020220840_ResourceList.cs
+++ b/ProjectLighthouse/Migrations/20211020220840_ResourceList.cs
@@ -1,7 +1,10 @@
using Microsoft.EntityFrameworkCore.Migrations;
-
+using LBPUnion.ProjectLighthouse;
+using Microsoft.EntityFrameworkCore.Infrastructure;
namespace ProjectLighthouse.Migrations
{
+ [DbContext(typeof(Database))]
+ [Migration("20211020220840_ResourceList")]
public partial class ResourceList : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
diff --git a/ProjectLighthouse/Migrations/20211026010814_FavouriteUsers.Designer.cs b/ProjectLighthouse/Migrations/20211026010814_FavouriteUsers.Designer.cs
deleted file mode 100644
index 5f0ff875..00000000
--- a/ProjectLighthouse/Migrations/20211026010814_FavouriteUsers.Designer.cs
+++ /dev/null
@@ -1,418 +0,0 @@
-//
-using LBPUnion.ProjectLighthouse;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-
-namespace ProjectLighthouse.Migrations
-{
- [DbContext(typeof(Database))]
- [Migration("20211026010814_FavouriteUsers")]
- partial class FavouriteUsers
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("Relational:MaxIdentifierLength", 64)
- .HasAnnotation("ProductVersion", "5.0.11");
-
- modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.HeartedProfile", b =>
- {
- b.Property("HeartedProfileId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("HeartedUserId")
- .HasColumnType("int");
-
- b.Property("UserId")
- .HasColumnType("int");
-
- b.HasKey("HeartedProfileId");
-
- b.HasIndex("HeartedUserId");
-
- b.HasIndex("UserId");
-
- b.ToTable("HeartedProfiles");
- });
-
- modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Levels.HeartedLevel", b =>
- {
- b.Property("HeartedLevelId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("SlotId")
- .HasColumnType("int");
-
- b.Property("UserId")
- .HasColumnType("int");
-
- b.HasKey("HeartedLevelId");
-
- b.HasIndex("SlotId");
-
- b.HasIndex("UserId");
-
- b.ToTable("HeartedLevels");
- });
-
- modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Levels.QueuedLevel", b =>
- {
- b.Property("QueuedLevelId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("SlotId")
- .HasColumnType("int");
-
- b.Property("UserId")
- .HasColumnType("int");
-
- b.HasKey("QueuedLevelId");
-
- b.HasIndex("SlotId");
-
- b.HasIndex("UserId");
-
- b.ToTable("QueuedLevels");
- });
-
- modelBuilder.Entity("LBPUnion.ProjectLighthouse.Types.Levels.Slot", b =>
- {
- b.Property("SlotId")
- .ValueGeneratedOnAdd()
- .HasColumnType("int");
-
- b.Property("AuthorLabels")
- .HasColumnType("longtext");
-
- b.Property("BackgroundHash")
- .HasColumnType("longtext");
-
- b.Property("CreatorId")
- .HasColumnType("int");
-
- b.Property