59 lines
3.0 KiB
C#
59 lines
3.0 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace gehGassi.Persistence.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: "nvarchar(128)", maxLength: 128, nullable: false),
|
|
AppUserId = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
|
MangoPayUserId = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true),
|
|
MangoPayId = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true),
|
|
WalletId = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
|
MangoPayWalletId = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true),
|
|
MangoPayBankId = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true),
|
|
Iban = table.Column<string>(type: "nvarchar(4)", maxLength: 4, nullable: false),
|
|
Bic = table.Column<string>(type: "nvarchar(4)", maxLength: 4, nullable: true),
|
|
Status = table.Column<int>(type: "int", nullable: false),
|
|
Ammount = table.Column<long>(type: "bigint", nullable: false),
|
|
Currency = table.Column<string>(type: "nvarchar(3)", maxLength: 3, nullable: false),
|
|
ResultCode = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true),
|
|
ResultMessage = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true),
|
|
ExecutionDate = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true),
|
|
Created = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: false),
|
|
Index = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
Version = table.Column<byte[]>(type: "rowversion", rowVersion: true, nullable: true),
|
|
UpdatedAt = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: false),
|
|
Deleted = table.Column<bool>(type: "bit", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_Payouts", x => x.Id);
|
|
});
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_Payouts_Index",
|
|
table: "Payouts",
|
|
column: "Index");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "Payouts");
|
|
}
|
|
}
|
|
}
|