using JNPF.Common.Contracts;
using JNPF.Common.Security;
using SqlSugar;
namespace Tnb.BasicData.Entities;
///
/// 工步BOM明细
///
[SugarTable("bas_step_bom")]
public partial class BasStepBom : BaseEntity
{
public BasStepBom()
{
id = SnowflakeIdHelper.NextId();
}
///
/// 租户ID
///
public string? tenant_id { get; set; }
///
/// 所属组织
///
public string? org_id { get; set; }
///
/// 产品代码
///
public string item_code { get; set; } = string.Empty;
///
/// 工艺路线代码
///
public string route_code { get; set; } = string.Empty;
///
/// 工艺路线版本
///
public string route_version { get; set; } = string.Empty;
///
/// 工序代码
///
public string process_code { get; set; } = string.Empty;
///
/// 工序BOM版本
///
public string version { get; set; } = string.Empty;
///
/// 工步代码
///
public string step_code { get; set; } = string.Empty;
///
/// 物料顺序号
///
public int sub_seq { get; set; }
///
/// 物料代码
///
public string subm_code { get; set; } = string.Empty;
///
/// 物料单位
///
public string sub_unit { get; set; } = string.Empty;
///
/// 单件用量
///
public decimal sub_qty { get; set; }
///
/// 位号
///
public string? sub_location { get; set; }
///
/// 物料用途: 1:消耗的物料(主料) 2:消耗用辅料(辅料)
///
public int usetype { get; set; }
///
/// 备注
///
public string? remark { get; set; }
///
/// 时间戳(用于并发控制)
///
public string? timestamp { get; set; }
///
/// 创建用户
///
public string? create_id { get; set; }
///
/// 创建时间
///
public DateTime create_time { get; set; } = DateTime.Now;
///
/// 修改用户
///
public string? modify_id { get; set; }
///
/// 修改时间
///
public DateTime? modify_time { get; set; }
///
/// 扩展字段
///
public string? extras { get; set; }
}