Add max Length when creating a message.

This commit is contained in:
PascalMarchesseault
2024-08-06 23:59:09 -04:00
parent f46d1146e1
commit 162063facd

View File

@@ -11,5 +11,5 @@ public class Message
[MaxLength(255)] public string? CreatedByPortraitUrl { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public Guid? ParentId { get; set; }
public required string Value { get; set; }
[MaxLength(2048)] public required string Value { get; set; }
}