2012 lines
71 KiB
C#
2012 lines
71 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
using SVSim.Database;
|
|
|
|
#nullable disable
|
|
|
|
namespace SVSim.Database.Migrations
|
|
{
|
|
[DbContext(typeof(SVSimDbContext))]
|
|
[Migration("20260524224501_Initial")]
|
|
partial class Initial
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "8.0.8")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.HasSequence("ShortUdidSequence")
|
|
.StartsAt(400000000L);
|
|
|
|
modelBuilder.Entity("DegreeEntryViewer", b =>
|
|
{
|
|
b.Property<int>("DegreesId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<long>("ViewersId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("DegreesId", "ViewersId");
|
|
|
|
b.HasIndex("ViewersId");
|
|
|
|
b.ToTable("DegreeEntryViewer");
|
|
});
|
|
|
|
modelBuilder.Entity("EmblemEntryViewer", b =>
|
|
{
|
|
b.Property<int>("EmblemsId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<long>("ViewersId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("EmblemsId", "ViewersId");
|
|
|
|
b.HasIndex("ViewersId");
|
|
|
|
b.ToTable("EmblemEntryViewer");
|
|
});
|
|
|
|
modelBuilder.Entity("LeaderSkinEntryViewer", b =>
|
|
{
|
|
b.Property<int>("LeaderSkinsId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<long>("ViewersId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("LeaderSkinsId", "ViewersId");
|
|
|
|
b.HasIndex("ViewersId");
|
|
|
|
b.ToTable("LeaderSkinEntryViewer");
|
|
});
|
|
|
|
modelBuilder.Entity("MyPageBackgroundEntryViewer", b =>
|
|
{
|
|
b.Property<int>("MyPageBackgroundsId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<long>("ViewersId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("MyPageBackgroundsId", "ViewersId");
|
|
|
|
b.HasIndex("ViewersId");
|
|
|
|
b.ToTable("MyPageBackgroundEntryViewer");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.ArenaSeasonConfig", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<decimal>("Cost")
|
|
.HasColumnType("numeric(20,0)");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int>("Enable")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("FormatInfo")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<bool>("IsJoin")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<int>("Mode")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<decimal>("RupyCost")
|
|
.HasColumnType("numeric(20,0)");
|
|
|
|
b.Property<int>("TicketCost")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("ArenaSeasons");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.AvatarAbilityEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("Ability")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("AbilityCost")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("AbilityDesc")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("BattleStartFirstPlayerTurnBp")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("BattleStartMaxLife")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("BattleStartSecondPlayerTurnBp")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int>("LeaderSkinId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("PassiveAbility")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("PassiveAbilityDesc")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("AvatarAbilities");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.BannerEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("ChangeTime")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("Click")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("ImageName")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ImagePaths")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<int>("RemainingTime")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Banners");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.BattlePassLevelEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int>("Level")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("RewardData")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("BattlePassLevels");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.BattlefieldEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<bool>("IsOpen")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Battlefields");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.CardCosmeticReward", b =>
|
|
{
|
|
b.Property<long>("CardId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<long>("CosmeticId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("Quantity")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("CardId", "Type", "CosmeticId");
|
|
|
|
b.HasIndex("CardId");
|
|
|
|
b.ToTable("CardCosmeticRewards");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.ClassEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Classes");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.ClassExpEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int>("NecessaryExp")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("ClassExpCurve");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.ColosseumConfig", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("CardPoolName")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ColosseumId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ColosseumName")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("DeckFormat")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("EndTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int>("IsAllCardEnabled")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<bool>("IsColosseumPeriod")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("IsDisplayTips")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("IsNormalTwoPick")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("IsRoundPeriod")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("IsSpecialMode")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("NowRound")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("SalesPeriodInfo")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<DateTime>("StartTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("TipsId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Colosseums");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.DailyLoginBonusEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("BonusData")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<int>("BonusId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("DailyLoginBonuses");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.DefaultDeckEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("CardIdArray")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<int>("ClassId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("DeckName")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("DeckNo")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("LeaderSkinId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<long>("SleeveId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("DefaultDecks");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.DefaultLeaderSkinSettingEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("ClassId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int>("IsRandomLeaderSkin")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("LeaderSkinId")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("DefaultLeaderSkinSettings");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.DegreeEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Degrees");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.EmblemEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Emblems");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.FeatureMaintenanceEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("Data")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("FeatureKey")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("FeatureMaintenances");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.GameConfigSection", b =>
|
|
{
|
|
b.Property<string>("SectionName")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("ValueJson")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.HasKey("SectionName");
|
|
|
|
b.ToTable("GameConfigs");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.ItemEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Items");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.LeaderSkinEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int?>("ClassId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int>("EmoteId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClassId");
|
|
|
|
b.ToTable("LeaderSkins");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.LoadingExclusionCardEntry", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("CardId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("LoadingExclusionCards");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.MaintenanceCardEntry", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("CardId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("MaintenanceCards");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.MasterPointRankingPeriodEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("BeginTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime>("EndTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<long>("NecessaryScore")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("PeriodNum")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("MasterPointRankingPeriods");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.MyPageBackgroundEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("MyPageBackgrounds");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.MyRotationAbilityEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("AbilityId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("Data")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("MyRotationAbilities");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.MyRotationSettingEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("AbilitiesCsv")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("CardSetIdsCsv")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("ReprintedCardIds")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<string>("RestrictedCardIds")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<int>("RotationId")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("MyRotationSettings");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.PackConfigEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("BasePackId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("CommenceDate")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime>("CompleteDate")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("GachaDetail")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("GachaType")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<bool>("IsHide")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<bool>("IsNew")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<bool>("IsPreRelease")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<int>("OpenCountLimit")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("OverrideDrawEffectPackId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("OverrideUiEffectPackId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("PackCategory")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("PosterType")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime?>("SalesPeriodTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int>("SleeveId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("SpecialSleeveId")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Packs");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.PaymentItemEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("ChargeCrystalNum")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime>("EndTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int>("FreeCrystalNum")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("ImageName")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("IsResaleProduct")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<decimal>("Price")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<int>("ProductId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("PurchaseLimit")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("RemainingTime")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime?>("ResaleStartDate")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int>("SpecialShopFlag")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("StartTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<long>("StoreProductId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Text")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("PaymentItems");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.PracticeOpponentEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("AiDeckLevel")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("AiLogicLevel")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("AiMaxLife")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("Battle3dFieldId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("CharaId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("ClassId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int>("DegreeId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<bool>("IsCampaignPractice")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<bool>("IsMaintenance")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<int>("PracticeId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("TextId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("PracticeOpponents");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.PreReleaseInfo", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("CardMasterId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("DefaultCardMasterId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("DisplayEndTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime>("EndTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime>("FreeMatchStartTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<bool>("IsPreRotationFreeMatchTerm")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("LatestReprintedBaseCardIds")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<string>("NextCardSetId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("PreReleaseCardMasterId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("PreReleaseId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ReprintedBaseCardIds")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<string>("RotationCardSetIdList")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<DateTime>("StartTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("PreReleaseInfos");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.RankInfoEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("AccumulateMasterPoint")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("AccumulatePoint")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("BaseAddBp")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("BaseDropBp")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int>("IsPromotionWar")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<double>("LoseBonus")
|
|
.HasColumnType("double precision");
|
|
|
|
b.Property<int>("LowerLimitPoint")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("MatchCount")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("MaxLoseBonus")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("MaxWinBonus")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("NecessaryPoint")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("NecessaryWin")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("ResetLose")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("StreakBonusPt")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<double>("WinBonus")
|
|
.HasColumnType("double precision");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("RankInfo");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.ReprintedCardEntry", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("CardId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("ReprintedCards");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.SealedConfig", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("CrystalCost")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int>("DeckUsingNumMin")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("Enable")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<bool>("IsDeckCodeMaintenance")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<bool>("IsJoin")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("PackInfo")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<int>("RupyCost")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("SalesPeriodInfo")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<int>("ScheduleId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("TicketCost")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("SealedSeasons");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.ShadowverseCardEntry", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int?>("Attack")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int?>("ClassId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int?>("Defense")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<bool>("IsFoil")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int?>("PrimaryResourceCost")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("Rarity")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int?>("ShadowverseCardSetEntryId")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClassId");
|
|
|
|
b.HasIndex("ShadowverseCardSetEntryId");
|
|
|
|
b.ToTable("Cards");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.ShadowverseCardSetEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<bool>("IsBasic")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<bool>("IsInRotation")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("CardSets");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.ShadowverseDeckEntry", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<int>("ClassId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int>("Format")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("LeaderSkinId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("Number")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<bool>("RandomLeaderSkin")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<int>("SleeveId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<long?>("ViewerId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ClassId");
|
|
|
|
b.HasIndex("LeaderSkinId");
|
|
|
|
b.HasIndex("SleeveId");
|
|
|
|
b.HasIndex("ViewerId");
|
|
|
|
b.ToTable("Decks");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.SleeveEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Sleeves");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.SpecialDeckFormatEntry", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("DeckFormat")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("EndTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("SpecialDeckFormats");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.SpotCardEntry", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("CardId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("Cost")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("SpotCards");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.UnlimitedRestrictionEntry", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("CardId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int>("RestrictionValue")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("UnlimitedRestrictions");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.Viewer", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DateUpdated")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("DisplayName")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("LastLogin")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<long>("ShortUdid")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint")
|
|
.HasDefaultValueSql("nextval('\"ShortUdidSequence\"')");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseSequence(b.Property<long>("ShortUdid"), "ShortUdidSequence");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ShortUdid");
|
|
|
|
b.ToTable("Viewers");
|
|
});
|
|
|
|
modelBuilder.Entity("SleeveEntryViewer", b =>
|
|
{
|
|
b.Property<int>("SleevesId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<long>("ViewersId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("SleevesId", "ViewersId");
|
|
|
|
b.HasIndex("ViewersId");
|
|
|
|
b.ToTable("SleeveEntryViewer");
|
|
});
|
|
|
|
modelBuilder.Entity("DegreeEntryViewer", b =>
|
|
{
|
|
b.HasOne("SVSim.Database.Models.DegreeEntry", null)
|
|
.WithMany()
|
|
.HasForeignKey("DegreesId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("SVSim.Database.Models.Viewer", null)
|
|
.WithMany()
|
|
.HasForeignKey("ViewersId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("EmblemEntryViewer", b =>
|
|
{
|
|
b.HasOne("SVSim.Database.Models.EmblemEntry", null)
|
|
.WithMany()
|
|
.HasForeignKey("EmblemsId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("SVSim.Database.Models.Viewer", null)
|
|
.WithMany()
|
|
.HasForeignKey("ViewersId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("LeaderSkinEntryViewer", b =>
|
|
{
|
|
b.HasOne("SVSim.Database.Models.LeaderSkinEntry", null)
|
|
.WithMany()
|
|
.HasForeignKey("LeaderSkinsId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("SVSim.Database.Models.Viewer", null)
|
|
.WithMany()
|
|
.HasForeignKey("ViewersId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("MyPageBackgroundEntryViewer", b =>
|
|
{
|
|
b.HasOne("SVSim.Database.Models.MyPageBackgroundEntry", null)
|
|
.WithMany()
|
|
.HasForeignKey("MyPageBackgroundsId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("SVSim.Database.Models.Viewer", null)
|
|
.WithMany()
|
|
.HasForeignKey("ViewersId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.CardCosmeticReward", b =>
|
|
{
|
|
b.HasOne("SVSim.Database.Models.ShadowverseCardEntry", "Card")
|
|
.WithMany()
|
|
.HasForeignKey("CardId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Card");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.LeaderSkinEntry", b =>
|
|
{
|
|
b.HasOne("SVSim.Database.Models.ClassEntry", "Class")
|
|
.WithMany("LeaderSkins")
|
|
.HasForeignKey("ClassId");
|
|
|
|
b.Navigation("Class");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.PackConfigEntry", b =>
|
|
{
|
|
b.OwnsMany("SVSim.Database.Models.PackBannerEntry", "Banners", b1 =>
|
|
{
|
|
b1.Property<int>("PackConfigEntryId")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b1.Property<int>("Id"));
|
|
|
|
b1.Property<string>("BannerName")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b1.Property<string>("DialogTitle")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b1.HasKey("PackConfigEntryId", "Id");
|
|
|
|
b1.ToTable("PackBannerEntry");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PackConfigEntryId");
|
|
});
|
|
|
|
b.OwnsMany("SVSim.Database.Models.PackChildGachaEntry", "ChildGachas", b1 =>
|
|
{
|
|
b1.Property<int>("PackConfigEntryId")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b1.Property<int>("Id"));
|
|
|
|
b1.Property<string>("CampaignName")
|
|
.HasColumnType("text");
|
|
|
|
b1.Property<int>("CardCount")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<int>("Cost")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<int?>("FreeGachaCampaignId")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<int>("GachaId")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<bool>("IsDailySingle")
|
|
.HasColumnType("boolean");
|
|
|
|
b1.Property<long?>("ItemId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.Property<int>("OverrideIncreaseGachaPoint")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<int>("PurchaseLimitCount")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<int>("TypeDetail")
|
|
.HasColumnType("integer");
|
|
|
|
b1.HasKey("PackConfigEntryId", "Id");
|
|
|
|
b1.ToTable("PackChildGachaEntry");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PackConfigEntryId");
|
|
});
|
|
|
|
b.OwnsOne("SVSim.Database.Models.PackGachaPointConfig", "GachaPointConfig", b1 =>
|
|
{
|
|
b1.Property<int>("PackConfigEntryId")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<int>("ExchangeablePoint")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<int>("IncreaseGachaPoint")
|
|
.HasColumnType("integer");
|
|
|
|
b1.HasKey("PackConfigEntryId");
|
|
|
|
b1.ToTable("Packs");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("PackConfigEntryId");
|
|
});
|
|
|
|
b.Navigation("Banners");
|
|
|
|
b.Navigation("ChildGachas");
|
|
|
|
b.Navigation("GachaPointConfig");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.ShadowverseCardEntry", b =>
|
|
{
|
|
b.HasOne("SVSim.Database.Models.ClassEntry", "Class")
|
|
.WithMany()
|
|
.HasForeignKey("ClassId");
|
|
|
|
b.HasOne("SVSim.Database.Models.ShadowverseCardSetEntry", null)
|
|
.WithMany("Cards")
|
|
.HasForeignKey("ShadowverseCardSetEntryId");
|
|
|
|
b.OwnsOne("SVSim.Database.Models.CardCollectionInfo", "CollectionInfo", b1 =>
|
|
{
|
|
b1.Property<long>("ShadowverseCardEntryId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.Property<int>("CraftCost")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<int>("DustReward")
|
|
.HasColumnType("integer");
|
|
|
|
b1.HasKey("ShadowverseCardEntryId");
|
|
|
|
b1.ToTable("Cards");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ShadowverseCardEntryId");
|
|
});
|
|
|
|
b.Navigation("Class");
|
|
|
|
b.Navigation("CollectionInfo");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.ShadowverseDeckEntry", b =>
|
|
{
|
|
b.HasOne("SVSim.Database.Models.ClassEntry", "Class")
|
|
.WithMany()
|
|
.HasForeignKey("ClassId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("SVSim.Database.Models.LeaderSkinEntry", "LeaderSkin")
|
|
.WithMany()
|
|
.HasForeignKey("LeaderSkinId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("SVSim.Database.Models.SleeveEntry", "Sleeve")
|
|
.WithMany()
|
|
.HasForeignKey("SleeveId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("SVSim.Database.Models.Viewer", null)
|
|
.WithMany("Decks")
|
|
.HasForeignKey("ViewerId");
|
|
|
|
b.OwnsMany("SVSim.Database.Models.DeckCard", "Cards", b1 =>
|
|
{
|
|
b1.Property<Guid>("ShadowverseDeckEntryId")
|
|
.HasColumnType("uuid");
|
|
|
|
b1.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b1.Property<int>("Id"));
|
|
|
|
b1.Property<long>("CardId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.Property<int>("Count")
|
|
.HasColumnType("integer");
|
|
|
|
b1.HasKey("ShadowverseDeckEntryId", "Id");
|
|
|
|
b1.HasIndex("CardId");
|
|
|
|
b1.ToTable("DeckCard");
|
|
|
|
b1.HasOne("SVSim.Database.Models.ShadowverseCardEntry", "Card")
|
|
.WithMany()
|
|
.HasForeignKey("CardId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ShadowverseDeckEntryId");
|
|
|
|
b1.Navigation("Card");
|
|
});
|
|
|
|
b.Navigation("Cards");
|
|
|
|
b.Navigation("Class");
|
|
|
|
b.Navigation("LeaderSkin");
|
|
|
|
b.Navigation("Sleeve");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.Viewer", b =>
|
|
{
|
|
b.OwnsMany("SVSim.Database.Models.OwnedCardEntry", "Cards", b1 =>
|
|
{
|
|
b1.Property<long>("ViewerId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b1.Property<int>("Id"));
|
|
|
|
b1.Property<long>("CardId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.Property<int>("Count")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<bool>("IsProtected")
|
|
.HasColumnType("boolean");
|
|
|
|
b1.HasKey("ViewerId", "Id");
|
|
|
|
b1.HasIndex("CardId");
|
|
|
|
b1.ToTable("OwnedCardEntry");
|
|
|
|
b1.HasOne("SVSim.Database.Models.ShadowverseCardEntry", "Card")
|
|
.WithMany()
|
|
.HasForeignKey("CardId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ViewerId");
|
|
|
|
b1.Navigation("Card");
|
|
});
|
|
|
|
b.OwnsMany("SVSim.Database.Models.OwnedItemEntry", "Items", b1 =>
|
|
{
|
|
b1.Property<long>("ViewerId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b1.Property<int>("Id"));
|
|
|
|
b1.Property<int>("Count")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<int>("ItemId")
|
|
.HasColumnType("integer");
|
|
|
|
b1.HasKey("ViewerId", "Id");
|
|
|
|
b1.HasIndex("ItemId");
|
|
|
|
b1.ToTable("OwnedItemEntry");
|
|
|
|
b1.HasOne("SVSim.Database.Models.ItemEntry", "Item")
|
|
.WithMany()
|
|
.HasForeignKey("ItemId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b1.WithOwner("Viewer")
|
|
.HasForeignKey("ViewerId");
|
|
|
|
b1.Navigation("Item");
|
|
|
|
b1.Navigation("Viewer");
|
|
});
|
|
|
|
b.OwnsMany("SVSim.Database.Models.SocialAccountConnection", "SocialAccountConnections", b1 =>
|
|
{
|
|
b1.Property<long>("ViewerId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b1.Property<int>("Id"));
|
|
|
|
b1.Property<decimal>("AccountId")
|
|
.HasColumnType("numeric(20,0)");
|
|
|
|
b1.Property<int>("AccountType")
|
|
.HasColumnType("integer");
|
|
|
|
b1.HasKey("ViewerId", "Id");
|
|
|
|
b1.ToTable("SocialAccountConnection");
|
|
|
|
b1.WithOwner("Viewer")
|
|
.HasForeignKey("ViewerId");
|
|
|
|
b1.Navigation("Viewer");
|
|
});
|
|
|
|
b.OwnsMany("SVSim.Database.Models.ViewerClassData", "Classes", b1 =>
|
|
{
|
|
b1.Property<long>("ViewerId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b1.Property<int>("Id"));
|
|
|
|
b1.Property<int>("ClassId")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<int>("Exp")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<int>("LeaderSkinId")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<int>("Level")
|
|
.HasColumnType("integer");
|
|
|
|
b1.HasKey("ViewerId", "Id");
|
|
|
|
b1.HasIndex("ClassId");
|
|
|
|
b1.HasIndex("LeaderSkinId");
|
|
|
|
b1.ToTable("ViewerClassData");
|
|
|
|
b1.HasOne("SVSim.Database.Models.ClassEntry", "Class")
|
|
.WithMany()
|
|
.HasForeignKey("ClassId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b1.HasOne("SVSim.Database.Models.LeaderSkinEntry", "LeaderSkin")
|
|
.WithMany()
|
|
.HasForeignKey("LeaderSkinId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b1.WithOwner("Viewer")
|
|
.HasForeignKey("ViewerId");
|
|
|
|
b1.Navigation("Class");
|
|
|
|
b1.Navigation("LeaderSkin");
|
|
|
|
b1.Navigation("Viewer");
|
|
});
|
|
|
|
b.OwnsOne("SVSim.Database.Models.ViewerCurrency", "Currency", b1 =>
|
|
{
|
|
b1.Property<long>("ViewerId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.Property<decimal>("AndroidCrystals")
|
|
.HasColumnType("numeric(20,0)");
|
|
|
|
b1.Property<decimal>("Crystals")
|
|
.HasColumnType("numeric(20,0)");
|
|
|
|
b1.Property<decimal>("DmmCrystals")
|
|
.HasColumnType("numeric(20,0)");
|
|
|
|
b1.Property<decimal>("FreeCrystals")
|
|
.HasColumnType("numeric(20,0)");
|
|
|
|
b1.Property<decimal>("IosCrystals")
|
|
.HasColumnType("numeric(20,0)");
|
|
|
|
b1.Property<decimal>("LifeTotalCrystals")
|
|
.HasColumnType("numeric(20,0)");
|
|
|
|
b1.Property<decimal>("RedEther")
|
|
.HasColumnType("numeric(20,0)");
|
|
|
|
b1.Property<decimal>("Rupees")
|
|
.HasColumnType("numeric(20,0)");
|
|
|
|
b1.Property<decimal>("SteamCrystals")
|
|
.HasColumnType("numeric(20,0)");
|
|
|
|
b1.HasKey("ViewerId");
|
|
|
|
b1.ToTable("Viewers");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ViewerId");
|
|
});
|
|
|
|
b.OwnsOne("SVSim.Database.Models.ViewerInfo", "Info", b1 =>
|
|
{
|
|
b1.Property<long>("ViewerId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.Property<DateTime>("BirthDate")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b1.Property<string>("CountryCode")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b1.Property<bool>("IsOfficial")
|
|
.HasColumnType("boolean");
|
|
|
|
b1.Property<bool>("IsOfficialMarkDisplayed")
|
|
.HasColumnType("boolean");
|
|
|
|
b1.Property<int>("MaxFriends")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<int>("SelectedDegreeId")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<int>("SelectedEmblemId")
|
|
.HasColumnType("integer");
|
|
|
|
b1.HasKey("ViewerId");
|
|
|
|
b1.HasIndex("SelectedDegreeId");
|
|
|
|
b1.HasIndex("SelectedEmblemId");
|
|
|
|
b1.ToTable("Viewers");
|
|
|
|
b1.HasOne("SVSim.Database.Models.DegreeEntry", "SelectedDegree")
|
|
.WithMany()
|
|
.HasForeignKey("SelectedDegreeId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b1.HasOne("SVSim.Database.Models.EmblemEntry", "SelectedEmblem")
|
|
.WithMany()
|
|
.HasForeignKey("SelectedEmblemId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ViewerId");
|
|
|
|
b1.Navigation("SelectedDegree");
|
|
|
|
b1.Navigation("SelectedEmblem");
|
|
});
|
|
|
|
b.OwnsOne("SVSim.Database.Models.ViewerMissionData", "MissionData", b1 =>
|
|
{
|
|
b1.Property<long>("ViewerId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.Property<bool>("HasReceivedPickTwoMission")
|
|
.HasColumnType("boolean");
|
|
|
|
b1.Property<DateTime>("MissionChangeTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b1.Property<int>("MissionReceiveType")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<int>("TutorialState")
|
|
.HasColumnType("integer");
|
|
|
|
b1.HasKey("ViewerId");
|
|
|
|
b1.ToTable("Viewers");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ViewerId");
|
|
});
|
|
|
|
b.OwnsMany("SVSim.Database.Models.ViewerPackOpenCount", "PackOpenCounts", b1 =>
|
|
{
|
|
b1.Property<long>("ViewerId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b1.Property<int>("Id"));
|
|
|
|
b1.Property<DateTime?>("LastDailyFreeAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b1.Property<int>("OpenCount")
|
|
.HasColumnType("integer");
|
|
|
|
b1.Property<int>("PackId")
|
|
.HasColumnType("integer");
|
|
|
|
b1.HasKey("ViewerId", "Id");
|
|
|
|
b1.ToTable("ViewerPackOpenCount");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ViewerId");
|
|
});
|
|
|
|
b.Navigation("Cards");
|
|
|
|
b.Navigation("Classes");
|
|
|
|
b.Navigation("Currency")
|
|
.IsRequired();
|
|
|
|
b.Navigation("Info")
|
|
.IsRequired();
|
|
|
|
b.Navigation("Items");
|
|
|
|
b.Navigation("MissionData")
|
|
.IsRequired();
|
|
|
|
b.Navigation("PackOpenCounts");
|
|
|
|
b.Navigation("SocialAccountConnections");
|
|
});
|
|
|
|
modelBuilder.Entity("SleeveEntryViewer", b =>
|
|
{
|
|
b.HasOne("SVSim.Database.Models.SleeveEntry", null)
|
|
.WithMany()
|
|
.HasForeignKey("SleevesId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("SVSim.Database.Models.Viewer", null)
|
|
.WithMany()
|
|
.HasForeignKey("ViewersId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.ClassEntry", b =>
|
|
{
|
|
b.Navigation("LeaderSkins");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.ShadowverseCardSetEntry", b =>
|
|
{
|
|
b.Navigation("Cards");
|
|
});
|
|
|
|
modelBuilder.Entity("SVSim.Database.Models.Viewer", b =>
|
|
{
|
|
b.Navigation("Decks");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|