ApprovalFlowLog.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. namespace Admin.NET.Plugin.ApprovalFlow;
  2. /// <summary>
  3. /// 审批流程操作日志表
  4. /// </summary>
  5. [SugarTable(null, "审批流程操作日志表")]
  6. [SugarIndex("idx_flowlog_instance", nameof(InstanceId), OrderByType.Asc)]
  7. public class ApprovalFlowLog : EntityBase
  8. {
  9. /// <summary>
  10. /// 关联流程实例 Id
  11. /// </summary>
  12. [SugarColumn(ColumnDescription = "流程实例Id")]
  13. public long InstanceId { get; set; }
  14. /// <summary>
  15. /// 关联任务 Id(可空,Submit 无 Task)
  16. /// </summary>
  17. [SugarColumn(ColumnDescription = "任务Id", IsNullable = true)]
  18. public long? TaskId { get; set; }
  19. /// <summary>
  20. /// 节点 Id
  21. /// </summary>
  22. [SugarColumn(ColumnDescription = "节点Id", Length = 64, IsNullable = true)]
  23. [MaxLength(64)]
  24. public string? NodeId { get; set; }
  25. /// <summary>
  26. /// 操作动作
  27. /// </summary>
  28. [SugarColumn(ColumnDescription = "操作动作")]
  29. public FlowLogActionEnum Action { get; set; }
  30. /// <summary>
  31. /// 操作人 Id
  32. /// </summary>
  33. [SugarColumn(ColumnDescription = "操作人Id")]
  34. public long OperatorId { get; set; }
  35. /// <summary>
  36. /// 操作人姓名
  37. /// </summary>
  38. [SugarColumn(ColumnDescription = "操作人姓名", Length = 64, IsNullable = true)]
  39. [MaxLength(64)]
  40. public string? OperatorName { get; set; }
  41. /// <summary>
  42. /// 操作说明/审批意见
  43. /// </summary>
  44. [SugarColumn(ColumnDescription = "审批意见", Length = 1024, IsNullable = true)]
  45. [MaxLength(1024)]
  46. public string? Comment { get; set; }
  47. }