81 lines
2.2 KiB
C#
Raw Normal View History

2026-01-10 13:47:54 +08:00
2026-01-16 10:40:58 +08:00
using System.ComponentModel.DataAnnotations;
2026-01-10 13:47:54 +08:00
namespace MDM.Model.Material
{
/// <summary>
///
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarTable("material_bom", "物料BOM")]
2026-01-10 13:47:54 +08:00
public class MaterialBom
{
/// <summary>
/// 雪花id
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(IsPrimaryKey = true, IsIdentity = false, Length =50)]
public string Id { get; set; }
2026-01-10 13:47:54 +08:00
/// <summary>
/// 母件编码
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(Length = 50, ExtendedAttribute = ProteryConstant.NOTNULL)]
2026-01-10 13:47:54 +08:00
public string InvCode { get; set; }
/// <summary>
/// 母件名称
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(Length = 50, ExtendedAttribute = ProteryConstant.NOTNULL)]
2026-01-10 13:47:54 +08:00
public string InvName { get; set; }
/// <summary>
/// 子件编码
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(Length = 50, ExtendedAttribute = ProteryConstant.NOTNULL)]
2026-01-10 13:47:54 +08:00
public string SubInvCode { get; set; }
/// <summary>
/// 子件名称子件名称
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(Length = 50, ExtendedAttribute = ProteryConstant.NOTNULL)]
2026-01-10 13:47:54 +08:00
public string SubInvName { get; set; }
/// <summary>
/// 使用数量
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(Length = 50)]
2026-01-10 13:47:54 +08:00
public string Iusequantity { get; set; }
/// <summary>
/// BOM版本号
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(Length = 50)]
2026-01-10 13:47:54 +08:00
public string BOMVersion { get; set; }
/// <summary>
/// CreatedBy
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(ColumnName = "created_by", Length = 50, IsNullable = true)]
2026-01-10 13:47:54 +08:00
public string CreatedBy { get; set; }
/// <summary>
/// CreatedTime
/// </summary>
2026-01-21 10:26:48 +08:00
[SugarColumn(ColumnName = "created_time")]
2026-01-16 15:08:40 +08:00
public DateTime? CreatedTime { get; set; }
2026-01-10 13:47:54 +08:00
/// <summary>
/// UpdatedBy
/// </summary>
2026-01-16 10:40:58 +08:00
[SugarColumn(ColumnName = "updated_by", Length = 50, IsNullable = true)]
2026-01-10 13:47:54 +08:00
public string UpdatedBy { get; set; }
/// <summary>
/// UpdatedTime
/// </summary>
2026-01-16 14:50:07 +08:00
[SugarColumn(ColumnName = "updated_time")]
2026-01-10 13:47:54 +08:00
public DateTime? UpdatedTime { get; set; }
}
}