초기커밋
This commit is contained in:
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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user