// using System; using GameDatabase.Context; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace TaikoLocalServer.Migrations { [DbContext(typeof(TaikoDbContext))] [Migration("20220827163841_FirstMigration")] partial class FirstMigration { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "7.0.0-preview.7.22376.2"); modelBuilder.Entity("TaikoLocalServer.Entities.Card", b => { b.Property("AccessCode") .HasColumnType("TEXT"); b.Property("Baid") .HasColumnType("INTEGER"); b.HasKey("AccessCode"); b.HasIndex(new[] { "Baid" }, "IX_Card_Baid") .IsUnique(); b.ToTable("Card", (string)null); }); modelBuilder.Entity("TaikoLocalServer.Entities.SongBestDatum", b => { b.Property("Baid") .HasColumnType("INTEGER"); b.Property("SongId") .HasColumnType("INTEGER"); b.Property("Difficulty") .HasColumnType("INTEGER"); b.Property("BestCrown") .HasColumnType("INTEGER"); b.Property("BestRate") .HasColumnType("INTEGER"); b.Property("BestScore") .HasColumnType("INTEGER"); b.Property("BestScoreRank") .HasColumnType("INTEGER"); b.HasKey("Baid", "SongId", "Difficulty"); b.ToTable("SongBestData"); }); modelBuilder.Entity("TaikoLocalServer.Entities.SongPlayDatum", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Baid") .HasColumnType("INTEGER"); b.Property("ComboCount") .HasColumnType("INTEGER"); b.Property("Crown") .HasColumnType("INTEGER"); b.Property("Difficulty") .HasColumnType("INTEGER"); b.Property("GoodCount") .HasColumnType("INTEGER"); b.Property("HitCount") .HasColumnType("INTEGER"); b.Property("MissCount") .HasColumnType("INTEGER"); b.Property("OkCount") .HasColumnType("INTEGER"); b.Property("PlayTime") .HasColumnType("datetime"); b.Property("Score") .HasColumnType("INTEGER"); b.Property("ScoreRank") .HasColumnType("INTEGER"); b.Property("ScoreRate") .HasColumnType("INTEGER"); b.Property("Skipped") .HasColumnType("INTEGER"); b.Property("SongId") .HasColumnType("INTEGER"); b.Property("SongNumber") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("Baid"); b.ToTable("SongPlayData"); }); modelBuilder.Entity("TaikoLocalServer.Entities.UserDatum", b => { b.Property("Baid") .HasColumnType("INTEGER"); b.Property("AchievementDisplayDifficulty") .HasColumnType("INTEGER"); b.Property("ColorBody") .HasColumnType("INTEGER"); b.Property("ColorFace") .HasColumnType("INTEGER"); b.Property("ColorLimb") .HasColumnType("INTEGER"); b.Property("CostumeData") .IsRequired() .HasColumnType("TEXT"); b.Property("DisplayAchievement") .HasColumnType("INTEGER"); b.Property("DisplayDan") .HasColumnType("INTEGER"); b.Property("FavoriteSongsArray") .IsRequired() .HasColumnType("TEXT"); b.Property("IsSkipOn") .HasColumnType("INTEGER"); b.Property("IsVoiceOn") .HasColumnType("INTEGER"); b.Property("LastPlayDatetime") .HasColumnType("datetime"); b.Property("LastPlayMode") .HasColumnType("INTEGER"); b.Property("MyDonName") .IsRequired() .HasColumnType("TEXT"); b.Property("OptionSetting") .HasColumnType("INTEGER"); b.Property("Title") .IsRequired() .HasColumnType("TEXT"); b.Property("TitlePlateId") .HasColumnType("INTEGER"); b.HasKey("Baid"); b.ToTable("UserData"); }); 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"); }); #pragma warning restore 612, 618 } } }