SysJobDetail.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. namespace Admin.NET.Core;
  2. /// <summary>
  3. /// 系统作业信息表
  4. /// </summary>
  5. [SugarTable(null, "系统作业信息表")]
  6. [SystemTable]
  7. public class SysJobDetail : EntityBaseId
  8. {
  9. /// <summary>
  10. /// 作业Id
  11. /// </summary>
  12. [SugarColumn(ColumnDescription = "作业Id", Length = 64)]
  13. [Required, MaxLength(64)]
  14. public virtual string JobId { get; set; }
  15. /// <summary>
  16. /// 组名称
  17. /// </summary>
  18. [SugarColumn(ColumnDescription = "组名称", Length = 128)]
  19. [MaxLength(128)]
  20. public string? GroupName { get; set; } = "default";
  21. /// <summary>
  22. /// 作业类型FullName
  23. /// </summary>
  24. [SugarColumn(ColumnDescription = "作业类型", Length = 128)]
  25. [MaxLength(128)]
  26. public string? JobType { get; set; }
  27. /// <summary>
  28. /// 程序集Name
  29. /// </summary>
  30. [SugarColumn(ColumnDescription = "程序集", Length = 128)]
  31. [MaxLength(128)]
  32. public string? AssemblyName { get; set; }
  33. /// <summary>
  34. /// 描述信息
  35. /// </summary>
  36. [SugarColumn(ColumnDescription = "描述信息", Length = 128)]
  37. [MaxLength(128)]
  38. public string? Description { get; set; }
  39. /// <summary>
  40. /// 是否并行执行
  41. /// </summary>
  42. [SugarColumn(ColumnDescription = "是否并行执行")]
  43. public bool Concurrent { get; set; } = true;
  44. /// <summary>
  45. /// 是否扫描特性触发器
  46. /// </summary>
  47. [SugarColumn(ColumnDescription = "是否扫描特性触发器", ColumnName = "annotation")]
  48. public bool IncludeAnnotations { get; set; } = false;
  49. /// <summary>
  50. /// 额外数据
  51. /// </summary>
  52. [SugarColumn(ColumnDescription = "额外数据", ColumnDataType = "longtext,text,clob")]
  53. public string? Properties { get; set; } = "{}";
  54. /// <summary>
  55. /// 更新时间
  56. /// </summary>
  57. [SugarColumn(ColumnDescription = "更新时间")]
  58. public DateTime? UpdatedTime { get; set; }
  59. /// <summary>
  60. /// 脚本代码
  61. /// </summary>
  62. [SugarColumn(ColumnDescription = "脚本代码", ColumnDataType = "longtext,text,clob")]
  63. public string? ScriptCode { get; set; }
  64. }