using System;

namespace CncModels.Entity
{
    /// <summary>
    /// cnc_daily_production 日汇总表
    /// </summary>
    public class DailyProduction
    {
        /// <summary>主键ID</summary>
        public int Id { get; set; }

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

        /// <summary>生产日期</summary>
        public DateTime ProductionDate { get; set; }

        /// <summary>程序名</summary>
        public string ProgramName { get; set; }

        /// <summary>总产量</summary>
        public decimal TotalQuantity { get; set; }

        /// <summary>工人ID（用于产量按工人汇总的场景）</summary>
        public int? WorkerId { get; set; }

        /// <summary>段数</summary>
        public int SegmentCount { get; set; }

        /// <summary>总运行时间</summary>
        public decimal? TotalRunTime { get; set; }

        /// <summary>总切削时间</summary>
        public decimal? TotalCuttingTime { get; set; }

        /// <summary>总循环时间</summary>
        public decimal? TotalCycleTime { get; set; }

        /// <summary>是否已调整</summary>
        public int IsAdjusted { get; set; }

        /// <summary>调整后的数量</summary>
        public decimal? AdjustedQuantity { get; set; }

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

        /// <summary>修改时间</summary>
        public DateTime UpdatedAt { get; set; }
    }
}
