namespace JiShe.CollectBus.IoTDB.Options
{
    /// <summary>
    /// 查询条件
    /// </summary>
    public class QueryCondition
    {
        /// <summary>
        /// 字段
        /// </summary>
        public string Field { get; set; }

        /// <summary>
        /// 操作符,>，=，<
        /// </summary>
        public string Operator { get; set; }

        /// <summary>
        /// 是否数值，如果是数值，则进行数值比较，否则进行字符串比较
        /// </summary>
        public bool IsNumber { get; set; } = false;

        /// <summary>
        /// 值
        /// </summary>
        public object Value { get; set; }
    }
}
