using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Apollon.EntityFramework.Migrations { public partial class initial : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Tournaments", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), Organisation = table.Column(type: "nvarchar(max)", nullable: true), TournamentName = table.Column(type: "nvarchar(max)", nullable: true), Competition = table.Column(type: "nvarchar(max)", nullable: true), StartDate = table.Column(type: "datetime2", nullable: false), EndDate = table.Column(type: "datetime2", nullable: false), Location = table.Column(type: "nvarchar(max)", nullable: true), Rounds = table.Column(type: "int", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Tournaments", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Tournaments"); } } }