dengjunjie
2024-10-24 48e865c8ed5902ae34f133a29dfade36d3f018d3
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Basic/Dt_MaterielInfo.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,56 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.DB.Models;
namespace WIDESEA_Model.Models
{
    [SugarTable(nameof(Dt_MaterielInfo), "物料信息")]
    public class Dt_MaterielInfo : BaseEntity
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
        public int Id { get; set; }
        [SugarColumn(IsNullable = false, ColumnDescription = "区域主键")]
        public int AreaId { get; set; }
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "物料编号")]
        public string MaterielCode { get; set; }
        [SugarColumn(IsNullable = false, Length = 200, ColumnDescription = "物料名称")]
        public string MaterielName { get; set; }
        [SugarColumn(IsNullable = true, Length = 500, ColumnDescription = "物料描述")]
        public string MaterielDes { get; set; }
        [SugarColumn(IsNullable = false, ColumnDescription = "容器类型", DefaultValue = "0")]
        public int CotainerType { get; set; }
        [SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "包装规格")]
        public string Packspes { get; set; }
        [SugarColumn(IsNullable = false, ColumnDescription = "物料属性", DefaultValue = "0")]
        public int Attribute { get; set; }
        [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "计量单位", DefaultValue = "0")]
        public string Unit { get; set; }
        [SugarColumn(IsNullable = false, ColumnDescription = "有效期", DefaultValue = "-1")]
        public int Validity { get; set; }
        [SugarColumn(IsNullable = false, DecimalDigits = 2, ColumnDescription = "安全库存", DefaultValue = "-1")]
        public decimal SafetyStock { get; set; }
        [SugarColumn(IsNullable = false, ColumnDescription = "是否允许混批")]
        public bool IsMixBatch { get; set; }
        [SugarColumn(IsNullable = false, ColumnDescription = "是否允许混料")]
        public bool IsMixMateriel { get; set; }
        [SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "备注")]
        public string Remark { get; set; }
    }
}