AdoS1DashboardRebuildJob.cs 3.0 KB

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