Fix Runtime by adding TotalRuntimeInSeconds
This commit is contained in:
@@ -445,6 +445,10 @@ public class ManagingDbContext : DbContext
|
||||
entity.Property(e => e.Status).IsRequired().HasConversion<string>();
|
||||
entity.Property(e => e.CreateDate).IsRequired();
|
||||
entity.Property(e => e.StartupTime).IsRequired();
|
||||
// Runtime tracking fields
|
||||
entity.Property(e => e.LastStartTime);
|
||||
entity.Property(e => e.LastStopTime);
|
||||
entity.Property(e => e.AccumulatedRunTimeSeconds);
|
||||
entity.Property(e => e.TradeWins).IsRequired();
|
||||
entity.Property(e => e.TradeLosses).IsRequired();
|
||||
entity.Property(e => e.Pnl).HasPrecision(18, 8);
|
||||
|
||||
Reference in New Issue
Block a user