diff --git a/LANCommander.Server.Data.MySQL/Migrations/20260628172954_AddUserRoleLimits.Designer.cs b/LANCommander.Server.Data.MySQL/Migrations/20260628172954_AddUserRoleLimits.Designer.cs
new file mode 100644
index 00000000..81f66900
--- /dev/null
+++ b/LANCommander.Server.Data.MySQL/Migrations/20260628172954_AddUserRoleLimits.Designer.cs
@@ -0,0 +1,3304 @@
+//
+using System;
+using LANCommander.Server.Data;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+
+#nullable disable
+
+namespace LANCommander.Server.Data.MySQL.Migrations
+{
+ [DbContext(typeof(DatabaseContext))]
+ [Migration("20260628172954_AddUserRoleLimits")]
+ partial class AddUserRoleLimits
+ {
+ ///
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "9.0.9")
+ .HasAnnotation("Relational:MaxIdentifierLength", 64);
+
+ MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
+
+ modelBuilder.Entity("CategoryGame", b =>
+ {
+ b.Property("CategoriesId")
+ .HasColumnType("char(36)");
+
+ b.Property("GamesId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("CategoriesId", "GamesId");
+
+ b.HasIndex("GamesId");
+
+ b.ToTable("CategoryGame");
+ });
+
+ modelBuilder.Entity("ChatThreadUser", b =>
+ {
+ b.Property("ChatThreadsId")
+ .HasColumnType("char(36)");
+
+ b.Property("ParticipantsId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("ChatThreadsId", "ParticipantsId");
+
+ b.HasIndex("ParticipantsId");
+
+ b.ToTable("ChatThreadUser");
+ });
+
+ modelBuilder.Entity("CollectionGame", b =>
+ {
+ b.Property("CollectionId")
+ .HasColumnType("char(36)");
+
+ b.Property("GameId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("CollectionId", "GameId");
+
+ b.HasIndex("GameId");
+
+ b.ToTable("CollectionGame");
+ });
+
+ modelBuilder.Entity("GameDeveloper", b =>
+ {
+ b.Property("GameId")
+ .HasColumnType("char(36)");
+
+ b.Property("DeveloperId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("GameId", "DeveloperId");
+
+ b.HasIndex("DeveloperId");
+
+ b.ToTable("GameDeveloper");
+ });
+
+ modelBuilder.Entity("GameGenre", b =>
+ {
+ b.Property("GamesId")
+ .HasColumnType("char(36)");
+
+ b.Property("GenresId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("GamesId", "GenresId");
+
+ b.HasIndex("GenresId");
+
+ b.ToTable("GameGenre");
+ });
+
+ modelBuilder.Entity("GamePlatform", b =>
+ {
+ b.Property("GamesId")
+ .HasColumnType("char(36)");
+
+ b.Property("PlatformsId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("GamesId", "PlatformsId");
+
+ b.HasIndex("PlatformsId");
+
+ b.ToTable("GamePlatform");
+ });
+
+ modelBuilder.Entity("GamePublisher", b =>
+ {
+ b.Property("GameId")
+ .HasColumnType("char(36)");
+
+ b.Property("PublisherId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("GameId", "PublisherId");
+
+ b.HasIndex("PublisherId");
+
+ b.ToTable("GamePublisher");
+ });
+
+ modelBuilder.Entity("GameRedistributable", b =>
+ {
+ b.Property("GameId")
+ .HasColumnType("char(36)");
+
+ b.Property("RedistributableId")
+ .HasColumnType("char(36)");
+
+ b.Property("Options")
+ .HasColumnType("longtext");
+
+ b.HasKey("GameId", "RedistributableId");
+
+ b.HasIndex("RedistributableId");
+
+ b.ToTable("GameRedistributable");
+ });
+
+ modelBuilder.Entity("GameTag", b =>
+ {
+ b.Property("GamesId")
+ .HasColumnType("char(36)");
+
+ b.Property("TagsId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("GamesId", "TagsId");
+
+ b.HasIndex("TagsId");
+
+ b.ToTable("GameTag");
+ });
+
+ modelBuilder.Entity("GameTool", b =>
+ {
+ b.Property("GamesId")
+ .HasColumnType("char(36)");
+
+ b.Property("ToolsId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("GamesId", "ToolsId");
+
+ b.HasIndex("ToolsId");
+
+ b.ToTable("GameTool");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.Action", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("Arguments")
+ .HasColumnType("longtext");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("GameId")
+ .HasColumnType("char(36)");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("OptionOverrides")
+ .HasColumnType("longtext");
+
+ b.Property("Path")
+ .HasColumnType("longtext");
+
+ b.Property("PrimaryAction")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("ServerId")
+ .HasColumnType("char(36)");
+
+ b.Property("SortOrder")
+ .HasColumnType("int");
+
+ b.Property("ToolId")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("WorkingDirectory")
+ .HasColumnType("longtext");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("GameId");
+
+ b.HasIndex("ServerId");
+
+ b.HasIndex("ToolId");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("Actions");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.Archive", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("Changelog")
+ .HasColumnType("longtext");
+
+ b.Property("CompressedSize")
+ .HasColumnType("bigint");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("GameId")
+ .HasColumnType("char(36)");
+
+ b.Property("LastVersionId")
+ .HasColumnType("char(36)");
+
+ b.Property("ObjectKey")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("RedistributableId")
+ .HasColumnType("char(36)");
+
+ b.Property("StorageLocationId")
+ .HasColumnType("char(36)");
+
+ b.Property("ToolId")
+ .HasColumnType("char(36)");
+
+ b.Property("UncompressedSize")
+ .HasColumnType("bigint");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Version")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("GameId");
+
+ b.HasIndex("LastVersionId");
+
+ b.HasIndex("RedistributableId");
+
+ b.HasIndex("StorageLocationId");
+
+ b.HasIndex("ToolId");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("Archive");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.Category", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("ParentId")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("ParentId");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("Categories");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.ChatMessage", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("Content")
+ .IsRequired()
+ .HasMaxLength(2000)
+ .HasColumnType("varchar(2000)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("ThreadId")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("ThreadId");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("ChatMessages");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.ChatThread", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Name")
+ .HasMaxLength(64)
+ .HasColumnType("varchar(64)");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("ChatThreads");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.ChatThreadReadStatus", b =>
+ {
+ b.Property("ThreadId")
+ .HasColumnType("char(36)");
+
+ b.Property("UserId")
+ .HasColumnType("char(36)");
+
+ b.Property("LastReadMessageId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("ThreadId", "UserId");
+
+ b.HasIndex("LastReadMessageId");
+
+ b.HasIndex("UserId");
+
+ b.ToTable("ChatThreadReadStatuses");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.Collection", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("Collections");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.Company", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("Companies");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.Engine", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("Engines");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.Game", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("BaseGameId")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Description")
+ .HasColumnType("longtext");
+
+ b.Property("DirectoryName")
+ .HasColumnType("longtext");
+
+ b.Property("EngineId")
+ .HasColumnType("char(36)");
+
+ b.Property("KeyAllocationMethod")
+ .HasColumnType("int");
+
+ b.Property("Notes")
+ .HasColumnType("longtext");
+
+ b.Property("ReleasedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Singleplayer")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("SortTitle")
+ .HasColumnType("longtext");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("Type")
+ .HasColumnType("int");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("ValidKeyRegex")
+ .HasColumnType("longtext");
+
+ b.HasKey("Id");
+
+ b.HasIndex("BaseGameId");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("EngineId");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("Games");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.GameCustomField", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("GameId")
+ .HasColumnType("char(36)");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("varchar(64)");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Value")
+ .IsRequired()
+ .HasMaxLength(1024)
+ .HasColumnType("varchar(1024)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("GameId");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("GameCustomField");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.GameExternalId", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("ExternalId")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.Property("GameId")
+ .HasColumnType("char(36)");
+
+ b.Property("Provider")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("varchar(64)");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("GameId");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("GameExternalIds");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.GameSave", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("GameId")
+ .HasColumnType("char(36)");
+
+ b.Property("Size")
+ .HasColumnType("bigint");
+
+ b.Property("StorageLocationId")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("UserId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("GameId");
+
+ b.HasIndex("StorageLocationId");
+
+ b.HasIndex("UpdatedById");
+
+ b.HasIndex("UserId");
+
+ b.ToTable("GameSaves");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.Genre", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("Genres");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.Issue", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Description")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("GameId")
+ .HasColumnType("char(36)");
+
+ b.Property("ResolvedById")
+ .HasColumnType("char(36)");
+
+ b.Property("ResolvedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("GameId");
+
+ b.HasIndex("ResolvedById");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("Issues");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.Key", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("AllocationMethod")
+ .HasColumnType("int");
+
+ b.Property("ClaimedByComputerName")
+ .HasMaxLength(255)
+ .HasColumnType("varchar(255)");
+
+ b.Property("ClaimedByIpv4Address")
+ .HasMaxLength(15)
+ .HasColumnType("varchar(15)");
+
+ b.Property("ClaimedByMacAddress")
+ .HasMaxLength(17)
+ .HasColumnType("varchar(17)");
+
+ b.Property("ClaimedByUserId")
+ .HasColumnType("char(36)");
+
+ b.Property("ClaimedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("GameId")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Value")
+ .IsRequired()
+ .HasMaxLength(255)
+ .HasColumnType("varchar(255)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ClaimedByUserId");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("GameId");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("Keys");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.Library", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("UserId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("UpdatedById");
+
+ b.HasIndex("UserId")
+ .IsUnique();
+
+ b.ToTable("Libraries");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.Media", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("Crc32")
+ .IsRequired()
+ .HasMaxLength(8)
+ .HasColumnType("varchar(8)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("FileId")
+ .HasColumnType("char(36)");
+
+ b.Property("GameId")
+ .HasColumnType("char(36)");
+
+ b.Property("MimeType")
+ .HasMaxLength(255)
+ .HasColumnType("varchar(255)");
+
+ b.Property("Name")
+ .HasMaxLength(64)
+ .HasColumnType("varchar(64)");
+
+ b.Property("SortOrder")
+ .HasColumnType("int");
+
+ b.Property("SourceUrl")
+ .HasMaxLength(2048)
+ .HasColumnType("varchar(2048)");
+
+ b.Property("StorageLocationId")
+ .HasColumnType("char(36)");
+
+ b.Property("ThumbnailId")
+ .HasColumnType("char(36)");
+
+ b.Property("Type")
+ .HasColumnType("int");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("UserId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("GameId");
+
+ b.HasIndex("StorageLocationId");
+
+ b.HasIndex("ThumbnailId")
+ .IsUnique();
+
+ b.HasIndex("UpdatedById");
+
+ b.HasIndex("UserId");
+
+ b.ToTable("Media");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.MultiplayerMode", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Description")
+ .HasColumnType("longtext");
+
+ b.Property("GameId")
+ .HasColumnType("char(36)");
+
+ b.Property("MaxPlayers")
+ .HasColumnType("int");
+
+ b.Property("MinPlayers")
+ .HasColumnType("int");
+
+ b.Property("NetworkProtocol")
+ .HasColumnType("int");
+
+ b.Property("Spectators")
+ .HasColumnType("int");
+
+ b.Property("Type")
+ .HasColumnType("int");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("GameId");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("MultiplayerModes");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.Page", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("Contents")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("ParentId")
+ .HasColumnType("char(36)");
+
+ b.Property("Route")
+ .IsRequired()
+ .HasMaxLength(2048)
+ .HasColumnType("varchar(2048)");
+
+ b.Property("Slug")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.Property("SortOrder")
+ .HasColumnType("int");
+
+ b.Property("Title")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.Property("ToolId")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("ParentId");
+
+ b.HasIndex("ToolId");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("Pages");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.Platform", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("Platforms");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.PlaySession", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("End")
+ .HasColumnType("datetime(6)");
+
+ b.Property("GameId")
+ .HasColumnType("char(36)");
+
+ b.Property("Start")
+ .HasColumnType("datetime(6)");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("UserId")
+ .HasColumnType("char(36)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("GameId");
+
+ b.HasIndex("UpdatedById");
+
+ b.HasIndex("UserId");
+
+ b.ToTable("PlaySessions");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.Rating", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("GameId")
+ .HasColumnType("char(36)");
+
+ b.Property("Source")
+ .HasMaxLength(128)
+ .HasColumnType("varchar(128)");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Value")
+ .HasColumnType("float");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("GameId");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("Ratings");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.Redistributable", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Description")
+ .HasColumnType("longtext");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasColumnType("longtext");
+
+ b.Property("Notes")
+ .HasColumnType("longtext");
+
+ b.Property("OptionSchema")
+ .HasColumnType("longtext");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("Redistributables");
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.Role", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("char(36)");
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken()
+ .HasColumnType("longtext");
+
+ b.Property("CreatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("CreatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.Property("DownloadSpeedKBps")
+ .HasColumnType("int");
+
+ b.Property("Name")
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.Property("NormalizedName")
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.Property("StorageQuotaMB")
+ .HasColumnType("int");
+
+ b.Property("UpdatedById")
+ .HasColumnType("char(36)");
+
+ b.Property("UpdatedOn")
+ .HasColumnType("datetime(6)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreatedById");
+
+ b.HasIndex("NormalizedName")
+ .IsUnique()
+ .HasDatabaseName("RoleNameIndex");
+
+ b.HasIndex("UpdatedById");
+
+ b.ToTable("Roles", (string)null);
+ });
+
+ modelBuilder.Entity("LANCommander.Server.Data.Models.RoleClaim", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id"));
+
+ b.Property("ClaimType")
+ .HasColumnType("longtext");
+
+ b.Property("ClaimValue")
+ .HasColumnType("longtext");
+
+ b.Property