Сделал диалоговое окно добавления принтера

This commit is contained in:
Hukuta committed 2026-05-08 01:06:06 +09:00
1 parent 17e4794160
commit 88f53c793e
78 files changed
+854 -60572

No files matched your search

@@ -73,6 +73,33 @@ namespace CartriX.Api.Migrations
b.ToTable("Locations");
});
modelBuilder.Entity("CartriX.Shared.Models.PrintType", b =>
{
b.Property<int>("id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("name")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("id");
b.ToTable("PrintTypes");
b.HasData(
new
{
id = 1,
name = "Laser"
},
new
{
id = 2,
name = "Inkjet"
});
});
modelBuilder.Entity("CartriX.Shared.Models.Printer", b =>
{
b.Property<int>("id")
@@ -97,12 +124,17 @@ namespace CartriX.Api.Migrations
.IsRequired()
.HasColumnType("TEXT");
b.Property<int>("printTypeid")
.HasColumnType("INTEGER");
b.HasKey("id");
b.HasIndex("locationid");
b.HasIndex("modelid");
b.HasIndex("printTypeid");
b.ToTable("Printers");
});
@@ -116,6 +148,9 @@ namespace CartriX.Api.Migrations
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("picturePath")
.HasColumnType("TEXT");
b.HasKey("id");
b.ToTable("PrinterModels");
@@ -152,9 +187,17 @@ namespace CartriX.Api.Migrations
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("CartriX.Shared.Models.PrintType", "printType")
.WithMany()
.HasForeignKey("printTypeid")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("location");
b.Navigation("model");
b.Navigation("printType");
});
modelBuilder.Entity("CartriX.Shared.Models.Location", b =>