Add netPnl in db for position
This commit is contained in:
1458
src/Managing.Infrastructure.Database/Migrations/20251002195251_AddNetPnLToPositionEntity.Designer.cs
generated
Normal file
1458
src/Managing.Infrastructure.Database/Migrations/20251002195251_AddNetPnLToPositionEntity.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,29 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Managing.Infrastructure.Databases.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddNetPnLToPositionEntity : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<decimal>(
|
||||
name: "NetPnL",
|
||||
table: "Positions",
|
||||
type: "numeric(18,8)",
|
||||
nullable: false,
|
||||
defaultValue: 0m);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "NetPnL",
|
||||
table: "Positions");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -704,6 +704,9 @@ namespace Managing.Infrastructure.Databases.Migrations
|
||||
b.Property<string>("MoneyManagementJson")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<decimal>("NetPnL")
|
||||
.HasColumnType("decimal(18,8)");
|
||||
|
||||
b.Property<int?>("OpenTradeId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user