dev
This commit is contained in:
@@ -695,6 +695,9 @@ namespace EveryThing.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int?>("IdProjectFk")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("InvoiceNumber")
|
||||
.HasColumnType("int");
|
||||
|
||||
@@ -710,6 +713,9 @@ namespace EveryThing.Migrations
|
||||
b.Property<string>("PreText")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<int?>("ProjectIdProject")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("State")
|
||||
.HasColumnType("int");
|
||||
|
||||
@@ -722,6 +728,8 @@ namespace EveryThing.Migrations
|
||||
|
||||
b.HasIndex("IdPartnerFk");
|
||||
|
||||
b.HasIndex("ProjectIdProject");
|
||||
|
||||
b.ToTable("Invoices");
|
||||
});
|
||||
|
||||
@@ -1813,9 +1821,16 @@ namespace EveryThing.Migrations
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("EveryThing.Models.Project.Project", "Project")
|
||||
.WithMany("Invoices")
|
||||
.HasForeignKey("ProjectIdProject")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.Navigation("Company");
|
||||
|
||||
b.Navigation("Partner");
|
||||
|
||||
b.Navigation("Project");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("EveryThing.Models.Invoice.InvoiceItem", b =>
|
||||
@@ -2366,6 +2381,8 @@ namespace EveryThing.Migrations
|
||||
|
||||
modelBuilder.Entity("EveryThing.Models.Project.Project", b =>
|
||||
{
|
||||
b.Navigation("Invoices");
|
||||
|
||||
b.Navigation("ProjectProjectPart");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user