2022-08-25 09:36:23 +02:00
|
|
|
|
// <auto-generated />
|
|
|
|
|
using System;
|
2022-10-26 18:42:11 +02:00
|
|
|
|
using GameDatabase.Context;
|
2022-08-25 09:36:23 +02:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
|
|
namespace TaikoLocalServer.Migrations
|
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(TaikoDbContext))]
|
|
|
|
|
partial class TaikoDbContextModelSnapshot : ModelSnapshot
|
|
|
|
|
{
|
|
|
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
|
modelBuilder.HasAnnotation("ProductVersion", "7.0.0-preview.7.22376.2");
|
|
|
|
|
|
2022-09-17 20:06:11 +02:00
|
|
|
|
modelBuilder.Entity("TaikoLocalServer.Entities.AiScoreDatum", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<uint>("Baid")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("SongId")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("Difficulty")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsWin")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Baid", "SongId", "Difficulty");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AiScoreData");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("TaikoLocalServer.Entities.AiSectionScoreDatum", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<uint>("Baid")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("SongId")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("Difficulty")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("SectionIndex")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Crown")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("DrumrollCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("GoodCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsWin")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("MissCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("OkCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("Score")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Baid", "SongId", "Difficulty", "SectionIndex");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AiSectionScoreData");
|
|
|
|
|
});
|
|
|
|
|
|
2022-08-25 09:36:23 +02:00
|
|
|
|
modelBuilder.Entity("TaikoLocalServer.Entities.Card", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<string>("AccessCode")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("Baid")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.HasKey("AccessCode");
|
|
|
|
|
|
|
|
|
|
b.HasIndex(new[] { "Baid" }, "IX_Card_Baid")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("Card", (string)null);
|
|
|
|
|
});
|
|
|
|
|
|
2022-08-28 12:41:37 +02:00
|
|
|
|
modelBuilder.Entity("TaikoLocalServer.Entities.DanScoreDatum", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<uint>("Baid")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("DanId")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("ArrivalSongCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
2022-08-29 14:46:28 +02:00
|
|
|
|
b.Property<uint>("ClearState")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("INTEGER")
|
|
|
|
|
.HasDefaultValue(0u);
|
|
|
|
|
|
2022-08-28 12:41:37 +02:00
|
|
|
|
b.Property<uint>("ComboCountTotal")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("SoulGaugeTotal")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Baid", "DanId");
|
|
|
|
|
|
2022-09-14 09:15:23 +02:00
|
|
|
|
b.ToTable("DanScoreData");
|
2022-08-28 12:41:37 +02:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("TaikoLocalServer.Entities.DanStageScoreDatum", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<uint>("Baid")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("DanId")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("SongNumber")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("BadCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("ComboCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("DrumrollCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("GoodCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("HighScore")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("OkCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("PlayScore")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("TotalHitCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Baid", "DanId", "SongNumber");
|
|
|
|
|
|
2022-09-14 09:15:23 +02:00
|
|
|
|
b.ToTable("DanStageScoreData");
|
2022-08-28 12:41:37 +02:00
|
|
|
|
});
|
|
|
|
|
|
2022-08-25 09:36:23 +02:00
|
|
|
|
modelBuilder.Entity("TaikoLocalServer.Entities.SongBestDatum", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<uint>("Baid")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("SongId")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("Difficulty")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("BestCrown")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("BestRate")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("BestScore")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("BestScoreRank")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Baid", "SongId", "Difficulty");
|
|
|
|
|
|
2022-09-14 09:15:23 +02:00
|
|
|
|
b.ToTable("SongBestData");
|
2022-08-25 09:36:23 +02:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("TaikoLocalServer.Entities.SongPlayDatum", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<long>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("Baid")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("ComboCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("Crown")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("Difficulty")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
2022-09-10 08:35:17 +02:00
|
|
|
|
b.Property<uint>("DrumrollCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
2022-08-25 09:36:23 +02:00
|
|
|
|
b.Property<uint>("GoodCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("HitCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("MissCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("OkCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("PlayTime")
|
|
|
|
|
.HasColumnType("datetime");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("Score")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("ScoreRank")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("ScoreRate")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Skipped")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("SongId")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
2022-08-27 18:39:21 +02:00
|
|
|
|
b.Property<uint>("SongNumber")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
2022-08-25 09:36:23 +02:00
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Baid");
|
|
|
|
|
|
2022-09-14 09:15:23 +02:00
|
|
|
|
b.ToTable("SongPlayData");
|
2022-08-25 09:36:23 +02:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("TaikoLocalServer.Entities.UserDatum", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<uint>("Baid")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("AchievementDisplayDifficulty")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
2022-09-19 04:32:52 +02:00
|
|
|
|
b.Property<int>("AiWinCount")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
2022-08-25 09:36:23 +02:00
|
|
|
|
b.Property<uint>("ColorBody")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("ColorFace")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("ColorLimb")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("CostumeData")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
2022-09-14 09:15:23 +02:00
|
|
|
|
b.Property<string>("CostumeFlgArray")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
2022-08-25 09:36:23 +02:00
|
|
|
|
b.Property<bool>("DisplayAchievement")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("DisplayDan")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("FavoriteSongsArray")
|
|
|
|
|
.IsRequired()
|
2022-09-16 14:29:31 +02:00
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("GenericInfoFlgArray")
|
|
|
|
|
.IsRequired()
|
2022-08-25 09:36:23 +02:00
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsSkipOn")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsVoiceOn")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("LastPlayDatetime")
|
|
|
|
|
.HasColumnType("datetime");
|
|
|
|
|
|
2022-09-05 15:28:15 +02:00
|
|
|
|
b.Property<uint>("LastPlayMode")
|
2022-08-25 09:36:23 +02:00
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("MyDonName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
2022-09-05 15:28:15 +02:00
|
|
|
|
b.Property<int>("NotesPosition")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<short>("OptionSetting")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<uint>("SelectedToneId")
|
2022-08-25 09:36:23 +02:00
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Title")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
2022-09-14 09:15:23 +02:00
|
|
|
|
b.Property<string>("TitleFlgArray")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
2022-08-25 09:36:23 +02:00
|
|
|
|
b.Property<uint>("TitlePlateId")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
2022-09-14 09:15:23 +02:00
|
|
|
|
b.Property<string>("ToneFlgArray")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
2022-08-25 09:36:23 +02:00
|
|
|
|
b.HasKey("Baid");
|
|
|
|
|
|
2022-09-14 09:15:23 +02:00
|
|
|
|
b.ToTable("UserData");
|
2022-08-25 09:36:23 +02:00
|
|
|
|
});
|
|
|
|
|
|
2022-09-17 20:06:11 +02:00
|
|
|
|
modelBuilder.Entity("TaikoLocalServer.Entities.AiScoreDatum", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("TaikoLocalServer.Entities.Card", "Ba")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("Baid")
|
|
|
|
|
.HasPrincipalKey("Baid")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Ba");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("TaikoLocalServer.Entities.AiSectionScoreDatum", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("TaikoLocalServer.Entities.AiScoreDatum", "Parent")
|
|
|
|
|
.WithMany("AiSectionScoreData")
|
|
|
|
|
.HasForeignKey("Baid", "SongId", "Difficulty")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Parent");
|
|
|
|
|
});
|
|
|
|
|
|
2022-08-28 12:41:37 +02:00
|
|
|
|
modelBuilder.Entity("TaikoLocalServer.Entities.DanScoreDatum", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("TaikoLocalServer.Entities.Card", "Ba")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("Baid")
|
|
|
|
|
.HasPrincipalKey("Baid")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Ba");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("TaikoLocalServer.Entities.DanStageScoreDatum", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("TaikoLocalServer.Entities.DanScoreDatum", "Parent")
|
2022-08-29 15:03:49 +02:00
|
|
|
|
.WithMany("DanStageScoreData")
|
2022-08-29 14:46:28 +02:00
|
|
|
|
.HasForeignKey("Baid", "DanId")
|
2022-08-28 12:41:37 +02:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Parent");
|
|
|
|
|
});
|
|
|
|
|
|
2022-08-25 09:36:23 +02:00
|
|
|
|
modelBuilder.Entity("TaikoLocalServer.Entities.SongBestDatum", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("TaikoLocalServer.Entities.Card", "Ba")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("Baid")
|
|
|
|
|
.HasPrincipalKey("Baid")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Ba");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("TaikoLocalServer.Entities.SongPlayDatum", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("TaikoLocalServer.Entities.Card", "Ba")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("Baid")
|
|
|
|
|
.HasPrincipalKey("Baid")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Ba");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("TaikoLocalServer.Entities.UserDatum", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("TaikoLocalServer.Entities.Card", "Ba")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("Baid")
|
|
|
|
|
.HasPrincipalKey("Baid")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Ba");
|
|
|
|
|
});
|
2022-08-28 12:41:37 +02:00
|
|
|
|
|
2022-09-17 20:06:11 +02:00
|
|
|
|
modelBuilder.Entity("TaikoLocalServer.Entities.AiScoreDatum", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("AiSectionScoreData");
|
|
|
|
|
});
|
|
|
|
|
|
2022-08-28 12:41:37 +02:00
|
|
|
|
modelBuilder.Entity("TaikoLocalServer.Entities.DanScoreDatum", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("DanStageScoreData");
|
|
|
|
|
});
|
2022-08-25 09:36:23 +02:00
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|