using e_suite.Database.Core.Tables.CustomFields;

namespace e_suite.API.Common.models;

public class ValidatedCustomFieldValue
{
    public CustomField CustomField { get; set; } = null!;
    public long CustomFieldId { get; set; }
    public int Index { get; set; }
    public string Value { get; set; } = string.Empty;
    public string? DisplayValue { get; set; } = string.Empty;
    public bool Valid => ValidationErrors.Count == 0;
    public List<string> ValidationErrors { get; set; } = new List<string>();
}