Files
CartriX/CartriX.Api/Migrations/AppDbContextModelSnapshot.cs
T

71 lines
2.1 KiB
C#

// <auto-generated />
using CartriX.Api;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace CartriX.Api.Migrations
{
[DbContext(typeof(AppDbContext))]
partial class AppDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "10.0.7");
modelBuilder.Entity("CartriX.Shared.Models.Location", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("Locations");
});
modelBuilder.Entity("CartriX.Shared.Models.Printer", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<int?>("LocationId")
.HasColumnType("INTEGER");
b.Property<string>("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
}
}
}