namespace OpenAuth.Repository.Domain.workflow;
using SqlSugar;
using System;
///
/// 流程会签记录表(zy_flow_parallel_audit)
///
[SugarTable("zy_flow_parallel_audit")]
public class ZyFlowParallelAudit
{
///
/// 审批记录ID(主键,自增)
///
[SugarColumn(ColumnName = "audit_id", IsPrimaryKey = true, IsIdentity = true, IsNullable = false)]
public long AuditId { get; set; }
///
/// 流程实例ID(外键关联zy_flow_instance)
///
[SugarColumn(ColumnName = "instance_id", IsNullable = false)]
public long InstanceId { get; set; }
///
/// 节点ID
///
[SugarColumn(ColumnName = "node_id", IsNullable = false)]
public long NodeId { get; set; }
///
/// 部门名称
///
[SugarColumn(ColumnName = "dept_name", IsNullable = false)]
public string DeptName { get; set; } = string.Empty;
///
/// 审批结果(Pass/Reject/Pending)
///
[SugarColumn(ColumnName = "audit_result", IsNullable = false)]
public string AuditResult { get; set; } = string.Empty;
///
/// 审批意见
///
[SugarColumn(ColumnName = "audit_comment", IsNullable = true)]
public string? AuditComment { get; set; }
///
/// 审批人ID
///
[SugarColumn(ColumnName = "auditor_id", IsNullable = false)]
public long AuditorId { get; set; }
///
/// 审批人姓名
///
[SugarColumn(ColumnName = "auditor_name", IsNullable = false)]
public string AuditorName { get; set; } = string.Empty;
///
/// 审批时间(默认当前时间)
///
[SugarColumn(ColumnName = "audit_time", IsNullable = true)]
public DateTime? AuditTime { get; set; } = DateTime.Now;
}