using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Atomx.Common.Entities
{
    /// <summary>
    /// 制造商产品关系
    /// </summary>
    [Table("ManufacturerProductRelations")]
    public class ManufacturerProductRelation
    {
        /// <summary>
        /// 数据ID
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Key]
        public long Id { get; set; }

        /// <summary>
        /// 产品ID
        /// </summary>
        public long ProductId { get; set; }

        /// <summary>
        /// 供应制造商ID
        /// </summary>
        public long ManufacturerId { get; set; }

        /// <summary>
        /// 预设默认制造加工费
        /// </summary>
        [Column(TypeName = "decimal(18,4)")]
        public decimal ProcessingFee { get; set; }

        /// <summary>
        /// 预设默认附加工费
        /// </summary>
        [Column(TypeName = "decimal(18,4)")]
        public decimal AdditionalFee { get; set; }


    }
}
