using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace gehGassi.Persistence.Migrations { /// public partial class PaymentTransactionsAdded : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "PaymentTransactions", columns: table => new { Id = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), TransactionId = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: false), Type = table.Column(type: "int", nullable: false), Status = table.Column(type: "int", nullable: false), WalkId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), TargetAppUserId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), TargetWalletId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), SourceAppUserId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), SourceWalletId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), Ammount = table.Column(type: "bigint", nullable: false), Currency = table.Column(type: "nvarchar(3)", maxLength: 3, nullable: false), Created = table.Column(type: "datetimeoffset", nullable: false) }, constraints: table => { table.PrimaryKey("PK_PaymentTransactions", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "PaymentTransactions"); } } }