DamageAssessment_Backend/DamageAssesmentApi/DamageAssesment.Api.Responses/Migrations/20230927211458_AzureSurveyResponses.cs

43 lines
1.7 KiB
C#

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