// using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage; using osu.Game.Database; using System; namespace osu.Game.Migrations { [DbContext(typeof(OsuDbContext))] partial class OsuDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "2.0.0-rtm-26452"); modelBuilder.Entity("osu.Game.Beatmaps.BeatmapDifficulty", b => { b.Property("ID") .ValueGeneratedOnAdd(); b.Property("ApproachRate"); b.Property("BeatmapInfoID"); b.Property("CircleSize"); b.Property("DrainRate"); b.Property("OverallDifficulty"); b.Property("SliderMultiplier"); b.Property("SliderTickRate"); b.HasKey("ID"); b.HasIndex("BeatmapInfoID") .IsUnique(); b.ToTable("BeatmapDifficulty"); }); modelBuilder.Entity("osu.Game.Beatmaps.BeatmapInfo", b => { b.Property("ID") .ValueGeneratedOnAdd(); b.Property("AudioLeadIn"); b.Property("BaseDifficultyID"); b.Property("BeatDivisor"); b.Property("BeatmapSetInfoID"); b.Property("Countdown"); b.Property("DistanceSpacing"); b.Property("GridSize"); b.Property("Hash"); b.Property("Hidden"); b.Property("LetterboxInBreaks"); b.Property("MD5Hash"); b.Property("Path"); b.Property("RulesetID"); b.Property("SpecialStyle"); b.Property("StackLeniency"); b.Property("StarDifficulty"); b.Property("StoredBookmarks"); b.Property("TimelineZoom"); b.Property("Version"); b.Property("WidescreenStoryboard"); b.HasKey("ID"); b.HasIndex("BeatmapSetInfoID"); b.HasIndex("Hash"); b.HasIndex("MD5Hash"); b.HasIndex("RulesetID"); b.ToTable("BeatmapInfo"); }); modelBuilder.Entity("osu.Game.Beatmaps.BeatmapMetadata", b => { b.Property("ID") .ValueGeneratedOnAdd(); b.Property("Artist"); b.Property("ArtistUnicode"); b.Property("AudioFile"); b.Property("AuthorString") .HasColumnName("Author"); b.Property("BackgroundFile"); b.Property("BeatmapInfoID"); b.Property("BeatmapSetInfoID"); b.Property("PreviewTime"); b.Property("Source"); b.Property("Tags"); b.Property("Title"); b.Property("TitleUnicode"); b.HasKey("ID"); b.HasIndex("BeatmapInfoID") .IsUnique(); b.HasIndex("BeatmapSetInfoID") .IsUnique(); b.ToTable("BeatmapMetadata"); }); modelBuilder.Entity("osu.Game.Beatmaps.BeatmapSetFileInfo", b => { b.Property("ID") .ValueGeneratedOnAdd(); b.Property("BeatmapSetInfoID"); b.Property("FileInfoID"); b.Property("Filename") .IsRequired(); b.HasKey("ID"); b.HasIndex("BeatmapSetInfoID"); b.HasIndex("FileInfoID"); b.ToTable("BeatmapSetFileInfo"); }); modelBuilder.Entity("osu.Game.Beatmaps.BeatmapSetInfo", b => { b.Property("ID") .ValueGeneratedOnAdd(); b.Property("DeletePending"); b.Property("Hash"); b.Property("Protected"); b.HasKey("ID"); b.HasIndex("DeletePending"); b.HasIndex("Hash"); b.ToTable("BeatmapSetInfo"); }); modelBuilder.Entity("osu.Game.Input.Bindings.DatabasedKeyBinding", b => { b.Property("ID") .ValueGeneratedOnAdd(); b.Property("IntAction") .HasColumnName("Action"); b.Property("KeysString") .HasColumnName("Keys"); b.Property("RulesetID"); b.Property("Variant"); b.HasKey("ID"); b.HasIndex("IntAction"); b.HasIndex("Variant"); b.ToTable("KeyBinding"); }); modelBuilder.Entity("osu.Game.IO.FileInfo", b => { b.Property("ID") .ValueGeneratedOnAdd(); b.Property("Hash"); b.Property("ReferenceCount"); b.HasKey("ID"); b.HasIndex("Hash") .IsUnique(); b.HasIndex("ReferenceCount"); b.ToTable("FileInfo"); }); modelBuilder.Entity("osu.Game.Rulesets.RulesetInfo", b => { b.Property("ID") .ValueGeneratedOnAdd(); b.Property("Available"); b.Property("InstantiationInfo"); b.Property("Name"); b.HasKey("ID"); b.HasIndex("Available"); b.HasIndex("InstantiationInfo") .IsUnique(); b.HasIndex("Name") .IsUnique(); b.ToTable("RulesetInfo"); }); modelBuilder.Entity("osu.Game.Beatmaps.BeatmapDifficulty", b => { b.HasOne("osu.Game.Beatmaps.BeatmapInfo") .WithOne("Difficulty") .HasForeignKey("osu.Game.Beatmaps.BeatmapDifficulty", "BeatmapInfoID") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("osu.Game.Beatmaps.BeatmapInfo", b => { b.HasOne("osu.Game.Beatmaps.BeatmapSetInfo", "BeatmapSet") .WithMany("Beatmaps") .HasForeignKey("BeatmapSetInfoID") .OnDelete(DeleteBehavior.Cascade); b.HasOne("osu.Game.Rulesets.RulesetInfo", "Ruleset") .WithMany() .HasForeignKey("RulesetID") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("osu.Game.Beatmaps.BeatmapMetadata", b => { b.HasOne("osu.Game.Beatmaps.BeatmapInfo", "BeatmapInfo") .WithOne("Metadata") .HasForeignKey("osu.Game.Beatmaps.BeatmapMetadata", "BeatmapInfoID") .OnDelete(DeleteBehavior.Cascade); b.HasOne("osu.Game.Beatmaps.BeatmapSetInfo", "BeatmapSetInfo") .WithOne("Metadata") .HasForeignKey("osu.Game.Beatmaps.BeatmapMetadata", "BeatmapSetInfoID") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("osu.Game.Beatmaps.BeatmapSetFileInfo", b => { b.HasOne("osu.Game.Beatmaps.BeatmapSetInfo") .WithMany("Files") .HasForeignKey("BeatmapSetInfoID") .OnDelete(DeleteBehavior.Cascade); b.HasOne("osu.Game.IO.FileInfo", "FileInfo") .WithMany() .HasForeignKey("FileInfoID") .OnDelete(DeleteBehavior.Cascade); }); #pragma warning restore 612, 618 } } }