mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
Сделал диалоговое окно добавления принтера
This commit is contained in:
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 =>
|
||||
|
||||
Reference in new issue
Block a user