using System;

namespace CncModels.Entity
{
    /// <summary>
    /// 采集分析记录实体（日志库 log_collect_analysis）
    /// </summary>
    public class CollectAnalysis
    {
        /// <summary>自增ID</summary>
        public long Id { get; set; }

        /// <summary>分析时间</summary>
        public DateTime AnalysisTime { get; set; }

        /// <summary>原始日志ID</summary>
        public long RawLogId { get; set; }

        /// <summary>采集地址ID</summary>
        public int CollectAddressId { get; set; }

        /// <summary>机器ID</summary>
        public int MachineId { get; set; }

        /// <summary>分析类型</summary>
        public string AnalysisType { get; set; }

        /// <summary>前一程序名</summary>
        public string PreviousProgram { get; set; }

        /// <summary>当前程序名</summary>
        public string CurrentProgram { get; set; }

        /// <summary>前一阶段产出数量</summary>
        public decimal? PreviousPartCount { get; set; }

        /// <summary>当前阶段产出数量</summary>
        public decimal? CurrentPartCount { get; set; }

        /// <summary>产出变化量</summary>
        public decimal? PartCountDelta { get; set; }

        /// <summary>前一状态</summary>
        public string PreviousStatus { get; set; }

        /// <summary>当前状态</summary>
        public string CurrentStatus { get; set; }

        /// <summary>分析概要</summary>
        public string AnalysisSummary { get; set; }

        /// <summary>分析细节JSON字符串</summary>
        public string AnalysisDetail { get; set; }

        /// <summary>创建时间</summary>
        public DateTime CreatedAt { get; set; }
    }
}
