//
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("20260427070704_Init2")]
partial class Init2
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "10.0.7");
modelBuilder.Entity("CartriX.Shared.Models.Location", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("Name")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("Locations");
});
modelBuilder.Entity("CartriX.Shared.Models.Printer", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("LocationId")
.HasColumnType("INTEGER");
b.Property("PrinterName")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("LocationId");
b.ToTable("Printers");
});
modelBuilder.Entity("CartriX.Shared.Models.Printer", b =>
{
b.HasOne("CartriX.Shared.Models.Location", "Location")
.WithMany("Printers")
.HasForeignKey("LocationId");
b.Navigation("Location");
});
modelBuilder.Entity("CartriX.Shared.Models.Location", b =>
{
b.Navigation("Printers");
});
#pragma warning restore 612, 618
}
}
}