MdpSyncConfigEntities.cs 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. namespace Admin.NET.Plugin.AiDOP.Entity.DataPlatform;
  2. [SugarTable("mdp_sync_task", "MDP同步任务业务配置")]
  3. public class MdpSyncTask
  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 = "task_code", Length = 100)]
  10. public string TaskCode { get; set; } = string.Empty;
  11. [SugarColumn(ColumnName = "task_name", Length = 200)]
  12. public string TaskName { get; set; } = string.Empty;
  13. [SugarColumn(ColumnName = "task_type", Length = 40)]
  14. public string TaskType { get; set; } = "SERVICE_SYNC";
  15. [SugarColumn(ColumnName = "business_domain_code", Length = 100, IsNullable = true)]
  16. public string? BusinessDomainCode { get; set; }
  17. [SugarColumn(ColumnName = "business_domain_name", Length = 200, IsNullable = true)]
  18. public string? BusinessDomainName { get; set; }
  19. [SugarColumn(ColumnName = "consumer_modules", Length = 500, IsNullable = true)]
  20. public string? ConsumerModules { get; set; }
  21. [SugarColumn(ColumnName = "source_system_code", Length = 100, IsNullable = true)]
  22. public string? SourceSystemCode { get; set; }
  23. [SugarColumn(ColumnName = "service_key", Length = 100, IsNullable = true)]
  24. public string? ServiceKey { get; set; }
  25. [SugarColumn(ColumnName = "job_code", Length = 100, IsNullable = true)]
  26. public string? JobCode { get; set; }
  27. [SugarColumn(ColumnName = "schedule_job_id", Length = 100, IsNullable = true)]
  28. public string? ScheduleJobId { get; set; }
  29. [SugarColumn(ColumnName = "status")]
  30. public int Status { get; set; } = 1;
  31. [SugarColumn(ColumnName = "owner_role", Length = 100, IsNullable = true)]
  32. public string? OwnerRole { get; set; }
  33. [SugarColumn(ColumnName = "config_version")]
  34. public int ConfigVersion { get; set; } = 1;
  35. [SugarColumn(ColumnName = "description", Length = 1000, IsNullable = true)]
  36. public string? Description { get; set; }
  37. [SugarColumn(ColumnName = "create_time")]
  38. public DateTime CreateTime { get; set; }
  39. [SugarColumn(ColumnName = "update_time")]
  40. public DateTime UpdateTime { get; set; }
  41. }
  42. [SugarTable("mdp_sync_task_step", "MDP同步任务步骤配置")]
  43. public class MdpSyncTaskStep
  44. {
  45. [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
  46. public long Id { get; set; }
  47. [SugarColumn(ColumnName = "tenant_id")]
  48. public long TenantId { get; set; }
  49. [SugarColumn(ColumnName = "task_code", Length = 100)]
  50. public string TaskCode { get; set; } = string.Empty;
  51. [SugarColumn(ColumnName = "step_code", Length = 100)]
  52. public string StepCode { get; set; } = string.Empty;
  53. [SugarColumn(ColumnName = "step_name", Length = 200)]
  54. public string StepName { get; set; } = string.Empty;
  55. [SugarColumn(ColumnName = "stage_type", Length = 40)]
  56. public string StageType { get; set; } = string.Empty;
  57. [SugarColumn(ColumnName = "service_method_key", Length = 100, IsNullable = true)]
  58. public string? ServiceMethodKey { get; set; }
  59. [SugarColumn(ColumnName = "enabled")]
  60. public int Enabled { get; set; } = 1;
  61. [SugarColumn(ColumnName = "sort_order")]
  62. public int SortOrder { get; set; }
  63. [SugarColumn(ColumnName = "description", Length = 1000, IsNullable = true)]
  64. public string? Description { get; set; }
  65. [SugarColumn(ColumnName = "create_time")]
  66. public DateTime CreateTime { get; set; }
  67. [SugarColumn(ColumnName = "update_time")]
  68. public DateTime UpdateTime { get; set; }
  69. }
  70. [SugarTable("mdp_sync_task_schedule", "MDP同步任务调度业务配置")]
  71. public class MdpSyncTaskSchedule
  72. {
  73. [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
  74. public long Id { get; set; }
  75. [SugarColumn(ColumnName = "tenant_id")]
  76. public long TenantId { get; set; }
  77. [SugarColumn(ColumnName = "task_code", Length = 100)]
  78. public string TaskCode { get; set; } = string.Empty;
  79. [SugarColumn(ColumnName = "schedule_job_id", Length = 100, IsNullable = true)]
  80. public string? ScheduleJobId { get; set; }
  81. [SugarColumn(ColumnName = "schedule_mode", Length = 40)]
  82. public string ScheduleMode { get; set; } = "CRON";
  83. [SugarColumn(ColumnName = "cron_expr", Length = 200, IsNullable = true)]
  84. public string? CronExpr { get; set; }
  85. [SugarColumn(ColumnName = "cron_desc", Length = 500, IsNullable = true)]
  86. public string? CronDesc { get; set; }
  87. [SugarColumn(ColumnName = "timezone", Length = 100)]
  88. public string Timezone { get; set; } = "Asia/Shanghai";
  89. [SugarColumn(ColumnName = "auto_enabled")]
  90. public int AutoEnabled { get; set; } = 1;
  91. [SugarColumn(ColumnName = "manual_enabled")]
  92. public int ManualEnabled { get; set; } = 1;
  93. [SugarColumn(ColumnName = "retry_enabled")]
  94. public int RetryEnabled { get; set; } = 1;
  95. [SugarColumn(ColumnName = "max_retry_count")]
  96. public int MaxRetryCount { get; set; } = 3;
  97. [SugarColumn(ColumnName = "retry_interval_seconds")]
  98. public int RetryIntervalSeconds { get; set; } = 300;
  99. [SugarColumn(ColumnName = "timeout_seconds")]
  100. public int TimeoutSeconds { get; set; } = 3600;
  101. [SugarColumn(ColumnName = "misfire_policy", Length = 40, IsNullable = true)]
  102. public string? MisfirePolicy { get; set; }
  103. [SugarColumn(ColumnName = "sync_window_type", Length = 40)]
  104. public string SyncWindowType { get; set; } = "FULL";
  105. [SugarColumn(ColumnName = "sync_window_value", Length = 200, IsNullable = true)]
  106. public string? SyncWindowValue { get; set; }
  107. [SugarColumn(ColumnName = "last_schedule_time", IsNullable = true)]
  108. public DateTime? LastScheduleTime { get; set; }
  109. [SugarColumn(ColumnName = "next_schedule_time", IsNullable = true)]
  110. public DateTime? NextScheduleTime { get; set; }
  111. [SugarColumn(ColumnName = "admin_job_config_json", ColumnDataType = "text", IsNullable = true)]
  112. public string? AdminJobConfigJson { get; set; }
  113. [SugarColumn(ColumnName = "description", Length = 1000, IsNullable = true)]
  114. public string? Description { get; set; }
  115. [SugarColumn(ColumnName = "create_time")]
  116. public DateTime CreateTime { get; set; }
  117. [SugarColumn(ColumnName = "update_time")]
  118. public DateTime UpdateTime { get; set; }
  119. }