using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace DamageAssesment.Api.Attachments.Migrations { /// public partial class InitialAttachment : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Attachments", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), URI = table.Column(type: "nvarchar(max)", nullable: false), AnswerId = table.Column(type: "int", nullable: true), ResponseId = table.Column(type: "int", nullable: false), IsDeleted = table.Column(type: "bit", nullable: false), FileName = table.Column(type: "nvarchar(max)", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Attachments", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Attachments"); } } }