1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 17:47:19 +08:00
osu-lazer/osu.Game/Database/BeatmapSetInfo.cs

28 lines
699 B
C#
Raw Normal View History

2016-10-18 13:35:01 -04:00
using System;
2016-10-19 10:47:23 -04:00
using System.Collections.Generic;
using SQLite.Net.Attributes;
2016-10-18 13:35:01 -04:00
using SQLiteNetExtensions.Attributes;
namespace osu.Game.Database
{
public class BeatmapSetInfo
{
[PrimaryKey]
2016-10-21 17:01:12 +09:00
public int BeatmapSetID { get; set; }
[OneToOne(CascadeOperations = CascadeOperation.All)]
public BeatmapMetadata Metadata { get; set; }
[NotNull, ForeignKey(typeof(BeatmapMetadata))]
2016-10-18 13:35:01 -04:00
public int BeatmapMetadataID { get; set; }
2016-10-21 17:01:12 +09:00
[OneToMany(CascadeOperations = CascadeOperation.All)]
public List<BeatmapInfo> Beatmaps { get; set; }
public string Hash { get; set; }
2016-10-18 13:35:01 -04:00
public string Path { get; set; }
}
}