|
@@ -9,6 +9,11 @@ public class Track : IUserData
|
|
|
public ObjectId TrackId { get; set; } = ObjectId.Empty;
|
|
public ObjectId TrackId { get; set; } = ObjectId.Empty;
|
|
|
[BsonRef("users")]
|
|
[BsonRef("users")]
|
|
|
public UserProfile Owner { get; set; } = new UserProfile();
|
|
public UserProfile Owner { get; set; } = new UserProfile();
|
|
|
|
|
+
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// Redundant field <code>Owner.UserId</code> to simplify queries
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ public string OwnerId { get; set; } = String.Empty;
|
|
|
public string FileHash { get; set; } = String.Empty;
|
|
public string FileHash { get; set; } = String.Empty;
|
|
|
public string DisplayName { get; set; } = String.Empty;
|
|
public string DisplayName { get; set; } = String.Empty;
|
|
|
public double Distance { get; set; }
|
|
public double Distance { get; set; }
|