gehgassi_backend/gehGassi.Persistence/Migrations/20230720130800_AppUserReportsAdded.cs

56 lines
2.9 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace gehGassi.Persistence.Migrations
{
/// <inheritdoc />
public partial class AppUserReportsAdded : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "AppUserReports",
columns: table => new
{
Id = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
ReportingAppUserId = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
ReportedAppUserId = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
Status = table.Column<int>(type: "int", nullable: false),
Section = table.Column<int>(type: "int", nullable: false),
SectionId = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
SectionId2 = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
ReportedImage = table.Column<bool>(type: "bit", nullable: false),
ReportedName = table.Column<bool>(type: "bit", nullable: false),
ReportedText = table.Column<bool>(type: "bit", nullable: false),
ReportedMessage = table.Column<bool>(type: "bit", nullable: false),
ReportedAddress = table.Column<bool>(type: "bit", nullable: false),
Type = table.Column<int>(type: "int", nullable: false),
Email = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
Comment = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
Block = table.Column<bool>(type: "bit", nullable: false),
ContactAllowed = table.Column<bool>(type: "bit", nullable: false),
InternalComment = table.Column<string>(type: "nvarchar(max)", nullable: true),
UpdatedBy = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
Updated = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true),
CreatedBy = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
Created = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_AppUserReports", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "AppUserReports");
}
}
}