mirror of
https://github.com/C9Glax/tranga.git
synced 2025-02-23 15:50:13 +01:00
15 lines
486 B
C#
15 lines
486 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace API.Schema;
|
|
|
|
[PrimaryKey("AltTitleId")]
|
|
public class MangaAltTitle(string language, string title)
|
|
{
|
|
[MaxLength(64)]
|
|
public string AltTitleId { get; init; } = TokenGen.CreateToken("AltTitle", language, title);
|
|
[MaxLength(8)]
|
|
public string Language { get; init; } = language;
|
|
public string Title { get; set; } = title;
|
|
} |