using System; using Microsoft.EntityFrameworkCore.Migrations; namespace API.Data.Migrations { public partial class AddUser : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Users", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), UserName = table.Column(type: "TEXT", nullable: true), PasswordHash = table.Column(type: "BLOB", nullable: true), PasswordSalt = table.Column(type: "BLOB", nullable: true), Created = table.Column(type: "TEXT", nullable: false), LastActive = table.Column(type: "TEXT", nullable: false), IsAdmin = table.Column(type: "INTEGER", nullable: false), RowVersion = table.Column(type: "INTEGER", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Users", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Users"); } } }