using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace DamageAssesment.Api.Answers.Migrations { /// public partial class InitialCreate : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Answers", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), QuestionId = table.Column(type: "int", nullable: false), AnswerText = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), Comment = table.Column(type: "nvarchar(max)", nullable: false), SurveyResponseId = table.Column(type: "int", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Answers", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Answers"); } } }