This commit is contained in:
David Štaleker
2023-05-23 14:57:29 +02:00
parent a45fe73754
commit 257f8730b2
10 changed files with 2556 additions and 119 deletions

View File

@@ -393,10 +393,6 @@ namespace EveryThing.Migrations
b.Property<int>("IdCompanyFk")
.HasColumnType("int");
b.Property<string>("Type")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("IdPrePostText");
b.HasIndex("IdCompanyFk");
@@ -404,6 +400,28 @@ namespace EveryThing.Migrations
b.ToTable("CodeTablePrePostText");
});
modelBuilder.Entity("EveryThing.Models.CodeTable.CodeTablePrePostTextLink", b =>
{
b.Property<int>("IdPrePostTextLink")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property<int>("IdPrePostTextFk")
.HasColumnType("int");
b.Property<int>("Link")
.HasColumnType("int");
b.Property<int>("Type")
.HasColumnType("int");
b.HasKey("IdPrePostTextLink");
b.HasIndex("IdPrePostTextFk");
b.ToTable("CodeTablePrePostTextLink");
});
modelBuilder.Entity("EveryThing.Models.Document", b =>
{
b.Property<int>("IdDocument")
@@ -1582,6 +1600,17 @@ namespace EveryThing.Migrations
b.Navigation("Company");
});
modelBuilder.Entity("EveryThing.Models.CodeTable.CodeTablePrePostTextLink", b =>
{
b.HasOne("EveryThing.Models.CodeTable.CodeTablePrePostText", "CodeTablePrePostText")
.WithMany("CodeTablePrePostTextLinks")
.HasForeignKey("IdPrePostTextFk")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("CodeTablePrePostText");
});
modelBuilder.Entity("EveryThing.Models.Document", b =>
{
b.HasOne("EveryThing.Models.DocumentType", "DocumentType")
@@ -2124,6 +2153,11 @@ namespace EveryThing.Migrations
b.Navigation("PartnerTransportLoadingOrderUnload");
});
modelBuilder.Entity("EveryThing.Models.CodeTable.CodeTablePrePostText", b =>
{
b.Navigation("CodeTablePrePostTextLinks");
});
modelBuilder.Entity("EveryThing.Models.DocumentType", b =>
{
b.Navigation("DocumentTypeDocument");