feat(core): update DTOs, Trade Republic client, Yahoo scrapers, and dynamic settings
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace FinlyticCore.Entities.Settings;
|
||||
|
||||
public class SettingEntity
|
||||
{
|
||||
[Key]
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
|
||||
/// <summary>
|
||||
/// Der eindeutige Schlüssel der Einstellung (z.B. "EnableTickerLog" oder "YahooClient.Timeout").
|
||||
/// </summary>
|
||||
[Required]
|
||||
[MaxLength(150)]
|
||||
public string Key { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Der Wert als JSON-String serialisiert.
|
||||
/// Erlaubt bool, int, string, Enums oder komplexe Objekte.
|
||||
/// </summary>
|
||||
[Required]
|
||||
[Column(TypeName = "text")]
|
||||
public string ValueJson { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Optional: Ermöglicht instanz- oder servicespezifische Settings.
|
||||
/// "Global" = gilt für alle, "FundamentalService_Inst1" = spezifisch.
|
||||
/// </summary>
|
||||
[MaxLength(100)]
|
||||
public string ServiceIdentifier { get; set; } = "Global";
|
||||
|
||||
public DateTime LastUpdatedUtc { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
Reference in New Issue
Block a user