gehgassi_backend/gehGassi.Persistence/Migrations/20221116160934_AppFeedbackAdded.cs

53 lines
2.8 KiB
C#

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