fix Hosts

This commit is contained in:
Mikhail Trubnikov
2023-09-20 09:52:51 +10:00
parent 87f81d5ed6
commit e10b591c1b
4 changed files with 1497 additions and 15 deletions

View File

@@ -518,9 +518,6 @@ namespace PARR.DAL.Migrations
.IsRequired()
.HasColumnType("text");
b.Property<Guid?>("HostId")
.HasColumnType("uuid");
b.Property<string>("IP")
.IsRequired()
.HasColumnType("text");
@@ -536,8 +533,6 @@ namespace PARR.DAL.Migrations
b.HasKey("Id");
b.HasIndex("HostId");
b.ToTable("Hosts");
});
@@ -1192,13 +1187,6 @@ namespace PARR.DAL.Migrations
b.Navigation("Work");
});
modelBuilder.Entity("PARR.DAL.Models.Host", b =>
{
b.HasOne("PARR.DAL.Models.Host", null)
.WithMany("Hosts")
.HasForeignKey("HostId");
});
modelBuilder.Entity("PARR.DAL.Models.Subprocess", b =>
{
b.HasOne("PARR.DAL.Models.Process", "Process")
@@ -1219,7 +1207,7 @@ namespace PARR.DAL.Migrations
.IsRequired();
b.HasOne("PARR.DAL.Models.Host", "Host")
.WithMany()
.WithMany("Templates")
.HasForeignKey("HostId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
@@ -1379,7 +1367,7 @@ namespace PARR.DAL.Migrations
{
b.Navigation("ApplicationsInHosts");
b.Navigation("Hosts");
b.Navigation("Templates");
});
modelBuilder.Entity("PARR.DAL.Models.Process", b =>