195 lines
6.5 KiB
C#
195 lines
6.5 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using FinlyticAnalyzer.Database;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
#nullable disable
|
|
|
|
namespace FinlyticAnalyzer.Migrations
|
|
{
|
|
[DbContext(typeof(AnalyzerDbContext))]
|
|
[Migration("20260805184638_AddTradeProposals")]
|
|
partial class AddTradeProposals
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "10.0.9")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("FinlyticAnalyzer.Entities.AnalysisEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("AiOutputJson")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<string>("AnalysisId")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("character varying(100)");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("EventId")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("character varying(100)");
|
|
|
|
b.Property<double>("ImpactScore")
|
|
.HasColumnType("double precision");
|
|
|
|
b.Property<bool>("IsTradeProposed")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("Isin")
|
|
.IsRequired()
|
|
.HasMaxLength(30)
|
|
.HasColumnType("character varying(30)");
|
|
|
|
b.Property<string>("N8nDecision")
|
|
.IsRequired()
|
|
.HasMaxLength(30)
|
|
.HasColumnType("character varying(30)");
|
|
|
|
b.Property<double>("N8nEvalScore")
|
|
.HasColumnType("double precision");
|
|
|
|
b.Property<string>("N8nResponseJson")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<string>("RawDataJson")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<string>("Sector")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("character varying(50)");
|
|
|
|
b.Property<string>("Symbol")
|
|
.IsRequired()
|
|
.HasMaxLength(30)
|
|
.HasColumnType("character varying(30)");
|
|
|
|
b.Property<int>("VixRegime")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<decimal>("VixValue")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<double>("WinRate")
|
|
.HasColumnType("double precision");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AnalysisId")
|
|
.IsUnique();
|
|
|
|
b.HasIndex("CreatedAt");
|
|
|
|
b.HasIndex("EventId");
|
|
|
|
b.HasIndex("Isin");
|
|
|
|
b.HasIndex("Sector");
|
|
|
|
b.ToTable("analyses");
|
|
});
|
|
|
|
modelBuilder.Entity("FinlyticAnalyzer.Entities.AnalyzerSettingsEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<bool>("EnableLogAnalyzerAuto")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<bool>("EnableLogAnalyzerManual")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<bool>("EnableLogDatabaseOps")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<bool>("EnableLogMqttGeneral")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<bool>("EnableLogMqttHealthPing")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<double>("MinSignalScore")
|
|
.HasColumnType("double precision");
|
|
|
|
b.Property<string>("ScanCronSchedule")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Settings");
|
|
});
|
|
|
|
modelBuilder.Entity("FinlyticAnalyzer.Entities.TradeProposalEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<double>("ConfidenceScore")
|
|
.HasColumnType("double precision");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime>("ExpiresAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("Isin")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ProposedAction")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ReasonSummary")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ExpiresAt");
|
|
|
|
b.HasIndex("Isin");
|
|
|
|
b.ToTable("TradeProposals");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|