using System.ComponentModel.DataAnnotations; using Microsoft.EntityFrameworkCore; namespace API.Schema; [PrimaryKey("Key")] public class FileLibrary(string basePath, string libraryName) : Identifiable(TokenGen.CreateToken(typeof(FileLibrary), basePath)) { [StringLength(256)] [Required] public string BasePath { get; internal set; } = basePath; [StringLength(512)] [Required] public string LibraryName { get; internal set; } = libraryName; public override string ToString() => $"{base.ToString()} {LibraryName} - {BasePath}"; }