using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace gehGassi.Persistence.Migrations { /// public partial class IdentityDocumentsAdded : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "IdentityDocuments", columns: table => new { Id = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), AppUserId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), MangoPayId = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true), MangoPayUserId = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true), Type = table.Column(type: "int", nullable: false), Source = table.Column(type: "int", nullable: false), Status = table.Column(type: "int", nullable: false), PageCount = table.Column(type: "int", nullable: false), Processed = table.Column(type: "datetimeoffset", nullable: true), RefusedReasonMessage = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), RefusedReasonType = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true), Created = table.Column(type: "datetimeoffset", nullable: false), Index = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), Version = table.Column(type: "rowversion", rowVersion: true, nullable: true), UpdatedAt = table.Column(type: "datetimeoffset", nullable: false), Deleted = table.Column(type: "bit", nullable: false) }, constraints: table => { table.PrimaryKey("PK_IdentityDocuments", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_IdentityDocuments_Index", table: "IdentityDocuments", column: "Index"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "IdentityDocuments"); } } }