using BPA.SAAS.Manage.Comm.Enum;
using BPA.SAAS.Manage.Core.Base;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BPA.SAAS.Manage.Core.DataBase
{
[SugarTable("bpa_bom")]
public class BPA_Bom : IBaseEntity, IGroupId
{
///
/// 配方名称
///
[SugarColumn(ColumnDataType = "Nvarchar(64)", IsNullable = false)]
public string Name { get; set; }
///
/// 配方编码
///
[SugarColumn(ColumnDataType = "Nvarchar(50)", IsNullable = false)]
public string Code { get; set; }
///
/// 1主料配方0 辅料配方
///
public bool IsMain { get; set; }
[SugarColumn(IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
public int AutoKey { get; set; }
///
/// 配方数据
///
public string BOMInfo { get; set; }
///
/// 排序
///
public int Sort { get; set; } = 1;
///
/// 状态 【正常 停用】默认 正常
///
[SugarColumn(ColumnDataType = "int", ColumnDescription = "状态", IsNullable = false)]
public CommonStatus Status { get; set; } = CommonStatus.ENABLE;
public string GroupId { get; set; }
}
}