Update agent summary data annotation
This commit is contained in:
@@ -548,11 +548,13 @@ public class ManagingDbContext : DbContext
|
||||
entity.Property(e => e.ActiveStrategiesCount).IsRequired();
|
||||
entity.Property(e => e.TotalVolume).HasPrecision(18, 8);
|
||||
entity.Property(e => e.TotalBalance).HasPrecision(18, 8);
|
||||
entity.Property(e => e.TotalFees).HasPrecision(18, 8);
|
||||
entity.Property(e => e.NetPnL).HasPrecision(18, 8);
|
||||
entity.Property(e => e.BacktestCount).IsRequired();
|
||||
|
||||
// Create indexes for common queries
|
||||
entity.HasIndex(e => e.UserId).IsUnique();
|
||||
entity.HasIndex(e => e.AgentName);
|
||||
entity.HasIndex(e => e.AgentName).IsUnique();
|
||||
entity.HasIndex(e => e.TotalPnL);
|
||||
|
||||
// Configure relationship with User
|
||||
|
||||
Reference in New Issue
Block a user