2017-07-26 19:22:02 +08:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using osu.Game.IO;
|
2017-07-31 20:48:03 +08:00
|
|
|
|
using SQLite.Net.Attributes;
|
2017-07-26 19:22:02 +08:00
|
|
|
|
using SQLiteNetExtensions.Attributes;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Beatmaps
|
|
|
|
|
{
|
|
|
|
|
public class BeatmapSetFileInfo
|
|
|
|
|
{
|
2017-07-31 20:48:03 +08:00
|
|
|
|
[PrimaryKey, AutoIncrement]
|
|
|
|
|
public int ID { get; set; }
|
|
|
|
|
|
|
|
|
|
[ForeignKey(typeof(BeatmapSetInfo)), NotNull]
|
2017-07-26 19:22:02 +08:00
|
|
|
|
public int BeatmapSetInfoID { get; set; }
|
|
|
|
|
|
2017-07-31 20:48:03 +08:00
|
|
|
|
[ForeignKey(typeof(FileInfo)), NotNull]
|
2017-07-26 19:22:02 +08:00
|
|
|
|
public int FileInfoID { get; set; }
|
2017-07-31 20:48:03 +08:00
|
|
|
|
|
|
|
|
|
[OneToOne(CascadeOperations = CascadeOperation.CascadeRead)]
|
|
|
|
|
public FileInfo FileInfo { get; set; }
|
|
|
|
|
|
|
|
|
|
[NotNull]
|
|
|
|
|
public string Filename { get; set; }
|
2017-07-26 19:22:02 +08:00
|
|
|
|
}
|
|
|
|
|
}
|