Fix annotations

This commit is contained in:
2025-03-13 19:15:55 +01:00
parent d93c8fdb94
commit d7f21550cd
20 changed files with 3757 additions and 52 deletions

View File

@ -6,9 +6,15 @@ namespace API.Schema;
[PrimaryKey("LinkId")]
public class Link(string linkProvider, string linkUrl)
{
[MaxLength(64)]
[StringLength(64)]
[Required]
public string LinkId { get; init; } = TokenGen.CreateToken(typeof(Link), linkProvider, linkUrl);
[StringLength(128)]
[Required]
public string LinkProvider { get; init; } = linkProvider;
[StringLength(128)]
[Required]
[Url]
public string LinkUrl { get; init; } = linkUrl;
public override bool Equals(object? obj)