using JNPF.Common.Contracts;
using JNPF.Common.Security;
using SqlSugar;
namespace Tnb.ProductionMgr.Entities;
///
/// 工单与产品序列号的关联关系
///
[SugarTable("prd_mo_rcard")]
public partial class PrdMoRcard : BaseEntity
{
public PrdMoRcard()
{
id = SnowflakeIdHelper.NextId();
}
///
/// 租户ID
///
public string? tenant_id { get; set; }
///
/// 所属组织
///
public string? org_id { get; set; }
///
/// 工单ID
///
public string mo_id { get; set; } = string.Empty;
///
/// 工单代码
///
public string mo_code { get; set; } = string.Empty;
///
/// 产品序列号
///
public string r_card { get; set; } = string.Empty;
///
/// 关联比例
///
public decimal relation_qty { get; set; }
///
/// 打印次数
///
public int? print_times { get; set; }
///
/// 最后一次打印人员ID
///
public string? last_print_user_id { get; set; }
///
/// 最后一次打印人员姓名
///
public string? last_print_user_name { get; set; }
///
/// 最后一次打印时间
///
public DateTime? last_print_time { get; set; }
///
/// 条码状态: AVAILABLE-可用 SCRAP-报废
///
public string status { get; set; } = string.Empty;
///
/// 时间戳
///
public string? time_stamp { get; set; }
///
/// 扩展字段
///
public string? extras { get; set; }
///
/// 创建用户
///
public string? create_id { get; set; }
///
/// 创建时间
///
public DateTime? create_time { get; set; }
///
/// 修改用户
///
public string? modify_id { get; set; }
///
/// 修改时间
///
public DateTime? modify_time { get; set; }
}