초기커밋
This commit is contained in:
150
BrokerApiCore/Migrations/20250217015116_SchemaChanges_105106.Designer.cs
generated
Normal file
150
BrokerApiCore/Migrations/20250217015116_SchemaChanges_105106.Designer.cs
generated
Normal file
@@ -0,0 +1,150 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using BrokerCore.Repository.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
[DbContext(typeof(MetaverseBrokerDbContext))]
|
||||
[Migration("20250217015116_SchemaChanges_105106")]
|
||||
partial class SchemaChanges_105106
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetInfo", b =>
|
||||
{
|
||||
b.Property<string>("PlanetId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id");
|
||||
|
||||
b.Property<string>("CompanyName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("company_name");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("생성 시간");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasColumnName("description");
|
||||
|
||||
b.Property<string>("PlanetName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("planet_name");
|
||||
|
||||
b.Property<string>("SecretKey")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("secret_key");
|
||||
|
||||
b.Property<string>("ServerType")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("server_type");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("updated_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
|
||||
.HasComment("수정 시간");
|
||||
|
||||
b.HasKey("PlanetId");
|
||||
|
||||
b.HasIndex("CompanyName");
|
||||
|
||||
b.HasIndex("PlanetName");
|
||||
|
||||
b.HasIndex("SecretKey");
|
||||
|
||||
b.ToTable("planet_info", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.SapphireExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasComment("사파이어 교환 주문 아이디 guid");
|
||||
|
||||
b.Property<ulong>("AccountId")
|
||||
.HasColumnType("bigint unsigned")
|
||||
.HasColumnName("account_id")
|
||||
.HasComment("sso 계정 아이디");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("completed_at")
|
||||
.HasComment("사파이어 교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("사파이어 교환 주문 시작 시간");
|
||||
|
||||
b.Property<sbyte>("OrderStatus")
|
||||
.HasColumnType("tinyint")
|
||||
.HasColumnName("order_status")
|
||||
.HasComment("사파이어 교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<decimal>("PlanetMoneyIncDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("planet_money_amount")
|
||||
.HasComment("플래닛에서 발급한 재화 수량");
|
||||
|
||||
b.Property<decimal>("SapphireReducedDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("sapphire_reduced_amount")
|
||||
.HasComment("사파이어 차감 수량");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("sapphire_exchange_order", (string)null);
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
116
BrokerApiCore/Migrations/20250217015116_SchemaChanges_105106.cs
Normal file
116
BrokerApiCore/Migrations/20250217015116_SchemaChanges_105106.cs
Normal file
@@ -0,0 +1,116 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class SchemaChanges_105106 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterDatabase()
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "planet_info",
|
||||
columns: table => new
|
||||
{
|
||||
planet_id = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
planet_name = table.Column<string>(type: "varchar(32)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
company_name = table.Column<string>(type: "varchar(32)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
secret_key = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
server_type = table.Column<string>(type: "varchar(50)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
description = table.Column<string>(type: "varchar(255)", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
created_at = table.Column<DateTime>(type: "timestamp", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP", comment: "생성 시간"),
|
||||
updated_at = table.Column<DateTime>(type: "timestamp", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP", comment: "수정 시간")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_planet_info", x => x.planet_id);
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "sapphire_exchange_order",
|
||||
columns: table => new
|
||||
{
|
||||
order_id = table.Column<string>(type: "varchar(50)", nullable: false, comment: "사파이어 교환 주문 아이디 guid")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
account_id = table.Column<ulong>(type: "bigint unsigned", nullable: false, comment: "sso 계정 아이디"),
|
||||
order_status = table.Column<sbyte>(type: "tinyint", nullable: false, comment: "사파이어 교환 주문 상태"),
|
||||
user_guid = table.Column<string>(type: "varchar(50)", nullable: false, comment: "유저 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
planet_id = table.Column<string>(type: "varchar(50)", nullable: false, comment: "플래닛 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
sapphire_reduced_amount = table.Column<decimal>(type: "decimal(20,0)", nullable: false, comment: "사파이어 차감 수량"),
|
||||
planet_money_amount = table.Column<decimal>(type: "decimal(20,0)", nullable: false, comment: "플래닛에서 발급한 재화 수량"),
|
||||
created_at = table.Column<DateTime>(type: "timestamp", nullable: false, comment: "사파이어 교환 주문 시작 시간"),
|
||||
completed_at = table.Column<DateTime>(type: "timestamp", nullable: true, comment: "사파이어 교환 주문 완료 시간")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_sapphire_exchange_order", x => x.order_id);
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_info_company_name",
|
||||
table: "planet_info",
|
||||
column: "company_name");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_info_planet_name",
|
||||
table: "planet_info",
|
||||
column: "planet_name");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_info_secret_key",
|
||||
table: "planet_info",
|
||||
column: "secret_key");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_sapphire_exchange_order_account_id",
|
||||
table: "sapphire_exchange_order",
|
||||
column: "account_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_sapphire_exchange_order_created_at",
|
||||
table: "sapphire_exchange_order",
|
||||
column: "created_at");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_sapphire_exchange_order_order_status",
|
||||
table: "sapphire_exchange_order",
|
||||
column: "order_status");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_sapphire_exchange_order_planet_id",
|
||||
table: "sapphire_exchange_order",
|
||||
column: "planet_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_sapphire_exchange_order_user_guid",
|
||||
table: "sapphire_exchange_order",
|
||||
column: "user_guid");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "planet_info");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "sapphire_exchange_order");
|
||||
}
|
||||
}
|
||||
}
|
||||
263
BrokerApiCore/Migrations/20250224031421_SchemaChanges_121410.Designer.cs
generated
Normal file
263
BrokerApiCore/Migrations/20250224031421_SchemaChanges_121410.Designer.cs
generated
Normal file
@@ -0,0 +1,263 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using BrokerCore.Repository.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
[DbContext(typeof(MetaverseBrokerDbContext))]
|
||||
[Migration("20250224031421_SchemaChanges_121410")]
|
||||
partial class SchemaChanges_121410
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetInfo", b =>
|
||||
{
|
||||
b.Property<string>("PlanetId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id");
|
||||
|
||||
b.Property<string>("CompanyName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("company_name");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("생성 시간");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasColumnName("description");
|
||||
|
||||
b.Property<string>("PlanetName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("planet_name");
|
||||
|
||||
b.Property<string>("SecretKey")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("secret_key");
|
||||
|
||||
b.Property<string>("ServerType")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("server_type");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("updated_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
|
||||
.HasComment("수정 시간");
|
||||
|
||||
b.HasKey("PlanetId");
|
||||
|
||||
b.HasIndex("CompanyName");
|
||||
|
||||
b.HasIndex("PlanetName");
|
||||
|
||||
b.HasIndex("SecretKey");
|
||||
|
||||
b.ToTable("planet_info", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasComment("교환 주문 아이디 (GUID)");
|
||||
|
||||
b.Property<string>("AccountId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("account_id")
|
||||
.HasComment("SSO 아이디");
|
||||
|
||||
b.Property<int>("CaliverseItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("caliverse_item_quantity")
|
||||
.HasComment("칼리버스 아이템 갯수");
|
||||
|
||||
b.Property<string>("CaliverseItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_id")
|
||||
.HasComment("칼리버스 아이템 아이디");
|
||||
|
||||
b.Property<string>("CaliverseItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_type")
|
||||
.HasComment("칼리버스 아이템 타입");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("completed_at")
|
||||
.HasComment("교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("교환 주문 시작 시간");
|
||||
|
||||
b.Property<int>("ExchangeMetaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("exchange_meta_amount")
|
||||
.HasComment("교환 메타 수량");
|
||||
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<string>("OrderStatus")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_status")
|
||||
.HasComment("교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<int>("PlanetItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("planet_item_quantity")
|
||||
.HasComment("플래닛 아이템 갯수");
|
||||
|
||||
b.Property<string>("PlanetItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_id")
|
||||
.HasComment("플래닛 아이템 아이디");
|
||||
|
||||
b.Property<string>("PlanetItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_type")
|
||||
.HasComment("플래닛 아이템 타입");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디 (GUID)");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("planet_exchange_orders", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.SapphireExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasComment("사파이어 교환 주문 아이디 guid");
|
||||
|
||||
b.Property<ulong>("AccountId")
|
||||
.HasColumnType("bigint unsigned")
|
||||
.HasColumnName("account_id")
|
||||
.HasComment("sso 계정 아이디");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("completed_at")
|
||||
.HasComment("사파이어 교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("사파이어 교환 주문 시작 시간");
|
||||
|
||||
b.Property<sbyte>("OrderStatus")
|
||||
.HasColumnType("tinyint")
|
||||
.HasColumnName("order_status")
|
||||
.HasComment("사파이어 교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<decimal>("PlanetMoneyIncDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("planet_money_amount")
|
||||
.HasComment("플래닛에서 발급한 재화 수량");
|
||||
|
||||
b.Property<decimal>("SapphireReducedDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("sapphire_reduced_amount")
|
||||
.HasComment("사파이어 차감 수량");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("sapphire_exchange_order", (string)null);
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class SchemaChanges_121410 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "planet_exchange_orders",
|
||||
columns: table => new
|
||||
{
|
||||
order_id = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "교환 주문 아이디 (GUID)")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
order_status = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "교환 주문 상태")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
exchange_meta_id = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "교환 메타 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
exchange_meta_amount = table.Column<int>(type: "INT", nullable: false, comment: "교환 메타 수량"),
|
||||
account_id = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "SSO 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
user_guid = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "유저 아이디 (GUID)")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
planet_id = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "플래닛 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
caliverse_item_type = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "칼리버스 아이템 타입")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
caliverse_item_id = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "칼리버스 아이템 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
caliverse_item_quantity = table.Column<int>(type: "INT", nullable: false, comment: "칼리버스 아이템 갯수"),
|
||||
planet_item_type = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "플래닛 아이템 타입")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
planet_item_id = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "플래닛 아이템 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
planet_item_quantity = table.Column<int>(type: "INT", nullable: false, comment: "플래닛 아이템 갯수"),
|
||||
created_at = table.Column<DateTime>(type: "TIMESTAMP", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP", comment: "교환 주문 시작 시간"),
|
||||
completed_at = table.Column<DateTime>(type: "TIMESTAMP", nullable: true, comment: "교환 주문 완료 시간")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_planet_exchange_orders", x => x.order_id);
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_orders_account_id",
|
||||
table: "planet_exchange_orders",
|
||||
column: "account_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_orders_created_at",
|
||||
table: "planet_exchange_orders",
|
||||
column: "created_at");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_orders_order_status",
|
||||
table: "planet_exchange_orders",
|
||||
column: "order_status");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_orders_planet_id",
|
||||
table: "planet_exchange_orders",
|
||||
column: "planet_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_orders_user_guid",
|
||||
table: "planet_exchange_orders",
|
||||
column: "user_guid");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "planet_exchange_orders");
|
||||
}
|
||||
}
|
||||
}
|
||||
270
BrokerApiCore/Migrations/20250314055515_SchemaChanges_145503.Designer.cs
generated
Normal file
270
BrokerApiCore/Migrations/20250314055515_SchemaChanges_145503.Designer.cs
generated
Normal file
@@ -0,0 +1,270 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using BrokerCore.Repository.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
[DbContext(typeof(MetaverseBrokerDbContext))]
|
||||
[Migration("20250314055515_SchemaChanges_145503")]
|
||||
partial class SchemaChanges_145503
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetInfo", b =>
|
||||
{
|
||||
b.Property<string>("PlanetId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id");
|
||||
|
||||
b.Property<string>("CompanyName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("company_name");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("생성 시간");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasColumnName("description");
|
||||
|
||||
b.Property<string>("PlanetName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("planet_name");
|
||||
|
||||
b.Property<string>("SecretKey")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("secret_key");
|
||||
|
||||
b.Property<string>("ServerType")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("server_type");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("updated_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
|
||||
.HasComment("수정 시간");
|
||||
|
||||
b.HasKey("PlanetId");
|
||||
|
||||
b.HasIndex("CompanyName");
|
||||
|
||||
b.HasIndex("PlanetName");
|
||||
|
||||
b.HasIndex("SecretKey");
|
||||
|
||||
b.ToTable("planet_info", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasComment("교환 주문 아이디 (GUID)");
|
||||
|
||||
b.Property<string>("AccountId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("account_id")
|
||||
.HasComment("SSO 아이디");
|
||||
|
||||
b.Property<int>("CaliverseItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("caliverse_item_quantity")
|
||||
.HasComment("칼리버스 아이템 갯수");
|
||||
|
||||
b.Property<string>("CaliverseItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_id")
|
||||
.HasComment("칼리버스 아이템 아이디");
|
||||
|
||||
b.Property<string>("CaliverseItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_type")
|
||||
.HasComment("칼리버스 아이템 타입");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("completed_at")
|
||||
.HasComment("교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("교환 주문 시작 시간");
|
||||
|
||||
b.Property<int>("ExchangeMetaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("exchange_meta_amount")
|
||||
.HasComment("교환 메타 수량");
|
||||
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<string>("OrderStatus")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_status")
|
||||
.HasComment("교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<int>("PlanetItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("planet_item_quantity")
|
||||
.HasComment("플래닛 아이템 갯수");
|
||||
|
||||
b.Property<string>("PlanetItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_id")
|
||||
.HasComment("플래닛 아이템 아이디");
|
||||
|
||||
b.Property<string>("PlanetItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_type")
|
||||
.HasComment("플래닛 아이템 타입");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디 (GUID)");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("planet_exchange_orders", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.SapphireExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasComment("사파이어 교환 주문 아이디 guid");
|
||||
|
||||
b.Property<ulong>("AccountId")
|
||||
.HasColumnType("bigint unsigned")
|
||||
.HasColumnName("account_id")
|
||||
.HasComment("sso 계정 아이디");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("completed_at")
|
||||
.HasComment("사파이어 교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("사파이어 교환 주문 시작 시간");
|
||||
|
||||
b.Property<sbyte>("OrderStatus")
|
||||
.HasColumnType("tinyint")
|
||||
.HasColumnName("order_status")
|
||||
.HasComment("사파이어 교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<decimal>("PlanetMoneyIncDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("planet_money_amount")
|
||||
.HasComment("플래닛에서 발급한 재화 수량");
|
||||
|
||||
b.Property<decimal>("SapphireReducedDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("sapphire_reduced_amount")
|
||||
.HasComment("사파이어 차감 수량");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("sapphire_exchange_order", (string)null);
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class SchemaChanges_145503 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "season_id",
|
||||
table: "planet_exchange_orders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
comment: "시즌 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "season_id",
|
||||
table: "planet_exchange_orders");
|
||||
}
|
||||
}
|
||||
}
|
||||
276
BrokerApiCore/Migrations/20250314062930_SchemaChanges_152918.Designer.cs
generated
Normal file
276
BrokerApiCore/Migrations/20250314062930_SchemaChanges_152918.Designer.cs
generated
Normal file
@@ -0,0 +1,276 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using BrokerCore.Repository.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
[DbContext(typeof(MetaverseBrokerDbContext))]
|
||||
[Migration("20250314062930_SchemaChanges_152918")]
|
||||
partial class SchemaChanges_152918
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetInfo", b =>
|
||||
{
|
||||
b.Property<string>("PlanetId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id");
|
||||
|
||||
b.Property<string>("CompanyName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("company_name");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("생성 시간");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasColumnName("description");
|
||||
|
||||
b.Property<string>("PlanetName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("planet_name");
|
||||
|
||||
b.Property<string>("SecretKey")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("secret_key");
|
||||
|
||||
b.Property<string>("ServerType")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("server_type");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("updated_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
|
||||
.HasComment("수정 시간");
|
||||
|
||||
b.HasKey("PlanetId");
|
||||
|
||||
b.HasIndex("CompanyName");
|
||||
|
||||
b.HasIndex("PlanetName");
|
||||
|
||||
b.HasIndex("SecretKey");
|
||||
|
||||
b.ToTable("planet_info", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasColumnOrder(1)
|
||||
.HasComment("교환 주문 아이디 (GUID)");
|
||||
|
||||
b.Property<string>("AccountId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("account_id")
|
||||
.HasColumnOrder(7)
|
||||
.HasComment("SSO 아이디");
|
||||
|
||||
b.Property<int>("CaliverseItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("caliverse_item_quantity")
|
||||
.HasColumnOrder(11)
|
||||
.HasComment("칼리버스 아이템 갯수");
|
||||
|
||||
b.Property<string>("CaliverseItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_id")
|
||||
.HasColumnOrder(10)
|
||||
.HasComment("칼리버스 아이템 아이디");
|
||||
|
||||
b.Property<string>("CaliverseItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_type")
|
||||
.HasColumnOrder(9)
|
||||
.HasComment("칼리버스 아이템 타입");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("completed_at")
|
||||
.HasColumnOrder(16)
|
||||
.HasComment("교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasColumnOrder(15)
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("교환 주문 시작 시간");
|
||||
|
||||
b.Property<int>("ExchangeMetaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("exchange_meta_amount")
|
||||
.HasColumnOrder(6)
|
||||
.HasComment("교환 메타 수량");
|
||||
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasColumnOrder(5)
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<string>("OrderStatus")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_status")
|
||||
.HasColumnOrder(2)
|
||||
.HasComment("교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasColumnOrder(3)
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<int>("PlanetItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("planet_item_quantity")
|
||||
.HasColumnOrder(14)
|
||||
.HasComment("플래닛 아이템 갯수");
|
||||
|
||||
b.Property<string>("PlanetItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_id")
|
||||
.HasColumnOrder(13)
|
||||
.HasComment("플래닛 아이템 아이디");
|
||||
|
||||
b.Property<string>("PlanetItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_type")
|
||||
.HasColumnOrder(12)
|
||||
.HasComment("플래닛 아이템 타입");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasColumnOrder(4)
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasColumnOrder(8)
|
||||
.HasComment("유저 아이디 (GUID)");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.ToTable("PlanetItemExchangeOrders");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.SapphireExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasComment("사파이어 교환 주문 아이디 guid");
|
||||
|
||||
b.Property<ulong>("AccountId")
|
||||
.HasColumnType("bigint unsigned")
|
||||
.HasColumnName("account_id")
|
||||
.HasComment("sso 계정 아이디");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("completed_at")
|
||||
.HasComment("사파이어 교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("사파이어 교환 주문 시작 시간");
|
||||
|
||||
b.Property<sbyte>("OrderStatus")
|
||||
.HasColumnType("tinyint")
|
||||
.HasColumnName("order_status")
|
||||
.HasComment("사파이어 교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<decimal>("PlanetMoneyIncDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("planet_money_amount")
|
||||
.HasComment("플래닛에서 발급한 재화 수량");
|
||||
|
||||
b.Property<decimal>("SapphireReducedDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("sapphire_reduced_amount")
|
||||
.HasComment("사파이어 차감 수량");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("sapphire_exchange_order", (string)null);
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
536
BrokerApiCore/Migrations/20250314062930_SchemaChanges_152918.cs
Normal file
536
BrokerApiCore/Migrations/20250314062930_SchemaChanges_152918.cs
Normal file
@@ -0,0 +1,536 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class SchemaChanges_152918 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropPrimaryKey(
|
||||
name: "PK_planet_exchange_orders",
|
||||
table: "planet_exchange_orders");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_planet_exchange_orders_account_id",
|
||||
table: "planet_exchange_orders");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_planet_exchange_orders_created_at",
|
||||
table: "planet_exchange_orders");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_planet_exchange_orders_order_status",
|
||||
table: "planet_exchange_orders");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_planet_exchange_orders_planet_id",
|
||||
table: "planet_exchange_orders");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_planet_exchange_orders_user_guid",
|
||||
table: "planet_exchange_orders");
|
||||
|
||||
migrationBuilder.RenameTable(
|
||||
name: "planet_exchange_orders",
|
||||
newName: "PlanetItemExchangeOrders");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "user_guid",
|
||||
table: "PlanetItemExchangeOrders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "유저 아이디 (GUID)",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "유저 아이디 (GUID)")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 8)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "season_id",
|
||||
table: "PlanetItemExchangeOrders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "시즌 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "시즌 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 4)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "planet_item_type",
|
||||
table: "PlanetItemExchangeOrders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "플래닛 아이템 타입",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "플래닛 아이템 타입")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 12)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "planet_item_quantity",
|
||||
table: "PlanetItemExchangeOrders",
|
||||
type: "INT",
|
||||
nullable: false,
|
||||
comment: "플래닛 아이템 갯수",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "INT",
|
||||
oldComment: "플래닛 아이템 갯수")
|
||||
.Annotation("Relational:ColumnOrder", 14);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "planet_item_id",
|
||||
table: "PlanetItemExchangeOrders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "플래닛 아이템 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "플래닛 아이템 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 13)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "planet_id",
|
||||
table: "PlanetItemExchangeOrders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "플래닛 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "플래닛 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 3)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "order_status",
|
||||
table: "PlanetItemExchangeOrders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "교환 주문 상태",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "교환 주문 상태")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 2)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "exchange_meta_id",
|
||||
table: "PlanetItemExchangeOrders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "교환 메타 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "교환 메타 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 5)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "exchange_meta_amount",
|
||||
table: "PlanetItemExchangeOrders",
|
||||
type: "INT",
|
||||
nullable: false,
|
||||
comment: "교환 메타 수량",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "INT",
|
||||
oldComment: "교환 메타 수량")
|
||||
.Annotation("Relational:ColumnOrder", 6);
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "created_at",
|
||||
table: "PlanetItemExchangeOrders",
|
||||
type: "TIMESTAMP",
|
||||
nullable: false,
|
||||
defaultValueSql: "CURRENT_TIMESTAMP",
|
||||
comment: "교환 주문 시작 시간",
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "TIMESTAMP",
|
||||
oldDefaultValueSql: "CURRENT_TIMESTAMP",
|
||||
oldComment: "교환 주문 시작 시간")
|
||||
.Annotation("Relational:ColumnOrder", 15);
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "completed_at",
|
||||
table: "PlanetItemExchangeOrders",
|
||||
type: "TIMESTAMP",
|
||||
nullable: true,
|
||||
comment: "교환 주문 완료 시간",
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "TIMESTAMP",
|
||||
oldNullable: true,
|
||||
oldComment: "교환 주문 완료 시간")
|
||||
.Annotation("Relational:ColumnOrder", 16);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "caliverse_item_type",
|
||||
table: "PlanetItemExchangeOrders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "칼리버스 아이템 타입",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "칼리버스 아이템 타입")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 9)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "caliverse_item_quantity",
|
||||
table: "PlanetItemExchangeOrders",
|
||||
type: "INT",
|
||||
nullable: false,
|
||||
comment: "칼리버스 아이템 갯수",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "INT",
|
||||
oldComment: "칼리버스 아이템 갯수")
|
||||
.Annotation("Relational:ColumnOrder", 11);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "caliverse_item_id",
|
||||
table: "PlanetItemExchangeOrders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "칼리버스 아이템 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "칼리버스 아이템 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 10)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "account_id",
|
||||
table: "PlanetItemExchangeOrders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "SSO 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "SSO 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 7)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "order_id",
|
||||
table: "PlanetItemExchangeOrders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "교환 주문 아이디 (GUID)",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "교환 주문 아이디 (GUID)")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 1)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddPrimaryKey(
|
||||
name: "PK_PlanetItemExchangeOrders",
|
||||
table: "PlanetItemExchangeOrders",
|
||||
column: "order_id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropPrimaryKey(
|
||||
name: "PK_PlanetItemExchangeOrders",
|
||||
table: "PlanetItemExchangeOrders");
|
||||
|
||||
migrationBuilder.RenameTable(
|
||||
name: "PlanetItemExchangeOrders",
|
||||
newName: "planet_exchange_orders");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "user_guid",
|
||||
table: "planet_exchange_orders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "유저 아이디 (GUID)",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "유저 아이디 (GUID)")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 8);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "season_id",
|
||||
table: "planet_exchange_orders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "시즌 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "시즌 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 4);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "planet_item_type",
|
||||
table: "planet_exchange_orders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "플래닛 아이템 타입",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "플래닛 아이템 타입")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 12);
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "planet_item_quantity",
|
||||
table: "planet_exchange_orders",
|
||||
type: "INT",
|
||||
nullable: false,
|
||||
comment: "플래닛 아이템 갯수",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "INT",
|
||||
oldComment: "플래닛 아이템 갯수")
|
||||
.OldAnnotation("Relational:ColumnOrder", 14);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "planet_item_id",
|
||||
table: "planet_exchange_orders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "플래닛 아이템 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "플래닛 아이템 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 13);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "planet_id",
|
||||
table: "planet_exchange_orders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "플래닛 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "플래닛 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 3);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "order_status",
|
||||
table: "planet_exchange_orders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "교환 주문 상태",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "교환 주문 상태")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 2);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "exchange_meta_id",
|
||||
table: "planet_exchange_orders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "교환 메타 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "교환 메타 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 5);
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "exchange_meta_amount",
|
||||
table: "planet_exchange_orders",
|
||||
type: "INT",
|
||||
nullable: false,
|
||||
comment: "교환 메타 수량",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "INT",
|
||||
oldComment: "교환 메타 수량")
|
||||
.OldAnnotation("Relational:ColumnOrder", 6);
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "created_at",
|
||||
table: "planet_exchange_orders",
|
||||
type: "TIMESTAMP",
|
||||
nullable: false,
|
||||
defaultValueSql: "CURRENT_TIMESTAMP",
|
||||
comment: "교환 주문 시작 시간",
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "TIMESTAMP",
|
||||
oldDefaultValueSql: "CURRENT_TIMESTAMP",
|
||||
oldComment: "교환 주문 시작 시간")
|
||||
.OldAnnotation("Relational:ColumnOrder", 15);
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "completed_at",
|
||||
table: "planet_exchange_orders",
|
||||
type: "TIMESTAMP",
|
||||
nullable: true,
|
||||
comment: "교환 주문 완료 시간",
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "TIMESTAMP",
|
||||
oldNullable: true,
|
||||
oldComment: "교환 주문 완료 시간")
|
||||
.OldAnnotation("Relational:ColumnOrder", 16);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "caliverse_item_type",
|
||||
table: "planet_exchange_orders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "칼리버스 아이템 타입",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "칼리버스 아이템 타입")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 9);
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "caliverse_item_quantity",
|
||||
table: "planet_exchange_orders",
|
||||
type: "INT",
|
||||
nullable: false,
|
||||
comment: "칼리버스 아이템 갯수",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "INT",
|
||||
oldComment: "칼리버스 아이템 갯수")
|
||||
.OldAnnotation("Relational:ColumnOrder", 11);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "caliverse_item_id",
|
||||
table: "planet_exchange_orders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "칼리버스 아이템 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "칼리버스 아이템 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 10);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "account_id",
|
||||
table: "planet_exchange_orders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "SSO 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "SSO 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 7);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "order_id",
|
||||
table: "planet_exchange_orders",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "교환 주문 아이디 (GUID)",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "교환 주문 아이디 (GUID)")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 1);
|
||||
|
||||
migrationBuilder.AddPrimaryKey(
|
||||
name: "PK_planet_exchange_orders",
|
||||
table: "planet_exchange_orders",
|
||||
column: "order_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_orders_account_id",
|
||||
table: "planet_exchange_orders",
|
||||
column: "account_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_orders_created_at",
|
||||
table: "planet_exchange_orders",
|
||||
column: "created_at");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_orders_order_status",
|
||||
table: "planet_exchange_orders",
|
||||
column: "order_status");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_orders_planet_id",
|
||||
table: "planet_exchange_orders",
|
||||
column: "planet_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_orders_user_guid",
|
||||
table: "planet_exchange_orders",
|
||||
column: "user_guid");
|
||||
}
|
||||
}
|
||||
}
|
||||
288
BrokerApiCore/Migrations/20250314063529_SchemaChanges_153518.Designer.cs
generated
Normal file
288
BrokerApiCore/Migrations/20250314063529_SchemaChanges_153518.Designer.cs
generated
Normal file
@@ -0,0 +1,288 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using BrokerCore.Repository.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
[DbContext(typeof(MetaverseBrokerDbContext))]
|
||||
[Migration("20250314063529_SchemaChanges_153518")]
|
||||
partial class SchemaChanges_153518
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetInfo", b =>
|
||||
{
|
||||
b.Property<string>("PlanetId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id");
|
||||
|
||||
b.Property<string>("CompanyName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("company_name");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("생성 시간");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasColumnName("description");
|
||||
|
||||
b.Property<string>("PlanetName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("planet_name");
|
||||
|
||||
b.Property<string>("SecretKey")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("secret_key");
|
||||
|
||||
b.Property<string>("ServerType")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("server_type");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("updated_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
|
||||
.HasComment("수정 시간");
|
||||
|
||||
b.HasKey("PlanetId");
|
||||
|
||||
b.HasIndex("CompanyName");
|
||||
|
||||
b.HasIndex("PlanetName");
|
||||
|
||||
b.HasIndex("SecretKey");
|
||||
|
||||
b.ToTable("planet_info", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasColumnOrder(1)
|
||||
.HasComment("교환 주문 아이디 (GUID)");
|
||||
|
||||
b.Property<string>("AccountId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("account_id")
|
||||
.HasColumnOrder(7)
|
||||
.HasComment("SSO 아이디");
|
||||
|
||||
b.Property<int>("CaliverseItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("caliverse_item_quantity")
|
||||
.HasColumnOrder(11)
|
||||
.HasComment("칼리버스 아이템 갯수");
|
||||
|
||||
b.Property<string>("CaliverseItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_id")
|
||||
.HasColumnOrder(10)
|
||||
.HasComment("칼리버스 아이템 아이디");
|
||||
|
||||
b.Property<string>("CaliverseItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_type")
|
||||
.HasColumnOrder(9)
|
||||
.HasComment("칼리버스 아이템 타입");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("completed_at")
|
||||
.HasColumnOrder(16)
|
||||
.HasComment("교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasColumnOrder(15)
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("교환 주문 시작 시간");
|
||||
|
||||
b.Property<int>("ExchangeMetaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("exchange_meta_amount")
|
||||
.HasColumnOrder(6)
|
||||
.HasComment("교환 메타 수량");
|
||||
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasColumnOrder(5)
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<string>("OrderStatus")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_status")
|
||||
.HasColumnOrder(2)
|
||||
.HasComment("교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasColumnOrder(3)
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<int>("PlanetItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("planet_item_quantity")
|
||||
.HasColumnOrder(14)
|
||||
.HasComment("플래닛 아이템 갯수");
|
||||
|
||||
b.Property<string>("PlanetItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_id")
|
||||
.HasColumnOrder(13)
|
||||
.HasComment("플래닛 아이템 아이디");
|
||||
|
||||
b.Property<string>("PlanetItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_type")
|
||||
.HasColumnOrder(12)
|
||||
.HasComment("플래닛 아이템 타입");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasColumnOrder(4)
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasColumnOrder(8)
|
||||
.HasComment("유저 아이디 (GUID)");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("planet_item_exchange_order", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.SapphireExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasComment("사파이어 교환 주문 아이디 guid");
|
||||
|
||||
b.Property<ulong>("AccountId")
|
||||
.HasColumnType("bigint unsigned")
|
||||
.HasColumnName("account_id")
|
||||
.HasComment("sso 계정 아이디");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("completed_at")
|
||||
.HasComment("사파이어 교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("사파이어 교환 주문 시작 시간");
|
||||
|
||||
b.Property<sbyte>("OrderStatus")
|
||||
.HasColumnType("tinyint")
|
||||
.HasColumnName("order_status")
|
||||
.HasComment("사파이어 교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<decimal>("PlanetMoneyIncDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("planet_money_amount")
|
||||
.HasComment("플래닛에서 발급한 재화 수량");
|
||||
|
||||
b.Property<decimal>("SapphireReducedDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("sapphire_reduced_amount")
|
||||
.HasComment("사파이어 차감 수량");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("sapphire_exchange_order", (string)null);
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class SchemaChanges_153518 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropPrimaryKey(
|
||||
name: "PK_PlanetItemExchangeOrders",
|
||||
table: "PlanetItemExchangeOrders");
|
||||
|
||||
migrationBuilder.RenameTable(
|
||||
name: "PlanetItemExchangeOrders",
|
||||
newName: "planet_item_exchange_order");
|
||||
|
||||
migrationBuilder.AddPrimaryKey(
|
||||
name: "PK_planet_item_exchange_order",
|
||||
table: "planet_item_exchange_order",
|
||||
column: "order_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_item_exchange_order_account_id",
|
||||
table: "planet_item_exchange_order",
|
||||
column: "account_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_item_exchange_order_created_at",
|
||||
table: "planet_item_exchange_order",
|
||||
column: "created_at");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_item_exchange_order_order_status",
|
||||
table: "planet_item_exchange_order",
|
||||
column: "order_status");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_item_exchange_order_planet_id",
|
||||
table: "planet_item_exchange_order",
|
||||
column: "planet_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_item_exchange_order_season_id",
|
||||
table: "planet_item_exchange_order",
|
||||
column: "season_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_item_exchange_order_user_guid",
|
||||
table: "planet_item_exchange_order",
|
||||
column: "user_guid");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropPrimaryKey(
|
||||
name: "PK_planet_item_exchange_order",
|
||||
table: "planet_item_exchange_order");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_planet_item_exchange_order_account_id",
|
||||
table: "planet_item_exchange_order");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_planet_item_exchange_order_created_at",
|
||||
table: "planet_item_exchange_order");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_planet_item_exchange_order_order_status",
|
||||
table: "planet_item_exchange_order");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_planet_item_exchange_order_planet_id",
|
||||
table: "planet_item_exchange_order");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_planet_item_exchange_order_season_id",
|
||||
table: "planet_item_exchange_order");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_planet_item_exchange_order_user_guid",
|
||||
table: "planet_item_exchange_order");
|
||||
|
||||
migrationBuilder.RenameTable(
|
||||
name: "planet_item_exchange_order",
|
||||
newName: "PlanetItemExchangeOrders");
|
||||
|
||||
migrationBuilder.AddPrimaryKey(
|
||||
name: "PK_PlanetItemExchangeOrders",
|
||||
table: "PlanetItemExchangeOrders",
|
||||
column: "order_id");
|
||||
}
|
||||
}
|
||||
}
|
||||
298
BrokerApiCore/Migrations/20250314070903_SchemaChanges_160851.Designer.cs
generated
Normal file
298
BrokerApiCore/Migrations/20250314070903_SchemaChanges_160851.Designer.cs
generated
Normal file
@@ -0,0 +1,298 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using BrokerCore.Repository.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
[DbContext(typeof(MetaverseBrokerDbContext))]
|
||||
[Migration("20250314070903_SchemaChanges_160851")]
|
||||
partial class SchemaChanges_160851
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetInfo", b =>
|
||||
{
|
||||
b.Property<string>("PlanetId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id");
|
||||
|
||||
b.Property<string>("CompanyName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("company_name");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("생성 시간");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasColumnName("description");
|
||||
|
||||
b.Property<string>("PlanetName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("planet_name");
|
||||
|
||||
b.Property<string>("SecretKey")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("secret_key");
|
||||
|
||||
b.Property<string>("ServerType")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("server_type");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("updated_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
|
||||
.HasComment("수정 시간");
|
||||
|
||||
b.HasKey("PlanetId");
|
||||
|
||||
b.HasIndex("CompanyName");
|
||||
|
||||
b.HasIndex("PlanetName");
|
||||
|
||||
b.HasIndex("SecretKey");
|
||||
|
||||
b.ToTable("planet_info", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasColumnOrder(1)
|
||||
.HasComment("교환 주문 아이디 (GUID)");
|
||||
|
||||
b.Property<string>("AccountId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("account_id")
|
||||
.HasColumnOrder(7)
|
||||
.HasComment("SSO 아이디");
|
||||
|
||||
b.Property<int>("CaliverseItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("caliverse_item_quantity")
|
||||
.HasColumnOrder(11)
|
||||
.HasComment("칼리버스 아이템 갯수");
|
||||
|
||||
b.Property<string>("CaliverseItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_id")
|
||||
.HasColumnOrder(10)
|
||||
.HasComment("칼리버스 아이템 아이디");
|
||||
|
||||
b.Property<string>("CaliverseItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_type")
|
||||
.HasColumnOrder(9)
|
||||
.HasComment("칼리버스 아이템 타입");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("completed_at")
|
||||
.HasColumnOrder(16)
|
||||
.HasComment("교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasColumnOrder(15)
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("교환 주문 시작 시간");
|
||||
|
||||
b.Property<int>("ExchangeMetaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("exchange_meta_amount")
|
||||
.HasColumnOrder(6)
|
||||
.HasComment("교환 메타 수량");
|
||||
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasColumnOrder(5)
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<string>("OrderStatus")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_status")
|
||||
.HasColumnOrder(2)
|
||||
.HasComment("교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasColumnOrder(3)
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<int>("PlanetItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("planet_item_quantity")
|
||||
.HasColumnOrder(14)
|
||||
.HasComment("플래닛 아이템 갯수");
|
||||
|
||||
b.Property<string>("PlanetItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_id")
|
||||
.HasColumnOrder(13)
|
||||
.HasComment("플래닛 아이템 아이디");
|
||||
|
||||
b.Property<string>("PlanetItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_type")
|
||||
.HasColumnOrder(12)
|
||||
.HasComment("플래닛 아이템 타입");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasColumnOrder(4)
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasColumnOrder(8)
|
||||
.HasComment("유저 아이디 (GUID)");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("planet_item_exchange_order", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.SapphireExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasComment("사파이어 교환 주문 아이디 guid");
|
||||
|
||||
b.Property<ulong>("AccountId")
|
||||
.HasColumnType("bigint unsigned")
|
||||
.HasColumnName("account_id")
|
||||
.HasComment("sso 계정 아이디");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("completed_at")
|
||||
.HasComment("사파이어 교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("사파이어 교환 주문 시작 시간");
|
||||
|
||||
b.Property<sbyte>("OrderStatus")
|
||||
.HasColumnType("tinyint")
|
||||
.HasColumnName("order_status")
|
||||
.HasComment("사파이어 교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<decimal>("PlanetMoneyIncDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("planet_money_amount")
|
||||
.HasComment("플래닛에서 발급한 재화 수량");
|
||||
|
||||
b.Property<decimal>("SapphireReducedDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("sapphire_reduced_amount")
|
||||
.HasComment("사파이어 차감 수량");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("sapphire_exchange_order", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrder", b =>
|
||||
{
|
||||
b.HasOne("BrokerCore.DbEntity.PlanetInfo", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("PlanetId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK_PlanetExchangeOrder_PlanetInfo");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class SchemaChanges_160851 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_PlanetExchangeOrder_PlanetInfo",
|
||||
table: "planet_item_exchange_order",
|
||||
column: "planet_id",
|
||||
principalTable: "planet_info",
|
||||
principalColumn: "planet_id",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_PlanetExchangeOrder_PlanetInfo",
|
||||
table: "planet_item_exchange_order");
|
||||
}
|
||||
}
|
||||
}
|
||||
388
BrokerApiCore/Migrations/20250317020124_SchemaChanges_110113.Designer.cs
generated
Normal file
388
BrokerApiCore/Migrations/20250317020124_SchemaChanges_110113.Designer.cs
generated
Normal file
@@ -0,0 +1,388 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using BrokerCore.Repository.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
[DbContext(typeof(MetaverseBrokerDbContext))]
|
||||
[Migration("20250317020124_SchemaChanges_110113")]
|
||||
partial class SchemaChanges_110113
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetInfo", b =>
|
||||
{
|
||||
b.Property<string>("PlanetId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id");
|
||||
|
||||
b.Property<string>("CompanyName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("company_name");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("생성 시간");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasColumnName("description");
|
||||
|
||||
b.Property<string>("PlanetName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("planet_name");
|
||||
|
||||
b.Property<string>("SecretKey")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("secret_key");
|
||||
|
||||
b.Property<string>("ServerType")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("server_type");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("updated_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
|
||||
.HasComment("수정 시간");
|
||||
|
||||
b.HasKey("PlanetId");
|
||||
|
||||
b.HasIndex("CompanyName");
|
||||
|
||||
b.HasIndex("PlanetName");
|
||||
|
||||
b.HasIndex("SecretKey");
|
||||
|
||||
b.ToTable("planet_info", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasColumnOrder(1)
|
||||
.HasComment("교환 주문 아이디 (GUID)");
|
||||
|
||||
b.Property<string>("AccountId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("account_id")
|
||||
.HasColumnOrder(7)
|
||||
.HasComment("SSO 아이디");
|
||||
|
||||
b.Property<int>("CaliverseItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("caliverse_item_quantity")
|
||||
.HasColumnOrder(11)
|
||||
.HasComment("칼리버스 아이템 갯수");
|
||||
|
||||
b.Property<string>("CaliverseItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_id")
|
||||
.HasColumnOrder(10)
|
||||
.HasComment("칼리버스 아이템 아이디");
|
||||
|
||||
b.Property<string>("CaliverseItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_type")
|
||||
.HasColumnOrder(9)
|
||||
.HasComment("칼리버스 아이템 타입");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("completed_at")
|
||||
.HasColumnOrder(16)
|
||||
.HasComment("교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasColumnOrder(15)
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("교환 주문 시작 시간");
|
||||
|
||||
b.Property<int>("ExchangeMetaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("exchange_meta_amount")
|
||||
.HasColumnOrder(6)
|
||||
.HasComment("교환 메타 수량");
|
||||
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasColumnOrder(5)
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<string>("OrderStatus")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_status")
|
||||
.HasColumnOrder(2)
|
||||
.HasComment("교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasColumnOrder(3)
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<int>("PlanetItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("planet_item_quantity")
|
||||
.HasColumnOrder(14)
|
||||
.HasComment("플래닛 아이템 갯수");
|
||||
|
||||
b.Property<string>("PlanetItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_id")
|
||||
.HasColumnOrder(13)
|
||||
.HasComment("플래닛 아이템 아이디");
|
||||
|
||||
b.Property<string>("PlanetItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_type")
|
||||
.HasColumnOrder(12)
|
||||
.HasComment("플래닛 아이템 타입");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasColumnOrder(4)
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasColumnOrder(8)
|
||||
.HasComment("유저 아이디 (GUID)");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("planet_item_exchange_order", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrderAmountTotalLimit", b =>
|
||||
{
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<DateOnly>("ExchangeDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("exchange_date")
|
||||
.HasComment("교환 일자");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<int>("DailyAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("daily_amount")
|
||||
.HasComment("일일 교환 메타 수량 합계");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.HasKey("ExchangeMetaId", "ExchangeDate");
|
||||
|
||||
b.HasIndex("ExchangeDate");
|
||||
|
||||
b.HasIndex("ExchangeMetaId");
|
||||
|
||||
b.ToTable("planet_exchange_order_amount_total_limits", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrderAmountUserLimit", b =>
|
||||
{
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<DateOnly>("ExchangeDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("exchange_date")
|
||||
.HasComment("교환 일자");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디 (GUID)");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<int>("DailyAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("daily_amount")
|
||||
.HasComment("사용자별 일일 교환 메타 수량");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.HasKey("ExchangeMetaId", "ExchangeDate", "UserGuid");
|
||||
|
||||
b.HasIndex("ExchangeDate");
|
||||
|
||||
b.HasIndex("ExchangeMetaId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("planet_exchange_order_amount_user_limits", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.SapphireExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasComment("사파이어 교환 주문 아이디 guid");
|
||||
|
||||
b.Property<ulong>("AccountId")
|
||||
.HasColumnType("bigint unsigned")
|
||||
.HasColumnName("account_id")
|
||||
.HasComment("sso 계정 아이디");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("completed_at")
|
||||
.HasComment("사파이어 교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("사파이어 교환 주문 시작 시간");
|
||||
|
||||
b.Property<sbyte>("OrderStatus")
|
||||
.HasColumnType("tinyint")
|
||||
.HasColumnName("order_status")
|
||||
.HasComment("사파이어 교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<decimal>("PlanetMoneyIncDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("planet_money_amount")
|
||||
.HasComment("플래닛에서 발급한 재화 수량");
|
||||
|
||||
b.Property<decimal>("SapphireReducedDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("sapphire_reduced_amount")
|
||||
.HasComment("사파이어 차감 수량");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("sapphire_exchange_order", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrder", b =>
|
||||
{
|
||||
b.HasOne("BrokerCore.DbEntity.PlanetInfo", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("PlanetId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK_PlanetExchangeOrder_PlanetInfo");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class SchemaChanges_110113 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "planet_exchange_order_amount_total_limits",
|
||||
columns: table => new
|
||||
{
|
||||
exchange_meta_id = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "교환 메타 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
exchange_date = table.Column<DateOnly>(type: "date", nullable: false, comment: "교환 일자"),
|
||||
PlanetId = table.Column<string>(type: "longtext", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
SeasonId = table.Column<string>(type: "longtext", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
daily_amount = table.Column<int>(type: "INT", nullable: false, comment: "일일 교환 메타 수량 합계"),
|
||||
CreatedAt = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
||||
UpdatedAt = table.Column<DateTime>(type: "datetime(6)", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_planet_exchange_order_amount_total_limits", x => new { x.exchange_meta_id, x.exchange_date });
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "planet_exchange_order_amount_user_limits",
|
||||
columns: table => new
|
||||
{
|
||||
exchange_meta_id = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "교환 메타 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
exchange_date = table.Column<DateOnly>(type: "date", nullable: false, comment: "교환 일자"),
|
||||
user_guid = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "유저 아이디 (GUID)")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
PlanetId = table.Column<string>(type: "longtext", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
SeasonId = table.Column<string>(type: "longtext", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
daily_amount = table.Column<int>(type: "INT", nullable: false, comment: "사용자별 일일 교환 메타 수량"),
|
||||
CreatedAt = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
||||
UpdatedAt = table.Column<DateTime>(type: "datetime(6)", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_planet_exchange_order_amount_user_limits", x => new { x.exchange_meta_id, x.exchange_date, x.user_guid });
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_order_amount_total_limits_exchange_date",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
column: "exchange_date");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_order_amount_total_limits_exchange_meta_id",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
column: "exchange_meta_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_order_amount_user_limits_exchange_date",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
column: "exchange_date");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_order_amount_user_limits_exchange_meta_id",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
column: "exchange_meta_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_order_amount_user_limits_user_guid",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
column: "user_guid");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "planet_exchange_order_amount_total_limits");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "planet_exchange_order_amount_user_limits");
|
||||
}
|
||||
}
|
||||
}
|
||||
409
BrokerApiCore/Migrations/20250317030502_SchemaChanges_120450.Designer.cs
generated
Normal file
409
BrokerApiCore/Migrations/20250317030502_SchemaChanges_120450.Designer.cs
generated
Normal file
@@ -0,0 +1,409 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using BrokerCore.Repository.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
[DbContext(typeof(MetaverseBrokerDbContext))]
|
||||
[Migration("20250317030502_SchemaChanges_120450")]
|
||||
partial class SchemaChanges_120450
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetInfo", b =>
|
||||
{
|
||||
b.Property<string>("PlanetId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id");
|
||||
|
||||
b.Property<string>("CompanyName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("company_name");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("생성 시간");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasColumnName("description");
|
||||
|
||||
b.Property<string>("PlanetName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("planet_name");
|
||||
|
||||
b.Property<string>("SecretKey")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("secret_key");
|
||||
|
||||
b.Property<string>("ServerType")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("server_type");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("updated_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
|
||||
.HasComment("수정 시간");
|
||||
|
||||
b.HasKey("PlanetId");
|
||||
|
||||
b.HasIndex("CompanyName");
|
||||
|
||||
b.HasIndex("PlanetName");
|
||||
|
||||
b.HasIndex("SecretKey");
|
||||
|
||||
b.ToTable("planet_info", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasColumnOrder(1)
|
||||
.HasComment("교환 주문 아이디 (GUID)");
|
||||
|
||||
b.Property<string>("AccountId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("account_id")
|
||||
.HasColumnOrder(7)
|
||||
.HasComment("SSO 아이디");
|
||||
|
||||
b.Property<int>("CaliverseItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("caliverse_item_quantity")
|
||||
.HasColumnOrder(11)
|
||||
.HasComment("칼리버스 아이템 갯수");
|
||||
|
||||
b.Property<string>("CaliverseItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_id")
|
||||
.HasColumnOrder(10)
|
||||
.HasComment("칼리버스 아이템 아이디");
|
||||
|
||||
b.Property<string>("CaliverseItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_type")
|
||||
.HasColumnOrder(9)
|
||||
.HasComment("칼리버스 아이템 타입");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("completed_at")
|
||||
.HasColumnOrder(16)
|
||||
.HasComment("교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasColumnOrder(15)
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("교환 주문 시작 시간");
|
||||
|
||||
b.Property<int>("ExchangeMetaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("exchange_meta_amount")
|
||||
.HasColumnOrder(6)
|
||||
.HasComment("교환 메타 수량");
|
||||
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasColumnOrder(5)
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<string>("OrderStatus")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_status")
|
||||
.HasColumnOrder(2)
|
||||
.HasComment("교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasColumnOrder(3)
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<int>("PlanetItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("planet_item_quantity")
|
||||
.HasColumnOrder(14)
|
||||
.HasComment("플래닛 아이템 갯수");
|
||||
|
||||
b.Property<string>("PlanetItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_id")
|
||||
.HasColumnOrder(13)
|
||||
.HasComment("플래닛 아이템 아이디");
|
||||
|
||||
b.Property<string>("PlanetItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_type")
|
||||
.HasColumnOrder(12)
|
||||
.HasComment("플래닛 아이템 타입");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasColumnOrder(4)
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasColumnOrder(8)
|
||||
.HasComment("유저 아이디 (GUID)");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("planet_item_exchange_order", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrderAmountTotalLimit", b =>
|
||||
{
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<DateOnly>("ExchangeDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("exchange_date")
|
||||
.HasComment("교환 일자");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("생성 일자");
|
||||
|
||||
b.Property<int>("DailyAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("daily_amount")
|
||||
.HasComment("일일 교환 메타 수량 합계");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("updated_at")
|
||||
.HasComment("업데이트 일자");
|
||||
|
||||
b.HasKey("ExchangeMetaId", "ExchangeDate", "SeasonId");
|
||||
|
||||
b.HasIndex("ExchangeDate");
|
||||
|
||||
b.HasIndex("ExchangeMetaId");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.ToTable("planet_exchange_order_amount_total_limits", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrderAmountUserLimit", b =>
|
||||
{
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<DateOnly>("ExchangeDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("exchange_date")
|
||||
.HasComment("교환 일자");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디 (GUID)");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("생성 일자");
|
||||
|
||||
b.Property<int>("DailyAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("daily_amount")
|
||||
.HasComment("사용자별 일일 교환 메타 수량");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("updated_at")
|
||||
.HasComment("업데이트 일자");
|
||||
|
||||
b.HasKey("ExchangeMetaId", "ExchangeDate", "SeasonId", "UserGuid");
|
||||
|
||||
b.HasIndex("ExchangeDate");
|
||||
|
||||
b.HasIndex("ExchangeMetaId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("planet_exchange_order_amount_user_limits", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.SapphireExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasComment("사파이어 교환 주문 아이디 guid");
|
||||
|
||||
b.Property<ulong>("AccountId")
|
||||
.HasColumnType("bigint unsigned")
|
||||
.HasColumnName("account_id")
|
||||
.HasComment("sso 계정 아이디");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("completed_at")
|
||||
.HasComment("사파이어 교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("사파이어 교환 주문 시작 시간");
|
||||
|
||||
b.Property<sbyte>("OrderStatus")
|
||||
.HasColumnType("tinyint")
|
||||
.HasColumnName("order_status")
|
||||
.HasComment("사파이어 교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<decimal>("PlanetMoneyIncDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("planet_money_amount")
|
||||
.HasComment("플래닛에서 발급한 재화 수량");
|
||||
|
||||
b.Property<decimal>("SapphireReducedDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("sapphire_reduced_amount")
|
||||
.HasComment("사파이어 차감 수량");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("sapphire_exchange_order", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrder", b =>
|
||||
{
|
||||
b.HasOne("BrokerCore.DbEntity.PlanetInfo", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("PlanetId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK_PlanetExchangeOrder_PlanetInfo");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
296
BrokerApiCore/Migrations/20250317030502_SchemaChanges_120450.cs
Normal file
296
BrokerApiCore/Migrations/20250317030502_SchemaChanges_120450.cs
Normal file
@@ -0,0 +1,296 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class SchemaChanges_120450 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropPrimaryKey(
|
||||
name: "PK_planet_exchange_order_amount_user_limits",
|
||||
table: "planet_exchange_order_amount_user_limits");
|
||||
|
||||
migrationBuilder.DropPrimaryKey(
|
||||
name: "PK_planet_exchange_order_amount_total_limits",
|
||||
table: "planet_exchange_order_amount_total_limits");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "UpdatedAt",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
newName: "updated_at");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "SeasonId",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
newName: "season_id");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "CreatedAt",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
newName: "created_at");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "UpdatedAt",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
newName: "updated_at");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "SeasonId",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
newName: "season_id");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "PlanetId",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
newName: "planet_id");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "CreatedAt",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
newName: "created_at");
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "updated_at",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
type: "TIMESTAMP",
|
||||
nullable: false,
|
||||
comment: "업데이트 일자",
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "datetime(6)");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "season_id",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "시즌 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "longtext")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "created_at",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
type: "TIMESTAMP",
|
||||
nullable: false,
|
||||
comment: "생성 일자",
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "datetime(6)");
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "updated_at",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
type: "TIMESTAMP",
|
||||
nullable: false,
|
||||
comment: "업데이트 일자",
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "datetime(6)");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "season_id",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "시즌 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "longtext")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "planet_id",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "플래닛 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "longtext")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "created_at",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
type: "TIMESTAMP",
|
||||
nullable: false,
|
||||
comment: "생성 일자",
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "datetime(6)");
|
||||
|
||||
migrationBuilder.AddPrimaryKey(
|
||||
name: "PK_planet_exchange_order_amount_user_limits",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
columns: new[] { "exchange_meta_id", "exchange_date", "season_id", "user_guid" });
|
||||
|
||||
migrationBuilder.AddPrimaryKey(
|
||||
name: "PK_planet_exchange_order_amount_total_limits",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
columns: new[] { "exchange_meta_id", "exchange_date", "season_id" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_order_amount_user_limits_season_id",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
column: "season_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_order_amount_total_limits_planet_id",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
column: "planet_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_order_amount_total_limits_season_id",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
column: "season_id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropPrimaryKey(
|
||||
name: "PK_planet_exchange_order_amount_user_limits",
|
||||
table: "planet_exchange_order_amount_user_limits");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_planet_exchange_order_amount_user_limits_season_id",
|
||||
table: "planet_exchange_order_amount_user_limits");
|
||||
|
||||
migrationBuilder.DropPrimaryKey(
|
||||
name: "PK_planet_exchange_order_amount_total_limits",
|
||||
table: "planet_exchange_order_amount_total_limits");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_planet_exchange_order_amount_total_limits_planet_id",
|
||||
table: "planet_exchange_order_amount_total_limits");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_planet_exchange_order_amount_total_limits_season_id",
|
||||
table: "planet_exchange_order_amount_total_limits");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "updated_at",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
newName: "UpdatedAt");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "created_at",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
newName: "CreatedAt");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "season_id",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
newName: "SeasonId");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "updated_at",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
newName: "UpdatedAt");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "planet_id",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
newName: "PlanetId");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "created_at",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
newName: "CreatedAt");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "season_id",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
newName: "SeasonId");
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "UpdatedAt",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
type: "datetime(6)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "TIMESTAMP",
|
||||
oldComment: "업데이트 일자");
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "CreatedAt",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
type: "datetime(6)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "TIMESTAMP",
|
||||
oldComment: "생성 일자");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "SeasonId",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
type: "longtext",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "시즌 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "UpdatedAt",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
type: "datetime(6)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "TIMESTAMP",
|
||||
oldComment: "업데이트 일자");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "PlanetId",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
type: "longtext",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "플래닛 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "CreatedAt",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
type: "datetime(6)",
|
||||
nullable: false,
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "TIMESTAMP",
|
||||
oldComment: "생성 일자");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "SeasonId",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
type: "longtext",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "시즌 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddPrimaryKey(
|
||||
name: "PK_planet_exchange_order_amount_user_limits",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
columns: new[] { "exchange_meta_id", "exchange_date", "user_guid" });
|
||||
|
||||
migrationBuilder.AddPrimaryKey(
|
||||
name: "PK_planet_exchange_order_amount_total_limits",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
columns: new[] { "exchange_meta_id", "exchange_date" });
|
||||
}
|
||||
}
|
||||
}
|
||||
396
BrokerApiCore/Migrations/20250317032756_SchemaChanges_122745.Designer.cs
generated
Normal file
396
BrokerApiCore/Migrations/20250317032756_SchemaChanges_122745.Designer.cs
generated
Normal file
@@ -0,0 +1,396 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using BrokerCore.Repository.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
[DbContext(typeof(MetaverseBrokerDbContext))]
|
||||
[Migration("20250317032756_SchemaChanges_122745")]
|
||||
partial class SchemaChanges_122745
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetInfo", b =>
|
||||
{
|
||||
b.Property<string>("PlanetId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id");
|
||||
|
||||
b.Property<string>("CompanyName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("company_name");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("생성 시간");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasColumnName("description");
|
||||
|
||||
b.Property<string>("PlanetName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("planet_name");
|
||||
|
||||
b.Property<string>("SecretKey")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("secret_key");
|
||||
|
||||
b.Property<string>("ServerType")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("server_type");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("updated_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
|
||||
.HasComment("수정 시간");
|
||||
|
||||
b.HasKey("PlanetId");
|
||||
|
||||
b.HasIndex("CompanyName");
|
||||
|
||||
b.HasIndex("PlanetName");
|
||||
|
||||
b.HasIndex("SecretKey");
|
||||
|
||||
b.ToTable("planet_info", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasColumnOrder(1)
|
||||
.HasComment("교환 주문 아이디 (GUID)");
|
||||
|
||||
b.Property<string>("AccountId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("account_id")
|
||||
.HasColumnOrder(7)
|
||||
.HasComment("SSO 아이디");
|
||||
|
||||
b.Property<int>("CaliverseItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("caliverse_item_quantity")
|
||||
.HasColumnOrder(11)
|
||||
.HasComment("칼리버스 아이템 갯수");
|
||||
|
||||
b.Property<string>("CaliverseItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_id")
|
||||
.HasColumnOrder(10)
|
||||
.HasComment("칼리버스 아이템 아이디");
|
||||
|
||||
b.Property<string>("CaliverseItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_type")
|
||||
.HasColumnOrder(9)
|
||||
.HasComment("칼리버스 아이템 타입");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("completed_at")
|
||||
.HasColumnOrder(16)
|
||||
.HasComment("교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasColumnOrder(15)
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("교환 주문 시작 시간");
|
||||
|
||||
b.Property<int>("ExchangeMetaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("exchange_meta_amount")
|
||||
.HasColumnOrder(6)
|
||||
.HasComment("교환 메타 수량");
|
||||
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasColumnOrder(5)
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<string>("OrderStatus")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_status")
|
||||
.HasColumnOrder(2)
|
||||
.HasComment("교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasColumnOrder(3)
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<int>("PlanetItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("planet_item_quantity")
|
||||
.HasColumnOrder(14)
|
||||
.HasComment("플래닛 아이템 갯수");
|
||||
|
||||
b.Property<string>("PlanetItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_id")
|
||||
.HasColumnOrder(13)
|
||||
.HasComment("플래닛 아이템 아이디");
|
||||
|
||||
b.Property<string>("PlanetItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_type")
|
||||
.HasColumnOrder(12)
|
||||
.HasComment("플래닛 아이템 타입");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasColumnOrder(4)
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasColumnOrder(8)
|
||||
.HasComment("유저 아이디 (GUID)");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("planet_item_exchange_order", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrderAmountTotalLimit", b =>
|
||||
{
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<DateOnly>("ExchangeDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("exchange_date")
|
||||
.HasComment("교환 일자");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("생성 일자");
|
||||
|
||||
b.Property<int>("DailyAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("daily_amount")
|
||||
.HasComment("일일 교환 메타 수량 합계");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("updated_at")
|
||||
.HasComment("업데이트 일자");
|
||||
|
||||
b.HasKey("ExchangeMetaId", "ExchangeDate", "SeasonId");
|
||||
|
||||
b.HasIndex("ExchangeDate");
|
||||
|
||||
b.HasIndex("ExchangeMetaId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.ToTable("planet_exchange_order_amount_total_limits", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrderAmountUserLimit", b =>
|
||||
{
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<DateOnly>("ExchangeDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("exchange_date")
|
||||
.HasComment("교환 일자");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디 (GUID)");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("생성 일자");
|
||||
|
||||
b.Property<int>("DailyAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("daily_amount")
|
||||
.HasComment("사용자별 일일 교환 메타 수량");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("updated_at")
|
||||
.HasComment("업데이트 일자");
|
||||
|
||||
b.HasKey("ExchangeMetaId", "ExchangeDate", "SeasonId", "UserGuid");
|
||||
|
||||
b.HasIndex("ExchangeDate");
|
||||
|
||||
b.HasIndex("ExchangeMetaId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("planet_exchange_order_amount_user_limits", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.SapphireExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasComment("사파이어 교환 주문 아이디 guid");
|
||||
|
||||
b.Property<ulong>("AccountId")
|
||||
.HasColumnType("bigint unsigned")
|
||||
.HasColumnName("account_id")
|
||||
.HasComment("sso 계정 아이디");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("completed_at")
|
||||
.HasComment("사파이어 교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("사파이어 교환 주문 시작 시간");
|
||||
|
||||
b.Property<sbyte>("OrderStatus")
|
||||
.HasColumnType("tinyint")
|
||||
.HasColumnName("order_status")
|
||||
.HasComment("사파이어 교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<decimal>("PlanetMoneyIncDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("planet_money_amount")
|
||||
.HasComment("플래닛에서 발급한 재화 수량");
|
||||
|
||||
b.Property<decimal>("SapphireReducedDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("sapphire_reduced_amount")
|
||||
.HasComment("사파이어 차감 수량");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("sapphire_exchange_order", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrder", b =>
|
||||
{
|
||||
b.HasOne("BrokerCore.DbEntity.PlanetInfo", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("PlanetId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK_PlanetExchangeOrder_PlanetInfo");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class SchemaChanges_122745 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_planet_exchange_order_amount_total_limits_planet_id",
|
||||
table: "planet_exchange_order_amount_total_limits");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PlanetId",
|
||||
table: "planet_exchange_order_amount_user_limits");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "planet_id",
|
||||
table: "planet_exchange_order_amount_total_limits");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PlanetId",
|
||||
table: "planet_exchange_order_amount_user_limits",
|
||||
type: "longtext",
|
||||
nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "planet_id",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
comment: "플래닛 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_planet_exchange_order_amount_total_limits_planet_id",
|
||||
table: "planet_exchange_order_amount_total_limits",
|
||||
column: "planet_id");
|
||||
}
|
||||
}
|
||||
}
|
||||
396
BrokerApiCore/Migrations/20250321034709_SchemaChanges_124658.Designer.cs
generated
Normal file
396
BrokerApiCore/Migrations/20250321034709_SchemaChanges_124658.Designer.cs
generated
Normal file
@@ -0,0 +1,396 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using BrokerCore.Repository.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
[DbContext(typeof(MetaverseBrokerDbContext))]
|
||||
[Migration("20250321034709_SchemaChanges_124658")]
|
||||
partial class SchemaChanges_124658
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetInfo", b =>
|
||||
{
|
||||
b.Property<string>("PlanetId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id");
|
||||
|
||||
b.Property<string>("CompanyName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("company_name");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("생성 시간");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasColumnName("description");
|
||||
|
||||
b.Property<string>("PlanetName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("planet_name");
|
||||
|
||||
b.Property<string>("SecretKey")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("secret_key");
|
||||
|
||||
b.Property<string>("ServerType")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("server_type");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("updated_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
|
||||
.HasComment("수정 시간");
|
||||
|
||||
b.HasKey("PlanetId");
|
||||
|
||||
b.HasIndex("CompanyName");
|
||||
|
||||
b.HasIndex("PlanetName");
|
||||
|
||||
b.HasIndex("SecretKey");
|
||||
|
||||
b.ToTable("planet_info", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasColumnOrder(1)
|
||||
.HasComment("교환 주문 아이디 (GUID)");
|
||||
|
||||
b.Property<string>("AccountId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("account_id")
|
||||
.HasColumnOrder(7)
|
||||
.HasComment("SSO 아이디");
|
||||
|
||||
b.Property<int>("CaliverseItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("caliverse_item_quantity")
|
||||
.HasColumnOrder(11)
|
||||
.HasComment("칼리버스 아이템 갯수");
|
||||
|
||||
b.Property<string>("CaliverseItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_id")
|
||||
.HasColumnOrder(10)
|
||||
.HasComment("칼리버스 아이템 아이디");
|
||||
|
||||
b.Property<string>("CaliverseItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_type")
|
||||
.HasColumnOrder(9)
|
||||
.HasComment("칼리버스 아이템 타입");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("completed_at")
|
||||
.HasColumnOrder(16)
|
||||
.HasComment("교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasColumnOrder(15)
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("교환 주문 시작 시간");
|
||||
|
||||
b.Property<int>("ExchangeMetaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("exchange_meta_amount")
|
||||
.HasColumnOrder(6)
|
||||
.HasComment("교환 메타 수량");
|
||||
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasColumnOrder(5)
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<string>("OrderStatus")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_status")
|
||||
.HasColumnOrder(2)
|
||||
.HasComment("교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasColumnOrder(3)
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<int>("PlanetItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("planet_item_quantity")
|
||||
.HasColumnOrder(14)
|
||||
.HasComment("플래닛 아이템 갯수");
|
||||
|
||||
b.Property<string>("PlanetItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_id")
|
||||
.HasColumnOrder(13)
|
||||
.HasComment("플래닛 아이템 아이디");
|
||||
|
||||
b.Property<string>("PlanetItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_type")
|
||||
.HasColumnOrder(12)
|
||||
.HasComment("플래닛 아이템 타입");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasColumnOrder(4)
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasColumnOrder(8)
|
||||
.HasComment("유저 아이디 (GUID)");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("planet_item_exchange_order", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrderAmountTotalLimit", b =>
|
||||
{
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<DateOnly>("ExchangeDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("exchange_date")
|
||||
.HasComment("교환 일자");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("생성 일자");
|
||||
|
||||
b.Property<int>("DailyAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("daily_amount")
|
||||
.HasComment("일일 교환 메타 수량 합계");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("updated_at")
|
||||
.HasComment("업데이트 일자");
|
||||
|
||||
b.HasKey("ExchangeMetaId", "ExchangeDate", "SeasonId");
|
||||
|
||||
b.HasIndex("ExchangeDate");
|
||||
|
||||
b.HasIndex("ExchangeMetaId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.ToTable("planet_exchange_order_amount_total_limits", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrderAmountUserLimit", b =>
|
||||
{
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<DateOnly>("ExchangeDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("exchange_date")
|
||||
.HasComment("교환 일자");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디 (GUID)");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("생성 일자");
|
||||
|
||||
b.Property<int>("DailyAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("daily_amount")
|
||||
.HasComment("사용자별 일일 교환 메타 수량");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("updated_at")
|
||||
.HasComment("업데이트 일자");
|
||||
|
||||
b.HasKey("ExchangeMetaId", "ExchangeDate", "SeasonId", "UserGuid");
|
||||
|
||||
b.HasIndex("ExchangeDate");
|
||||
|
||||
b.HasIndex("ExchangeMetaId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("planet_exchange_order_amount_user_limits", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.SapphireExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasColumnType("varchar(60)")
|
||||
.HasColumnName("order_id")
|
||||
.HasComment("사파이어 교환 주문 아이디 guid");
|
||||
|
||||
b.Property<ulong>("AccountId")
|
||||
.HasColumnType("bigint unsigned")
|
||||
.HasColumnName("account_id")
|
||||
.HasComment("sso 계정 아이디");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("completed_at")
|
||||
.HasComment("사파이어 교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("사파이어 교환 주문 시작 시간");
|
||||
|
||||
b.Property<sbyte>("OrderStatus")
|
||||
.HasColumnType("tinyint")
|
||||
.HasColumnName("order_status")
|
||||
.HasComment("사파이어 교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<decimal>("PlanetMoneyIncDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("planet_money_amount")
|
||||
.HasComment("플래닛에서 발급한 재화 수량");
|
||||
|
||||
b.Property<decimal>("SapphireReducedDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("sapphire_reduced_amount")
|
||||
.HasComment("사파이어 차감 수량");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("sapphire_exchange_order", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrder", b =>
|
||||
{
|
||||
b.HasOne("BrokerCore.DbEntity.PlanetInfo", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("PlanetId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK_PlanetExchangeOrder_PlanetInfo");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class SchemaChanges_124658 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "order_id",
|
||||
table: "sapphire_exchange_order",
|
||||
type: "varchar(60)",
|
||||
nullable: false,
|
||||
comment: "사파이어 교환 주문 아이디 guid",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldComment: "사파이어 교환 주문 아이디 guid")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "order_id",
|
||||
table: "sapphire_exchange_order",
|
||||
type: "varchar(50)",
|
||||
nullable: false,
|
||||
comment: "사파이어 교환 주문 아이디 guid",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(60)",
|
||||
oldComment: "사파이어 교환 주문 아이디 guid")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
}
|
||||
}
|
||||
404
BrokerApiCore/Migrations/20250324074920_SchemaChanges_164908.Designer.cs
generated
Normal file
404
BrokerApiCore/Migrations/20250324074920_SchemaChanges_164908.Designer.cs
generated
Normal file
@@ -0,0 +1,404 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using BrokerCore.Repository.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
[DbContext(typeof(MetaverseBrokerDbContext))]
|
||||
[Migration("20250324074920_SchemaChanges_164908")]
|
||||
partial class SchemaChanges_164908
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetInfo", b =>
|
||||
{
|
||||
b.Property<string>("PlanetId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id");
|
||||
|
||||
b.Property<string>("CompanyName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("company_name");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("생성 시간");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasColumnName("description");
|
||||
|
||||
b.Property<string>("PlanetName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("planet_name");
|
||||
|
||||
b.Property<string>("SecretKey")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("secret_key");
|
||||
|
||||
b.Property<string>("ServerType")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("server_type");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("updated_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
|
||||
.HasComment("수정 시간");
|
||||
|
||||
b.HasKey("PlanetId");
|
||||
|
||||
b.HasIndex("CompanyName");
|
||||
|
||||
b.HasIndex("PlanetName");
|
||||
|
||||
b.HasIndex("SecretKey");
|
||||
|
||||
b.ToTable("planet_info", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasColumnOrder(1)
|
||||
.HasComment("교환 주문 아이디 (GUID)");
|
||||
|
||||
b.Property<string>("AccountId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("account_id")
|
||||
.HasColumnOrder(7)
|
||||
.HasComment("SSO 아이디");
|
||||
|
||||
b.Property<int>("CaliverseItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("caliverse_item_quantity")
|
||||
.HasColumnOrder(12)
|
||||
.HasComment("칼리버스 아이템 갯수");
|
||||
|
||||
b.Property<string>("CaliverseItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_id")
|
||||
.HasColumnOrder(11)
|
||||
.HasComment("칼리버스 아이템 아이디");
|
||||
|
||||
b.Property<string>("CaliverseItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_type")
|
||||
.HasColumnOrder(10)
|
||||
.HasComment("칼리버스 아이템 타입");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("completed_at")
|
||||
.HasColumnOrder(17)
|
||||
.HasComment("교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasColumnOrder(16)
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("교환 주문 시작 시간");
|
||||
|
||||
b.Property<int>("ExchangeMetaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("exchange_meta_amount")
|
||||
.HasColumnOrder(6)
|
||||
.HasComment("교환 메타 수량");
|
||||
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasColumnOrder(5)
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<string>("Nickname")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("nickname")
|
||||
.HasColumnOrder(9)
|
||||
.HasComment("유저 닉네임");
|
||||
|
||||
b.Property<string>("OrderStatus")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_status")
|
||||
.HasColumnOrder(2)
|
||||
.HasComment("교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasColumnOrder(3)
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<int>("PlanetItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("planet_item_quantity")
|
||||
.HasColumnOrder(15)
|
||||
.HasComment("플래닛 아이템 갯수");
|
||||
|
||||
b.Property<string>("PlanetItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_id")
|
||||
.HasColumnOrder(14)
|
||||
.HasComment("플래닛 아이템 아이디");
|
||||
|
||||
b.Property<string>("PlanetItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_type")
|
||||
.HasColumnOrder(13)
|
||||
.HasComment("플래닛 아이템 타입");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasColumnOrder(4)
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasColumnOrder(8)
|
||||
.HasComment("유저 아이디 (GUID)");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("planet_item_exchange_order", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrderAmountTotalLimit", b =>
|
||||
{
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<DateOnly>("ExchangeDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("exchange_date")
|
||||
.HasComment("교환 일자");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("생성 일자");
|
||||
|
||||
b.Property<int>("DailyAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("daily_amount")
|
||||
.HasComment("일일 교환 메타 수량 합계");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("updated_at")
|
||||
.HasComment("업데이트 일자");
|
||||
|
||||
b.HasKey("ExchangeMetaId", "ExchangeDate", "SeasonId");
|
||||
|
||||
b.HasIndex("ExchangeDate");
|
||||
|
||||
b.HasIndex("ExchangeMetaId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.ToTable("planet_exchange_order_amount_total_limits", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrderAmountUserLimit", b =>
|
||||
{
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<DateOnly>("ExchangeDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("exchange_date")
|
||||
.HasComment("교환 일자");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디 (GUID)");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("생성 일자");
|
||||
|
||||
b.Property<int>("DailyAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("daily_amount")
|
||||
.HasComment("사용자별 일일 교환 메타 수량");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("updated_at")
|
||||
.HasComment("업데이트 일자");
|
||||
|
||||
b.HasKey("ExchangeMetaId", "ExchangeDate", "SeasonId", "UserGuid");
|
||||
|
||||
b.HasIndex("ExchangeDate");
|
||||
|
||||
b.HasIndex("ExchangeMetaId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("planet_exchange_order_amount_user_limits", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.SapphireExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasColumnType("varchar(60)")
|
||||
.HasColumnName("order_id")
|
||||
.HasComment("사파이어 교환 주문 아이디 guid");
|
||||
|
||||
b.Property<ulong>("AccountId")
|
||||
.HasColumnType("bigint unsigned")
|
||||
.HasColumnName("account_id")
|
||||
.HasComment("sso 계정 아이디");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("completed_at")
|
||||
.HasComment("사파이어 교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("사파이어 교환 주문 시작 시간");
|
||||
|
||||
b.Property<sbyte>("OrderStatus")
|
||||
.HasColumnType("tinyint")
|
||||
.HasColumnName("order_status")
|
||||
.HasComment("사파이어 교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<decimal>("PlanetMoneyIncDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("planet_money_amount")
|
||||
.HasComment("플래닛에서 발급한 재화 수량");
|
||||
|
||||
b.Property<decimal>("SapphireReducedDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("sapphire_reduced_amount")
|
||||
.HasComment("사파이어 차감 수량");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("sapphire_exchange_order", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrder", b =>
|
||||
{
|
||||
b.HasOne("BrokerCore.DbEntity.PlanetInfo", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("PlanetId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK_PlanetExchangeOrder_PlanetInfo");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
264
BrokerApiCore/Migrations/20250324074920_SchemaChanges_164908.cs
Normal file
264
BrokerApiCore/Migrations/20250324074920_SchemaChanges_164908.cs
Normal file
@@ -0,0 +1,264 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class SchemaChanges_164908 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "planet_item_type",
|
||||
table: "planet_item_exchange_order",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "플래닛 아이템 타입",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "플래닛 아이템 타입")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 13)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 12);
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "planet_item_quantity",
|
||||
table: "planet_item_exchange_order",
|
||||
type: "INT",
|
||||
nullable: false,
|
||||
comment: "플래닛 아이템 갯수",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "INT",
|
||||
oldComment: "플래닛 아이템 갯수")
|
||||
.Annotation("Relational:ColumnOrder", 15)
|
||||
.OldAnnotation("Relational:ColumnOrder", 14);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "planet_item_id",
|
||||
table: "planet_item_exchange_order",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "플래닛 아이템 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "플래닛 아이템 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 14)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 13);
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "created_at",
|
||||
table: "planet_item_exchange_order",
|
||||
type: "TIMESTAMP",
|
||||
nullable: false,
|
||||
defaultValueSql: "CURRENT_TIMESTAMP",
|
||||
comment: "교환 주문 시작 시간",
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "TIMESTAMP",
|
||||
oldDefaultValueSql: "CURRENT_TIMESTAMP",
|
||||
oldComment: "교환 주문 시작 시간")
|
||||
.Annotation("Relational:ColumnOrder", 16)
|
||||
.OldAnnotation("Relational:ColumnOrder", 15);
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "completed_at",
|
||||
table: "planet_item_exchange_order",
|
||||
type: "TIMESTAMP",
|
||||
nullable: true,
|
||||
comment: "교환 주문 완료 시간",
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "TIMESTAMP",
|
||||
oldNullable: true,
|
||||
oldComment: "교환 주문 완료 시간")
|
||||
.Annotation("Relational:ColumnOrder", 17)
|
||||
.OldAnnotation("Relational:ColumnOrder", 16);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "caliverse_item_type",
|
||||
table: "planet_item_exchange_order",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "칼리버스 아이템 타입",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "칼리버스 아이템 타입")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 10)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 9);
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "caliverse_item_quantity",
|
||||
table: "planet_item_exchange_order",
|
||||
type: "INT",
|
||||
nullable: false,
|
||||
comment: "칼리버스 아이템 갯수",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "INT",
|
||||
oldComment: "칼리버스 아이템 갯수")
|
||||
.Annotation("Relational:ColumnOrder", 12)
|
||||
.OldAnnotation("Relational:ColumnOrder", 11);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "caliverse_item_id",
|
||||
table: "planet_item_exchange_order",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "칼리버스 아이템 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "칼리버스 아이템 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 11)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 10);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "nickname",
|
||||
table: "planet_item_exchange_order",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
comment: "유저 닉네임")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 9);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "nickname",
|
||||
table: "planet_item_exchange_order");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "planet_item_type",
|
||||
table: "planet_item_exchange_order",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "플래닛 아이템 타입",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "플래닛 아이템 타입")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 12)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 13);
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "planet_item_quantity",
|
||||
table: "planet_item_exchange_order",
|
||||
type: "INT",
|
||||
nullable: false,
|
||||
comment: "플래닛 아이템 갯수",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "INT",
|
||||
oldComment: "플래닛 아이템 갯수")
|
||||
.Annotation("Relational:ColumnOrder", 14)
|
||||
.OldAnnotation("Relational:ColumnOrder", 15);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "planet_item_id",
|
||||
table: "planet_item_exchange_order",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "플래닛 아이템 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "플래닛 아이템 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 13)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 14);
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "created_at",
|
||||
table: "planet_item_exchange_order",
|
||||
type: "TIMESTAMP",
|
||||
nullable: false,
|
||||
defaultValueSql: "CURRENT_TIMESTAMP",
|
||||
comment: "교환 주문 시작 시간",
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "TIMESTAMP",
|
||||
oldDefaultValueSql: "CURRENT_TIMESTAMP",
|
||||
oldComment: "교환 주문 시작 시간")
|
||||
.Annotation("Relational:ColumnOrder", 15)
|
||||
.OldAnnotation("Relational:ColumnOrder", 16);
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "completed_at",
|
||||
table: "planet_item_exchange_order",
|
||||
type: "TIMESTAMP",
|
||||
nullable: true,
|
||||
comment: "교환 주문 완료 시간",
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "TIMESTAMP",
|
||||
oldNullable: true,
|
||||
oldComment: "교환 주문 완료 시간")
|
||||
.Annotation("Relational:ColumnOrder", 16)
|
||||
.OldAnnotation("Relational:ColumnOrder", 17);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "caliverse_item_type",
|
||||
table: "planet_item_exchange_order",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "칼리버스 아이템 타입",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "칼리버스 아이템 타입")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 9)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 10);
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "caliverse_item_quantity",
|
||||
table: "planet_item_exchange_order",
|
||||
type: "INT",
|
||||
nullable: false,
|
||||
comment: "칼리버스 아이템 갯수",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "INT",
|
||||
oldComment: "칼리버스 아이템 갯수")
|
||||
.Annotation("Relational:ColumnOrder", 11)
|
||||
.OldAnnotation("Relational:ColumnOrder", 12);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "caliverse_item_id",
|
||||
table: "planet_item_exchange_order",
|
||||
type: "varchar(50)",
|
||||
maxLength: 50,
|
||||
nullable: false,
|
||||
comment: "칼리버스 아이템 아이디",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(50)",
|
||||
oldMaxLength: 50,
|
||||
oldComment: "칼리버스 아이템 아이디")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.Annotation("Relational:ColumnOrder", 10)
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("Relational:ColumnOrder", 11);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,401 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using BrokerCore.Repository.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BrokerApiCore.Migrations
|
||||
{
|
||||
[DbContext(typeof(MetaverseBrokerDbContext))]
|
||||
partial class MetaverseBrokerDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetInfo", b =>
|
||||
{
|
||||
b.Property<string>("PlanetId")
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id");
|
||||
|
||||
b.Property<string>("CompanyName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("company_name");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("생성 시간");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(255)")
|
||||
.HasColumnName("description");
|
||||
|
||||
b.Property<string>("PlanetName")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(32)")
|
||||
.HasColumnName("planet_name");
|
||||
|
||||
b.Property<string>("SecretKey")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("secret_key");
|
||||
|
||||
b.Property<string>("ServerType")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("server_type");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("updated_at")
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
|
||||
.HasComment("수정 시간");
|
||||
|
||||
b.HasKey("PlanetId");
|
||||
|
||||
b.HasIndex("CompanyName");
|
||||
|
||||
b.HasIndex("PlanetName");
|
||||
|
||||
b.HasIndex("SecretKey");
|
||||
|
||||
b.ToTable("planet_info", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_id")
|
||||
.HasColumnOrder(1)
|
||||
.HasComment("교환 주문 아이디 (GUID)");
|
||||
|
||||
b.Property<string>("AccountId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("account_id")
|
||||
.HasColumnOrder(7)
|
||||
.HasComment("SSO 아이디");
|
||||
|
||||
b.Property<int>("CaliverseItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("caliverse_item_quantity")
|
||||
.HasColumnOrder(12)
|
||||
.HasComment("칼리버스 아이템 갯수");
|
||||
|
||||
b.Property<string>("CaliverseItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_id")
|
||||
.HasColumnOrder(11)
|
||||
.HasComment("칼리버스 아이템 아이디");
|
||||
|
||||
b.Property<string>("CaliverseItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("caliverse_item_type")
|
||||
.HasColumnOrder(10)
|
||||
.HasComment("칼리버스 아이템 타입");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("completed_at")
|
||||
.HasColumnOrder(17)
|
||||
.HasComment("교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasColumnOrder(16)
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP")
|
||||
.HasComment("교환 주문 시작 시간");
|
||||
|
||||
b.Property<int>("ExchangeMetaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("exchange_meta_amount")
|
||||
.HasColumnOrder(6)
|
||||
.HasComment("교환 메타 수량");
|
||||
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasColumnOrder(5)
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<string>("Nickname")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("nickname")
|
||||
.HasColumnOrder(9)
|
||||
.HasComment("유저 닉네임");
|
||||
|
||||
b.Property<string>("OrderStatus")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("order_status")
|
||||
.HasColumnOrder(2)
|
||||
.HasComment("교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasColumnOrder(3)
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<int>("PlanetItemDeltaAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("planet_item_quantity")
|
||||
.HasColumnOrder(15)
|
||||
.HasComment("플래닛 아이템 갯수");
|
||||
|
||||
b.Property<string>("PlanetItemId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_id")
|
||||
.HasColumnOrder(14)
|
||||
.HasComment("플래닛 아이템 아이디");
|
||||
|
||||
b.Property<string>("PlanetItemType")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_item_type")
|
||||
.HasColumnOrder(13)
|
||||
.HasComment("플래닛 아이템 타입");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasColumnOrder(4)
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasColumnOrder(8)
|
||||
.HasComment("유저 아이디 (GUID)");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("planet_item_exchange_order", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrderAmountTotalLimit", b =>
|
||||
{
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<DateOnly>("ExchangeDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("exchange_date")
|
||||
.HasComment("교환 일자");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("생성 일자");
|
||||
|
||||
b.Property<int>("DailyAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("daily_amount")
|
||||
.HasComment("일일 교환 메타 수량 합계");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("updated_at")
|
||||
.HasComment("업데이트 일자");
|
||||
|
||||
b.HasKey("ExchangeMetaId", "ExchangeDate", "SeasonId");
|
||||
|
||||
b.HasIndex("ExchangeDate");
|
||||
|
||||
b.HasIndex("ExchangeMetaId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.ToTable("planet_exchange_order_amount_total_limits", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrderAmountUserLimit", b =>
|
||||
{
|
||||
b.Property<string>("ExchangeMetaId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("exchange_meta_id")
|
||||
.HasComment("교환 메타 아이디");
|
||||
|
||||
b.Property<DateOnly>("ExchangeDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("exchange_date")
|
||||
.HasComment("교환 일자");
|
||||
|
||||
b.Property<string>("SeasonId")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("season_id")
|
||||
.HasComment("시즌 아이디");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디 (GUID)");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("생성 일자");
|
||||
|
||||
b.Property<int>("DailyAmount")
|
||||
.HasColumnType("INT")
|
||||
.HasColumnName("daily_amount")
|
||||
.HasComment("사용자별 일일 교환 메타 수량");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasColumnType("TIMESTAMP")
|
||||
.HasColumnName("updated_at")
|
||||
.HasComment("업데이트 일자");
|
||||
|
||||
b.HasKey("ExchangeMetaId", "ExchangeDate", "SeasonId", "UserGuid");
|
||||
|
||||
b.HasIndex("ExchangeDate");
|
||||
|
||||
b.HasIndex("ExchangeMetaId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("planet_exchange_order_amount_user_limits", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.SapphireExchangeOrder", b =>
|
||||
{
|
||||
b.Property<string>("OrderId")
|
||||
.HasColumnType("varchar(60)")
|
||||
.HasColumnName("order_id")
|
||||
.HasComment("사파이어 교환 주문 아이디 guid");
|
||||
|
||||
b.Property<ulong>("AccountId")
|
||||
.HasColumnType("bigint unsigned")
|
||||
.HasColumnName("account_id")
|
||||
.HasComment("sso 계정 아이디");
|
||||
|
||||
b.Property<DateTime?>("CompletedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("completed_at")
|
||||
.HasComment("사파이어 교환 주문 완료 시간");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("timestamp")
|
||||
.HasColumnName("created_at")
|
||||
.HasComment("사파이어 교환 주문 시작 시간");
|
||||
|
||||
b.Property<sbyte>("OrderStatus")
|
||||
.HasColumnType("tinyint")
|
||||
.HasColumnName("order_status")
|
||||
.HasComment("사파이어 교환 주문 상태");
|
||||
|
||||
b.Property<string>("PlanetId")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("planet_id")
|
||||
.HasComment("플래닛 아이디");
|
||||
|
||||
b.Property<decimal>("PlanetMoneyIncDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("planet_money_amount")
|
||||
.HasComment("플래닛에서 발급한 재화 수량");
|
||||
|
||||
b.Property<decimal>("SapphireReducedDelta")
|
||||
.HasColumnType("decimal(20, 0)")
|
||||
.HasColumnName("sapphire_reduced_amount")
|
||||
.HasComment("사파이어 차감 수량");
|
||||
|
||||
b.Property<string>("UserGuid")
|
||||
.IsRequired()
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("user_guid")
|
||||
.HasComment("유저 아이디");
|
||||
|
||||
b.HasKey("OrderId");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.HasIndex("OrderStatus");
|
||||
|
||||
b.HasIndex("PlanetId");
|
||||
|
||||
b.HasIndex("UserGuid");
|
||||
|
||||
b.ToTable("sapphire_exchange_order", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BrokerCore.DbEntity.PlanetItemExchangeOrder", b =>
|
||||
{
|
||||
b.HasOne("BrokerCore.DbEntity.PlanetInfo", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("PlanetId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK_PlanetExchangeOrder_PlanetInfo");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user