namespace QYZH.InteractiveMagazine.Models.Settings;

/// <summary>
/// 勋章规则配置（可配置的目标表和字段）
/// </summary>
public class MedalRuleConfigSettings
{
    /// <summary>
    /// 可用的目标表列表
    /// </summary>
    public List<MedalRuleTableConfig> Tables { get; set; } = new();
}

/// <summary>
/// 勋章规则目标表配置
/// </summary>
public class MedalRuleTableConfig
{
    /// <summary>
    /// 表名
    /// </summary>
    public string TableName { get; set; } = string.Empty;

    /// <summary>
    /// 显示名称
    /// </summary>
    public string DisplayName { get; set; } = string.Empty;

    /// <summary>
    /// 可用字段列表
    /// </summary>
    public List<MedalRuleFieldConfig> Fields { get; set; } = new();
}

/// <summary>
/// 勋章规则字段配置
/// </summary>
public class MedalRuleFieldConfig
{
    /// <summary>
    /// 字段名
    /// </summary>
    public string FieldName { get; set; } = string.Empty;

    /// <summary>
    /// 显示名称
    /// </summary>
    public string DisplayName { get; set; } = string.Empty;
}
