feat(Analyzer): refactor analyzer and implement auto mode

This commit is contained in:
2026-08-09 21:01:38 +02:00
parent 5475c3ac51
commit b57cc9894c
31 changed files with 3425 additions and 0 deletions
@@ -0,0 +1,51 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FinlyticAnalyzer.Migrations
{
/// <inheritdoc />
public partial class AddTradeProposals : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "TradeProposals",
columns: table => new
{
Id = table.Column<Guid>(type: "uuid", nullable: false),
Isin = table.Column<string>(type: "text", nullable: false),
Name = table.Column<string>(type: "text", nullable: false),
Type = table.Column<int>(type: "integer", nullable: false),
ProposedAction = table.Column<string>(type: "text", nullable: false),
ConfidenceScore = table.Column<double>(type: "double precision", nullable: false),
ReasonSummary = table.Column<string>(type: "text", nullable: false),
CreatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
ExpiresAt = table.Column<DateTime>(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");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "TradeProposals");
}
}
}