2023-04-07 16:53:49 +04:00
|
|
|
|
// <auto-generated />
|
|
|
|
|
using System;
|
|
|
|
|
using ComputerShopDatabaseImplement;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
|
|
namespace ComputerShopDatabaseImplement.Migrations
|
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(ComputerShopDatabase))]
|
|
|
|
|
partial class ComputerShopDatabaseModelSnapshot : ModelSnapshot
|
|
|
|
|
{
|
|
|
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
|
modelBuilder
|
|
|
|
|
.HasAnnotation("ProductVersion", "7.0.4")
|
|
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
|
|
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.Assembly", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
|
|
|
|
b.Property<string>("AssemblyName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
2023-04-07 17:55:39 +04:00
|
|
|
|
b.Property<int?>("ClientId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
b.Property<double>("Price")
|
|
|
|
|
.HasColumnType("float");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2023-04-07 17:55:39 +04:00
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
b.ToTable("Assemblies");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.AssemblyComponent", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
|
|
|
|
b.Property<int>("AssemblyId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("ComponentId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Count")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("AssemblyId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ComponentId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AssemblyComponents");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.AssemblyOrder", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
|
|
|
|
b.Property<int>("AssemblyId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Count")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("OrderId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("AssemblyId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("OrderId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AssemblyOrders");
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-07 17:55:39 +04:00
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.Client", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClientFIO")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Email")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Password")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.ToTable("Clients");
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.Component", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
2023-04-07 18:59:41 +04:00
|
|
|
|
b.Property<int?>("ClientId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
b.Property<string>("ComponentName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("Cost")
|
|
|
|
|
.HasColumnType("float");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2023-04-07 18:59:41 +04:00
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
b.ToTable("Components");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.ComponentSupply", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
|
|
|
|
b.Property<int>("ComponentId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Count")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("SupplyId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ComponentId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("SupplyId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("ComponentSupplies");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.EquipmentReceiving", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
2023-04-07 17:55:39 +04:00
|
|
|
|
b.Property<int?>("ClientId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
b.Property<DateTime?>("DateImplement")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Status")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("SupplyId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2023-04-07 17:55:39 +04:00
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
b.HasIndex("SupplyId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("EquipmentReceivings");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.Order", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
2023-04-07 17:55:39 +04:00
|
|
|
|
b.Property<int?>("ClientId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateImplement")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Status")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("Sum")
|
|
|
|
|
.HasColumnType("float");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2023-04-07 17:55:39 +04:00
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
b.ToTable("Orders");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.Purchase", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
2023-04-07 17:55:39 +04:00
|
|
|
|
b.Property<int?>("ClientId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
b.Property<int>("ComponentId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ComponentName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Count")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateImplement")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Status")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("Sum")
|
|
|
|
|
.HasColumnType("float");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2023-04-07 17:55:39 +04:00
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
b.HasIndex("ComponentId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("Purchases");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.Supply", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
2023-04-07 17:55:39 +04:00
|
|
|
|
b.Property<int?>("ClientId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
b.Property<DateTime>("DateCreate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateImplement")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("OrderId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("ReceivingId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Status")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2023-04-07 17:55:39 +04:00
|
|
|
|
b.HasIndex("ClientId");
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
b.ToTable("Supplies");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.SupplyOrder", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Count")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("OrderId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("SupplyId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("OrderId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("SupplyId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("SupplyOrders");
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-07 17:55:39 +04:00
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.Assembly", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("ComputerShopDatabaseImplement.Models.Client", null)
|
|
|
|
|
.WithMany("Assemblies")
|
|
|
|
|
.HasForeignKey("ClientId");
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.AssemblyComponent", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("ComputerShopDatabaseImplement.Models.Assembly", "Assembly")
|
|
|
|
|
.WithMany("Components")
|
|
|
|
|
.HasForeignKey("AssemblyId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.HasOne("ComputerShopDatabaseImplement.Models.Component", "Component")
|
|
|
|
|
.WithMany("AssemblyComponents")
|
|
|
|
|
.HasForeignKey("ComponentId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Assembly");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Component");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.AssemblyOrder", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("ComputerShopDatabaseImplement.Models.Assembly", "Assembly")
|
|
|
|
|
.WithMany("Orders")
|
|
|
|
|
.HasForeignKey("AssemblyId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.HasOne("ComputerShopDatabaseImplement.Models.Order", "Order")
|
|
|
|
|
.WithMany("Assemblies")
|
|
|
|
|
.HasForeignKey("OrderId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Assembly");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Order");
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-07 18:59:41 +04:00
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.Component", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("ComputerShopDatabaseImplement.Models.Client", null)
|
|
|
|
|
.WithMany("Components")
|
|
|
|
|
.HasForeignKey("ClientId");
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.ComponentSupply", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("ComputerShopDatabaseImplement.Models.Component", "Component")
|
|
|
|
|
.WithMany("Supplies")
|
|
|
|
|
.HasForeignKey("ComponentId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.HasOne("ComputerShopDatabaseImplement.Models.Supply", "Supply")
|
|
|
|
|
.WithMany("Supplies")
|
|
|
|
|
.HasForeignKey("SupplyId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Component");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Supply");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.EquipmentReceiving", b =>
|
|
|
|
|
{
|
2023-04-07 17:55:39 +04:00
|
|
|
|
b.HasOne("ComputerShopDatabaseImplement.Models.Client", null)
|
|
|
|
|
.WithMany("EquipmentReceivings")
|
|
|
|
|
.HasForeignKey("ClientId");
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
b.HasOne("ComputerShopDatabaseImplement.Models.Supply", null)
|
|
|
|
|
.WithMany("Receivings")
|
|
|
|
|
.HasForeignKey("SupplyId");
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-07 17:55:39 +04:00
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.Order", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("ComputerShopDatabaseImplement.Models.Client", null)
|
|
|
|
|
.WithMany("Orders")
|
|
|
|
|
.HasForeignKey("ClientId");
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.Purchase", b =>
|
|
|
|
|
{
|
2023-04-07 17:55:39 +04:00
|
|
|
|
b.HasOne("ComputerShopDatabaseImplement.Models.Client", null)
|
|
|
|
|
.WithMany("Purchases")
|
|
|
|
|
.HasForeignKey("ClientId");
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
b.HasOne("ComputerShopDatabaseImplement.Models.Component", "Component")
|
|
|
|
|
.WithMany("Purchases")
|
|
|
|
|
.HasForeignKey("ComponentId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Component");
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-07 17:55:39 +04:00
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.Supply", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("ComputerShopDatabaseImplement.Models.Client", null)
|
|
|
|
|
.WithMany("Supplies")
|
|
|
|
|
.HasForeignKey("ClientId");
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.SupplyOrder", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("ComputerShopDatabaseImplement.Models.Order", "Order")
|
|
|
|
|
.WithMany("SupplyOrders")
|
|
|
|
|
.HasForeignKey("OrderId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.HasOne("ComputerShopDatabaseImplement.Models.Supply", "Supply")
|
|
|
|
|
.WithMany("Orders")
|
|
|
|
|
.HasForeignKey("SupplyId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Order");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Supply");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.Assembly", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("Components");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Orders");
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-07 17:55:39 +04:00
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.Client", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("Assemblies");
|
|
|
|
|
|
2023-04-07 18:59:41 +04:00
|
|
|
|
b.Navigation("Components");
|
|
|
|
|
|
2023-04-07 17:55:39 +04:00
|
|
|
|
b.Navigation("EquipmentReceivings");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Orders");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Purchases");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Supplies");
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-07 16:53:49 +04:00
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.Component", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("AssemblyComponents");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Purchases");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Supplies");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.Order", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("Assemblies");
|
|
|
|
|
|
|
|
|
|
b.Navigation("SupplyOrders");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("ComputerShopDatabaseImplement.Models.Supply", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("Orders");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Receivings");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Supplies");
|
|
|
|
|
});
|
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|