namespace GB5Shared.GOP.Qualifier.DTOs
{
///
/// Maps MQUALIFIERRULECONDITION — leaf conditions within a rule group.
/// Severity: 1=Error, 2=Warning, 3=Info.
/// PK: QUALIFIERRULECONDITIONID (app-generated INT via AutoNumber).
///
public class QualifierRuleConditionDTO
{
public int ConditionId { get; set; }
public int RuleGroupId { get; set; }
public int QualifierId { get; set; }
public int TenantId { get; set; }
public string FieldPath { get; set; } = string.Empty;
public string ConditionOperator { get; set; } = string.Empty;
public string? ExpectedValue { get; set; }
/// 1=Error, 2=Warning, 3=Info
public byte Severity { get; set; }
public string? ErrorCode { get; set; }
public string? ErrorMessage { get; set; }
public int SortOrder { get; set; }
public int SourceType { get; set; }
// Audit fields — set by DAL
public int CreatedById { get; set; }
public int ModifiedById { get; set; }
}
}