using System;
using System.Collections.Generic;
using System.Text.Json;
using DysonNetwork.Shared.Geometry;
using DysonNetwork.Shared.Models;
using Microsoft.EntityFrameworkCore.Migrations;
using NodaTime;
#nullable disable
namespace DysonNetwork.Pass.Migrations
{
///
public partial class InitialMigration : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "accounts",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
name = table.Column(type: "character varying(256)", maxLength: 256, nullable: false),
nick = table.Column(type: "character varying(256)", maxLength: 256, nullable: false),
language = table.Column(type: "character varying(32)", maxLength: 32, nullable: false),
region = table.Column(type: "character varying(32)", maxLength: 32, nullable: false),
activated_at = table.Column(type: "timestamp with time zone", nullable: true),
is_superuser = table.Column(type: "boolean", nullable: false),
automated_id = table.Column(type: "uuid", nullable: true),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_accounts", x => x.id);
});
migrationBuilder.CreateTable(
name: "lottery_records",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
draw_date = table.Column(type: "timestamp with time zone", nullable: false),
winning_region_one_numbers = table.Column>(type: "jsonb", nullable: false),
winning_region_two_number = table.Column(type: "integer", nullable: false),
total_tickets = table.Column(type: "integer", nullable: false),
total_prizes_awarded = table.Column(type: "integer", nullable: false),
total_prize_amount = table.Column(type: "bigint", nullable: false),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_lottery_records", x => x.id);
});
migrationBuilder.CreateTable(
name: "permission_groups",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
key = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_permission_groups", x => x.id);
});
migrationBuilder.CreateTable(
name: "realms",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
slug = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false),
name = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false),
description = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: false),
is_community = table.Column(type: "boolean", nullable: false),
is_public = table.Column(type: "boolean", nullable: false),
picture = table.Column(type: "jsonb", nullable: true),
background = table.Column(type: "jsonb", nullable: true),
verification = table.Column(type: "jsonb", nullable: true),
account_id = table.Column(type: "uuid", nullable: false),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_realms", x => x.id);
});
migrationBuilder.CreateTable(
name: "wallet_coupons",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
identifier = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: true),
code = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true),
affected_at = table.Column(type: "timestamp with time zone", nullable: true),
expired_at = table.Column(type: "timestamp with time zone", nullable: true),
discount_amount = table.Column(type: "numeric", nullable: true),
discount_rate = table.Column(type: "double precision", nullable: true),
max_usage = table.Column(type: "integer", nullable: true),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_wallet_coupons", x => x.id);
});
migrationBuilder.CreateTable(
name: "abuse_reports",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
resource_identifier = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: false),
type = table.Column(type: "integer", nullable: false),
reason = table.Column(type: "character varying(8192)", maxLength: 8192, nullable: false),
resolved_at = table.Column(type: "timestamp with time zone", nullable: true),
resolution = table.Column(type: "character varying(8192)", maxLength: 8192, nullable: true),
account_id = table.Column(type: "uuid", nullable: false),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_abuse_reports", x => x.id);
table.ForeignKey(
name: "fk_abuse_reports_accounts_account_id",
column: x => x.account_id,
principalTable: "accounts",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "account_auth_factors",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
type = table.Column(type: "integer", nullable: false),
secret = table.Column(type: "character varying(8196)", maxLength: 8196, nullable: true),
config = table.Column>(type: "jsonb", nullable: true),
trustworthy = table.Column(type: "integer", nullable: false),
enabled_at = table.Column(type: "timestamp with time zone", nullable: true),
expired_at = table.Column(type: "timestamp with time zone", nullable: true),
account_id = table.Column(type: "uuid", nullable: false),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_account_auth_factors", x => x.id);
table.ForeignKey(
name: "fk_account_auth_factors_accounts_account_id",
column: x => x.account_id,
principalTable: "accounts",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "account_check_in_results",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
level = table.Column(type: "integer", nullable: false),
reward_points = table.Column(type: "numeric", nullable: true),
reward_experience = table.Column(type: "integer", nullable: true),
tips = table.Column>(type: "jsonb", nullable: false),
account_id = table.Column(type: "uuid", nullable: false),
backdated_from = table.Column(type: "timestamp with time zone", nullable: true),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_account_check_in_results", x => x.id);
table.ForeignKey(
name: "fk_account_check_in_results_accounts_account_id",
column: x => x.account_id,
principalTable: "accounts",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "account_connections",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
provider = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: false),
provided_identifier = table.Column(type: "character varying(8192)", maxLength: 8192, nullable: false),
meta = table.Column>(type: "jsonb", nullable: true),
access_token = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: true),
refresh_token = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: true),
last_used_at = table.Column(type: "timestamp with time zone", nullable: true),
account_id = table.Column(type: "uuid", nullable: false),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_account_connections", x => x.id);
table.ForeignKey(
name: "fk_account_connections_accounts_account_id",
column: x => x.account_id,
principalTable: "accounts",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "account_contacts",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
type = table.Column(type: "integer", nullable: false),
verified_at = table.Column(type: "timestamp with time zone", nullable: true),
is_primary = table.Column(type: "boolean", nullable: false),
is_public = table.Column(type: "boolean", nullable: false),
content = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false),
account_id = table.Column(type: "uuid", nullable: false),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_account_contacts", x => x.id);
table.ForeignKey(
name: "fk_account_contacts_accounts_account_id",
column: x => x.account_id,
principalTable: "accounts",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "account_profiles",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
first_name = table.Column(type: "character varying(256)", maxLength: 256, nullable: true),
middle_name = table.Column(type: "character varying(256)", maxLength: 256, nullable: true),
last_name = table.Column(type: "character varying(256)", maxLength: 256, nullable: true),
bio = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: true),
gender = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true),
pronouns = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true),
time_zone = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true),
location = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true),
links = table.Column>(type: "jsonb", nullable: true),
username_color = table.Column(type: "jsonb", nullable: true),
birthday = table.Column(type: "timestamp with time zone", nullable: true),
last_seen_at = table.Column(type: "timestamp with time zone", nullable: true),
verification = table.Column(type: "jsonb", nullable: true),
active_badge = table.Column(type: "jsonb", nullable: true),
experience = table.Column(type: "integer", nullable: false),
social_credits = table.Column(type: "double precision", nullable: false),
picture = table.Column(type: "jsonb", nullable: true),
background = table.Column(type: "jsonb", nullable: true),
account_id = table.Column(type: "uuid", nullable: false),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_account_profiles", x => x.id);
table.ForeignKey(
name: "fk_account_profiles_accounts_account_id",
column: x => x.account_id,
principalTable: "accounts",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "account_relationships",
columns: table => new
{
account_id = table.Column(type: "uuid", nullable: false),
related_id = table.Column(type: "uuid", nullable: false),
expired_at = table.Column(type: "timestamp with time zone", nullable: true),
status = table.Column(type: "smallint", nullable: false),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_account_relationships", x => new { x.account_id, x.related_id });
table.ForeignKey(
name: "fk_account_relationships_accounts_account_id",
column: x => x.account_id,
principalTable: "accounts",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "fk_account_relationships_accounts_related_id",
column: x => x.related_id,
principalTable: "accounts",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "account_statuses",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
attitude = table.Column(type: "integer", nullable: false),
is_invisible = table.Column(type: "boolean", nullable: false),
is_not_disturb = table.Column(type: "boolean", nullable: false),
label = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true),
meta = table.Column>(type: "jsonb", nullable: true),
cleared_at = table.Column(type: "timestamp with time zone", nullable: true),
app_identifier = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: true),
is_automated = table.Column(type: "boolean", nullable: false),
account_id = table.Column(type: "uuid", nullable: false),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_account_statuses", x => x.id);
table.ForeignKey(
name: "fk_account_statuses_accounts_account_id",
column: x => x.account_id,
principalTable: "accounts",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "action_logs",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
action = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: false),
meta = table.Column>(type: "jsonb", nullable: false),
user_agent = table.Column(type: "character varying(512)", maxLength: 512, nullable: true),
ip_address = table.Column(type: "character varying(128)", maxLength: 128, nullable: true),
location = table.Column(type: "jsonb", nullable: true),
account_id = table.Column(type: "uuid", nullable: false),
session_id = table.Column(type: "uuid", nullable: true),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_action_logs", x => x.id);
table.ForeignKey(
name: "fk_action_logs_accounts_account_id",
column: x => x.account_id,
principalTable: "accounts",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "affiliation_spells",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
spell = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false),
type = table.Column(type: "integer", nullable: false),
expires_at = table.Column(type: "timestamp with time zone", nullable: true),
affected_at = table.Column(type: "timestamp with time zone", nullable: true),
meta = table.Column>(type: "jsonb", nullable: false),
account_id = table.Column(type: "uuid", nullable: true),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_affiliation_spells", x => x.id);
table.ForeignKey(
name: "fk_affiliation_spells_accounts_account_id",
column: x => x.account_id,
principalTable: "accounts",
principalColumn: "id");
});
migrationBuilder.CreateTable(
name: "auth_challenges",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
expired_at = table.Column(type: "timestamp with time zone", nullable: true),
step_remain = table.Column(type: "integer", nullable: false),
step_total = table.Column(type: "integer", nullable: false),
failed_attempts = table.Column(type: "integer", nullable: false),
blacklist_factors = table.Column>(type: "jsonb", nullable: false),
audiences = table.Column>(type: "jsonb", nullable: false),
scopes = table.Column>(type: "jsonb", nullable: false),
ip_address = table.Column(type: "character varying(128)", maxLength: 128, nullable: true),
user_agent = table.Column(type: "character varying(512)", maxLength: 512, nullable: true),
device_id = table.Column(type: "character varying(512)", maxLength: 512, nullable: false),
device_name = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true),
platform = table.Column(type: "integer", nullable: false),
nonce = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true),
location = table.Column(type: "jsonb", nullable: true),
account_id = table.Column(type: "uuid", nullable: false),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_auth_challenges", x => x.id);
table.ForeignKey(
name: "fk_auth_challenges_accounts_account_id",
column: x => x.account_id,
principalTable: "accounts",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "auth_clients",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
platform = table.Column(type: "integer", nullable: false),
device_name = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false),
device_label = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true),
device_id = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false),
account_id = table.Column(type: "uuid", nullable: false),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_auth_clients", x => x.id);
table.ForeignKey(
name: "fk_auth_clients_accounts_account_id",
column: x => x.account_id,
principalTable: "accounts",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "badges",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
type = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false),
label = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true),
caption = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: true),
meta = table.Column>(type: "jsonb", nullable: false),
activated_at = table.Column(type: "timestamp with time zone", nullable: true),
expired_at = table.Column(type: "timestamp with time zone", nullable: true),
account_id = table.Column(type: "uuid", nullable: false),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_badges", x => x.id);
table.ForeignKey(
name: "fk_badges_accounts_account_id",
column: x => x.account_id,
principalTable: "accounts",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "experience_records",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
reason_type = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false),
reason = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false),
delta = table.Column(type: "bigint", nullable: false),
bonus_multiplier = table.Column(type: "double precision", nullable: false),
account_id = table.Column(type: "uuid", nullable: false),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_experience_records", x => x.id);
table.ForeignKey(
name: "fk_experience_records_accounts_account_id",
column: x => x.account_id,
principalTable: "accounts",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "lotteries",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
account_id = table.Column(type: "uuid", nullable: false),
region_one_numbers = table.Column>(type: "jsonb", nullable: false),
region_two_number = table.Column(type: "integer", nullable: false),
multiplier = table.Column(type: "integer", nullable: false),
draw_status = table.Column(type: "integer", nullable: false),
draw_date = table.Column(type: "timestamp with time zone", nullable: true),
matched_region_one_numbers = table.Column>(type: "jsonb", nullable: true),
matched_region_two_number = table.Column(type: "integer", nullable: true),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_lotteries", x => x.id);
table.ForeignKey(
name: "fk_lotteries_accounts_account_id",
column: x => x.account_id,
principalTable: "accounts",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "magic_spells",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
spell = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false),
type = table.Column(type: "integer", nullable: false),
expires_at = table.Column(type: "timestamp with time zone", nullable: true),
affected_at = table.Column(type: "timestamp with time zone", nullable: true),
meta = table.Column>(type: "jsonb", nullable: false),
account_id = table.Column(type: "uuid", nullable: true),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_magic_spells", x => x.id);
table.ForeignKey(
name: "fk_magic_spells_accounts_account_id",
column: x => x.account_id,
principalTable: "accounts",
principalColumn: "id");
});
migrationBuilder.CreateTable(
name: "presence_activities",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
type = table.Column(type: "integer", nullable: false),
manual_id = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: true),
title = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: true),
subtitle = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: true),
caption = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: true),
large_image = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: true),
small_image = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: true),
title_url = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: true),
subtitle_url = table.Column(type: "character varying(4096)", maxLength: 4096, nullable: true),
meta = table.Column>(type: "jsonb", nullable: true),
lease_minutes = table.Column(type: "integer", nullable: false),
lease_expires_at = table.Column(type: "timestamp with time zone", nullable: false),
account_id = table.Column(type: "uuid", nullable: false),
created_at = table.Column(type: "timestamp with time zone", nullable: false),
updated_at = table.Column(type: "timestamp with time zone", nullable: false),
deleted_at = table.Column(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("pk_presence_activities", x => x.id);
table.ForeignKey(
name: "fk_presence_activities_accounts_account_id",
column: x => x.account_id,
principalTable: "accounts",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "punishments",
columns: table => new
{
id = table.Column(type: "uuid", nullable: false),
reason = table.Column