// using System; using FlowerShopDatabaseImplement; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace FlowerShopDatabaseImplement.Migrations { [DbContext(typeof(FlowerShopDatabase))] partial class FlowerShopDatabaseModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "6.0.27") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("FlowerShopDatabaseImplement.Models.Client", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ClientFIO") .IsRequired() .HasColumnType("text"); b.Property("Email") .IsRequired() .HasColumnType("text"); b.Property("Password") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.ToTable("Clients"); }); modelBuilder.Entity("FlowerShopDatabaseImplement.Models.Component", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ComponentName") .IsRequired() .HasColumnType("text"); b.Property("Cost") .HasColumnType("double precision"); b.HasKey("Id"); b.ToTable("Components"); }); modelBuilder.Entity("FlowerShopDatabaseImplement.Models.Flower", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("FlowerName") .IsRequired() .HasColumnType("text"); b.Property("Price") .HasColumnType("double precision"); b.HasKey("Id"); b.ToTable("Flowers"); }); modelBuilder.Entity("FlowerShopDatabaseImplement.Models.FlowerComponent", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ComponentId") .HasColumnType("integer"); b.Property("Count") .HasColumnType("integer"); b.Property("FlowerId") .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("ComponentId"); b.HasIndex("FlowerId"); b.ToTable("FlowerComponents"); }); modelBuilder.Entity("FlowerShopDatabaseImplement.Models.Implementer", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ImplementerFIO") .IsRequired() .HasColumnType("text"); b.Property("Password") .IsRequired() .HasColumnType("text"); b.Property("Qualification") .HasColumnType("integer"); b.Property("WorkExperience") .HasColumnType("integer"); b.HasKey("Id"); b.ToTable("Implementers"); }); modelBuilder.Entity("FlowerShopDatabaseImplement.Models.Order", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ClientId") .HasColumnType("integer"); b.Property("Count") .HasColumnType("integer"); b.Property("DateCreate") .HasColumnType("timestamp without time zone"); b.Property("DateImplement") .HasColumnType("timestamp without time zone"); b.Property("FlowerId") .HasColumnType("integer"); b.Property("ImplementerId") .HasColumnType("integer"); b.Property("Status") .HasColumnType("integer"); b.Property("Sum") .HasColumnType("double precision"); b.HasKey("Id"); b.HasIndex("ClientId"); b.HasIndex("FlowerId"); b.HasIndex("ImplementerId"); b.ToTable("Orders"); }); modelBuilder.Entity("FlowerShopDatabaseImplement.Models.FlowerComponent", b => { b.HasOne("FlowerShopDatabaseImplement.Models.Component", "Component") .WithMany("FlowerComponents") .HasForeignKey("ComponentId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlowerShopDatabaseImplement.Models.Flower", "Flower") .WithMany("Components") .HasForeignKey("FlowerId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Component"); b.Navigation("Flower"); }); modelBuilder.Entity("FlowerShopDatabaseImplement.Models.Order", b => { b.HasOne("FlowerShopDatabaseImplement.Models.Client", "Client") .WithMany() .HasForeignKey("ClientId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlowerShopDatabaseImplement.Models.Flower", "Flower") .WithMany("Orders") .HasForeignKey("FlowerId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FlowerShopDatabaseImplement.Models.Implementer", "Implementer") .WithMany("Order") .HasForeignKey("ImplementerId"); b.Navigation("Client"); b.Navigation("Flower"); b.Navigation("Implementer"); }); modelBuilder.Entity("FlowerShopDatabaseImplement.Models.Component", b => { b.Navigation("FlowerComponents"); }); modelBuilder.Entity("FlowerShopDatabaseImplement.Models.Flower", b => { b.Navigation("Components"); b.Navigation("Orders"); }); modelBuilder.Entity("FlowerShopDatabaseImplement.Models.Implementer", b => { b.Navigation("Order"); }); #pragma warning restore 612, 618 } } }