using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace gehGassi.Persistence.Migrations { /// public partial class AppFeedbackAdded : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "AppFeedbacks", columns: table => new { Id = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), AppUserId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), Name = table.Column(type: "nvarchar(350)", maxLength: 350, nullable: true), FeedbackType = table.Column(type: "int", nullable: false), Status = table.Column(type: "int", nullable: false), Message = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: false), AppMode = table.Column(type: "int", nullable: false), Language = table.Column(type: "nvarchar(2)", maxLength: 2, nullable: true), Country = table.Column(type: "nvarchar(2)", maxLength: 2, nullable: true), AppVersion = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), DeviceInfoAllowed = table.Column(type: "bit", nullable: false), DeviceModel = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), DeviceManufacturer = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), DeviceVersion = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), DeviceType = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), DevicePlatform = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), DeviceIdiom = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), Created = table.Column(type: "datetimeoffset", nullable: false) }, constraints: table => { table.PrimaryKey("PK_AppFeedbacks", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "AppFeedbacks"); } } }