2018-04-13 09:19:50 +00:00
|
|
|
|
// <auto-generated />
|
2018-09-13 08:10:58 +00:00
|
|
|
|
using System;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
2018-09-13 08:10:58 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
using osu.Game.Database;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Migrations
|
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(OsuDbContext))]
|
|
|
|
|
partial class OsuDbContextModelSnapshot : ModelSnapshot
|
|
|
|
|
{
|
|
|
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
|
modelBuilder
|
2019-09-13 10:57:55 +00:00
|
|
|
|
.HasAnnotation("ProductVersion", "2.2.6-servicing-10079");
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapDifficulty", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ID")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<float>("ApproachRate");
|
|
|
|
|
|
|
|
|
|
b.Property<float>("CircleSize");
|
|
|
|
|
|
|
|
|
|
b.Property<float>("DrainRate");
|
|
|
|
|
|
|
|
|
|
b.Property<float>("OverallDifficulty");
|
|
|
|
|
|
2018-05-29 07:13:02 +00:00
|
|
|
|
b.Property<double>("SliderMultiplier");
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2018-05-29 07:13:02 +00:00
|
|
|
|
b.Property<double>("SliderTickRate");
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
|
|
b.HasKey("ID");
|
|
|
|
|
|
|
|
|
|
b.ToTable("BeatmapDifficulty");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapInfo", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ID")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2020-03-02 09:55:52 +00:00
|
|
|
|
b.Property<double>("AudioLeadIn");
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2019-07-08 07:44:23 +00:00
|
|
|
|
b.Property<double>("BPM");
|
|
|
|
|
|
2018-04-13 09:19:50 +00:00
|
|
|
|
b.Property<int>("BaseDifficultyID");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("BeatDivisor");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("BeatmapSetInfoID");
|
|
|
|
|
|
2021-08-24 18:53:27 +00:00
|
|
|
|
b.Property<int>("Countdown");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("CountdownOffset");
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
|
|
b.Property<double>("DistanceSpacing");
|
|
|
|
|
|
2020-10-19 22:46:08 +00:00
|
|
|
|
b.Property<bool>("EpilepsyWarning");
|
|
|
|
|
|
2018-04-13 09:19:50 +00:00
|
|
|
|
b.Property<int>("GridSize");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Hash");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Hidden");
|
|
|
|
|
|
2019-07-07 17:25:59 +00:00
|
|
|
|
b.Property<double>("Length");
|
|
|
|
|
|
2018-04-13 09:19:50 +00:00
|
|
|
|
b.Property<bool>("LetterboxInBreaks");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("MD5Hash");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("MetadataID");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("OnlineBeatmapID");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Path");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("RulesetID");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("SpecialStyle");
|
|
|
|
|
|
|
|
|
|
b.Property<float>("StackLeniency");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("StarDifficulty");
|
|
|
|
|
|
2018-09-13 08:10:58 +00:00
|
|
|
|
b.Property<int>("Status");
|
|
|
|
|
|
2018-04-13 09:19:50 +00:00
|
|
|
|
b.Property<string>("StoredBookmarks");
|
|
|
|
|
|
|
|
|
|
b.Property<double>("TimelineZoom");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Version");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("WidescreenStoryboard");
|
|
|
|
|
|
|
|
|
|
b.HasKey("ID");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("BaseDifficultyID");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("BeatmapSetInfoID");
|
|
|
|
|
|
2018-05-29 07:13:02 +00:00
|
|
|
|
b.HasIndex("Hash");
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2018-05-29 07:13:02 +00:00
|
|
|
|
b.HasIndex("MD5Hash");
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
|
|
b.HasIndex("MetadataID");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("OnlineBeatmapID")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RulesetID");
|
|
|
|
|
|
|
|
|
|
b.ToTable("BeatmapInfo");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapMetadata", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ID")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Artist");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ArtistUnicode");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("AudioFile");
|
|
|
|
|
|
2021-05-14 06:40:29 +00:00
|
|
|
|
b.Property<int>("AuthorID")
|
|
|
|
|
.HasColumnName("AuthorID");
|
|
|
|
|
|
2018-04-13 09:19:50 +00:00
|
|
|
|
b.Property<string>("AuthorString")
|
|
|
|
|
.HasColumnName("Author");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("BackgroundFile");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("PreviewTime");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Source");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Tags");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Title");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("TitleUnicode");
|
|
|
|
|
|
|
|
|
|
b.HasKey("ID");
|
|
|
|
|
|
|
|
|
|
b.ToTable("BeatmapMetadata");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapSetFileInfo", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ID")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<int>("BeatmapSetInfoID");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("FileInfoID");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Filename")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.HasKey("ID");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("BeatmapSetInfoID");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("FileInfoID");
|
|
|
|
|
|
|
|
|
|
b.ToTable("BeatmapSetFileInfo");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapSetInfo", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ID")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2019-06-05 09:17:43 +00:00
|
|
|
|
b.Property<DateTimeOffset>("DateAdded");
|
|
|
|
|
|
2018-04-13 09:19:50 +00:00
|
|
|
|
b.Property<bool>("DeletePending");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Hash");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("MetadataID");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("OnlineBeatmapSetID");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Protected");
|
|
|
|
|
|
2018-09-13 08:10:58 +00:00
|
|
|
|
b.Property<int>("Status");
|
|
|
|
|
|
2018-04-13 09:19:50 +00:00
|
|
|
|
b.HasKey("ID");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("DeletePending");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Hash")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.HasIndex("MetadataID");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("OnlineBeatmapSetID")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("BeatmapSetInfo");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Configuration.DatabasedSetting", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ID")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2019-05-25 06:00:53 +00:00
|
|
|
|
b.Property<string>("Key")
|
2018-04-13 09:19:50 +00:00
|
|
|
|
.HasColumnName("Key");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("RulesetID");
|
|
|
|
|
|
2019-05-25 06:09:31 +00:00
|
|
|
|
b.Property<int?>("SkinInfoID");
|
|
|
|
|
|
2018-04-13 09:19:50 +00:00
|
|
|
|
b.Property<string>("StringValue")
|
|
|
|
|
.HasColumnName("Value");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("Variant");
|
|
|
|
|
|
|
|
|
|
b.HasKey("ID");
|
|
|
|
|
|
2019-05-25 06:09:31 +00:00
|
|
|
|
b.HasIndex("SkinInfoID");
|
|
|
|
|
|
2018-04-13 09:19:50 +00:00
|
|
|
|
b.HasIndex("RulesetID", "Variant");
|
|
|
|
|
|
|
|
|
|
b.ToTable("Settings");
|
|
|
|
|
});
|
|
|
|
|
|
2019-01-08 08:53:43 +00:00
|
|
|
|
modelBuilder.Entity("osu.Game.IO.FileInfo", b =>
|
2018-04-13 09:19:50 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ID")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2019-01-08 08:53:43 +00:00
|
|
|
|
b.Property<string>("Hash");
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2019-01-08 08:53:43 +00:00
|
|
|
|
b.Property<int>("ReferenceCount");
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
|
|
b.HasKey("ID");
|
|
|
|
|
|
2019-01-08 08:53:43 +00:00
|
|
|
|
b.HasIndex("Hash")
|
|
|
|
|
.IsUnique();
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2019-01-08 08:53:43 +00:00
|
|
|
|
b.HasIndex("ReferenceCount");
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2019-01-08 08:53:43 +00:00
|
|
|
|
b.ToTable("FileInfo");
|
2018-04-13 09:19:50 +00:00
|
|
|
|
});
|
|
|
|
|
|
2019-01-08 08:53:43 +00:00
|
|
|
|
modelBuilder.Entity("osu.Game.Input.Bindings.DatabasedKeyBinding", b =>
|
2018-04-13 09:19:50 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ID")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2019-01-08 08:53:43 +00:00
|
|
|
|
b.Property<int>("IntAction")
|
|
|
|
|
.HasColumnName("Action");
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2019-01-08 08:53:43 +00:00
|
|
|
|
b.Property<string>("KeysString")
|
|
|
|
|
.HasColumnName("Keys");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("RulesetID");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("Variant");
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
|
|
b.HasKey("ID");
|
|
|
|
|
|
2019-01-08 08:53:43 +00:00
|
|
|
|
b.HasIndex("IntAction");
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2019-01-08 08:53:43 +00:00
|
|
|
|
b.HasIndex("RulesetID", "Variant");
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2019-01-08 08:53:43 +00:00
|
|
|
|
b.ToTable("KeyBinding");
|
2018-04-13 09:19:50 +00:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Rulesets.RulesetInfo", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int?>("ID")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Available");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("InstantiationInfo");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ShortName");
|
|
|
|
|
|
|
|
|
|
b.HasKey("ID");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Available");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ShortName")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("RulesetInfo");
|
|
|
|
|
});
|
|
|
|
|
|
2018-11-30 05:48:31 +00:00
|
|
|
|
modelBuilder.Entity("osu.Game.Scoring.ScoreFileInfo", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ID")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<int>("FileInfoID");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Filename")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("ScoreInfoID");
|
|
|
|
|
|
|
|
|
|
b.HasKey("ID");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("FileInfoID");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ScoreInfoID");
|
|
|
|
|
|
|
|
|
|
b.ToTable("ScoreFileInfo");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Scoring.ScoreInfo", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ID")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2018-11-30 11:43:38 +00:00
|
|
|
|
b.Property<double>("Accuracy")
|
|
|
|
|
.HasColumnType("DECIMAL(1,4)");
|
2018-11-30 05:48:31 +00:00
|
|
|
|
|
|
|
|
|
b.Property<int>("BeatmapInfoID");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Combo");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("Date");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("DeletePending");
|
|
|
|
|
|
2018-11-30 08:42:40 +00:00
|
|
|
|
b.Property<string>("Hash");
|
2018-11-30 05:48:31 +00:00
|
|
|
|
|
|
|
|
|
b.Property<int>("MaxCombo");
|
|
|
|
|
|
2018-11-30 07:35:57 +00:00
|
|
|
|
b.Property<string>("ModsJson")
|
|
|
|
|
.HasColumnName("Mods");
|
2018-11-30 05:48:31 +00:00
|
|
|
|
|
|
|
|
|
b.Property<long?>("OnlineScoreID");
|
|
|
|
|
|
|
|
|
|
b.Property<double?>("PP");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Rank");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("RulesetID");
|
|
|
|
|
|
2018-11-30 07:35:57 +00:00
|
|
|
|
b.Property<string>("StatisticsJson")
|
|
|
|
|
.HasColumnName("Statistics");
|
2018-11-30 05:48:31 +00:00
|
|
|
|
|
2019-02-26 04:10:07 +00:00
|
|
|
|
b.Property<long>("TotalScore");
|
2018-11-30 05:48:31 +00:00
|
|
|
|
|
2021-05-11 08:00:24 +00:00
|
|
|
|
b.Property<int?>("UserID")
|
2019-02-25 06:25:22 +00:00
|
|
|
|
.HasColumnName("UserID");
|
|
|
|
|
|
2018-11-30 07:35:57 +00:00
|
|
|
|
b.Property<string>("UserString")
|
|
|
|
|
.HasColumnName("User");
|
2018-11-30 05:48:31 +00:00
|
|
|
|
|
|
|
|
|
b.HasKey("ID");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("BeatmapInfoID");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("OnlineScoreID")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RulesetID");
|
|
|
|
|
|
|
|
|
|
b.ToTable("ScoreInfo");
|
|
|
|
|
});
|
|
|
|
|
|
2018-04-13 09:19:50 +00:00
|
|
|
|
modelBuilder.Entity("osu.Game.Skinning.SkinFileInfo", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ID")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<int>("FileInfoID");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Filename")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Property<int>("SkinInfoID");
|
|
|
|
|
|
|
|
|
|
b.HasKey("ID");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("FileInfoID");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("SkinInfoID");
|
|
|
|
|
|
|
|
|
|
b.ToTable("SkinFileInfo");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Skinning.SkinInfo", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ID")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Creator");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("DeletePending");
|
|
|
|
|
|
2018-11-28 10:15:56 +00:00
|
|
|
|
b.Property<string>("Hash");
|
|
|
|
|
|
2021-05-11 08:00:24 +00:00
|
|
|
|
b.Property<string>("InstantiationInfo");
|
|
|
|
|
|
2018-04-13 09:19:50 +00:00
|
|
|
|
b.Property<string>("Name");
|
|
|
|
|
|
|
|
|
|
b.HasKey("ID");
|
|
|
|
|
|
2018-11-28 10:15:56 +00:00
|
|
|
|
b.HasIndex("DeletePending");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Hash")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
2018-04-13 09:19:50 +00:00
|
|
|
|
b.ToTable("SkinInfo");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapInfo", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("osu.Game.Beatmaps.BeatmapDifficulty", "BaseDifficulty")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("BaseDifficultyID")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
|
|
|
|
|
b.HasOne("osu.Game.Beatmaps.BeatmapSetInfo", "BeatmapSet")
|
|
|
|
|
.WithMany("Beatmaps")
|
|
|
|
|
.HasForeignKey("BeatmapSetInfoID")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
|
|
|
|
|
b.HasOne("osu.Game.Beatmaps.BeatmapMetadata", "Metadata")
|
|
|
|
|
.WithMany("Beatmaps")
|
|
|
|
|
.HasForeignKey("MetadataID");
|
|
|
|
|
|
|
|
|
|
b.HasOne("osu.Game.Rulesets.RulesetInfo", "Ruleset")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("RulesetID")
|
|
|
|
|
.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);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapSetInfo", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("osu.Game.Beatmaps.BeatmapMetadata", "Metadata")
|
|
|
|
|
.WithMany("BeatmapSets")
|
|
|
|
|
.HasForeignKey("MetadataID");
|
|
|
|
|
});
|
|
|
|
|
|
2019-05-25 06:09:31 +00:00
|
|
|
|
modelBuilder.Entity("osu.Game.Configuration.DatabasedSetting", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("osu.Game.Skinning.SkinInfo")
|
|
|
|
|
.WithMany("Settings")
|
|
|
|
|
.HasForeignKey("SkinInfoID");
|
|
|
|
|
});
|
|
|
|
|
|
2018-11-30 05:48:31 +00:00
|
|
|
|
modelBuilder.Entity("osu.Game.Scoring.ScoreFileInfo", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("osu.Game.IO.FileInfo", "FileInfo")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("FileInfoID")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
|
|
|
|
|
b.HasOne("osu.Game.Scoring.ScoreInfo")
|
|
|
|
|
.WithMany("Files")
|
|
|
|
|
.HasForeignKey("ScoreInfoID");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("osu.Game.Scoring.ScoreInfo", b =>
|
|
|
|
|
{
|
2018-11-30 07:35:57 +00:00
|
|
|
|
b.HasOne("osu.Game.Beatmaps.BeatmapInfo", "Beatmap")
|
2019-01-08 08:53:43 +00:00
|
|
|
|
.WithMany("Scores")
|
2018-11-30 05:48:31 +00:00
|
|
|
|
.HasForeignKey("BeatmapInfoID")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
|
|
|
|
|
b.HasOne("osu.Game.Rulesets.RulesetInfo", "Ruleset")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("RulesetID")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
2018-04-13 09:19:50 +00:00
|
|
|
|
modelBuilder.Entity("osu.Game.Skinning.SkinFileInfo", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("osu.Game.IO.FileInfo", "FileInfo")
|
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("FileInfoID")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
|
|
|
|
|
b.HasOne("osu.Game.Skinning.SkinInfo")
|
|
|
|
|
.WithMany("Files")
|
|
|
|
|
.HasForeignKey("SkinInfoID")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|