using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.DB.Models;
namespace WIDESEA_Model.Models
{
    /// 
    /// 审批任务表
    /// 
    [SugarTable(nameof(Dt_ApprovalTask), "审批任务表")]
    public class Dt_ApprovalTask : BaseEntity
    {
        /// 
        /// 审批任务编号,主键
        /// 
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "审批任务编号,主键")]
        public int Id { get; set; }
        /// 
        /// 审批流程编号,外键
        /// 
        [SugarColumn(IsNullable = false, ColumnDescription = "审批流程编号,外键")]
        public int FlowId { get; set; }
        /// 
        /// 审批节点编号,外键
        /// 
        [SugarColumn(IsNullable = false, ColumnDescription = "审批节点编号,外键")]
        public int NodeId { get; set; }
        /// 
        /// 申请人用户编号
        /// 
        [SugarColumn(IsNullable = false, ColumnDescription = "申请人用户编号")]
        public int ApplicantUserId { get; set; }
        /// 
        /// 申请人用户名称
        /// 
        [SugarColumn(IsNullable = false, ColumnDescription = "申请人用户名称")]
        public string ApplicantUserName { get; set; }
        /// 
        /// 任务状态(如待审批、已审批、已驳回等)
        /// 
        [SugarColumn(IsNullable = false, ColumnDescription = "任务状态(如待审批、已审批、已驳回等)")]
        public int Status { get; set; }
        /// 
        /// 审批意见内容
        /// 
        [SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "审批意见内容")]
        public string OpinionContent { get; set; }
        /// 
        /// 审批人
        /// 
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "审批人")]
        public string AuditUser { get; set; }
        /// 
        /// 来源主键
        /// 
        [SugarColumn(IsNullable = false, ColumnDescription = "来源主键")]
        public int SourceKey { get; set; }
    }
}