2017-10-17 09:26:28 +00:00
|
|
|
|
// <auto-generated />
|
2017-10-09 21:17:12 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
2017-10-17 09:26:28 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage;
|
2017-10-09 21:17:12 +00:00
|
|
|
|
using osu.Game.Database;
|
2017-10-17 09:26:28 +00:00
|
|
|
|
using System;
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
|
|
|
|
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 =>
|
|
|
|
|
{
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.Property<int>("ID")
|
2017-10-09 21:17:12 +00:00
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<float>("ApproachRate");
|
|
|
|
|
|
|
|
|
|
b.Property<float>("CircleSize");
|
|
|
|
|
|
|
|
|
|
b.Property<float>("DrainRate");
|
|
|
|
|
|
|
|
|
|
b.Property<float>("OverallDifficulty");
|
|
|
|
|
|
|
|
|
|
b.Property<float>("SliderMultiplier");
|
|
|
|
|
|
|
|
|
|
b.Property<float>("SliderTickRate");
|
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.HasKey("ID");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
|
|
|
|
b.ToTable("BeatmapDifficulty");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapInfo", b =>
|
|
|
|
|
{
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.Property<int>("ID")
|
2017-10-09 21:17:12 +00:00
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<int>("AudioLeadIn");
|
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.Property<int>("BaseDifficultyID");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.Property<int>("BeatDivisor");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.Property<int>("BeatmapSetInfoID");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
|
|
|
|
b.Property<bool>("Countdown");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("DistanceSpacing");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("GridSize");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Hash");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Hidden");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("LetterboxInBreaks");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("MD5Hash");
|
|
|
|
|
|
2017-10-19 05:05:11 +00:00
|
|
|
|
b.Property<int?>("MetadataID");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("OnlineBeatmapID");
|
|
|
|
|
|
2017-10-09 21:17:12 +00:00
|
|
|
|
b.Property<string>("Path");
|
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.Property<int>("RulesetID");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
|
|
|
|
b.Property<bool>("SpecialStyle");
|
|
|
|
|
|
|
|
|
|
b.Property<float>("StackLeniency");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("StarDifficulty");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("StoredBookmarks");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("TimelineZoom");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Version");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("WidescreenStoryboard");
|
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.HasKey("ID");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
2017-10-19 05:05:11 +00:00
|
|
|
|
b.HasIndex("BaseDifficultyID");
|
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.HasIndex("BeatmapSetInfoID");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
2017-10-25 06:51:39 +00:00
|
|
|
|
b.HasIndex("Hash")
|
|
|
|
|
.IsUnique();
|
2017-10-17 10:59:22 +00:00
|
|
|
|
|
2017-10-25 06:51:39 +00:00
|
|
|
|
b.HasIndex("MD5Hash")
|
|
|
|
|
.IsUnique();
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
2017-10-19 05:05:11 +00:00
|
|
|
|
b.HasIndex("MetadataID");
|
|
|
|
|
|
2017-11-19 07:02:08 +00:00
|
|
|
|
b.HasIndex("OnlineBeatmapID")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.HasIndex("RulesetID");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
|
|
|
|
b.ToTable("BeatmapInfo");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapMetadata", b =>
|
|
|
|
|
{
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.Property<int>("ID")
|
2017-10-09 21:17:12 +00:00
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Artist");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ArtistUnicode");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("AudioFile");
|
|
|
|
|
|
2017-10-17 09:26:28 +00:00
|
|
|
|
b.Property<string>("AuthorString")
|
|
|
|
|
.HasColumnName("Author");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
|
|
|
|
b.Property<string>("BackgroundFile");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("PreviewTime");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Source");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Tags");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Title");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("TitleUnicode");
|
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.HasKey("ID");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
|
|
|
|
b.ToTable("BeatmapMetadata");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapSetFileInfo", b =>
|
|
|
|
|
{
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.Property<int>("ID")
|
2017-10-09 21:17:12 +00:00
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.Property<int>("BeatmapSetInfoID");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.Property<int>("FileInfoID");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
|
|
|
|
b.Property<string>("Filename")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.HasKey("ID");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.HasIndex("BeatmapSetInfoID");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.HasIndex("FileInfoID");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
|
|
|
|
b.ToTable("BeatmapSetFileInfo");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapSetInfo", b =>
|
|
|
|
|
{
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.Property<int>("ID")
|
2017-10-09 21:17:12 +00:00
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("DeletePending");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Hash");
|
|
|
|
|
|
2017-10-19 05:05:11 +00:00
|
|
|
|
b.Property<int?>("MetadataID");
|
|
|
|
|
|
2017-10-18 12:57:54 +00:00
|
|
|
|
b.Property<int?>("OnlineBeatmapSetID");
|
|
|
|
|
|
2017-10-09 21:17:12 +00:00
|
|
|
|
b.Property<bool>("Protected");
|
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.HasKey("ID");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
|
|
|
|
b.HasIndex("DeletePending");
|
|
|
|
|
|
2017-10-25 06:51:39 +00:00
|
|
|
|
b.HasIndex("Hash")
|
|
|
|
|
.IsUnique();
|
2017-10-17 10:59:22 +00:00
|
|
|
|
|
2017-10-19 05:05:11 +00:00
|
|
|
|
b.HasIndex("MetadataID");
|
|
|
|
|
|
2017-10-25 06:51:39 +00:00
|
|
|
|
b.HasIndex("OnlineBeatmapSetID")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
2017-10-09 21:17:12 +00:00
|
|
|
|
b.ToTable("BeatmapSetInfo");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Input.Bindings.DatabasedKeyBinding", b =>
|
|
|
|
|
{
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.Property<int>("ID")
|
2017-10-09 21:17:12 +00:00
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<int>("IntAction")
|
|
|
|
|
.HasColumnName("Action");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("KeysString")
|
|
|
|
|
.HasColumnName("Keys");
|
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.Property<int?>("RulesetID");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
|
|
|
|
b.Property<int?>("Variant");
|
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.HasKey("ID");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
|
|
|
|
b.HasIndex("IntAction");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Variant");
|
|
|
|
|
|
|
|
|
|
b.ToTable("KeyBinding");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.IO.FileInfo", b =>
|
|
|
|
|
{
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.Property<int>("ID")
|
2017-10-09 21:17:12 +00:00
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Hash");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("ReferenceCount");
|
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.HasKey("ID");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
|
|
|
|
b.HasIndex("Hash")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ReferenceCount");
|
|
|
|
|
|
|
|
|
|
b.ToTable("FileInfo");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Rulesets.RulesetInfo", b =>
|
|
|
|
|
{
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.Property<int?>("ID")
|
2017-10-09 21:17:12 +00:00
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Available");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("InstantiationInfo");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name");
|
|
|
|
|
|
2017-12-09 03:56:44 +00:00
|
|
|
|
b.Property<string>("ShortName");
|
|
|
|
|
|
2017-10-14 05:28:25 +00:00
|
|
|
|
b.HasKey("ID");
|
2017-10-09 21:17:12 +00:00
|
|
|
|
|
|
|
|
|
b.HasIndex("Available");
|
|
|
|
|
|
2017-12-09 03:56:44 +00:00
|
|
|
|
b.HasIndex("ShortName")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
2017-10-09 21:17:12 +00:00
|
|
|
|
b.ToTable("RulesetInfo");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-19 05:05:11 +00:00
|
|
|
|
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapInfo", b =>
|
2017-10-17 09:26:28 +00:00
|
|
|
|
{
|
2017-10-19 05:05:11 +00:00
|
|
|
|
b.HasOne("osu.Game.Beatmaps.BeatmapDifficulty", "BaseDifficulty")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("BaseDifficultyID")
|
2017-10-17 09:26:28 +00:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
|
2017-10-09 21:17:12 +00:00
|
|
|
|
b.HasOne("osu.Game.Beatmaps.BeatmapSetInfo", "BeatmapSet")
|
|
|
|
|
.WithMany("Beatmaps")
|
2017-10-14 05:28:25 +00:00
|
|
|
|
.HasForeignKey("BeatmapSetInfoID")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
|
2017-10-19 05:05:11 +00:00
|
|
|
|
b.HasOne("osu.Game.Beatmaps.BeatmapMetadata", "Metadata")
|
|
|
|
|
.WithMany("Beatmaps")
|
|
|
|
|
.HasForeignKey("MetadataID");
|
|
|
|
|
|
2017-10-17 09:26:28 +00:00
|
|
|
|
b.HasOne("osu.Game.Rulesets.RulesetInfo", "Ruleset")
|
2017-10-16 03:55:36 +00:00
|
|
|
|
.WithMany()
|
2017-10-17 09:26:28 +00:00
|
|
|
|
.HasForeignKey("RulesetID")
|
2017-10-16 03:55:36 +00:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
2017-10-17 09:26:28 +00:00
|
|
|
|
});
|
2017-10-16 03:55:36 +00:00
|
|
|
|
|
2017-10-09 21:17:12 +00:00
|
|
|
|
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapSetFileInfo", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("osu.Game.Beatmaps.BeatmapSetInfo")
|
|
|
|
|
.WithMany("Files")
|
2017-10-14 05:28:25 +00:00
|
|
|
|
.HasForeignKey("BeatmapSetInfoID")
|
2017-10-09 21:17:12 +00:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
|
|
|
|
|
b.HasOne("osu.Game.IO.FileInfo", "FileInfo")
|
|
|
|
|
.WithMany()
|
2017-10-14 05:28:25 +00:00
|
|
|
|
.HasForeignKey("FileInfoID")
|
2017-10-09 21:17:12 +00:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
2017-10-19 05:05:11 +00:00
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapSetInfo", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("osu.Game.Beatmaps.BeatmapMetadata", "Metadata")
|
|
|
|
|
.WithMany("BeatmapSets")
|
|
|
|
|
.HasForeignKey("MetadataID");
|
|
|
|
|
});
|
2017-10-09 21:17:12 +00:00
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|