1
0
mirror of https://github.com/C9Glax/tranga.git synced 2025-04-17 13:53:18 +02:00
Tranga/API/Schema/LocalLibrary.cs

17 lines
490 B
C#

using System.ComponentModel.DataAnnotations;
namespace API.Schema;
public class LocalLibrary(string basePath, string libraryName)
{
[StringLength(64)]
[Required]
public string LocalLibraryId { get; init; } = TokenGen.CreateToken(typeof(LocalLibrary), basePath);
[StringLength(256)]
[Required]
public string BasePath { get; internal set; } = basePath;
[StringLength(512)]
[Required]
public string LibraryName { get; internal set; } = libraryName;
}