2021-10-11 14:25:00 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
2024-01-09 14:37:29 +08:00
|
|
|
|
using System.Linq;
|
2021-10-11 14:25:00 +08:00
|
|
|
|
using osu.Game.IO;
|
|
|
|
|
using Realms;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Models
|
|
|
|
|
{
|
|
|
|
|
[MapTo("File")]
|
|
|
|
|
public class RealmFile : RealmObject, IFileInfo
|
|
|
|
|
{
|
|
|
|
|
[PrimaryKey]
|
|
|
|
|
public string Hash { get; set; } = string.Empty;
|
2024-01-09 14:37:29 +08:00
|
|
|
|
|
|
|
|
|
[Backlink(nameof(RealmNamedFileUsage.File))]
|
|
|
|
|
public IQueryable<RealmNamedFileUsage> Usages { get; } = null!;
|
2021-10-11 14:25:00 +08:00
|
|
|
|
}
|
|
|
|
|
}
|