using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAuth.Repository.Domain
{
    [SugarTable("wf_delegaterule")]
    public class WFDelegateRule
    {
        #region 实体成员 
        /// <summary> 
        /// 主键 
        /// </summary> 
        [SugarColumn(IsPrimaryKey = true)]
        public string Id { get; set; }
        /// <summary> 
        /// 被委托人Id 
        /// </summary> 
        public string ToUserId { get; set; }
        /// <summary> 
        /// 被委托人名称 
        /// </summary> 
        public string ToUserName { get; set; }
        /// <summary> 
        /// 委托开始时间 
        /// </summary> 
        public DateTime? BeginDate { get; set; }
        /// <summary> 
        /// 委托结束时间 
        /// </summary> 
        public DateTime? EndDate { get; set; }
        /// <summary> 
        /// 委托人Id 
        /// </summary> 
        public string CreateUserId { get; set; }
        /// <summary> 
        /// 委托人名称 
        /// </summary> 
        public string CreateUserName { get; set; }
        /// <summary> 
        /// 创建时间 
        /// </summary> 
        public DateTime? CreateDate { get; set; }
        /// <summary> 
        /// 有效标志1有效 0 无效 
        /// </summary> 
        public int? EnabledMark { get; set; }

        /// <summary> 
        /// 委托类型 1 待发委托 0或其他 审核委托
        /// </summary> 
        public int? Type { get; set; }
        /// <summary> 
        /// 备注 
        /// </summary> 
        public string Description { get; set; }
        #endregion
    }
}
