SysJobDetail.cs 2.1 KB

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