jonvwolf_TaleTacticsApi2/HorrorTacticsApi2/Hubs/Models/TextLogModel.cs
using HorrorTacticsApi2.Common;
using System.ComponentModel.DataAnnotations;

namespace HorrorTacticsApi2.Hubs.Models
{
    public record TextLogModel(
        // TODO: restrict more these regex constraints
        [property: MinLength(1), MaxLength(100), Required, RegularExpression(ValidationConstants.RegularExpressionForAllStrings)] string Message,
        [property: MinLength(1), MaxLength(100), Required, RegularExpression(ValidationConstants.RegularExpressionForAllStrings)] string From);
}
