// using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using Strata.KitchenSink.Biz.DbContexts; namespace Strata.KitchenSink.Biz.Migrations { [DbContext(typeof(KitchenSinkDbContext))] [Migration("20211019191337_InitialCreate")] partial class InitialCreate { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("Relational:MaxIdentifierLength", 63) .HasAnnotation("ProductVersion", "5.0.4") .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); modelBuilder.Entity("Strata.KitchenSink.Biz.Departments.Department", b => { b.Property("DepartmentId") .ValueGeneratedOnAdd() .HasColumnType("integer") .HasColumnName("department_id") .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); b.Property("DepartmentCode") .HasColumnType("text") .HasColumnName("department_code"); b.Property("DepartmentType") .HasColumnType("integer") .HasColumnName("department_type"); b.Property("Description") .HasColumnType("text") .HasColumnName("description"); b.HasKey("DepartmentId") .HasName("pk_departments"); b.ToTable("departments"); }); #pragma warning restore 612, 618 } } }