using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace WebApplication1.Migrations.Ruloo2 { public partial class Ruloo2Create : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Ruloo", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), Email = table.Column(type: "nvarchar(max)", nullable: true), Pikkus = table.Column(type: "int", nullable: false), Laius = table.Column(type: "int", nullable: false), Kinnitatud = table.Column(type: "bit", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Ruloo", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Ruloo"); } } }