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