AdoModuleDashboardRebuildJob.cs 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. namespace Admin.NET.Plugin.AiDOP.Entity.SmartOps;
  2. [SugarTable("ado_module_dashboard_rebuild_job", "模块看板完整重算任务")]
  3. public class AdoModuleDashboardRebuildJob
  4. {
  5. [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
  6. public long Id { get; set; }
  7. [SugarColumn(ColumnName = "module_code", Length = 8)]
  8. public string ModuleCode { get; set; } = string.Empty;
  9. [SugarColumn(ColumnName = "tenant_id")]
  10. public long TenantId { get; set; }
  11. [SugarColumn(ColumnName = "factory_id")]
  12. public long FactoryId { get; set; } = 1;
  13. [SugarColumn(ColumnName = "status", Length = 20)]
  14. public string Status { get; set; } = "QUEUED";
  15. [SugarColumn(ColumnName = "trigger_type", Length = 20)]
  16. public string TriggerType { get; set; } = "MANUAL";
  17. [SugarColumn(ColumnName = "requested_by", IsNullable = true)]
  18. public long? RequestedBy { get; set; }
  19. [SugarColumn(ColumnName = "batch_id", Length = 100, IsNullable = true)]
  20. public string BatchId { get; set; }
  21. [SugarColumn(ColumnName = "transform_run_log_id", IsNullable = true)]
  22. public long? TransformRunLogId { get; set; }
  23. [SugarColumn(ColumnName = "current_stage", Length = 32)]
  24. public string CurrentStage { get; set; } = "QUEUED";
  25. [SugarColumn(ColumnName = "stage_index")]
  26. public int StageIndex { get; set; }
  27. [SugarColumn(ColumnName = "stage_total")]
  28. public int StageTotal { get; set; }
  29. [SugarColumn(ColumnName = "progress_percent")]
  30. public int ProgressPercent { get; set; }
  31. [SugarColumn(ColumnName = "progress_message", Length = 255, IsNullable = true)]
  32. public string ProgressMessage { get; set; }
  33. [SugarColumn(ColumnName = "failed_stage", Length = 32, IsNullable = true)]
  34. public string FailedStage { get; set; }
  35. [SugarColumn(ColumnName = "stage_rows")]
  36. public int StageRows { get; set; }
  37. [SugarColumn(ColumnName = "standard_rows")]
  38. public int StandardRows { get; set; }
  39. [SugarColumn(ColumnName = "dwd_rows")]
  40. public int DwdRows { get; set; }
  41. [SugarColumn(ColumnName = "kpi_rows")]
  42. public int KpiRows { get; set; }
  43. [SugarColumn(ColumnName = "atomic_rows")]
  44. public int AtomicRows { get; set; }
  45. [SugarColumn(ColumnName = "detail_json", ColumnDataType = "text", IsNullable = true)]
  46. public string DetailJson { get; set; }
  47. [SugarColumn(ColumnName = "error_message", Length = 2000, IsNullable = true)]
  48. public string ErrorMessage { get; set; }
  49. [SugarColumn(ColumnName = "submitted_at")]
  50. public DateTime SubmittedAt { get; set; }
  51. [SugarColumn(ColumnName = "started_at", IsNullable = true)]
  52. public DateTime? StartedAt { get; set; }
  53. [SugarColumn(ColumnName = "finished_at", IsNullable = true)]
  54. public DateTime? FinishedAt { get; set; }
  55. [SugarColumn(ColumnName = "heartbeat_at", IsNullable = true)]
  56. public DateTime? HeartbeatAt { get; set; }
  57. [SugarColumn(ColumnName = "last_progress_at", IsNullable = true)]
  58. public DateTime? LastProgressAt { get; set; }
  59. [SugarColumn(ColumnName = "duration_ms", IsNullable = true)]
  60. public int? DurationMs { get; set; }
  61. [SugarColumn(ColumnName = "create_time")]
  62. public DateTime CreateTime { get; set; }
  63. [SugarColumn(ColumnName = "update_time")]
  64. public DateTime UpdateTime { get; set; }
  65. }