osu/osu.Game/Database/BeatmapSetInfo.cs

33 lines
905 B
C#
Raw Normal View History

2016-12-06 09:56:20 +00: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 14:47:23 +00:00
using System.Collections.Generic;
using SQLite.Net.Attributes;
2016-10-18 17:35:01 +00:00
using SQLiteNetExtensions.Attributes;
namespace osu.Game.Database
{
public class BeatmapSetInfo
{
2016-12-20 15:56:49 +00:00
[PrimaryKey, AutoIncrement]
public int ID { get; set; }
public int? OnlineBeatmapSetID { get; set; } = null;
2016-12-20 15:56:49 +00:00
2016-10-21 08:01:12 +00:00
[OneToOne(CascadeOperations = CascadeOperation.All)]
2016-12-20 15:56:49 +00:00
public BeatmapMetadata Metadata { get; set; }
[NotNull, ForeignKey(typeof(BeatmapMetadata))]
2016-10-18 17:35:01 +00:00
public int BeatmapMetadataID { get; set; }
2016-10-21 08:01:12 +00:00
2016-12-20 15:56:49 +00:00
[OneToMany(CascadeOperations = CascadeOperation.All)]
public List<BeatmapInfo> Beatmaps { get; set; }
public string Hash { get; set; }
2016-10-18 17:35:01 +00:00
public string Path { get; set; }
}
}