// using System; using AmtScanner.Api.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace AmtScanner.Api.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20260119055017_InitialCreate")] partial class InitialCreate { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 64); modelBuilder.Entity("AmtScanner.Api.Models.AmtCredential", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("CreatedAt") .HasColumnType("datetime(6)"); b.Property("Description") .HasColumnType("longtext"); b.Property("IsDefault") .HasColumnType("tinyint(1)"); b.Property("Name") .IsRequired() .HasMaxLength(200) .HasColumnType("varchar(200)"); b.Property("Password") .IsRequired() .HasColumnType("longtext"); b.Property("UpdatedAt") .HasColumnType("datetime(6)"); b.Property("Username") .IsRequired() .HasColumnType("longtext"); b.HasKey("Id"); b.HasIndex("Name"); b.ToTable("AmtCredentials"); }); modelBuilder.Entity("AmtScanner.Api.Models.AmtDevice", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("bigint"); b.Property("Description") .HasColumnType("longtext"); b.Property("DiscoveredAt") .HasColumnType("datetime(6)"); b.Property("Hostname") .HasColumnType("longtext"); b.Property("IpAddress") .IsRequired() .HasMaxLength(50) .HasColumnType("varchar(50)"); b.Property("LastSeenAt") .HasColumnType("datetime(6)"); b.Property("MajorVersion") .HasColumnType("int"); b.Property("MinorVersion") .HasColumnType("int"); b.Property("Online") .HasColumnType("tinyint(1)"); b.Property("ProvisioningState") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("IpAddress") .IsUnique(); b.ToTable("AmtDevices"); }); #pragma warning restore 612, 618 } } }