using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace FinlyticAnalyzer.Migrations { /// public partial class AddTradeProposals : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "TradeProposals", columns: table => new { Id = table.Column(type: "uuid", nullable: false), Isin = table.Column(type: "text", nullable: false), Name = table.Column(type: "text", nullable: false), Type = table.Column(type: "integer", nullable: false), ProposedAction = table.Column(type: "text", nullable: false), ConfidenceScore = table.Column(type: "double precision", nullable: false), ReasonSummary = table.Column(type: "text", nullable: false), CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), ExpiresAt = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_TradeProposals", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_TradeProposals_ExpiresAt", table: "TradeProposals", column: "ExpiresAt"); migrationBuilder.CreateIndex( name: "IX_TradeProposals_Isin", table: "TradeProposals", column: "Isin"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "TradeProposals"); } } }