using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
namespace BBWY.Server.Model.Db
{

    /// <summary>
    /// Sku采购方案表
    /// </summary>
    [Table(Name = "purchasescheme", DisableSyncStructure = true)]
    public partial class PurchaseScheme
    {

        /// <summary>
        /// Sku采购方案Id
        /// </summary>
        [Column(IsPrimary = true)]
        public long Id { get; set; }

        [Column(DbType = "datetime")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 采购默认成本
        /// </summary>

        public decimal DefaultCost { get; set; } = 0.0M;

        [Column(StringLength = 50, IsNullable = false)]
        public string ProductId { get; set; }

        /// <summary>
        /// 采购商Id
        /// </summary>
        [Column(StringLength = 20)]
        public string PurchaserId { get; set; }

        /// <summary>
        /// 采购实际成本
        /// </summary>

        public decimal RealCost { get; set; } = 0.0M;

        [Column(StringLength = 50, IsNullable = false)]
        public string SkuId { get; set; }

        public long ShopId { get; set; }

        [Column(MapType = typeof(int), DbType = "int(1)")]
        public Enums.Platform PurchasePlatform { get; set; }

        [Column(IsIgnore = true)]
        public List<PurchaseSchemeProduct> PurchaseSchemeProductList { get; set; }
    }

}