using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace ZR.Model.mes.md
{
///
/// 物料清单
///
[SugarTable("md_bom")]
public class MdBom
{
///
/// 流水号
///
[SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )]
public int Id { get; set; }
///
/// 父产品名称id
///
[SugarColumn(ColumnName="parent_id" )]
public int? ParentId { get; set; }
///
/// 父产品名称code
///
[SugarColumn(ColumnName="parent_code" )]
public string ParentCode { get; set; }
///
/// 父产品名称name
///
[SugarColumn(ColumnName="parent_name" )]
public string ParentName { get; set; }
///
/// 子项物料编号
///
[SugarColumn(ColumnName="material_code" )]
public string MaterialCode { get; set; }
///
/// 子项物料名称
///
[SugarColumn(ColumnName="material_name" )]
public string MaterialName { get; set; }
///
/// 类型(产品,物料)
///
[SugarColumn(ColumnName="material_type" )]
public string MaterialType { get; set; }
///
/// 安全库存
///
[SugarColumn(ColumnName="safety_stock" )]
public int? SafetyStock { get; set; }
///
/// 位置
///
[SugarColumn(ColumnName="material_position" )]
public string MaterialPosition { get; set; }
///
/// 需求数量
///
[SugarColumn(ColumnName="requireNum" )]
public int? RequireNum { get; set; }
///
/// 子项单位id
///
[SugarColumn(ColumnName="unit_id" )]
public int? UnitId { get; set; }
///
/// 租户号
///
[SugarColumn(ColumnName="TENANT_ID" )]
public string TenantId { get; set; }
///
/// 乐观锁
///
[SugarColumn(ColumnName="REVISION" )]
public int? Revision { 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; }
}
}