namespace RIZO.Model.Mes.ProductionPreparation
{
///
/// 质量控制主表
///
[SugarTable("quality_control")]
public class QualityControl
{
///
/// 主表主键ID(自增)
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public long Id { get; set; }
///
/// 质控编码(唯一标识,格式:QC+日期+序号,如QC20251201001)
///
[SugarColumn(ColumnName = "qc_code")]
public string QcCode { get; set; }
///
/// 质控类型
///
[SugarColumn(ColumnName = "check_type")]
public string CheckType { get; set; }
///
/// 检查日期(格式:YYYY-MM-DD)
///
[SugarColumn(ColumnName = "check_date")]
public string CheckDate { get; set; }
///
/// 关联产线(如:1号产线/2号产线)
///
[SugarColumn(ColumnName = "line_code")]
public string LineCode { get; set; }
///
/// 关联产线(如:1号产线/2号产线)
///
[SugarColumn(ColumnName = "line_name")]
public string LineName { get; set; }
///
/// 检查结果(0=不合格,1=合格)
///
[SugarColumn(ColumnName = "check_result")]
public int? CheckResult { get; set; }
///
/// 检查完成时间
///
[SugarColumn(ColumnName = "check_time")]
public DateTime? CheckTime { get; set; }
///
/// 备注(如不合格原因)
///
public string Remark { get; set; }
///
/// 创建时间
///
[SugarColumn(ColumnName = "created_time")]
public DateTime? CreatedTime { get; set; }
///
/// 创建人
///
[SugarColumn(ColumnName = "created_by")]
public string CreatedBy { get; set; }
///
/// 更新时间(自动同步)
///
[SugarColumn(ColumnName = "updated_time")]
public DateTime? UpdatedTime { get; set; }
///
/// 更新人
///
[SugarColumn(ColumnName = "updated_by")]
public string UpdatedBy { get; set; }
///
/// 创建人名称
///
[SugarColumn(ColumnName = "created_name")]
public string CreatedName { get; set; }
///
/// 更新人名称
///
[SugarColumn(ColumnName = "updated_name")]
public string UpdatedName { get; set; }
///
/// 序号
///
[SugarColumn(ColumnName = "sequcence")]
public int Sequcence { get; set; }
}
}