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_Permission
    {
        /// <summary>
        /// id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 权限类型  1周期   2目标   3结果
        /// </summary>
        public int PermissionType { get; set; }

        /// <summary>
        /// 周期/目标/结果 的id
        /// </summary>
        public int TargetId { get; set; }

        /// <summary>
        /// 类型  1员工  2部门   3岗位
        /// </summary>
        public PermissionTypeEnum Type { get; set; }

        /// <summary>
        /// 人/部门/岗位 id
        /// </summary>
        public int SourceId { get; set; }

        /// <summary>
        /// 状态  1可看   2不可看
        /// </summary>
        public int State { 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; }
    }
}
