using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhonTai.Admin.Core.Entities;

namespace ZhonTai.Admin.Domain.Project
{
    /// <summary>
    /// 项目配置
    /// </summary>
    [Table(Name = "ditui_project_config")]
    public partial class ProjectConfigEntity : EntityTenant
    {
        /// <summary>
        /// 项目Id
        /// </summary>
        public long ProjectId { get; set; }
        /// <summary>
        /// 项目价格Id
        /// </summary>
        public long ProjectPriceId { get; set; }
        /// <summary>
        /// 抽成方式 1抽成比例 2抽成金额
        /// </summary>
        public int DrawWay { get; set; }
        /// <summary>
        /// 抽成比例
        /// </summary>
        public decimal DrawRatio { get; set; }
        /// <summary>
        /// 抽成金额
        /// </summary>
        public decimal? DrawAmount { get; set; }
        /// <summary>
        /// 生效时间
        /// </summary>        
        public DateTime? EffectDate { get; set; }
        /// <summary>
        /// 状态 1正常 2失效
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 1公司抽成 2项目抽成 3租户抽成
        /// </summary>
        public int DrawType { get; set; }
    }
}
