InventoryAgent/Inventory.Core/Migrations/20251019065246_AddHealthMetrics.Designer.cs

123 lines
4.2 KiB
C#

// <auto-generated />
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
{
/// <inheritdoc />
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<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<double?>("BatteryHealthPercent")
.HasColumnType("float");
b.Property<string>("ComputerName")
.HasColumnType("nvarchar(max)");
b.Property<double?>("CpuTemperature")
.HasColumnType("float");
b.Property<string>("DeviceType")
.HasColumnType("nvarchar(max)");
b.Property<string>("DriveHealth")
.HasColumnType("nvarchar(max)");
b.Property<string>("GPUs")
.HasColumnType("nvarchar(max)");
b.Property<double?>("GpuTemperature")
.HasColumnType("float");
b.Property<string>("HardwareIdentifier")
.HasColumnType("nvarchar(450)");
b.Property<bool>("HasOpticalDrive")
.HasColumnType("bit");
b.Property<string>("IPAddress")
.HasColumnType("nvarchar(max)");
b.Property<DateTime>("LastSeen")
.HasColumnType("datetime2");
b.Property<string>("LocalAdmins")
.HasColumnType("nvarchar(max)");
b.Property<string>("MACAddress")
.HasColumnType("nvarchar(max)");
b.Property<string>("Monitors")
.HasColumnType("nvarchar(max)");
b.Property<string>("MotherboardSerialNumber")
.HasColumnType("nvarchar(max)");
b.Property<string>("OSLicenseKey")
.HasColumnType("nvarchar(max)");
b.Property<string>("OSVersion")
.HasColumnType("nvarchar(max)");
b.Property<DateTime?>("OsInstallDate")
.HasColumnType("datetime2");
b.Property<string>("PreviousIPAddress")
.HasColumnType("nvarchar(max)");
b.Property<string>("Printers")
.HasColumnType("nvarchar(max)");
b.Property<string>("Processor")
.HasColumnType("nvarchar(max)");
b.Property<string>("RAM")
.HasColumnType("nvarchar(max)");
b.Property<string>("SerialNumber")
.HasColumnType("nvarchar(max)");
b.Property<string>("StorageDevices")
.HasColumnType("nvarchar(max)");
b.Property<string>("SystemUUID")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("HardwareIdentifier")
.IsUnique()
.HasFilter("[HardwareIdentifier] IS NOT NULL");
b.ToTable("Devices");
});
#pragma warning restore 612, 618
}
}
}