// using CartriX.Api; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace CartriX.Api.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20260417022750_Init2")] partial class Init2 { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "10.0.6"); modelBuilder.Entity("CartriX.Api.Models.Cartridge", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Capacity") .HasColumnType("INTEGER"); b.Property("CartridgesInPrinterId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("CartridgesInPrinterId"); b.ToTable("Cartridges"); }); modelBuilder.Entity("CartriX.Api.Models.Printer", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("IpAddress") .IsRequired() .HasColumnType("TEXT"); b.Property("PrinterName") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Printers"); }); modelBuilder.Entity("CartriX.Api.Models.Cartridge", b => { b.HasOne("CartriX.Api.Models.Printer", "CartridgesInPrinter") .WithMany("CartridgesHave") .HasForeignKey("CartridgesInPrinterId"); b.Navigation("CartridgesInPrinter"); }); modelBuilder.Entity("CartriX.Api.Models.Printer", b => { b.Navigation("CartridgesHave"); }); #pragma warning restore 612, 618 } } }