// using System; using Inventory.Core; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace Inventory.Core.Migrations { [DbContext(typeof(InventoryContext))] [Migration("20251019065246_AddHealthMetrics")] partial class AddHealthMetrics { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.10") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("Inventory.Core.Device", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("BatteryHealthPercent") .HasColumnType("float"); b.Property("ComputerName") .HasColumnType("nvarchar(max)"); b.Property("CpuTemperature") .HasColumnType("float"); b.Property("DeviceType") .HasColumnType("nvarchar(max)"); b.Property("DriveHealth") .HasColumnType("nvarchar(max)"); b.Property("GPUs") .HasColumnType("nvarchar(max)"); b.Property("GpuTemperature") .HasColumnType("float"); b.Property("HardwareIdentifier") .HasColumnType("nvarchar(450)"); b.Property("HasOpticalDrive") .HasColumnType("bit"); b.Property("IPAddress") .HasColumnType("nvarchar(max)"); b.Property("LastSeen") .HasColumnType("datetime2"); b.Property("LocalAdmins") .HasColumnType("nvarchar(max)"); b.Property("MACAddress") .HasColumnType("nvarchar(max)"); b.Property("Monitors") .HasColumnType("nvarchar(max)"); b.Property("MotherboardSerialNumber") .HasColumnType("nvarchar(max)"); b.Property("OSLicenseKey") .HasColumnType("nvarchar(max)"); b.Property("OSVersion") .HasColumnType("nvarchar(max)"); b.Property("OsInstallDate") .HasColumnType("datetime2"); b.Property("PreviousIPAddress") .HasColumnType("nvarchar(max)"); b.Property("Printers") .HasColumnType("nvarchar(max)"); b.Property("Processor") .HasColumnType("nvarchar(max)"); b.Property("RAM") .HasColumnType("nvarchar(max)"); b.Property("SerialNumber") .HasColumnType("nvarchar(max)"); b.Property("StorageDevices") .HasColumnType("nvarchar(max)"); b.Property("SystemUUID") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("HardwareIdentifier") .IsUnique() .HasFilter("[HardwareIdentifier] IS NOT NULL"); b.ToTable("Devices"); }); #pragma warning restore 612, 618 } } }