gehgassi_backend/gehGassi.Persistence/Migrations/20230225114607_PaymentTransactionsAdded.cs

46 lines
2.1 KiB
C#

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