namespace OnlyOneAccessTemplate.Models
{
    public record FormField
    {
        public string Name { get; init; } = string.Empty;
        public string Type { get; init; } = "text";
        public string Label { get; init; } = string.Empty;
        public string Placeholder { get; init; } = string.Empty;
        public bool Required { get; init; } = false;
        public string ValidationRegex { get; init; } = string.Empty;
        public int Order { get; init; } = 0;
        public Dictionary<string, object> Properties { get; init; } = new();
    }
}
