mirror of
https://github.com/C9Glax/tranga.git
synced 2025-07-02 00:44:16 +02:00
17 lines
495 B
C#
17 lines
495 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace API.Schema;
|
|
|
|
[PrimaryKey("Key")]
|
|
public class AltTitle(string language, string title) : Identifiable(TokenGen.CreateToken("AltTitle"))
|
|
{
|
|
[StringLength(8)]
|
|
[Required]
|
|
public string Language { get; init; } = language;
|
|
[StringLength(256)]
|
|
[Required]
|
|
public string Title { get; init; } = title;
|
|
|
|
public override string ToString() => $"{base.ToString()} {Language} {Title}";
|
|
} |