81 lines
2.2 KiB
C#
81 lines
2.2 KiB
C#
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace MDM.Model.Material
|
|
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[SugarTable("material_bom", "物料BOM")]
|
|
public class MaterialBom
|
|
{
|
|
/// <summary>
|
|
/// 雪花id
|
|
/// </summary>
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = false, Length =50)]
|
|
public string Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 母件编码
|
|
/// </summary>
|
|
[SugarColumn(Length = 50, ExtendedAttribute = ProteryConstant.NOTNULL)]
|
|
public string InvCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 母件名称
|
|
/// </summary>
|
|
[SugarColumn(Length = 50, ExtendedAttribute = ProteryConstant.NOTNULL)]
|
|
public string InvName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 子件编码
|
|
/// </summary>
|
|
[SugarColumn(Length = 50, ExtendedAttribute = ProteryConstant.NOTNULL)]
|
|
public string SubInvCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 子件名称子件名称
|
|
/// </summary>
|
|
[SugarColumn(Length = 50, ExtendedAttribute = ProteryConstant.NOTNULL)]
|
|
public string SubInvName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 使用数量
|
|
/// </summary>
|
|
[SugarColumn(Length = 50)]
|
|
public string Iusequantity { get; set; }
|
|
|
|
/// <summary>
|
|
/// BOM版本号
|
|
/// </summary>
|
|
[SugarColumn(Length = 50)]
|
|
public string BOMVersion { get; set; }
|
|
|
|
/// <summary>
|
|
/// CreatedBy
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "created_by", Length = 50, IsNullable = true)]
|
|
public string CreatedBy { get; set; }
|
|
|
|
/// <summary>
|
|
/// CreatedTime
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "created_time")]
|
|
public DateTime CreatedTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// UpdatedBy
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "updated_by", Length = 50, IsNullable = true)]
|
|
public string UpdatedBy { get; set; }
|
|
|
|
/// <summary>
|
|
/// UpdatedTime
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "updated_time")]
|
|
public DateTime? UpdatedTime { get; set; }
|
|
|
|
}
|
|
} |