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

namespace Edu.Model.Entity.OKR
{
    /// <summary>
    /// okr规则实体类
    /// </summary>
    [Serializable]
    [DB(ConnectionName = "DefaultConnection")]
    public class RB_OKR_Rule
    {
        /// <summary>
        /// id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 规则名称
        /// </summary>
        public string RuleName { get; set; }

        /// <summary>
        /// 数据库
        /// </summary>
        public string DataBase { get; set; }

        /// <summary>
        /// 表名
        /// </summary>
        public string Table { get; set; }

        /// <summary>
        /// 统计字段
        /// </summary>
        public string Field { get; set; }

        /// <summary>
        /// 统计方式  枚举
        /// </summary>
        public RuleTypeEnum Way { get; set; }

        /// <summary>
        /// 状态字段
        /// </summary>
        public string State { get; set; }

        /// <summary>
        /// 身份字段
        /// </summary>
        public string Identity { get; set; }

        /// <summary>
        /// 操作时间字段
        /// </summary>
        public string Time { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 状态   1启用  2停用 
        /// </summary>
        public int Enable { get; set; }

        /// <summary>
        /// 删除状态 
        /// </summary>
        public int Status { get; set; }

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

        /// <summary>
        /// 学校id
        /// </summary>
        public int School_Id { 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; }
    }
}
