1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-23 14:07:24 +08:00
osu-lazer/osu.Game/Database/BeatmapSetInfo.cs

33 lines
890 B
C#
Raw Normal View History

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
{
2016-12-20 23:56:49 +08:00
[PrimaryKey, AutoIncrement]
public int ID { get; set; }
public int BeatmapSetID { get; set; }
2016-10-21 16:01:12 +08:00
[OneToOne(CascadeOperations = CascadeOperation.All)]
2016-12-20 23:56:49 +08:00
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
2016-12-20 23:56:49 +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; }
}
}