// using DataBaseImplements; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace DataBaseImplement.Migrations { [DbContext(typeof(DataBase))] partial class DataBaseModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("DataBaseImplements.Models.City", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("Name") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.ToTable("Cities"); }); modelBuilder.Entity("DataBaseImplements.Models.Order", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("FIO") .IsRequired() .HasColumnType("text"); b.Property("OrderDeliveryTime") .HasColumnType("integer"); b.Property("OrderDestination") .IsRequired() .HasColumnType("text"); b.PrimitiveCollection("OrderPath") .IsRequired() .HasColumnType("text[]"); b.HasKey("Id"); b.ToTable("Orders"); }); #pragma warning restore 612, 618 } } }