namespace Entity;

/// <summary>
/// 配置实体
/// </summary>
[Table(Name = "Config")]
public class ConfigEntity : BaseEntity
{
    /// <summary>
    /// 配置Key
    /// </summary>
    public string Key { get; set; } = string.Empty;

    /// <summary>
    /// 配置Value
    /// </summary>
    public string Value { get; set; } = string.Empty;

    /// <summary>
    /// 配置类型
    /// </summary>
    public ConfigType Type { get; set; }
}

public enum ConfigType
{
    Boolean,
    String,
    Json,
    Number
}
