Updated settings service to support generic types with JSON serialization/deserialization, adjusted setup wizard checks and modified database schema for proper JSONB storage.

This commit is contained in:
2026-01-29 14:47:56 +01:00
parent 5b4959771c
commit 1f631be1c7
6 changed files with 331 additions and 28 deletions

View File

@@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Moonlight.Api.Database.Entities;
@@ -10,5 +11,6 @@ public class SettingsOption
public required string Key { get; set; }
[MaxLength(4096)]
public required string Value { get; set; }
[Column(TypeName = "jsonb")]
public required string ValueJson { get; set; }
}