using System; using Microsoft.EntityFrameworkCore.Migrations; namespace todo_app.Migrations { public partial class Initial : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "ToDos", columns: table => new { Id = table.Column(nullable: false) .Annotation("MySQL:AutoIncrement", true), CreatedTime = table.Column(nullable: false), Status = table.Column(nullable: true), Task = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_ToDos", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "ToDos"); } } }