Add player count fields with validation and labeled UX

This commit is contained in:
2026-01-29 01:53:24 +01:00
parent f713756ece
commit af84fc50d4
10 changed files with 415 additions and 32 deletions

View File

@@ -31,7 +31,7 @@ namespace GameList.Data.Migrations
b.HasKey("Id");
b.ToTable("AppState");
b.ToTable("AppState", (string)null);
b.HasData(
new
@@ -86,7 +86,7 @@ namespace GameList.Data.Migrations
b.HasIndex("NormalizedUsername")
.IsUnique();
b.ToTable("Players");
b.ToTable("Players", (string)null);
});
modelBuilder.Entity("GameList.Domain.Suggestion", b =>
@@ -110,6 +110,12 @@ namespace GameList.Data.Migrations
.HasMaxLength(50)
.HasColumnType("TEXT");
b.Property<int?>("MaxPlayers")
.HasColumnType("INTEGER");
b.Property<int?>("MinPlayers")
.HasColumnType("INTEGER");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(100)
@@ -130,7 +136,7 @@ namespace GameList.Data.Migrations
b.HasIndex("PlayerId");
b.ToTable("Suggestions");
b.ToTable("Suggestions", (string)null);
});
modelBuilder.Entity("GameList.Domain.Vote", b =>
@@ -158,7 +164,7 @@ namespace GameList.Data.Migrations
b.HasIndex("PlayerId", "SuggestionId")
.IsUnique();
b.ToTable("Votes");
b.ToTable("Votes", (string)null);
});
modelBuilder.Entity("GameList.Domain.Suggestion", b =>