mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 20:40:55 +00:00
74 lines
2.2 KiB
C#
74 lines
2.2 KiB
C#
// <auto-generated />
|
|
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
|
|
{
|
|
/// <inheritdoc />
|
|
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<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
|
|
}
|
|
}
|
|
}
|