// 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("20260801073402_Init")] partial class Init { /// 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("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AiOutputJson") .IsRequired() .HasColumnType("jsonb"); b.Property("AnalysisId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("EventId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ImpactScore") .HasColumnType("double precision"); b.Property("IsTradeProposed") .HasColumnType("boolean"); b.Property("Isin") .IsRequired() .HasMaxLength(30) .HasColumnType("character varying(30)"); b.Property("N8nDecision") .IsRequired() .HasMaxLength(30) .HasColumnType("character varying(30)"); b.Property("N8nEvalScore") .HasColumnType("double precision"); b.Property("N8nResponseJson") .IsRequired() .HasColumnType("jsonb"); b.Property("RawDataJson") .IsRequired() .HasColumnType("jsonb"); b.Property("Sector") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("Symbol") .IsRequired() .HasMaxLength(30) .HasColumnType("character varying(30)"); b.Property("VixRegime") .HasColumnType("integer"); b.Property("VixValue") .HasColumnType("numeric"); b.Property("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("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("MinSignalScore") .HasColumnType("double precision"); b.Property("ScanCronSchedule") .IsRequired() .HasColumnType("text"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.ToTable("Settings"); }); #pragma warning restore 612, 618 } } }