// using System; using Flypaper.Storage; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace Flypaper.Storage.Migrations { [DbContext(typeof(FlypaperDbContext))] [Migration("20261117165523_AddResearch")] partial class AddResearch { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "10.0.15"); modelBuilder.Entity("Flypaper.Storage.Entities.IdeaEntity", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Commit") .HasMaxLength(64) .HasColumnType("TEXT"); b.Property("CreatedAt") .HasColumnType("TEXT"); b.Property("Efficiency") .IsRequired() .HasMaxLength(16) .HasColumnType("TEXT"); b.Property("Effort") .IsRequired() .HasMaxLength(16) .HasColumnType("TEXT"); b.Property("ImplementedOn") .HasColumnType("TEXT"); b.Property("Rationale") .IsRequired() .HasMaxLength(20000) .HasColumnType("TEXT"); b.Property("Status") .IsRequired() .HasMaxLength(16) .HasColumnType("TEXT"); b.Property("Title") .IsRequired() .HasMaxLength(200) .HasColumnType("TEXT"); b.Property("UpdatedAt") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Ideas"); }); modelBuilder.Entity("Flypaper.Storage.Entities.LabEntryEntity", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Commit") .HasMaxLength(64) .HasColumnType("TEXT"); b.Property("CreatedAt") .HasColumnType("TEXT"); b.Property("Date") .HasColumnType("TEXT"); b.Property("Kind") .IsRequired() .HasMaxLength(16) .HasColumnType("TEXT"); b.Property("Strategies") .HasMaxLength(512) .HasColumnType("TEXT"); b.Property("Text") .IsRequired() .HasMaxLength(20000) .HasColumnType("TEXT"); b.Property("Title") .IsRequired() .HasMaxLength(200) .HasColumnType("TEXT"); b.Property("UpdatedAt") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("Date"); b.ToTable("LabEntries"); }); modelBuilder.Entity("Flypaper.Storage.Entities.McpTokenEntity", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("CanWrite") .HasColumnType("INTEGER"); b.Property("CreatedAt") .HasColumnType("TEXT"); b.Property("LastUsedAt") .HasColumnType("TEXT"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("TEXT"); b.Property("TokenHash") .IsRequired() .HasMaxLength(64) .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("TokenHash") .IsUnique(); b.ToTable("McpTokens"); }); modelBuilder.Entity("Flypaper.Storage.Entities.SettingEntity", b => { b.Property("Key") .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("Value") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Key"); b.ToTable("Settings"); }); modelBuilder.Entity("Flypaper.Storage.Entities.TrapEventEntity", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Asn") .HasColumnType("INTEGER"); b.Property("BytesSent") .HasColumnType("INTEGER"); b.Property("City") .HasMaxLength(256) .HasColumnType("TEXT"); b.Property("ClientInfo") .HasMaxLength(2048) .HasColumnType("TEXT"); b.Property("Country") .HasMaxLength(256) .HasColumnType("TEXT"); b.Property("CountryCode") .HasMaxLength(2) .HasColumnType("TEXT"); b.Property("DurationMs") .HasColumnType("INTEGER"); b.Property("EndedAt") .HasColumnType("TEXT"); b.Property("Outcome") .IsRequired() .HasMaxLength(16) .HasColumnType("TEXT"); b.Property("Protocol") .IsRequired() .HasMaxLength(16) .HasColumnType("TEXT"); b.Property("Provider") .HasMaxLength(256) .HasColumnType("TEXT"); b.Property("RemoteIp") .IsRequired() .HasMaxLength(64) .HasColumnType("TEXT"); b.Property("SessionId") .HasColumnType("TEXT"); b.Property("StartedAt") .HasColumnType("TEXT"); b.Property("Strategy") .IsRequired() .HasMaxLength(64) .HasColumnType("TEXT"); b.Property("Target") .HasMaxLength(2048) .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("Asn"); b.HasIndex("CountryCode"); b.HasIndex("RemoteIp"); b.HasIndex("StartedAt"); b.ToTable("TrapEvents"); }); #pragma warning restore 612, 618 } } }