Story
This commit is contained in:
@@ -85,6 +85,281 @@ namespace SVSim.Database.Migrations
|
||||
b.ToTable("MyPageBackgroundEntryViewer");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SVSim.Database.Entities.Story.SpecialBattleSetting", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("BanishEffectOverride")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("ClassDestroyEffectOverride")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("EnemyAttachSkill")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("EnemyStartLife")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("EnemyStartPp")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("IdOverrideInBattleLog")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("Note")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("PlayerAttachSkill")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("PlayerFirstTurn")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("PlayerStartLife")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("PlayerStartPp")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("ResultSkip")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("SpecialTokenDrawEffectOverride")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("TokenDrawEffectOverride")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("VsEffectOverride")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("SpecialBattleSettings");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SVSim.Database.Entities.Story.StoryChapter", b =>
|
||||
{
|
||||
b.Property<int>("StoryId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("Battle3dFieldId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<bool>("BattleExists")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("BgFileName")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("BgmId")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("ChapterClearTextId")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("ChapterEffectPath")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("ChapterId")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("CharaId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("EnemyAiId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("EnemyCharaId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("EnemyClass")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("IsCameraMovable")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<bool>("IsMaintenanceChapter")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("IsPlayAnotherEndAppearanceAnimation")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("IsReleasedAnotherEnd")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("IsSkipEnabled")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("NextChapterId")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("ReleasePoint")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("RequiredChapterId")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("SectionId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("SelectionDisplayPosition")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("SelectionTextId")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("ShowCoordinate")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("ShowSubtitles")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("SpecialBattleSettingId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<decimal>("XCoordinate")
|
||||
.HasColumnType("numeric");
|
||||
|
||||
b.Property<decimal>("YCoordinate")
|
||||
.HasColumnType("numeric");
|
||||
|
||||
b.HasKey("StoryId");
|
||||
|
||||
b.HasIndex("NextChapterId");
|
||||
|
||||
b.HasIndex("SpecialBattleSettingId");
|
||||
|
||||
b.HasIndex("SectionId", "CharaId", "ChapterId");
|
||||
|
||||
b.ToTable("StoryChapters");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SVSim.Database.Entities.Story.StorySection", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("AllStoryOrderId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("BackGroundId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("ChapterSelectType")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("ImageName")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("IsLeaderSelect")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("IsPlayAnotherEndAppearanceAnimation")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("IsUnderMaintenance")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("NameTextKey")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("OrderId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("StoryApiType")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("StoryTypeOverwrite")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("WorldId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("WorldId");
|
||||
|
||||
b.ToTable("StorySections");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SVSim.Database.Entities.Story.StoryWorld", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("PanelImageName")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("RibbonText")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("TitleTextKey")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("StoryWorlds");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SVSim.Database.Entities.Story.ViewerStoryBranchUnlock", b =>
|
||||
{
|
||||
b.Property<long>("ViewerId")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<int>("StoryId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTime>("UnlockedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.HasKey("ViewerId", "StoryId");
|
||||
|
||||
b.ToTable("ViewerStoryBranchUnlocks");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SVSim.Database.Entities.Story.ViewerStoryProgress", b =>
|
||||
{
|
||||
b.Property<long>("ViewerId")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<int>("StoryId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTime?>("FinishedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<bool>("IsFinish")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("IsSkipped")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<DateTime?>("SkippedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.HasKey("ViewerId", "StoryId");
|
||||
|
||||
b.ToTable("ViewerStoryProgress");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SVSim.Database.Models.ArenaSeasonConfig", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -1562,6 +1837,134 @@ namespace SVSim.Database.Migrations
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SVSim.Database.Entities.Story.StoryChapter", b =>
|
||||
{
|
||||
b.HasOne("SVSim.Database.Entities.Story.StorySection", "Section")
|
||||
.WithMany()
|
||||
.HasForeignKey("SectionId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("SVSim.Database.Entities.Story.SpecialBattleSetting", "SpecialBattleSetting")
|
||||
.WithMany()
|
||||
.HasForeignKey("SpecialBattleSettingId");
|
||||
|
||||
b.OwnsMany("SVSim.Database.Entities.Story.StoryChapterBattleSetting", "BattleSettings", b1 =>
|
||||
{
|
||||
b1.Property<int>("StoryId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b1.Property<int>("Id"));
|
||||
|
||||
b1.Property<int>("Battle3dFieldIdOverride")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("BgmIdOverride")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("DeckClassId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("DeckSkinIdOverride")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("EnemyEmotionOverride")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("PlayerEmotionOverride")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("SkinIdOverride")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.HasKey("StoryId", "Id");
|
||||
|
||||
b1.ToTable("StoryChapterBattleSetting");
|
||||
|
||||
b1.WithOwner()
|
||||
.HasForeignKey("StoryId");
|
||||
});
|
||||
|
||||
b.OwnsMany("SVSim.Database.Entities.Story.StoryChapterReward", "Rewards", b1 =>
|
||||
{
|
||||
b1.Property<int>("StoryId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b1.Property<int>("Id"));
|
||||
|
||||
b1.Property<long>("RewardDetailId")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b1.Property<int>("RewardNumber")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("RewardType")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.HasKey("StoryId", "Id");
|
||||
|
||||
b1.ToTable("StoryChapterReward");
|
||||
|
||||
b1.WithOwner()
|
||||
.HasForeignKey("StoryId");
|
||||
});
|
||||
|
||||
b.OwnsMany("SVSim.Database.Entities.Story.StorySubChapter", "SubChapters", b1 =>
|
||||
{
|
||||
b1.Property<int>("StoryId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b1.Property<int>("Id"));
|
||||
|
||||
b1.Property<bool>("IsMaintenanceChapter")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b1.Property<int>("SubChapterId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<int>("SubChapterStoryId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.HasKey("StoryId", "Id");
|
||||
|
||||
b1.ToTable("StorySubChapter");
|
||||
|
||||
b1.WithOwner()
|
||||
.HasForeignKey("StoryId");
|
||||
});
|
||||
|
||||
b.Navigation("BattleSettings");
|
||||
|
||||
b.Navigation("Rewards");
|
||||
|
||||
b.Navigation("Section");
|
||||
|
||||
b.Navigation("SpecialBattleSetting");
|
||||
|
||||
b.Navigation("SubChapters");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SVSim.Database.Entities.Story.StorySection", b =>
|
||||
{
|
||||
b.HasOne("SVSim.Database.Entities.Story.StoryWorld", "World")
|
||||
.WithMany()
|
||||
.HasForeignKey("WorldId");
|
||||
|
||||
b.Navigation("World");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SVSim.Database.Models.CardCosmeticReward", b =>
|
||||
{
|
||||
b.HasOne("SVSim.Database.Models.ShadowverseCardEntry", "Card")
|
||||
|
||||
Reference in New Issue
Block a user