From 04201a80331f0c5d738547ad1c1eeaf749d8c71d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=9C=D0=B0=D0=BB?= =?UTF-8?q?=D0=B0=D1=84=D0=B5=D0=B5=D0=B2?= Date: Wed, 29 May 2024 18:12:07 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=BE=D1=81=20=D0=BC=D0=B8=D0=B3=D1=80?= =?UTF-8?q?=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CarCenterDatabaseModelSnapshot.cs | 509 ------------------ 1 file changed, 509 deletions(-) delete mode 100644 CarCenter/CarCenterDatabaseImplement/Migrations/CarCenterDatabaseModelSnapshot.cs diff --git a/CarCenter/CarCenterDatabaseImplement/Migrations/CarCenterDatabaseModelSnapshot.cs b/CarCenter/CarCenterDatabaseImplement/Migrations/CarCenterDatabaseModelSnapshot.cs deleted file mode 100644 index aa4b0c8..0000000 --- a/CarCenter/CarCenterDatabaseImplement/Migrations/CarCenterDatabaseModelSnapshot.cs +++ /dev/null @@ -1,509 +0,0 @@ -// -using System; -using CarCenterDatabaseImplement; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; - -#nullable disable - -namespace CarCenterDatabaseImplement.Migrations -{ - [DbContext(typeof(CarCenterDatabase))] - partial class CarCenterDatabaseModelSnapshot : ModelSnapshot - { - protected override void BuildModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "6.0.29") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.Bundling", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("DateCreate") - .HasColumnType("timestamp without time zone"); - - b.Property("EquipmentPackage") - .HasColumnType("integer"); - - b.Property("Price") - .HasColumnType("double precision"); - - b.Property("StorekeeperId") - .HasColumnType("integer"); - - b.Property("TirePackage") - .HasColumnType("integer"); - - b.Property("ToolKit") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Bundlings"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.Car", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("CarBrand") - .HasColumnType("integer"); - - b.Property("CarClass") - .HasColumnType("integer"); - - b.Property("DateCreate") - .HasColumnType("timestamp without time zone"); - - b.Property("FeatureID") - .HasColumnType("integer"); - - b.Property("FeatureId") - .HasColumnType("integer"); - - b.Property("Model") - .IsRequired() - .HasColumnType("text"); - - b.Property("OrderId") - .HasColumnType("integer"); - - b.Property("Price") - .HasColumnType("double precision"); - - b.Property("StorekeeperId") - .HasColumnType("integer"); - - b.Property("VINnumber") - .HasColumnType("bigint"); - - b.Property("Year") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasIndex("FeatureId"); - - b.HasIndex("OrderId"); - - b.HasIndex("StorekeeperId"); - - b.ToTable("Cars"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.CarBundling", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BundlingId") - .HasColumnType("integer"); - - b.Property("CarId") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasIndex("BundlingId"); - - b.HasIndex("CarId"); - - b.ToTable("CarBundlings"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.Feature", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("CabinColor") - .IsRequired() - .HasColumnType("text"); - - b.Property("DriveType") - .HasColumnType("integer"); - - b.Property("HelpDevice") - .HasColumnType("integer"); - - b.Property("Price") - .HasColumnType("double precision"); - - b.Property("StorekeeperId") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.ToTable("Features"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.Order", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BuyerFCS") - .IsRequired() - .HasColumnType("text"); - - b.Property("PaymentDate") - .HasColumnType("timestamp without time zone"); - - b.Property("PaymentStatus") - .HasColumnType("integer"); - - b.Property("PaymentType") - .HasColumnType("integer"); - - b.Property("Sum") - .HasColumnType("double precision"); - - b.Property("WorkerId") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasIndex("WorkerId"); - - b.ToTable("Orders"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.OrderPresale", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("OrderId") - .HasColumnType("integer"); - - b.Property("PresaleId") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasIndex("OrderId"); - - b.HasIndex("PresaleId"); - - b.ToTable("OrderPresales"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.Presale", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("DueTill") - .HasColumnType("timestamp without time zone"); - - b.Property("PresaleStatus") - .HasColumnType("integer"); - - b.Property("Price") - .HasColumnType("double precision"); - - b.HasKey("Id"); - - b.ToTable("Presales"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.PresaleBundling", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("BundlingId") - .HasColumnType("integer"); - - b.Property("PresaleId") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasIndex("BundlingId"); - - b.HasIndex("PresaleId"); - - b.ToTable("PresaleBundlings"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.Request", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Description") - .IsRequired() - .HasColumnType("text"); - - b.Property("PresaleId") - .HasColumnType("integer"); - - b.Property("RequestType") - .HasColumnType("integer"); - - b.HasKey("Id"); - - b.HasIndex("PresaleId"); - - b.ToTable("Requests"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.Storekeeper", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Email") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Password") - .IsRequired() - .HasColumnType("text"); - - b.Property("Patronymic") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("bigint"); - - b.Property("Surname") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Storekeepers"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.Worker", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Email") - .IsRequired() - .HasColumnType("text"); - - b.Property("Name") - .IsRequired() - .HasColumnType("text"); - - b.Property("Password") - .IsRequired() - .HasColumnType("text"); - - b.Property("Patronymic") - .HasColumnType("text"); - - b.Property("PhoneNumber") - .HasColumnType("bigint"); - - b.Property("Surname") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("Id"); - - b.ToTable("Workers"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.Car", b => - { - b.HasOne("CarCenterDatabaseImplement.Models.Feature", "Feature") - .WithMany("Cars") - .HasForeignKey("FeatureId"); - - b.HasOne("CarCenterDatabaseImplement.Models.Order", "Order") - .WithMany("Cars") - .HasForeignKey("OrderId"); - - b.HasOne("CarCenterDatabaseImplement.Models.Storekeeper", "Storekeeper") - .WithMany("Cars") - .HasForeignKey("StorekeeperId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Feature"); - - b.Navigation("Order"); - - b.Navigation("Storekeeper"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.CarBundling", b => - { - b.HasOne("CarCenterDatabaseImplement.Models.Bundling", "Bundling") - .WithMany("CarBundling") - .HasForeignKey("BundlingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("CarCenterDatabaseImplement.Models.Car", "Car") - .WithMany("Bundlings") - .HasForeignKey("CarId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Bundling"); - - b.Navigation("Car"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.Order", b => - { - b.HasOne("CarCenterDatabaseImplement.Models.Worker", "Worker") - .WithMany("Orders") - .HasForeignKey("WorkerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Worker"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.OrderPresale", b => - { - b.HasOne("CarCenterDatabaseImplement.Models.Order", "Order") - .WithMany("Presales") - .HasForeignKey("OrderId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("CarCenterDatabaseImplement.Models.Presale", "Presale") - .WithMany("OrderPresales") - .HasForeignKey("PresaleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Order"); - - b.Navigation("Presale"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.PresaleBundling", b => - { - b.HasOne("CarCenterDatabaseImplement.Models.Bundling", "Bundling") - .WithMany("PresaleBundling") - .HasForeignKey("BundlingId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("CarCenterDatabaseImplement.Models.Presale", "Presale") - .WithMany("Bundlings") - .HasForeignKey("PresaleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Bundling"); - - b.Navigation("Presale"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.Request", b => - { - b.HasOne("CarCenterDatabaseImplement.Models.Presale", "Presale") - .WithMany("Requests") - .HasForeignKey("PresaleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Presale"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.Bundling", b => - { - b.Navigation("CarBundling"); - - b.Navigation("PresaleBundling"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.Car", b => - { - b.Navigation("Bundlings"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.Feature", b => - { - b.Navigation("Cars"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.Order", b => - { - b.Navigation("Cars"); - - b.Navigation("Presales"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.Presale", b => - { - b.Navigation("Bundlings"); - - b.Navigation("OrderPresales"); - - b.Navigation("Requests"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.Storekeeper", b => - { - b.Navigation("Cars"); - }); - - modelBuilder.Entity("CarCenterDatabaseImplement.Models.Worker", b => - { - b.Navigation("Orders"); - }); -#pragma warning restore 612, 618 - } - } -}