using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace DatabaseImplement.Migrations { /// public partial class InitialCreate : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Disciplines", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), Name = table.Column(type: "nvarchar(max)", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Disciplines", x => x.Id); }); migrationBuilder.CreateTable( name: "LabWorks", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), Theme = table.Column(type: "nvarchar(max)", nullable: false), FCs = table.Column(type: "nvarchar(max)", nullable: false), Discipline = table.Column(type: "nvarchar(max)", nullable: false), Questions = table.Column(type: "nvarchar(max)", nullable: false) }, constraints: table => { table.PrimaryKey("PK_LabWorks", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Disciplines"); migrationBuilder.DropTable( name: "LabWorks"); } } }