mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
292 lines
8.9 KiB
C#
292 lines
8.9 KiB
C#
// <auto-generated />
|
|
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))]
|
|
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 =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.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");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("BeatmapDifficulty");
|
|
});
|
|
|
|
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapInfo", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<int>("AudioLeadIn");
|
|
|
|
b.Property<int>("BeatDivisor");
|
|
|
|
b.Property<int>("BeatmapDifficultyId");
|
|
|
|
b.Property<int>("BeatmapSetInfoId");
|
|
|
|
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<int?>("MetadataId");
|
|
|
|
b.Property<string>("Path");
|
|
|
|
b.Property<int>("RulesetInfoId");
|
|
|
|
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");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("BeatmapDifficultyId");
|
|
|
|
b.HasIndex("BeatmapSetInfoId");
|
|
|
|
b.HasIndex("MD5Hash");
|
|
|
|
b.HasIndex("MetadataId");
|
|
|
|
b.HasIndex("RulesetInfoId");
|
|
|
|
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");
|
|
|
|
b.Property<string>("Author");
|
|
|
|
b.Property<string>("BackgroundFile");
|
|
|
|
b.Property<int>("BeatmapSetInfoId");
|
|
|
|
b.Property<int>("PreviewTime");
|
|
|
|
b.Property<string>("Source");
|
|
|
|
b.Property<string>("Tags");
|
|
|
|
b.Property<string>("Title");
|
|
|
|
b.Property<string>("TitleUnicode");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("BeatmapSetInfoId")
|
|
.IsUnique();
|
|
|
|
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();
|
|
|
|
b.Property<bool>("DeletePending");
|
|
|
|
b.Property<string>("Hash");
|
|
|
|
b.Property<bool>("Protected");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("DeletePending");
|
|
|
|
b.ToTable("BeatmapSetInfo");
|
|
});
|
|
|
|
modelBuilder.Entity("osu.Game.Input.Bindings.DatabasedKeyBinding", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<int>("IntAction")
|
|
.HasColumnName("Action");
|
|
|
|
b.Property<string>("KeysString")
|
|
.HasColumnName("Keys");
|
|
|
|
b.Property<int?>("RulesetInfoId");
|
|
|
|
b.Property<int?>("Variant");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("IntAction");
|
|
|
|
b.HasIndex("Variant");
|
|
|
|
b.ToTable("KeyBinding");
|
|
});
|
|
|
|
modelBuilder.Entity("osu.Game.IO.FileInfo", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<string>("Hash");
|
|
|
|
b.Property<int>("ReferenceCount");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Hash")
|
|
.IsUnique();
|
|
|
|
b.HasIndex("ReferenceCount");
|
|
|
|
b.ToTable("FileInfo");
|
|
});
|
|
|
|
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.HasKey("Id");
|
|
|
|
b.HasIndex("Available");
|
|
|
|
b.HasIndex("InstantiationInfo")
|
|
.IsUnique();
|
|
|
|
b.HasIndex("Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("RulesetInfo");
|
|
});
|
|
|
|
modelBuilder.Entity("osu.Game.Beatmaps.BeatmapInfo", b =>
|
|
{
|
|
b.HasOne("osu.Game.Beatmaps.BeatmapDifficulty", "Difficulty")
|
|
.WithMany()
|
|
.HasForeignKey("BeatmapDifficultyId")
|
|
.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()
|
|
.HasForeignKey("MetadataId");
|
|
|
|
b.HasOne("osu.Game.Rulesets.RulesetInfo", "Ruleset")
|
|
.WithMany()
|
|
.HasForeignKey("RulesetInfoId")
|
|
.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);
|
|
});
|
|
|
|
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);
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|