//
using System;
using LANCommander.Server.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace LANCommander.Migrations
{
[DbContext(typeof(DatabaseContext))]
[Migration("20260423000000_AddMediaSortOrder")]
partial class AddMediaSortOrder
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "9.0.9");
modelBuilder.Entity("CategoryGame", b =>
{
b.Property("CategoriesId")
.HasColumnType("TEXT");
b.Property("GamesId")
.HasColumnType("TEXT");
b.HasKey("CategoriesId", "GamesId");
b.HasIndex("GamesId");
b.ToTable("CategoryGame");
});
modelBuilder.Entity("ChatThreadUser", b =>
{
b.Property("ChatThreadsId")
.HasColumnType("TEXT");
b.Property("ParticipantsId")
.HasColumnType("TEXT");
b.HasKey("ChatThreadsId", "ParticipantsId");
b.HasIndex("ParticipantsId");
b.ToTable("ChatThreadUser");
});
modelBuilder.Entity("CollectionGame", b =>
{
b.Property("CollectionId")
.HasColumnType("TEXT");
b.Property("GameId")
.HasColumnType("TEXT");
b.HasKey("CollectionId", "GameId");
b.HasIndex("GameId");
b.ToTable("CollectionGame");
});
modelBuilder.Entity("GameDeveloper", b =>
{
b.Property("GameId")
.HasColumnType("TEXT");
b.Property("DeveloperId")
.HasColumnType("TEXT");
b.HasKey("GameId", "DeveloperId");
b.HasIndex("DeveloperId");
b.ToTable("GameDeveloper");
});
modelBuilder.Entity("GameGenre", b =>
{
b.Property("GamesId")
.HasColumnType("TEXT");
b.Property("GenresId")
.HasColumnType("TEXT");
b.HasKey("GamesId", "GenresId");
b.HasIndex("GenresId");
b.ToTable("GameGenre");
});
modelBuilder.Entity("GamePlatform", b =>
{
b.Property("GamesId")
.HasColumnType("TEXT");
b.Property("PlatformsId")
.HasColumnType("TEXT");
b.HasKey("GamesId", "PlatformsId");
b.HasIndex("PlatformsId");
b.ToTable("GamePlatform");
});
modelBuilder.Entity("GamePublisher", b =>
{
b.Property("GameId")
.HasColumnType("TEXT");
b.Property("PublisherId")
.HasColumnType("TEXT");
b.HasKey("GameId", "PublisherId");
b.HasIndex("PublisherId");
b.ToTable("GamePublisher");
});
modelBuilder.Entity("GameRedistributable", b =>
{
b.Property("GameId")
.HasColumnType("TEXT");
b.Property("RedistributableId")
.HasColumnType("TEXT");
b.HasKey("GameId", "RedistributableId");
b.HasIndex("RedistributableId");
b.ToTable("GameRedistributable");
});
modelBuilder.Entity("GameTag", b =>
{
b.Property("GamesId")
.HasColumnType("TEXT");
b.Property("TagsId")
.HasColumnType("TEXT");
b.HasKey("GamesId", "TagsId");
b.HasIndex("TagsId");
b.ToTable("GameTag");
});
modelBuilder.Entity("GameTool", b =>
{
b.Property("GamesId")
.HasColumnType("TEXT");
b.Property("ToolsId")
.HasColumnType("TEXT");
b.HasKey("GamesId", "ToolsId");
b.HasIndex("ToolsId");
b.ToTable("GameTool");
});
modelBuilder.Entity("LANCommander.Server.Data.Models.Action", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("Arguments")
.HasColumnType("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("GameId")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Path")
.HasColumnType("TEXT");
b.Property("PrimaryAction")
.HasColumnType("INTEGER");
b.Property("ServerId")
.HasColumnType("TEXT");
b.Property("SortOrder")
.HasColumnType("INTEGER");
b.Property("ToolId")
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
b.Property("WorkingDirectory")
.HasColumnType("TEXT");
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("TEXT");
b.Property("Changelog")
.HasColumnType("TEXT");
b.Property("CompressedSize")
.HasColumnType("INTEGER");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("GameId")
.HasColumnType("TEXT");
b.Property("LastVersionId")
.HasColumnType("TEXT");
b.Property("ObjectKey")
.IsRequired()
.HasColumnType("TEXT");
b.Property("RedistributableId")
.HasColumnType("TEXT");
b.Property("StorageLocationId")
.HasColumnType("TEXT");
b.Property("ToolId")
.HasColumnType("TEXT");
b.Property("UncompressedSize")
.HasColumnType("INTEGER");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
b.Property("Version")
.IsRequired()
.HasColumnType("TEXT");
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("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property("ParentId")
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
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("TEXT");
b.Property("Content")
.IsRequired()
.HasMaxLength(2000)
.HasColumnType("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("ThreadId")
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
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("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("Name")
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("CreatedById");
b.HasIndex("UpdatedById");
b.ToTable("ChatThreads");
});
modelBuilder.Entity("LANCommander.Server.Data.Models.ChatThreadReadStatus", b =>
{
b.Property("ThreadId")
.HasColumnType("TEXT");
b.Property("UserId")
.HasColumnType("TEXT");
b.Property("LastReadMessageId")
.HasColumnType("TEXT");
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("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
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("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
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("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
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("TEXT");
b.Property("BaseGameId")
.HasColumnType("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("Description")
.HasColumnType("TEXT");
b.Property("DirectoryName")
.HasColumnType("TEXT");
b.Property("EngineId")
.HasColumnType("TEXT");
b.Property("IGDBId")
.HasColumnType("INTEGER");
b.Property("KeyAllocationMethod")
.HasColumnType("INTEGER");
b.Property("Notes")
.HasColumnType("TEXT");
b.Property("ReleasedOn")
.HasColumnType("TEXT");
b.Property("Singleplayer")
.HasColumnType("INTEGER");
b.Property("SortTitle")
.HasColumnType("TEXT");
b.Property("Title")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Type")
.HasColumnType("INTEGER");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
b.Property("ValidKeyRegex")
.HasColumnType("TEXT");
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("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("GameId")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
b.Property("Value")
.IsRequired()
.HasMaxLength(1024)
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("CreatedById");
b.HasIndex("GameId");
b.HasIndex("UpdatedById");
b.ToTable("GameCustomField");
});
modelBuilder.Entity("LANCommander.Server.Data.Models.GameSave", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("GameId")
.HasColumnType("TEXT");
b.Property("Size")
.HasColumnType("INTEGER");
b.Property("StorageLocationId")
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
b.Property("UserId")
.HasColumnType("TEXT");
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("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
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("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("Description")
.IsRequired()
.HasColumnType("TEXT");
b.Property("GameId")
.HasColumnType("TEXT");
b.Property("ResolvedById")
.HasColumnType("TEXT");
b.Property("ResolvedOn")
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
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("TEXT");
b.Property("AllocationMethod")
.HasColumnType("INTEGER");
b.Property("ClaimedByComputerName")
.HasMaxLength(255)
.HasColumnType("TEXT");
b.Property("ClaimedByIpv4Address")
.HasMaxLength(15)
.HasColumnType("TEXT");
b.Property("ClaimedByMacAddress")
.HasMaxLength(17)
.HasColumnType("TEXT");
b.Property("ClaimedByUserId")
.HasColumnType("TEXT");
b.Property("ClaimedOn")
.HasColumnType("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("GameId")
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
b.Property("Value")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("TEXT");
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("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
b.Property("UserId")
.HasColumnType("TEXT");
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("TEXT");
b.Property("Crc32")
.IsRequired()
.HasMaxLength(8)
.HasColumnType("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("FileId")
.HasColumnType("TEXT");
b.Property("GameId")
.HasColumnType("TEXT");
b.Property("MimeType")
.HasMaxLength(255)
.HasColumnType("TEXT");
b.Property("Name")
.HasMaxLength(64)
.HasColumnType("TEXT");
b.Property("SourceUrl")
.HasMaxLength(2048)
.HasColumnType("TEXT");
b.Property("SortOrder")
.HasColumnType("INTEGER");
b.Property("StorageLocationId")
.HasColumnType("TEXT");
b.Property("ThumbnailId")
.HasColumnType("TEXT");
b.Property("Type")
.HasColumnType("INTEGER");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
b.Property("UserId")
.HasColumnType("TEXT");
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("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("Description")
.HasColumnType("TEXT");
b.Property("GameId")
.HasColumnType("TEXT");
b.Property("MaxPlayers")
.HasColumnType("INTEGER");
b.Property("MinPlayers")
.HasColumnType("INTEGER");
b.Property("NetworkProtocol")
.HasColumnType("INTEGER");
b.Property("Spectators")
.HasColumnType("INTEGER");
b.Property("Type")
.HasColumnType("INTEGER");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
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("TEXT");
b.Property("Contents")
.IsRequired()
.HasColumnType("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("ParentId")
.HasColumnType("TEXT");
b.Property("Route")
.IsRequired()
.HasMaxLength(2048)
.HasColumnType("TEXT");
b.Property("Slug")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("TEXT");
b.Property("SortOrder")
.HasColumnType("INTEGER");
b.Property("Title")
.IsRequired()
.HasMaxLength(256)
.HasColumnType("TEXT");
b.Property("ToolId")
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
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("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
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("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("End")
.HasColumnType("TEXT");
b.Property("GameId")
.HasColumnType("TEXT");
b.Property("Start")
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
b.Property("UserId")
.HasColumnType("TEXT");
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("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("GameId")
.HasColumnType("TEXT");
b.Property("Source")
.HasMaxLength(128)
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
b.Property("Value")
.HasColumnType("REAL");
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("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("Description")
.HasColumnType("TEXT");
b.Property("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Notes")
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
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("TEXT");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("Name")
.HasMaxLength(256)
.HasColumnType("TEXT");
b.Property("NormalizedName")
.HasMaxLength(256)
.HasColumnType("TEXT");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
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("INTEGER");
b.Property("ClaimType")
.HasColumnType("TEXT");
b.Property("ClaimValue")
.HasColumnType("TEXT");
b.Property("RoleId")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("RoleId");
b.ToTable("RoleClaims", (string)null);
});
modelBuilder.Entity("LANCommander.Server.Data.Models.SavePath", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CreatedById")
.HasColumnType("TEXT");
b.Property("CreatedOn")
.HasColumnType("TEXT");
b.Property("GameId")
.HasColumnType("TEXT");
b.Property("IsRegex")
.HasColumnType("INTEGER");
b.Property("Path")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Type")
.HasColumnType("INTEGER");
b.Property("UpdatedById")
.HasColumnType("TEXT");
b.Property("UpdatedOn")
.HasColumnType("TEXT");
b.Property("WorkingDirectory")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("CreatedById");
b.HasIndex("GameId");
b.HasIndex("UpdatedById");
b.ToTable("SavePaths");
});
modelBuilder.Entity("LANCommander.Server.Data.Models.Script", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("Contents")
.IsRequired()
.HasColumnType("TEXT");
b.Property