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