// using System; using IBKRTrader.Modules.CongressTrading.Persistence.Ef; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace IBKRTrader.Modules.CongressTrading.Persistence.Ef.Migrations { [DbContext(typeof(CongressTradingDbContext))] [Migration("20260728092729_InitialCongressTrading")] partial class InitialCongressTrading { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.13") .HasAnnotation("Relational:MaxIdentifierLength", 64); MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder); modelBuilder.Entity("IBKRTrader.Modules.CongressTrading.Models.CongressMember", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id")); b.Property("BioId") .IsRequired() .HasMaxLength(20) .HasColumnType("varchar(20)"); b.Property("Chamber") .IsRequired() .HasMaxLength(10) .HasColumnType("varchar(10)"); b.Property("FirstSeen") .HasColumnType("datetime(6)"); b.Property("LastUpdated") .HasColumnType("datetime(6)"); b.Property("Name") .IsRequired() .HasMaxLength(200) .HasColumnType("varchar(200)"); b.Property("Party") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("ProfileUrl") .IsRequired() .HasMaxLength(500) .HasColumnType("varchar(500)"); b.Property("State") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.HasKey("Id"); b.HasIndex("BioId") .IsUnique(); b.ToTable("ct_congressMember", (string)null); }); modelBuilder.Entity("IBKRTrader.Modules.CongressTrading.Models.CongressTrade", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id")); b.Property("Chamber") .IsRequired() .HasMaxLength(20) .HasColumnType("varchar(20)"); b.Property("DetailUrl") .IsRequired() .HasMaxLength(500) .HasColumnType("varchar(500)"); b.Property("DetailsFetched") .HasColumnType("tinyint(1)"); b.Property("IssuerId") .IsRequired() .HasMaxLength(20) .HasColumnType("varchar(20)"); b.Property("IssuerName") .IsRequired() .HasMaxLength(500) .HasColumnType("varchar(500)"); b.Property("MemberBioId") .IsRequired() .HasMaxLength(20) .HasColumnType("varchar(20)"); b.Property("Owner") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("PublishedDate") .HasColumnType("date"); b.Property("ScrapedAt") .HasColumnType("datetime(6)"); b.Property("Ticker") .IsRequired() .HasMaxLength(20) .HasColumnType("varchar(20)"); b.Property("TradeDate") .HasColumnType("date"); b.Property("TradeId") .IsRequired() .HasMaxLength(20) .HasColumnType("varchar(20)"); b.Property("TradeType") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("Value") .HasPrecision(18, 2) .HasColumnType("decimal(18,2)"); b.HasKey("Id"); b.HasIndex("DetailsFetched"); b.HasIndex("MemberBioId"); b.HasIndex("Ticker"); b.HasIndex("TradeId") .IsUnique(); b.ToTable("ct_trade", (string)null); }); #pragma warning restore 612, 618 } } }