1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-24 14:47:24 +08:00
osu-lazer/osu.Game/Migrations/20171015101238_Init.Designer.cs

300 lines
9.2 KiB
C#
Raw Normal View History

// <auto-generated />
2017-10-10 05:17:12 +08:00
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))]
[Migration("20171015101238_Init")]
2017-10-10 05:17:12 +08:00
partial class Init
{
protected override void BuildTargetModel(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");
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
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");
2017-10-14 13:28:25 +08:00
b.Property<int?>("MetadataID");
2017-10-10 05:17:12 +08:00
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
b.HasIndex("MD5Hash");
2017-10-14 13:28:25 +08:00
b.HasIndex("MetadataID");
2017-10-10 05:17:12 +08:00
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");
b.Property<string>("AuthorString")
.HasColumnName("Author");
2017-10-10 05:17:12 +08:00
b.Property<string>("BackgroundFile");
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
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");
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");
});
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-10 05:17:12 +08:00
b.HasOne("osu.Game.Beatmaps.BeatmapMetadata", "Metadata")
.WithMany()
2017-10-14 13:28:25 +08:00
.HasForeignKey("MetadataID");
2017-10-10 05:17:12 +08:00
b.HasOne("osu.Game.Rulesets.RulesetInfo", "Ruleset")
.WithMany()
2017-10-14 13:28:25 +08:00
.HasForeignKey("RulesetID")
2017-10-10 05:17:12 +08:00
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapMetadata", b =>
{
b.HasOne("osu.Game.Beatmaps.BeatmapSetInfo")
.WithOne("Metadata")
.HasForeignKey("osu.Game.Beatmaps.BeatmapMetadata", "BeatmapSetInfoId")
.OnDelete(DeleteBehavior.Cascade);
});
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);
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
}
}
}