gehgassi_backend/gehGassi.Persistence/Migrations/20230216120257_AppUserMangoPay.cs

95 lines
2.7 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace gehGassi.Persistence.Migrations
{
/// <inheritdoc />
public partial class AppUserMangoPay : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "KycPassed",
table: "AppUsers",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<DateTimeOffset>(
name: "KycPassedDate",
table: "AppUsers",
type: "datetimeoffset",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "MainResidenceCode",
table: "AppUsers",
type: "nvarchar(2)",
maxLength: 2,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "NationalityCode",
table: "AppUsers",
type: "nvarchar(2)",
maxLength: 2,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "PaymentId",
table: "AppUsers",
type: "nvarchar(255)",
maxLength: 255,
nullable: true);
migrationBuilder.AddColumn<bool>(
name: "Verified",
table: "AppUsers",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<DateTimeOffset>(
name: "VerifiedDate",
table: "AppUsers",
type: "datetimeoffset",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "KycPassed",
table: "AppUsers");
migrationBuilder.DropColumn(
name: "KycPassedDate",
table: "AppUsers");
migrationBuilder.DropColumn(
name: "MainResidenceCode",
table: "AppUsers");
migrationBuilder.DropColumn(
name: "NationalityCode",
table: "AppUsers");
migrationBuilder.DropColumn(
name: "PaymentId",
table: "AppUsers");
migrationBuilder.DropColumn(
name: "Verified",
table: "AppUsers");
migrationBuilder.DropColumn(
name: "VerifiedDate",
table: "AppUsers");
}
}
}