feat(Trades): refactor trades MQTT client and DTOs
This commit is contained in:
@@ -0,0 +1,101 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FinlyticTrades.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class ExpandTradeEntity : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<decimal>(
|
||||
name: "EntryZoneMax",
|
||||
table: "trades",
|
||||
type: "numeric(18,4)",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<decimal>(
|
||||
name: "EntryZoneMin",
|
||||
table: "trades",
|
||||
type: "numeric(18,4)",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "FundamentalRationale",
|
||||
table: "trades",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<decimal>(
|
||||
name: "MaxLeverage",
|
||||
table: "trades",
|
||||
type: "numeric(18,4)",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<decimal>(
|
||||
name: "RiskRewardRatio",
|
||||
table: "trades",
|
||||
type: "numeric(18,4)",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "RiskWarning",
|
||||
table: "trades",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "TakeProfitTargets",
|
||||
table: "trades",
|
||||
type: "text",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "TechnicalRationale",
|
||||
table: "trades",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EntryZoneMax",
|
||||
table: "trades");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EntryZoneMin",
|
||||
table: "trades");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "FundamentalRationale",
|
||||
table: "trades");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MaxLeverage",
|
||||
table: "trades");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "RiskRewardRatio",
|
||||
table: "trades");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "RiskWarning",
|
||||
table: "trades");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TakeProfitTargets",
|
||||
table: "trades");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TechnicalRationale",
|
||||
table: "trades");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user