using JiShe.CollectBus.Analyzers.Shared;
using JiShe.CollectBus.IoTDB.Attribute;
using JiShe.CollectBus.IoTDB.Enums;

namespace JiShe.CollectBus.IoTDB.Model
{
    /// <summary>
    /// Table模型单项数据实体
    /// </summary>
    [EntityType(EntityTypeEnum.TableModel)]
    [SourceAnalyzers]
    public class TableModelSingleMeasuringEntity<T> : IoTEntity
    {
        /// <summary>
        /// 单项数据键值对
        /// </summary>
        [SingleMeasuring(nameof(SingleColumn))]
        public required Tuple<string, T> SingleColumn { get; set; }
    }
}
