Material.cs 2.82 KB
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace WebRepository
{
    /// <summary>
	/// 物料表
	/// </summary>
    [Table("material")]
    public partial class Material : SysEntity
    {
        public Material()
        {
        }

        /// <summary>
	    /// 物料编码
	    /// </summary>
        [Column("code")]
        public string Code { get; set; }
        /// <summary>
	    /// 物料类别
	    /// </summary>
        [Column("type")]
        public string Type { get; set; }
        /// <summary>
	    /// 名称
	    /// </summary>
        [Column("name")]
        public string Name { get; set; }
        /// <summary>
	    /// 条码
	    /// </summary>
        [Column("barcode")]
        public string Barcode { get; set; }
        /// <summary>
	    /// 规格
	    /// </summary>
        [Column("specification")]
        public string Specification { get; set; }
        /// <summary>
	    /// 品牌
	    /// </summary>
        [Column("brand")]
        public string Brand { get; set; }
        /// <summary>
	    /// 尺码
	    /// </summary>
        [Column("size")]
        public string Size { get; set; }
        /// <summary>
	    /// 颜色
	    /// </summary>
        [Column("color")]
        public string Color { get; set; }
        /// <summary>
	    /// 产地
	    /// </summary>
        [Column("placeOfOrigin")]
        public string PlaceOfOrigin { get; set; }
        /// <summary>
	    /// 保质期(天)
	    /// </summary>
        [Column("daysToExpire")]
        public int? DaysToExpire { get; set; }
        /// <summary>
	    /// 临期预警天数
	    /// </summary>
        [Column("expiringDays")]
        public int? ExpiringDays { get; set; }
        /// <summary>
	    /// 收货预警天数
	    /// </summary>
        [Column("minShelfLifeDays")]
        public int? MinShelfLifeDays { get; set; }
        /// <summary>
	    /// 成本
	    /// </summary>
        [Column("costPrice")]
        public decimal? CostPrice { get; set; }
        /// <summary>
	    /// 标价
	    /// </summary>
        [Column("listPrice")]
        public decimal? ListPrice { get; set; }
        /// <summary>
	    /// 净价
	    /// </summary>
        [Column("netPrice")]
        public decimal? NetPrice { get; set; }
        /// <summary>
	    /// 主计量单位
	    /// </summary>
        [Column("masterUnit")]
        public string MasterUnit { get; set; }
        /// <summary>
	    /// 辅计量单位
	    /// </summary>
        [Column("assistUnit")]
        public string AssistUnit { get; set; }
        /// <summary>
	    /// 计量换算率
	    /// </summary>
        [Column("convertRate")]
        public float? ConvertRate { get; set; }
        /// <summary>
        /// 预警数量
        /// </summary>
        [Column("alertNum")]
        public int? AlertNum { get; set; }
    }
}