using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace DamageAssesment.Api.Surveys.Migrations { /// public partial class AzureSurveys : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Surveys", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), IsEnabled = table.Column(type: "bit", nullable: false), StartDate = table.Column(type: "datetime2", nullable: false), EndDate = table.Column(type: "datetime2", nullable: false), CreatedDate = table.Column(type: "datetime2", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Surveys", x => x.Id); }); migrationBuilder.CreateTable( name: "SurveysTranslation", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), SurveyId = table.Column(type: "int", nullable: false), Title = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), Language = table.Column(type: "nvarchar(max)", nullable: false) }, constraints: table => { table.PrimaryKey("PK_SurveysTranslation", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Surveys"); migrationBuilder.DropTable( name: "SurveysTranslation"); } } }