2023-04-01 14:38:20 +04:00
|
|
|
|
// <auto-generated />
|
|
|
|
|
using System;
|
|
|
|
|
using HardwareShopDatabaseImplement;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
|
|
namespace HardwareShopDatabaseImplement.Migrations
|
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(HardwareShopDatabase))]
|
|
|
|
|
partial class HardwareShopDatabaseModelSnapshot : 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);
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.ManyToMany.BuildComponent", b =>
|
2023-04-01 14:38:20 +04:00
|
|
|
|
{
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<int>("ComponentId")
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<int>("BuildId")
|
|
|
|
|
.HasColumnType("int");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<int>("Count")
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasKey("ComponentId", "BuildId");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasIndex("BuildId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("BuildsComponents");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
});
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.ManyToMany.PurchaseBuild", b =>
|
2023-04-01 14:38:20 +04:00
|
|
|
|
{
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<int>("PurchaseId")
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("BuildId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Count")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasKey("PurchaseId", "BuildId");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
|
|
|
|
b.HasIndex("BuildId");
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.ToTable("PurchasesBuilds");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
});
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.ManyToMany.PurchaseGood", b =>
|
2023-04-01 14:38:20 +04:00
|
|
|
|
{
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<int>("PurchaseId")
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<int>("GoodId")
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<int>("Count")
|
|
|
|
|
.HasColumnType("int");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasKey("PurchaseId", "GoodId");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasIndex("GoodId");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.ToTable("PurchasesGoods");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
});
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Storekeeper.Component", b =>
|
2023-04-01 14:38:20 +04:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<int>("UserId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-04-01 14:38:20 +04:00
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
|
|
2023-04-01 14:38:20 +04:00
|
|
|
|
b.ToTable("Components");
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Storekeeper.Good", b =>
|
2023-04-01 14:38:20 +04:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<int>("UserId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-04-01 14:38:20 +04:00
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
|
|
2023-04-01 14:38:20 +04:00
|
|
|
|
b.ToTable("Goods");
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Storekeeper.Order", b =>
|
2023-04-01 14:38:20 +04:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<int>("UserId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-04-01 14:38:20 +04:00
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
|
|
2023-04-01 14:38:20 +04:00
|
|
|
|
b.ToTable("Orders");
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.User", b =>
|
2023-04-01 14:38:20 +04:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<string>("Email")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<string>("Login")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<string>("Password")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<int>("Role")
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.ToTable("Users");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
});
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Worker.Build", b =>
|
2023-04-01 14:38:20 +04:00
|
|
|
|
{
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<string>("BuildName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<decimal>("Price")
|
|
|
|
|
.HasColumnType("decimal(18,2)");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<int>("UserId")
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasKey("Id");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasIndex("UserId");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.ToTable("Builds");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
});
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Worker.Comment", b =>
|
2023-04-01 14:38:20 +04:00
|
|
|
|
{
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<int>("BuildId")
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<string>("Text")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasKey("Id");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasIndex("BuildId");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.ToTable("Comments");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
});
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Worker.Purchase", b =>
|
2023-04-01 14:38:20 +04:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<DateTime?>("DatePurchase")
|
|
|
|
|
.HasColumnType("datetime2");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<int>("PurchaseStatus")
|
|
|
|
|
.HasColumnType("int");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<decimal>("Sum")
|
|
|
|
|
.HasColumnType("decimal(18,2)");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Property<int>("UserId")
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("Purchases");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
});
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.ManyToMany.BuildComponent", b =>
|
2023-04-01 14:38:20 +04:00
|
|
|
|
{
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasOne("HardwareShopDatabaseImplement.Models.Worker.Build", "Build")
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.WithMany("Components")
|
|
|
|
|
.HasForeignKey("BuildId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasOne("HardwareShopDatabaseImplement.Models.Storekeeper.Component", "Component")
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("ComponentId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Build");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Component");
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.ManyToMany.PurchaseBuild", b =>
|
2023-04-01 14:38:20 +04:00
|
|
|
|
{
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasOne("HardwareShopDatabaseImplement.Models.Worker.Build", "Build")
|
|
|
|
|
.WithMany("Purchases")
|
2023-04-01 16:34:06 +04:00
|
|
|
|
.HasForeignKey("BuildId")
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasOne("HardwareShopDatabaseImplement.Models.Worker.Purchase", "Purchase")
|
|
|
|
|
.WithMany("Builds")
|
|
|
|
|
.HasForeignKey("PurchaseId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2023-04-01 14:38:20 +04:00
|
|
|
|
b.Navigation("Build");
|
2023-04-01 16:42:28 +04:00
|
|
|
|
|
|
|
|
|
b.Navigation("Purchase");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.ManyToMany.PurchaseGood", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("HardwareShopDatabaseImplement.Models.Storekeeper.Good", "Good")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("GoodId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.HasOne("HardwareShopDatabaseImplement.Models.Worker.Purchase", "Purchase")
|
|
|
|
|
.WithMany("Goods")
|
|
|
|
|
.HasForeignKey("PurchaseId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Good");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Purchase");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
});
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Storekeeper.Component", b =>
|
2023-04-01 14:38:20 +04:00
|
|
|
|
{
|
|
|
|
|
b.HasOne("HardwareShopDatabaseImplement.Models.User", "User")
|
|
|
|
|
.WithMany()
|
2023-04-01 16:34:06 +04:00
|
|
|
|
.HasForeignKey("UserId")
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("User");
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Storekeeper.Good", b =>
|
2023-04-01 14:38:20 +04:00
|
|
|
|
{
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasOne("HardwareShopDatabaseImplement.Models.User", "User")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("UserId")
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Navigation("User");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Storekeeper.Order", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("HardwareShopDatabaseImplement.Models.User", "User")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("UserId")
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Navigation("User");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
});
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Worker.Build", b =>
|
2023-04-01 14:38:20 +04:00
|
|
|
|
{
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.HasOne("HardwareShopDatabaseImplement.Models.User", "User")
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.WithMany()
|
2023-04-01 16:42:28 +04:00
|
|
|
|
.HasForeignKey("UserId")
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Navigation("User");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Worker.Comment", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("HardwareShopDatabaseImplement.Models.Worker.Build", "Build")
|
|
|
|
|
.WithMany("Comments")
|
|
|
|
|
.HasForeignKey("BuildId")
|
2023-04-01 14:38:20 +04:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Navigation("Build");
|
|
|
|
|
});
|
2023-04-01 14:38:20 +04:00
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Worker.Purchase", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("HardwareShopDatabaseImplement.Models.User", "User")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("UserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("User");
|
2023-04-01 14:38:20 +04:00
|
|
|
|
});
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Worker.Build", b =>
|
2023-04-01 14:38:20 +04:00
|
|
|
|
{
|
2023-04-01 16:42:28 +04:00
|
|
|
|
b.Navigation("Comments");
|
|
|
|
|
|
2023-04-01 14:38:20 +04:00
|
|
|
|
b.Navigation("Components");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Purchases");
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-01 16:42:28 +04:00
|
|
|
|
modelBuilder.Entity("HardwareShopDatabaseImplement.Models.Worker.Purchase", b =>
|
2023-04-01 14:38:20 +04:00
|
|
|
|
{
|
|
|
|
|
b.Navigation("Builds");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Goods");
|
|
|
|
|
});
|
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|