// using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using QuickCHAT.Models; namespace QuickCHAT.Migrations { [DbContext(typeof(DatabaseContext))] [Migration("20190205093645_CreateUsers")] partial class CreateUsers { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn) .HasAnnotation("ProductVersion", "2.2.1-servicing-10028") .HasAnnotation("Relational:MaxIdentifierLength", 63); modelBuilder.Entity("QuickCHAT.Models.User", b => { b.Property("UserID") .ValueGeneratedOnAdd(); b.Property("Description"); b.Property("First"); b.Property("Last"); b.Property("Password"); b.Property("Username") .IsRequired(); b.HasKey("UserID"); b.HasAlternateKey("Username") .HasName("AK_Username"); b.ToTable("Users"); }); #pragma warning restore 612, 618 } } }