Add game configuration management: implement endpoints for retrieving and updating discovered game configurations; enhance database schema and UI integration

This commit is contained in:
Alexa
2026-06-02 17:14:39 +03:00
parent 810ba0992c
commit ef440bedaa
6 changed files with 457 additions and 13 deletions
+1
View File
@@ -611,6 +611,7 @@ public class DorkNetDbContext(DbContextOptions<DorkNetDbContext> options) : DbCo
e.Property(s => s.WeeklyChallengeRewardJson).HasDefaultValue(string.Empty);
e.Property(s => s.PlayMenuTagsJson).HasDefaultValue(string.Empty);
e.Property(s => s.RecCenterDoorsJson).HasDefaultValue(string.Empty);
e.Property(s => s.DiscoveredGameConfigsJson).HasDefaultValue(string.Empty);
});
modelBuilder.Entity<RoomKeyEntity>(e =>
@@ -48,5 +48,11 @@ public class ServerSettingsEntity
/// Door.{Category}.Title and Door.{Category}.Query entries.</summary>
public string RecCenterDoorsJson { get; set; } = string.Empty;
/// <summary>Admin-managed values for GameConfig keys confirmed in
/// the 2020.12 decomp. Kept typed in the admin API; stored as JSON
/// here so newly discovered built-in keys do not require a table
/// migration each time.</summary>
public string DiscoveredGameConfigsJson { get; set; } = string.Empty;
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}