Add filters and sorting for backtests
This commit is contained in:
@@ -157,6 +157,11 @@ namespace Managing.Infrastructure.Databases.Migrations
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<TimeSpan>("Duration")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("interval")
|
||||
.HasDefaultValue(new TimeSpan(0, 0, 0, 0, 0));
|
||||
|
||||
b.Property<DateTime>("EndDate")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
@@ -177,6 +182,23 @@ namespace Managing.Infrastructure.Databases.Migrations
|
||||
.HasMaxLength(255)
|
||||
.HasColumnType("character varying(255)");
|
||||
|
||||
b.Property<int>("IndicatorsCount")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("IndicatorsCsv")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<decimal>("MaxDrawdown")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("decimal(18,8)")
|
||||
.HasDefaultValue(0m);
|
||||
|
||||
b.Property<TimeSpan>("MaxDrawdownRecoveryTime")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("interval")
|
||||
.HasDefaultValue(new TimeSpan(0, 0, 0, 0, 0));
|
||||
|
||||
b.Property<string>("Metadata")
|
||||
.HasColumnType("text");
|
||||
|
||||
@@ -184,6 +206,11 @@ namespace Managing.Infrastructure.Databases.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("jsonb");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(255)
|
||||
.HasColumnType("character varying(255)");
|
||||
|
||||
b.Property<string>("PositionsJson")
|
||||
.IsRequired()
|
||||
.HasColumnType("jsonb");
|
||||
@@ -200,6 +227,11 @@ namespace Managing.Infrastructure.Databases.Migrations
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<decimal>("SharpeRatio")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("decimal(18,8)")
|
||||
.HasDefaultValue(0m);
|
||||
|
||||
b.Property<string>("SignalsJson")
|
||||
.IsRequired()
|
||||
.HasColumnType("jsonb");
|
||||
@@ -210,6 +242,14 @@ namespace Managing.Infrastructure.Databases.Migrations
|
||||
b.Property<string>("StatisticsJson")
|
||||
.HasColumnType("jsonb");
|
||||
|
||||
b.Property<string>("Ticker")
|
||||
.IsRequired()
|
||||
.HasMaxLength(32)
|
||||
.HasColumnType("character varying(32)");
|
||||
|
||||
b.Property<int>("Timeframe")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
@@ -232,8 +272,14 @@ namespace Managing.Infrastructure.Databases.Migrations
|
||||
|
||||
b.HasIndex("RequestId", "Score");
|
||||
|
||||
b.HasIndex("UserId", "Name");
|
||||
|
||||
b.HasIndex("UserId", "Score");
|
||||
|
||||
b.HasIndex("UserId", "Ticker");
|
||||
|
||||
b.HasIndex("UserId", "Timeframe");
|
||||
|
||||
b.ToTable("Backtests");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user