namespace Admin.NET.Plugin.ApprovalFlow;
///
/// 审批流程操作日志表
///
[SugarTable(null, "审批流程操作日志表")]
[SugarIndex("idx_flowlog_instance", nameof(InstanceId), OrderByType.Asc)]
public class ApprovalFlowLog : EntityBase
{
///
/// 关联流程实例 Id
///
[SugarColumn(ColumnDescription = "流程实例Id")]
public long InstanceId { get; set; }
///
/// 关联任务 Id(可空,Submit 无 Task)
///
[SugarColumn(ColumnDescription = "任务Id", IsNullable = true)]
public long? TaskId { get; set; }
///
/// 节点 Id
///
[SugarColumn(ColumnDescription = "节点Id", Length = 64, IsNullable = true)]
[MaxLength(64)]
public string? NodeId { get; set; }
///
/// 操作动作
///
[SugarColumn(ColumnDescription = "操作动作")]
public FlowLogActionEnum Action { get; set; }
///
/// 操作人 Id
///
[SugarColumn(ColumnDescription = "操作人Id")]
public long OperatorId { get; set; }
///
/// 操作人姓名
///
[SugarColumn(ColumnDescription = "操作人姓名", Length = 64, IsNullable = true)]
[MaxLength(64)]
public string? OperatorName { get; set; }
///
/// 操作说明/审批意见
///
[SugarColumn(ColumnDescription = "审批意见", Length = 1024, IsNullable = true)]
[MaxLength(1024)]
public string? Comment { get; set; }
}