using FreeSql.DataAnnotations;
using System.Text;

namespace SiNan.Model.Db
{

    [Table(Name = "aggregationjdpopularizesku", DisableSyncStructure = true)]
    public partial class AggregationJDPopularizeSku
    {
        /// <summary>
        /// sku
        /// </summary>
        [Column(StringLength = 50, IsPrimary = true, IsNullable = false)]
        public string Id { get; set; }

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

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

        /// <summary>
        /// 近30天推广花费
        /// </summary>
        [Column(DbType = "decimal(18,2)")]
        public decimal? Recent30dCost { get; set; }

        /// <summary>
        /// 近30天推广维度GOI
        /// </summary>
        [Column(DbType = "decimal(18,2)")]
        public decimal? Recent30dPopularizeLevelGOI { get; set; }

        /// <summary>
        /// 近30天推广维度毛利
        /// </summary>
        [Column(DbType = "decimal(18,2)")]
        public decimal? Recent30dPopularizeLevelProfit { get; set; }

        /// <summary>
        /// 近30天产品维度GOI
        /// </summary>
        [Column(DbType = "decimal(18,2)")]
        public decimal? Recent30dProductLevelGOI { get; set; }

        /// <summary>
        /// 近30天产品维度毛利
        /// </summary>
        [Column(DbType = "decimal(18,2)")]
        public decimal? Recent30dProductLevelProfit { get; set; }

        /// <summary>
        /// 近7天推广花费
        /// </summary>
        [Column(DbType = "decimal(18,2)")]
        public decimal? Recent7dCost { get; set; }

        /// <summary>
        /// 近7天推广维度GOI
        /// </summary>
        [Column(DbType = "decimal(18,2)")]
        public decimal? Recent7dPopularizeLevelGOI { get; set; }

        /// <summary>
        /// 近7天推广维度毛利
        /// </summary>
        [Column(DbType = "decimal(18,2)")]
        public decimal? Recent7dPopularizeLevelProfit { get; set; }

        /// <summary>
        /// 近7天产品维度GOI
        /// </summary>
        [Column(DbType = "decimal(18,2)")]
        public decimal? Recent7dProductLevelGOI { get; set; }

        /// <summary>
        /// 近7天产品维度毛利
        /// </summary>
        [Column(DbType = "decimal(18,2)")]
        public decimal? Recent7dProductLevelProfit { get; set; }

        [Column(DbType = "bigint")]
        public long? ShopId { get; set; }

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

        /// <summary>
        /// 昨天推广花费
        /// </summary>
        [Column(DbType = "decimal(18,2)")]
        public decimal? YestodayCost { get; set; }

        /// <summary>
        /// 昨天推广维度GOI
        /// </summary>
        [Column(DbType = "decimal(18,2)")]
        public decimal? YestodayPopularizeLevelGOI { get; set; }

        /// <summary>
        /// 昨天推广维度毛利
        /// </summary>
        [Column(DbType = "decimal(18,2)")]
        public decimal? YestodayPopularizeLevelProfit { get; set; }

        /// <summary>
        /// 昨天产品维度GOI
        /// </summary>
        [Column(DbType = "decimal(18,2)")]
        public decimal? YestodayProductLevelGOI { get; set; }

        /// <summary>
        /// 昨天产品维度毛利
        /// </summary>
        [Column(DbType = "decimal(18,2)")]
        public decimal? YestodayProductLevelProfit { get; set; }

        /// <summary>
        /// 数据日期
        /// </summary>
        [Column(DbType = "datetime")]
        public DateTime? Date { get; set; }

        /// <summary>
        /// 近7天推广维度ROI
        /// </summary>
        [Column(DbType = "decimal(18,2)")]
        public decimal? Recent7dPopularizeLevelROI { get; set; } = 0.00M;

    }

}