- Dodati operacije na pozicijo dela projekta
- Dodatna tabela z operacijami in stanjem (končano/nekončano) - šifrant operacij - možnost določevanje privzetih operacij - Opombe na pozicij dela projekta - Pogled kooperacij na poziciji dela projekta - Izpisano številka kooperacije in kooperant
This commit is contained in:
@@ -318,6 +318,24 @@ namespace EveryThing.Migrations
|
||||
b.ToTable("CodeTableJobs");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("EveryThing.Models.CodeTable.CodeTableOperation", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("Default")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("CodeTableOperations");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("EveryThing.Models.CodeTable.CodeTablePartner", b =>
|
||||
{
|
||||
b.Property<int>("IdPartner")
|
||||
@@ -713,9 +731,6 @@ namespace EveryThing.Migrations
|
||||
b.Property<string>("PreText")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<int?>("ProjectIdProject")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("State")
|
||||
.HasColumnType("int");
|
||||
|
||||
@@ -728,7 +743,7 @@ namespace EveryThing.Migrations
|
||||
|
||||
b.HasIndex("IdPartnerFk");
|
||||
|
||||
b.HasIndex("ProjectIdProject");
|
||||
b.HasIndex("IdProjectFk");
|
||||
|
||||
b.ToTable("Invoices");
|
||||
});
|
||||
@@ -900,6 +915,9 @@ namespace EveryThing.Migrations
|
||||
b.Property<float>("MaterialPrice")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<string>("Note")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<float>("NumberOfItems")
|
||||
.HasColumnType("float");
|
||||
|
||||
@@ -937,6 +955,33 @@ namespace EveryThing.Migrations
|
||||
b.ToTable("ProjectPartItems");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("EveryThing.Models.Project.ProjectPartItemOperation", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("Finished")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<int>("IdCodeTableOperationFk")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("IdProjectPartItemFk")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<short>("Order")
|
||||
.HasColumnType("smallint");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("IdCodeTableOperationFk");
|
||||
|
||||
b.HasIndex("IdProjectPartItemFk");
|
||||
|
||||
b.ToTable("ProjectPartItemOperations");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("EveryThing.Models.Transport.TransportLoadingOrder", b =>
|
||||
{
|
||||
b.Property<int>("IdTransportLoadingOrder")
|
||||
@@ -1823,7 +1868,7 @@ namespace EveryThing.Migrations
|
||||
|
||||
b.HasOne("EveryThing.Models.Project.Project", "Project")
|
||||
.WithMany("Invoices")
|
||||
.HasForeignKey("ProjectIdProject")
|
||||
.HasForeignKey("IdProjectFk")
|
||||
.OnDelete(DeleteBehavior.Restrict);
|
||||
|
||||
b.Navigation("Company");
|
||||
@@ -1925,6 +1970,25 @@ namespace EveryThing.Migrations
|
||||
b.Navigation("ProjectPart");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("EveryThing.Models.Project.ProjectPartItemOperation", b =>
|
||||
{
|
||||
b.HasOne("EveryThing.Models.CodeTable.CodeTableOperation", "Operation")
|
||||
.WithMany("ProjectPartItemOperation")
|
||||
.HasForeignKey("IdCodeTableOperationFk")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("EveryThing.Models.Project.ProjectPartItem", "ProjectPartItem")
|
||||
.WithMany("ProjectPartItemOperation")
|
||||
.HasForeignKey("IdProjectPartItemFk")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Operation");
|
||||
|
||||
b.Navigation("ProjectPartItem");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("EveryThing.Models.Transport.TransportLoadingOrder", b =>
|
||||
{
|
||||
b.HasOne("EveryThing.Models.CodeTable.CodeTableCompany", "Company")
|
||||
@@ -2354,6 +2418,11 @@ namespace EveryThing.Migrations
|
||||
b.Navigation("JobEmployee");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("EveryThing.Models.CodeTable.CodeTableOperation", b =>
|
||||
{
|
||||
b.Navigation("ProjectPartItemOperation");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("EveryThing.Models.CodeTable.CodeTablePartner", b =>
|
||||
{
|
||||
b.Navigation("Invoice");
|
||||
@@ -2394,6 +2463,8 @@ namespace EveryThing.Migrations
|
||||
modelBuilder.Entity("EveryThing.Models.Project.ProjectPartItem", b =>
|
||||
{
|
||||
b.Navigation("InvoiceItem");
|
||||
|
||||
b.Navigation("ProjectPartItemOperation");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("EveryThing.Models.Transport.TransportLoadingOrder", b =>
|
||||
|
||||
Reference in New Issue
Block a user