//-----------------------------------------------------------------------
// <copyright file=" report_statistics_tree.cs">
// * FileName: .cs 
// </copyright>
//-----------------------------------------------------------------------
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Performance.EntityModels
{
    /// <summary>
    /// 
    /// </summary>
    [Table("report_statistics_tree")]
    public class report_statistics_tree
    {
        [Key]
        public int ID { get; set; }

        /// <summary>
        /// 每月汇总表ID
        /// </summary>
        public int? StatisticsID { get; set; }

        /// <summary>
        /// 统计层级父级ID
        /// </summary>
        public int? ParentID { get; set; }

        /// <summary>
        /// 统计层级名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 汇总数值SQL
        /// </summary>
        public string TotalScript { get; set; }

        /// <summary>
        /// 汇总数值公式
        /// </summary>
        public string TotalFormula { get; set; }

        /// <summary>
        /// 占比公式
        /// </summary>
        public string ProportionFormula { get; set; }

        /// <summary>
        /// 权重公式
        /// </summary>
        public string WeightFormula { get; set; }
    }
}