using SqlSugar; namespace RIZO.Admin.WebApi.PLC.Model { /// /// 产线PLC生产参数数据表 /// [SugarTable("plc_production_data")] public class PlcProductionData { /// /// 主键ID /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public int Id { get; set; } /// /// 产线编号(如line2) /// [SugarColumn(ColumnName = "line_code")] public string LineCode { get; set; } /// /// PLC IP地址 /// [SugarColumn(ColumnName = "plc_ip")] public string PlcIp { get; set; } /// /// 产品编码 /// [SugarColumn(ColumnName = "product_code")] public string ProductCode { get; set; } /// /// 产品名称 /// [SugarColumn(ColumnName = "product_name")] public string ProductName { get; set; } /// /// 零件编码 /// [SugarColumn(ColumnName = "part_code")] public string PartCode { get; set; } /// /// 零件名称 /// [SugarColumn(ColumnName = "part_name")] public string PartName { get; set; } /// /// 工序名称 /// [SugarColumn(ColumnName = "process_name")] public string ProcessName { get; set; } /// /// 参数名称 /// [SugarColumn(ColumnName = "param_name")] public string ParamName { get; set; } /// /// 参数值(兼容数值/字符串类型) /// [SugarColumn(ColumnName = "param_value")] public string ParamValue { get; set; } /// /// 数据发生时间(系统时间) /// [SugarColumn(ColumnName = "occur_time")] public DateTime? OccurTime { get; set; } /// /// 合格标志:0-默认,1-合格,2-不合格 /// [SugarColumn(ColumnName = "qualification_flag")] public string QualificationFlag { get; set; } /// /// 返工标志:0-正常,1-返工 /// [SugarColumn(ColumnName = "rework_flag")] public string ReworkFlag { get; set; } /// /// 生产节拍(秒) /// [SugarColumn(ColumnName = "production_cycle")] public int? ProductionCycle { get; set; } /// /// 设备自动手动:0-自动,1-手动 /// [SugarColumn(ColumnName = "automanual")] public int? AutoManual { get; set; } /// /// 运行状态:1正常,2异常 /// [SugarColumn(ColumnName = "runstatus")] public int? RunStatus { get; set; } /// /// 备注 /// public string Remark { get; set; } /// /// 创建人 /// [SugarColumn(ColumnName = "cREATED_BY")] public string CreatedBy { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "cREATED_TIME")] public DateTime? CreatedTime { get; set; } /// /// 更新人 /// [SugarColumn(ColumnName = "uPDATED_BY")] public string UpdatedBy { get; set; } /// /// 更新时间 /// [SugarColumn(ColumnName = "uPDATED_TIME")] public DateTime? UpdatedTime { get; set; } } }