using Edu.Common.Enum;
using Edu.Common.Enum.Course;
using System;
using VT.FW.DB;

namespace Edu.Model.Entity.Course
{
    /// <summary>
    /// 课程优惠表实体类
    /// </summary>
    [Serializable]
    [DB(ConnectionName = "DefaultConnection")]
    public class RB_Course_Preferential
    {
        /// <summary>
        /// 主键编号
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 课程编号
        /// </summary>
        public int CourseId { get; set; }

        /// <summary>
        /// 优惠条件
        /// </summary>
        public string PreferentialTerms { get; set; }

        /// <summary>
        /// 销售返佣类型(0-百分比，1-固定金额)
        /// </summary>
        public int SaleCommissionType { get; set; }

        /// <summary>
        /// 销售返佣
        /// </summary>
        public decimal SaleCommissionMoney { get; set; }

        /// <summary>
        /// 同行返佣类型(0-百分比，1-固定金额)
        /// </summary>
        public int B2BCommissionType { get; set; }

        /// <summary>
        /// 同行返佣
        /// </summary>
        public decimal B2BCommissionMoney { get; set; }

        /// <summary>
        /// 课程价格优惠类型(见枚举)
        /// </summary>
        public CoursePriceDiscountEnum PriceDiscountType { get; set; }

        /// <summary>
        /// 购买人数
        /// </summary>
        public int BuyNum { get; set; }

        /// <summary>
        /// 赠送人数
        /// </summary>
        public int SendNum { get; set; }

        /// <summary>
        /// 优惠价格类型(0-百分比，1-固定金额)
        /// </summary>
        public int PriceType { get; set; }

        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal PriceMoney { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public int CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public int UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 学校Id
        /// </summary>
        public int School_Id { get; set; }

        /// <summary>
        /// 集团编号
        /// </summary>
        public int Group_Id { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public DateStateEnum Status { get; set; }

        /// <summary>
        /// 教育返佣类型(0-百分比，1-固定金额)
        /// </summary>
        public int EduCommissionType { get; set; }

        /// <summary>
        /// 教育同行佣金
        /// </summary>
        public decimal EduCommissionMoney { get; set; }
    }
}
