53 lines
2.6 KiB
C#
53 lines
2.6 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace gehGassiApp.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class PayoutsAdded : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "Payouts",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<string>(type: "TEXT", maxLength: 128, nullable: false),
|
|
AppUserId = table.Column<string>(type: "TEXT", maxLength: 128, nullable: false),
|
|
MangoPayUserId = table.Column<string>(type: "TEXT", maxLength: 255, nullable: true),
|
|
MangoPayId = table.Column<string>(type: "TEXT", maxLength: 255, nullable: true),
|
|
WalletId = table.Column<string>(type: "TEXT", maxLength: 128, nullable: false),
|
|
MangoPayWalletId = table.Column<string>(type: "TEXT", maxLength: 255, nullable: true),
|
|
MangoPayBankId = table.Column<string>(type: "TEXT", maxLength: 255, nullable: true),
|
|
Iban = table.Column<string>(type: "TEXT", maxLength: 4, nullable: false),
|
|
Bic = table.Column<string>(type: "TEXT", maxLength: 4, nullable: true),
|
|
Status = table.Column<int>(type: "INTEGER", nullable: false),
|
|
Ammount = table.Column<long>(type: "INTEGER", nullable: false),
|
|
Currency = table.Column<string>(type: "TEXT", maxLength: 3, nullable: false),
|
|
ResultCode = table.Column<string>(type: "TEXT", maxLength: 255, nullable: true),
|
|
ResultMessage = table.Column<string>(type: "TEXT", maxLength: 255, nullable: true),
|
|
ExecutionDate = table.Column<long>(type: "INTEGER", nullable: true),
|
|
Created = table.Column<long>(type: "INTEGER", nullable: false),
|
|
Version = table.Column<byte[]>(type: "BLOB", rowVersion: true, nullable: true),
|
|
UpdatedAt = table.Column<long>(type: "INTEGER", nullable: false),
|
|
Deleted = table.Column<bool>(type: "INTEGER", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_Payouts", x => x.Id);
|
|
});
|
|
|
|
System.Diagnostics.Debug.WriteLine($"Migration PayoutsAdded done");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "Payouts");
|
|
}
|
|
}
|
|
}
|