using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace ReallifeGamemode.Database.Migrations { public partial class ATM : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "ATMs", columns: table => new { Id = table.Column(nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), Balance = table.Column(nullable: false), X = table.Column(nullable: false), Y = table.Column(nullable: false), Z = table.Column(nullable: false), Faulty = table.Column(nullable: false), Active = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_ATMs", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "ATMs"); } } }