using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace zzz.Model.Entity
{
///
/// 公用
///
[SugarTable("eqmt_collect_pub_data")]
public class EqmtPubData
{
///
/// id
///
[SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "自增主键")]
public long id { get; set; }
///
/// 创建时间
///
[SugarColumn(IsNullable = true, ColumnDescription = "创建时间")]
public DateTime? gmt_create { get; set; } = DateTime.Now;
///
/// 修改时间
///
[SugarColumn(IsNullable = true, ColumnDescription = "修改时间")]
public DateTime? gmt_modified { get; set; }
///
/// 收集唯一ID
///
[SugarColumn(IsNullable = true, ColumnDescription = "收集唯一ID")]
public string collect_id { get; set; }
///
/// 设备id
///
[SugarColumn(IsNullable = false, ColumnDescription = "设备id")]
public int eqmt_id { get; set; }
///
/// 产品型号
///
[SugarColumn(IsNullable = true, ColumnDescription = "产品型号",ColumnDataType ="varchar(50)")]
public string product_type { get; set; }
///
/// 产品名称(带型号)
///
[SugarColumn(IsNullable = true, ColumnDescription = "产品名称(含型号)", ColumnDataType = "varchar(255)")]
public string product_type_name { get; set; }
///
/// 生产速度
///
[SugarColumn(IsNullable = true, ColumnDescription = "生产速度")]
public int speed { get; set; }
///
/// 总生产数量
///
[SugarColumn(IsNullable = true, ColumnDescription = "总生产数量")]
public int total_product_qty { get; set; }
///
/// 当日生产数量
///
[SugarColumn(IsNullable = true, ColumnDescription = "当日生产数量")]
public int intraday_product_qty { get; set; }
///
/// 当日合格品数量
///
[SugarColumn(IsNullable = true, ColumnDescription = "当日合格品数量")]
public int intraday_ok_qty { get; set; }
///
/// 当日不良品数量
///
[SugarColumn(IsNullable = true, ColumnDescription = "当日不良品数量")]
public int intraday_ng_qty { get; set; }
///
/// 当日合格率
///
[SugarColumn(IsNullable = true, ColumnDescription = "当日合格率", ColumnDataType = "decimal(20,2)")]
public decimal intraday_yield_rate { get; set; }
///
/// 当日开机总时间(单位:秒)
///
[SugarColumn(IsNullable = true, ColumnDescription = "当日开机总时间(单位:秒)")]
public int intraday_eqmt_run_time { get; set; }
///
/// 当日负荷时间(单位:秒)
///
[SugarColumn(IsNullable = true, ColumnDescription = "当日负荷时间(单位:秒)")]
public int intraday_eqmt_work_time { get; set; }
///
/// 当日停机时间(单位:秒)
///
[SugarColumn(IsNullable = true, ColumnDescription = "当日停机时间(单位:秒)")]
public int intraday_eqmt_stop_time { get; set; }
///
/// 当日开机效率
///
[SugarColumn(IsNullable = true, ColumnDescription = "当日开机效率", ColumnDataType = "decimal(20,2)")]
public decimal intraday_eqmt_work_rate { get; set; }
///
/// 当日停机次数
///
[SugarColumn(IsNullable = true, ColumnDescription = "当日停机次数")]
public int intraday_eqmt_stop_times { get; set; }
///
/// 设备状态 0:关机;1:开机;2:待机
///
[SugarColumn(IsNullable = true, ColumnDescription = "设备状态 0:关机;1:开机;2:待机")]
public byte eqmt_status { get; set; }
///
/// 设备异常标记
///
[SugarColumn(IsNullable = true, ColumnDescription = "设备异常标记")]
public byte eqmt_except_flag { get; set; }
///
/// 设备报警标记
///
[SugarColumn(IsNullable = true, ColumnDescription = "设备报警标记")]
public byte eqmt_alarm_flag { get; set; }
///
/// OEE
///
[SugarColumn(IsNullable = true, ColumnDescription = "OEE", ColumnDataType = "decimal(20,2)")]
public decimal oee { get; set; }
///
/// 创建日期
///
[SugarColumn(IsNullable = true, ColumnDescription = "创建日期")]
public DateTime? create_time { get; set; }
///
/// 更新人
///
[SugarColumn(IsNullable = true, ColumnDescription = "更新人", Length = 50)]
public string update_by { get; set; }
///
/// 更新日期
///
[SugarColumn(IsNullable = true, ColumnDescription = "更新日期")]
public DateTime? update_time { get; set; }
///
/// 所属部门
///
[SugarColumn(IsNullable = true, ColumnDescription = "所属部门", Length = 64)]
public string sys_org_code { get; set; }
}
}