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; }
///
/// 工站编码
///
[SugarColumn(ColumnName = "workstationCode")]
public string WorkstationCode { get; set; }
///
/// 工站名称
///
[SugarColumn(ColumnName = "workstationName")]
public string WorkstationName { 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 = "product_model")]
public string ProductModel { 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=运行中,3=故障;
///
[SugarColumn(ColumnName = "runstatus")]
public int? RunStatus { get; set; }
///
/// 托盘号
///
[SugarColumn(ColumnName = "trayNo")]
public string TrayNo { get; set; }
///
/// 生产模式
///
[SugarColumn(ColumnName = "produceModel")]
public string ProduceModel { get; set; }
///
/// 设备在线状态1=离线,0=在线
///
[SugarColumn(ColumnName = "onlineStatus")]
public string OnlineStatus { 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; }
///
/// 条码查询
///
[SugarColumn(ColumnName = "SN_1")]
public string SN1 { get; set; }
///
/// 结果上传条码
///
[SugarColumn(ColumnName = "SN_2")]
public string SN2 { get; set; }
///
/// 相机结果1,OK,2,NG
///
[SugarColumn(ColumnName = "cameraResult")]
public string CameraResult { get; set; }
}
}