using System; using Microsoft.EntityFrameworkCore.Migrations; namespace BrightGlimmer.Data.Migrations.Auth { public partial class CreateDatabase : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Users", columns: table => new { Id = table.Column(nullable: false), IsDeleted = table.Column(nullable: false), CreatedDate = table.Column(nullable: false), ModifiedDate = table.Column(nullable: false), Username = table.Column(nullable: true), Email = table.Column(nullable: true), FirstName = table.Column(nullable: true), MiddleName = table.Column(nullable: true), LastName = table.Column(nullable: true), PasswordHash = table.Column(nullable: true), EmailConfirmed = table.Column(nullable: false), AccountLocked = table.Column(nullable: false), RetryAttempts = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_Users", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Users"); } } }