using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace DamageAssesment.Api.Responses.Migrations { /// public partial class AzureSurveyResponses : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "SurveyResponses", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), SurveyId = table.Column(type: "int", nullable: false), LocationId = table.Column(type: "int", nullable: false), EmployeeId = table.Column(type: "int", maxLength: 6, nullable: false), CreatedDate = table.Column(type: "datetime2", nullable: true), ClientDevice = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), KeyAnswerResult = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: true), Longitute = table.Column(type: "float", nullable: true), Latitude = table.Column(type: "float", nullable: true) }, constraints: table => { table.PrimaryKey("PK_SurveyResponses", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "SurveyResponses"); } } }