using Microsoft.EntityFrameworkCore.Migrations; namespace Sledgemapper.Migrations.SqliteMigrations { public partial class InitialCreate : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Users", columns: table => new { Id = table.Column(nullable: false) .Annotation("Sqlite:Autoincrement", true), FirstName = table.Column(nullable: true), LastName = table.Column(nullable: true), Username = table.Column(nullable: true), Initials = table.Column(nullable: true), PasswordHash = table.Column(nullable: true), PasswordSalt = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_Users", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Users"); } } }