refactor(assets): update asset entity mappings, database migrations, and MQTT RPC handlers
This commit is contained in:
@@ -11,11 +11,17 @@ public enum OptionType
|
||||
Short
|
||||
}
|
||||
|
||||
public class DerivativeEntity : AssetEntity
|
||||
public class DerivativeEntity
|
||||
{
|
||||
[Key]
|
||||
[StringLength(12, MinimumLength = 12)]
|
||||
public string Isin { get; set; } = string.Empty;
|
||||
|
||||
// --- Verknüpfung zum Basiswert (Underlying) ---
|
||||
[StringLength(12, MinimumLength = 12)]
|
||||
public string? UnderlyingIsin { get; set; }
|
||||
public string UnderlyingIsin { get; set; } = string.Empty;
|
||||
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
// --- Derivat-Spezifikationen ---
|
||||
public OptionType OptionType { get; set; } // Long / Short
|
||||
@@ -54,7 +60,8 @@ public class DerivativeEntity : AssetEntity
|
||||
[MaxLength(150)]
|
||||
public string IssuerDisplayName { get; set; } = string.Empty;
|
||||
|
||||
public string? IssuerImageId { get; set; }
|
||||
public DateTime LastUpdatedAt { get; set; } = DateTime.UtcNow;
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
|
||||
// PostgreSQL Mapped Array für TR-Kategorien
|
||||
public List<string> DerivativeProductCategories { get; set; } = new();
|
||||
|
||||
Reference in New Issue
Block a user