1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-24 22:07:27 +08:00
osu-lazer/osu.Game/Migrations/20171019041408_InitialCreate.Designer.cs

294 lines
8.9 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;
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))]
2017-10-19 13:05:11 +08:00
[Migration("20171019041408_InitialCreate")]
2017-10-17 17:26:28 +08:00
partial class InitialCreate
2017-10-10 05:17:12 +08:00
{
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<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.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-19 13:05:11 +08:00
b.Property<int?>("MetadataID");
b.Property<int?>("OnlineBeatmapID");
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-19 13:05:11 +08:00
b.HasIndex("BaseDifficultyID");
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-19 13:05:11 +08:00
b.HasIndex("MetadataID");
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");
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.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");
2017-10-19 13:05:11 +08:00
b.Property<int?>("MetadataID");
2017-10-18 20:57:54 +08:00
b.Property<int?>("OnlineBeatmapSetID");
2017-10-10 05:17:12 +08:00
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-19 13:05:11 +08:00
b.HasIndex("MetadataID");
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.ToTable("RulesetInfo");
});
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);
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);
2017-10-19 13:05:11 +08:00
b.HasOne("osu.Game.Beatmaps.BeatmapMetadata", "Metadata")
.WithMany("Beatmaps")
.HasForeignKey("MetadataID");
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-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);
});
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");
});
2017-10-10 05:17:12 +08:00
#pragma warning restore 612, 618
}
}
}