|
@@ -1,5 +1,7 @@
|
|
|
// ReSharper disable UnusedAutoPropertyAccessor.Global
|
|
// ReSharper disable UnusedAutoPropertyAccessor.Global
|
|
|
// ReSharper disable PropertyCanBeMadeInitOnly.Global
|
|
// ReSharper disable PropertyCanBeMadeInitOnly.Global
|
|
|
|
|
+
|
|
|
|
|
+using System.ComponentModel.DataAnnotations;
|
|
|
using LiteDB;
|
|
using LiteDB;
|
|
|
|
|
|
|
|
namespace RunnersMeet.Server.Domain;
|
|
namespace RunnersMeet.Server.Domain;
|
|
@@ -15,6 +17,8 @@ public class Track : IUserData
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
public string OwnerId { get; set; } = String.Empty;
|
|
public string OwnerId { get; set; } = String.Empty;
|
|
|
public string FileHash { get; set; } = String.Empty;
|
|
public string FileHash { get; set; } = String.Empty;
|
|
|
|
|
+ [Required]
|
|
|
|
|
+ [MinLength(5)]
|
|
|
public string DisplayName { get; set; } = String.Empty;
|
|
public string DisplayName { get; set; } = String.Empty;
|
|
|
public string Description { get; set; } = String.Empty;
|
|
public string Description { get; set; } = String.Empty;
|
|
|
public double Distance { get; set; }
|
|
public double Distance { get; set; }
|