1
0
mirror of synced 2024-12-24 12:24:52 +01:00
TaikoLocalServer/GameDatabase/Migrations/TaikoDbContextModelSnapshot.cs

537 lines
18 KiB
C#
Raw Normal View History

2022-08-25 09:36:23 +02:00
// <auto-generated />
using System;
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", "8.0.0-rc.2.23480.1");
2022-08-25 09:36:23 +02:00
modelBuilder.Entity("GameDatabase.Entities.AiScoreDatum", b =>
2022-09-17 20:06:11 +02:00
{
2024-03-09 18:18:43 +01:00
b.Property<uint>("Baid")
2022-09-17 20:06:11 +02:00
.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");
2024-03-16 10:46:06 +01:00
b.ToTable("AiScoreData");
2022-09-17 20:06:11 +02:00
});
modelBuilder.Entity("GameDatabase.Entities.AiSectionScoreDatum", b =>
2022-09-17 20:06:11 +02:00
{
2024-03-09 18:18:43 +01:00
b.Property<uint>("Baid")
2022-09-17 20:06:11 +02:00
.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");
2024-03-16 10:46:06 +01:00
b.ToTable("AiSectionScoreData");
2022-09-17 20:06:11 +02:00
});
modelBuilder.Entity("GameDatabase.Entities.Card", b =>
2022-08-25 09:36:23 +02:00
{
b.Property<string>("AccessCode")
.HasColumnType("TEXT");
2024-03-09 18:18:43 +01:00
b.Property<uint>("Baid")
2022-08-25 09:36:23 +02:00
.HasColumnType("INTEGER");
b.HasKey("AccessCode");
b.HasIndex("Baid");
b.ToTable("Card", (string)null);
});
modelBuilder.Entity("GameDatabase.Entities.Credential", b =>
{
2024-03-09 18:18:43 +01:00
b.Property<uint>("Baid")
.HasColumnType("INTEGER");
2023-10-16 11:38:27 +02:00
b.Property<string>("Password")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("Salt")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Baid");
2022-08-25 09:36:23 +02:00
b.ToTable("Credential", (string)null);
2022-08-25 09:36:23 +02:00
});
modelBuilder.Entity("GameDatabase.Entities.DanScoreDatum", b =>
2022-08-28 12:41:37 +02:00
{
2024-03-09 18:18:43 +01:00
b.Property<uint>("Baid")
2022-08-28 12:41:37 +02:00
.HasColumnType("INTEGER");
b.Property<uint>("DanId")
.HasColumnType("INTEGER");
2023-10-17 12:57:56 +02:00
b.Property<int>("DanType")
.ValueGeneratedOnAdd()
2023-10-17 12:57:56 +02:00
.HasColumnType("INTEGER")
.HasDefaultValue(1);
2022-08-28 12:41:37 +02:00
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");
2023-10-17 12:57:56 +02:00
b.HasKey("Baid", "DanId", "DanType");
2022-08-28 12:41:37 +02:00
2024-03-16 10:46:06 +01:00
b.ToTable("DanScoreData");
2022-08-28 12:41:37 +02:00
});
modelBuilder.Entity("GameDatabase.Entities.DanStageScoreDatum", b =>
2022-08-28 12:41:37 +02:00
{
2024-03-09 18:18:43 +01:00
b.Property<uint>("Baid")
2022-08-28 12:41:37 +02:00
.HasColumnType("INTEGER");
b.Property<uint>("DanId")
.HasColumnType("INTEGER");
2023-10-17 12:57:56 +02:00
b.Property<int>("DanType")
.ValueGeneratedOnAdd()
2023-10-17 12:57:56 +02:00
.HasColumnType("INTEGER")
.HasDefaultValue(1);
2022-08-28 12:41:37 +02:00
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");
2023-10-17 12:57:56 +02:00
b.HasKey("Baid", "DanId", "DanType", "SongNumber");
2022-08-28 12:41:37 +02:00
2024-03-16 10:46:06 +01:00
b.ToTable("DanStageScoreData");
2022-08-28 12:41:37 +02:00
});
modelBuilder.Entity("GameDatabase.Entities.SongBestDatum", b =>
2022-08-25 09:36:23 +02:00
{
2024-03-09 18:18:43 +01:00
b.Property<uint>("Baid")
2022-08-25 09:36:23 +02:00
.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");
2024-03-16 10:46:06 +01:00
b.ToTable("SongBestData");
2022-08-25 09:36:23 +02:00
});
modelBuilder.Entity("GameDatabase.Entities.SongPlayDatum", b =>
2022-08-25 09:36:23 +02:00
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2024-03-09 18:18:43 +01:00
b.Property<uint>("Baid")
2022-08-25 09:36:23 +02:00
.HasColumnType("INTEGER");
b.Property<uint>("ComboCount")
.HasColumnType("INTEGER");
b.Property<uint>("Crown")
.HasColumnType("INTEGER");
b.Property<uint>("Difficulty")
.HasColumnType("INTEGER");
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");
2024-03-16 10:46:06 +01:00
b.ToTable("SongPlayData");
2022-08-25 09:36:23 +02:00
});
2024-03-09 18:18:43 +01:00
modelBuilder.Entity("GameDatabase.Entities.Token", b =>
{
b.Property<uint>("Baid")
.HasColumnType("INTEGER");
b.Property<int>("Id")
.HasColumnType("INTEGER");
b.Property<int>("Count")
.HasColumnType("INTEGER");
b.HasKey("Baid", "Id");
2024-03-16 10:46:06 +01:00
b.ToTable("Tokens");
2024-03-09 18:18:43 +01:00
});
modelBuilder.Entity("GameDatabase.Entities.UserDatum", b =>
2022-08-25 09:36:23 +02:00
{
2024-03-09 18:18:43 +01:00
b.Property<uint>("Baid")
.ValueGeneratedOnAdd()
2022-08-25 09:36:23 +02:00
.HasColumnType("INTEGER");
b.Property<uint>("AchievementDisplayDifficulty")
.HasColumnType("INTEGER");
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");
b.Property<string>("DifficultyPlayedArray")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("DifficultySettingArray")
.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>("IsAdmin")
.HasColumnType("INTEGER");
2022-08-25 09:36:23 +02:00
b.Property<bool>("IsSkipOn")
.HasColumnType("INTEGER");
b.Property<bool>("IsVoiceOn")
.HasColumnType("INTEGER");
b.Property<DateTime>("LastPlayDatetime")
.HasColumnType("datetime");
b.Property<uint>("LastPlayMode")
2022-08-25 09:36:23 +02:00
.HasColumnType("INTEGER");
b.Property<string>("MyDonName")
.IsRequired()
.HasColumnType("TEXT");
2023-09-18 12:12:43 +02:00
b.Property<uint>("MyDonNameLanguage")
.HasColumnType("INTEGER");
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");
2024-03-16 10:46:06 +01:00
b.Property<string>("UnlockedBody")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("UnlockedFace")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("UnlockedHead")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("UnlockedKigurumi")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("UnlockedPuchi")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("UnlockedSongIdList")
.IsRequired()
.HasColumnType("TEXT");
2022-08-25 09:36:23 +02:00
b.HasKey("Baid");
2024-03-16 10:46:06 +01:00
b.ToTable("UserData");
2022-08-25 09:36:23 +02:00
});
modelBuilder.Entity("GameDatabase.Entities.AiScoreDatum", b =>
2022-09-17 20:06:11 +02:00
{
b.HasOne("GameDatabase.Entities.UserDatum", "Ba")
2022-09-17 20:06:11 +02:00
.WithMany()
.HasForeignKey("Baid")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Ba");
});
modelBuilder.Entity("GameDatabase.Entities.AiSectionScoreDatum", b =>
2022-09-17 20:06:11 +02:00
{
b.HasOne("GameDatabase.Entities.AiScoreDatum", "Parent")
2022-09-17 20:06:11 +02:00
.WithMany("AiSectionScoreData")
.HasForeignKey("Baid", "SongId", "Difficulty")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Parent");
});
modelBuilder.Entity("GameDatabase.Entities.Card", b =>
{
b.HasOne("GameDatabase.Entities.UserDatum", "Ba")
.WithMany()
.HasForeignKey("Baid")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Ba");
});
modelBuilder.Entity("GameDatabase.Entities.Credential", b =>
{
b.HasOne("GameDatabase.Entities.UserDatum", "Ba")
.WithMany()
.HasForeignKey("Baid")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Ba");
});
modelBuilder.Entity("GameDatabase.Entities.DanScoreDatum", b =>
2022-08-28 12:41:37 +02:00
{
b.HasOne("GameDatabase.Entities.UserDatum", "Ba")
2022-08-28 12:41:37 +02:00
.WithMany()
.HasForeignKey("Baid")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Ba");
});
modelBuilder.Entity("GameDatabase.Entities.DanStageScoreDatum", b =>
2022-08-28 12:41:37 +02:00
{
b.HasOne("GameDatabase.Entities.DanScoreDatum", "Parent")
2022-08-29 15:03:49 +02:00
.WithMany("DanStageScoreData")
2023-10-17 12:57:56 +02:00
.HasForeignKey("Baid", "DanId", "DanType")
2022-08-28 12:41:37 +02:00
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Parent");
});
modelBuilder.Entity("GameDatabase.Entities.SongBestDatum", b =>
2022-08-25 09:36:23 +02:00
{
b.HasOne("GameDatabase.Entities.UserDatum", "Ba")
2022-08-25 09:36:23 +02:00
.WithMany()
.HasForeignKey("Baid")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Ba");
});
modelBuilder.Entity("GameDatabase.Entities.SongPlayDatum", b =>
2022-08-25 09:36:23 +02:00
{
b.HasOne("GameDatabase.Entities.UserDatum", "Ba")
2022-08-25 09:36:23 +02:00
.WithMany()
.HasForeignKey("Baid")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Ba");
});
2022-08-28 12:41:37 +02:00
2024-03-09 18:18:43 +01:00
modelBuilder.Entity("GameDatabase.Entities.Token", b =>
{
b.HasOne("GameDatabase.Entities.UserDatum", "Datum")
.WithMany("Tokens")
.HasForeignKey("Baid")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Datum");
});
modelBuilder.Entity("GameDatabase.Entities.AiScoreDatum", b =>
2022-09-17 20:06:11 +02:00
{
b.Navigation("AiSectionScoreData");
});
modelBuilder.Entity("GameDatabase.Entities.DanScoreDatum", b =>
2022-08-28 12:41:37 +02:00
{
b.Navigation("DanStageScoreData");
});
2024-03-09 18:18:43 +01:00
modelBuilder.Entity("GameDatabase.Entities.UserDatum", b =>
{
b.Navigation("Tokens");
});
2022-08-25 09:36:23 +02:00
#pragma warning restore 612, 618
}
}
}