mirror of
https://github.com/C9Glax/tranga.git
synced 2025-09-10 03:48:19 +02:00
15 lines
541 B
C#
15 lines
541 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace API.Schema.MangaContext;
|
|
|
|
[PrimaryKey("Key")]
|
|
public class FileLibrary(string basePath, string libraryName)
|
|
: Identifiable(TokenGen.CreateToken(typeof(FileLibrary), basePath))
|
|
{
|
|
[StringLength(256)] public string BasePath { get; internal set; } = basePath;
|
|
|
|
[StringLength(512)] public string LibraryName { get; internal set; } = libraryName;
|
|
|
|
public override string ToString() => $"{base.ToString()} {LibraryName} - {BasePath}";
|
|
} |