2016-12-06 17:56:20 +08:00
|
|
|
|
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using System;
|
2016-10-19 22:47:23 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using SQLite.Net.Attributes;
|
2016-10-19 01:35:01 +08:00
|
|
|
|
using SQLiteNetExtensions.Attributes;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Database
|
|
|
|
|
{
|
|
|
|
|
public class BeatmapSetInfo
|
|
|
|
|
{
|
|
|
|
|
[PrimaryKey]
|
2016-10-21 16:01:12 +08:00
|
|
|
|
public int BeatmapSetID { get; set; }
|
|
|
|
|
|
|
|
|
|
[OneToOne(CascadeOperations = CascadeOperation.All)]
|
|
|
|
|
public BeatmapMetadata Metadata { get; set; }
|
|
|
|
|
|
|
|
|
|
[NotNull, ForeignKey(typeof(BeatmapMetadata))]
|
2016-10-19 01:35:01 +08:00
|
|
|
|
public int BeatmapMetadataID { get; set; }
|
2016-10-21 16:01:12 +08:00
|
|
|
|
|
|
|
|
|
[OneToMany(CascadeOperations = CascadeOperation.All)]
|
|
|
|
|
public List<BeatmapInfo> Beatmaps { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Hash { get; set; }
|
|
|
|
|
|
2016-10-19 01:35:01 +08:00
|
|
|
|
public string Path { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|