Add migrations for agent table

This commit is contained in:
2025-10-03 02:01:45 +07:00
parent c02d011982
commit 7da0143e91
3 changed files with 1538 additions and 3 deletions

View File

@@ -96,7 +96,8 @@ namespace Managing.Infrastructure.Databases.Migrations
.HasColumnType("integer");
b.Property<decimal>("NetPnL")
.HasColumnType("numeric");
.HasPrecision(18, 8)
.HasColumnType("numeric(18,8)");
b.Property<DateTime?>("Runtime")
.HasColumnType("timestamp with time zone");
@@ -106,7 +107,8 @@ namespace Managing.Infrastructure.Databases.Migrations
.HasColumnType("numeric(18,8)");
b.Property<decimal>("TotalFees")
.HasColumnType("numeric");
.HasPrecision(18, 8)
.HasColumnType("numeric(18,8)");
b.Property<decimal>("TotalPnL")
.HasColumnType("decimal(18,8)");
@@ -129,7 +131,8 @@ namespace Managing.Infrastructure.Databases.Migrations
b.HasKey("Id");
b.HasIndex("AgentName");
b.HasIndex("AgentName")
.IsUnique();
b.HasIndex("TotalPnL");