using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Apollon.EntityFramework.Migrations { public partial class Targets : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Competition", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), CompetitionName = table.Column(type: "nvarchar(max)", nullable: true), CompetitionImage = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Competition", x => x.Id); }); migrationBuilder.CreateTable( name: "NameList", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), FirstName = table.Column(type: "nvarchar(max)", nullable: true), LastName = table.Column(type: "nvarchar(max)", nullable: true), PassNumber = table.Column(type: "int", nullable: false), Society = table.Column(type: "nvarchar(max)", nullable: true), SocietyNumber = table.Column(type: "int", nullable: false), Birthday = table.Column(type: "nvarchar(max)", nullable: true), Country = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { table.PrimaryKey("PK_NameList", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Competition"); migrationBuilder.DropTable( name: "NameList"); } } }