1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 02:37:25 +08:00
osu-lazer/osu.Game/Migrations/OsuDbContextModelSnapshot.cs

305 lines
9.4 KiB
C#
Raw Normal View History

2017-10-17 17:26:28 +08:00
// <auto-generated />
2017-10-10 05:17:12 +08:00
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
2017-10-17 17:26:28 +08:00
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage;
2017-10-10 05:17:12 +08:00
using osu.Game.Database;
2017-10-17 17:26:28 +08:00
using System;
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
.HasAnnotation("ProductVersion", "2.0.0-rtm-26452");
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();
b.Property<float>("ApproachRate");
2017-10-17 17:26:28 +08:00
b.Property<int>("BeatmapInfoID");
2017-10-10 05:17:12 +08:00
b.Property<float>("CircleSize");
b.Property<float>("DrainRate");
b.Property<float>("OverallDifficulty");
b.Property<float>("SliderMultiplier");
b.Property<float>("SliderTickRate");
2017-10-14 13:28:25 +08:00
b.HasKey("ID");
2017-10-10 05:17:12 +08:00
2017-10-17 17:26:28 +08:00
b.HasIndex("BeatmapInfoID")
.IsUnique();
2017-10-10 05:17:12 +08:00
b.ToTable("BeatmapDifficulty");
});
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();
b.Property<int>("AudioLeadIn");
2017-10-14 13:28:25 +08:00
b.Property<int>("BaseDifficultyID");
2017-10-10 05:17:12 +08:00
2017-10-14 13:28:25 +08:00
b.Property<int>("BeatDivisor");
2017-10-10 05:17:12 +08:00
2017-10-14 13:28:25 +08:00
b.Property<int>("BeatmapSetInfoID");
2017-10-10 05:17:12 +08: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");
b.Property<string>("Path");
2017-10-14 13:28:25 +08:00
b.Property<int>("RulesetID");
2017-10-10 05:17:12 +08: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 13:28:25 +08:00
b.HasKey("ID");
2017-10-10 05:17:12 +08:00
2017-10-14 13:28:25 +08:00
b.HasIndex("BeatmapSetInfoID");
2017-10-10 05:17:12 +08:00
2017-10-17 18:59:22 +08:00
b.HasIndex("Hash");
2017-10-10 05:17:12 +08:00
b.HasIndex("MD5Hash");
2017-10-14 13:28:25 +08:00
b.HasIndex("RulesetID");
2017-10-10 05:17:12 +08:00
b.ToTable("BeatmapInfo");
});
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();
b.Property<string>("Artist");
b.Property<string>("ArtistUnicode");
b.Property<string>("AudioFile");
2017-10-17 17:26:28 +08:00
b.Property<string>("AuthorString")
.HasColumnName("Author");
2017-10-10 05:17:12 +08:00
b.Property<string>("BackgroundFile");
2017-10-17 17:26:28 +08:00
b.Property<int?>("BeatmapInfoID");
b.Property<int?>("BeatmapSetInfoID");
2017-10-10 05:17:12 +08:00
b.Property<int>("PreviewTime");
b.Property<string>("Source");
b.Property<string>("Tags");
b.Property<string>("Title");
b.Property<string>("TitleUnicode");
2017-10-14 13:28:25 +08:00
b.HasKey("ID");
2017-10-10 05:17:12 +08:00
2017-10-17 17:26:28 +08:00
b.HasIndex("BeatmapInfoID")
.IsUnique();
b.HasIndex("BeatmapSetInfoID")
.IsUnique();
2017-10-10 05:17:12 +08:00
b.ToTable("BeatmapMetadata");
});
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();
2017-10-14 13:28:25 +08:00
b.Property<int>("BeatmapSetInfoID");
2017-10-10 05:17:12 +08:00
2017-10-14 13:28:25 +08:00
b.Property<int>("FileInfoID");
2017-10-10 05:17:12 +08:00
b.Property<string>("Filename")
.IsRequired();
2017-10-14 13:28:25 +08:00
b.HasKey("ID");
2017-10-10 05:17:12 +08:00
2017-10-14 13:28:25 +08:00
b.HasIndex("BeatmapSetInfoID");
2017-10-10 05:17:12 +08:00
2017-10-14 13:28:25 +08:00
b.HasIndex("FileInfoID");
2017-10-10 05:17:12 +08:00
b.ToTable("BeatmapSetFileInfo");
});
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();
b.Property<bool>("DeletePending");
b.Property<string>("Hash");
b.Property<bool>("Protected");
2017-10-14 13:28:25 +08:00
b.HasKey("ID");
2017-10-10 05:17:12 +08:00
b.HasIndex("DeletePending");
2017-10-17 18:59:22 +08:00
b.HasIndex("Hash");
2017-10-10 05:17:12 +08:00
b.ToTable("BeatmapSetInfo");
});
modelBuilder.Entity("osu.Game.Input.Bindings.DatabasedKeyBinding", b =>
{
2017-10-14 13:28:25 +08:00
b.Property<int>("ID")
2017-10-10 05:17:12 +08:00
.ValueGeneratedOnAdd();
b.Property<int>("IntAction")
.HasColumnName("Action");
b.Property<string>("KeysString")
.HasColumnName("Keys");
2017-10-14 13:28:25 +08:00
b.Property<int?>("RulesetID");
2017-10-10 05:17:12 +08:00
b.Property<int?>("Variant");
2017-10-14 13:28:25 +08:00
b.HasKey("ID");
2017-10-10 05:17:12 +08:00
b.HasIndex("IntAction");
b.HasIndex("Variant");
b.ToTable("KeyBinding");
});
modelBuilder.Entity("osu.Game.IO.FileInfo", b =>
{
2017-10-14 13:28:25 +08:00
b.Property<int>("ID")
2017-10-10 05:17:12 +08:00
.ValueGeneratedOnAdd();
b.Property<string>("Hash");
b.Property<int>("ReferenceCount");
2017-10-14 13:28:25 +08:00
b.HasKey("ID");
2017-10-10 05:17:12 +08:00
b.HasIndex("Hash")
.IsUnique();
b.HasIndex("ReferenceCount");
b.ToTable("FileInfo");
});
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();
b.Property<bool>("Available");
b.Property<string>("InstantiationInfo");
b.Property<string>("Name");
2017-10-14 13:28:25 +08:00
b.HasKey("ID");
2017-10-10 05:17:12 +08:00
b.HasIndex("Available");
b.HasIndex("InstantiationInfo")
.IsUnique();
b.HasIndex("Name")
.IsUnique();
b.ToTable("RulesetInfo");
});
2017-10-17 17:26:28 +08:00
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapDifficulty", b =>
{
b.HasOne("osu.Game.Beatmaps.BeatmapInfo")
.WithOne("Difficulty")
.HasForeignKey("osu.Game.Beatmaps.BeatmapDifficulty", "BeatmapInfoID")
.OnDelete(DeleteBehavior.Cascade);
});
2017-10-10 05:17:12 +08:00
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapInfo", b =>
{
b.HasOne("osu.Game.Beatmaps.BeatmapSetInfo", "BeatmapSet")
.WithMany("Beatmaps")
2017-10-14 13:28:25 +08:00
.HasForeignKey("BeatmapSetInfoID")
.OnDelete(DeleteBehavior.Cascade);
2017-10-17 17:26:28 +08:00
b.HasOne("osu.Game.Rulesets.RulesetInfo", "Ruleset")
.WithMany()
2017-10-17 17:26:28 +08:00
.HasForeignKey("RulesetID")
.OnDelete(DeleteBehavior.Cascade);
2017-10-17 17:26:28 +08:00
});
2017-10-17 17:26:28 +08:00
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);
2017-10-10 05:17:12 +08:00
2017-10-17 17:26:28 +08:00
b.HasOne("osu.Game.Beatmaps.BeatmapSetInfo", "BeatmapSetInfo")
.WithOne("Metadata")
.HasForeignKey("osu.Game.Beatmaps.BeatmapMetadata", "BeatmapSetInfoID")
2017-10-10 05:17:12 +08:00
.OnDelete(DeleteBehavior.Cascade);
});
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);
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);
});
#pragma warning restore 612, 618
}
}
}