using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace gehGassi.Persistence.Migrations
{
///
public partial class PayoutsAdded : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Payouts",
columns: table => new
{
Id = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
AppUserId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
MangoPayUserId = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true),
MangoPayId = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true),
WalletId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
MangoPayWalletId = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true),
MangoPayBankId = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true),
Iban = table.Column(type: "nvarchar(4)", maxLength: 4, nullable: false),
Bic = table.Column(type: "nvarchar(4)", maxLength: 4, nullable: true),
Status = table.Column(type: "int", nullable: false),
Ammount = table.Column(type: "bigint", nullable: false),
Currency = table.Column(type: "nvarchar(3)", maxLength: 3, nullable: false),
ResultCode = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true),
ResultMessage = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true),
ExecutionDate = table.Column(type: "datetimeoffset", 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_Payouts", x => x.Id);
});
migrationBuilder.CreateIndex(
name: "IX_Payouts_Index",
table: "Payouts",
column: "Index");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Payouts");
}
}
}