Fix MaxURL length in db (2048)

This commit is contained in:
2025-03-13 23:26:58 +01:00
parent 232fe6406a
commit 1480aa0a03
8 changed files with 926 additions and 20 deletions

View File

@ -35,7 +35,7 @@ public class Chapter : IComparable<Chapter>
[Required]
public string ChapterNumber { get; private set; }
[StringLength(256)]
[StringLength(2048)]
[Required]
[Url]
public string Url { get; internal set; }

View File

@ -9,10 +9,10 @@ public class Link(string linkProvider, string linkUrl)
[StringLength(64)]
[Required]
public string LinkId { get; init; } = TokenGen.CreateToken(typeof(Link), linkProvider, linkUrl);
[StringLength(128)]
[StringLength(64)]
[Required]
public string LinkProvider { get; init; } = linkProvider;
[StringLength(128)]
[StringLength(2048)]
[Required]
[Url]
public string LinkUrl { get; init; } = linkUrl;

View File

@ -16,7 +16,7 @@ public abstract class MangaConnector(string name, string[] supportedLanguages, s
[StringLength(8)]
[Required]
public string[] SupportedLanguages { get; init; } = supportedLanguages;
[StringLength(256)]
[StringLength(2048)]
[Required]
public string IconUrl { get; init; } = iconUrl;
[StringLength(256)]

View File

@ -13,7 +13,7 @@ public class NotificationConnector(string name, string url, Dictionary<string, s
[Required]
public string Name { get; init; } = name;
[StringLength(256)]
[StringLength(2048)]
[Required]
[Url]
public string Url { get; internal set; } = url;
@ -25,7 +25,7 @@ public class NotificationConnector(string name, string url, Dictionary<string, s
[Required]
public string HttpMethod { get; internal set; } = httpMethod;
[StringLength(512)]
[StringLength(4096)]
[Required]
public string Body { get; internal set; } = body;