MdpSyncTaskFormula.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. namespace Admin.NET.Plugin.AiDOP.Entity.DataPlatform;
  2. [SugarTable("mdp_sync_task_formula", "MDP同步任务公式配置")]
  3. public class MdpSyncTaskFormula
  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 = "step_code", Length = 100, IsNullable = true)]
  12. public string? StepCode { get; set; }
  13. [SugarColumn(ColumnName = "formula_code", Length = 100)]
  14. public string FormulaCode { get; set; } = string.Empty;
  15. [SugarColumn(ColumnName = "formula_name", Length = 200)]
  16. public string FormulaName { get; set; } = string.Empty;
  17. [SugarColumn(ColumnName = "metric_code", Length = 100, IsNullable = true)]
  18. public string? MetricCode { get; set; }
  19. [SugarColumn(ColumnName = "formula_expr", Length = 1000, IsNullable = true)]
  20. public string? FormulaExpr { get; set; }
  21. [SugarColumn(ColumnName = "formula_preview", Length = 1000, IsNullable = true)]
  22. public string? FormulaPreview { get; set; }
  23. [SugarColumn(ColumnName = "formula_refs", ColumnDataType = "text", IsNullable = true)]
  24. public string? FormulaRefs { get; set; }
  25. [SugarColumn(ColumnName = "calc_rule", ColumnDataType = "text", IsNullable = true)]
  26. public string? CalcRule { get; set; }
  27. [SugarColumn(ColumnName = "direction", Length = 40)]
  28. public string Direction { get; set; } = "higher_is_better";
  29. [SugarColumn(ColumnName = "yellow_threshold", IsNullable = true)]
  30. public decimal? YellowThreshold { get; set; }
  31. [SugarColumn(ColumnName = "red_threshold", IsNullable = true)]
  32. public decimal? RedThreshold { get; set; }
  33. [SugarColumn(ColumnName = "version_no")]
  34. public int VersionNo { get; set; } = 1;
  35. [SugarColumn(ColumnName = "is_enabled")]
  36. public byte IsEnabled { get; set; } = 1;
  37. [SugarColumn(ColumnName = "sort_order")]
  38. public int SortOrder { get; set; }
  39. [SugarColumn(ColumnName = "description", Length = 1000, IsNullable = true)]
  40. public string? Description { get; set; }
  41. [SugarColumn(ColumnName = "create_time")]
  42. public DateTime CreateTime { get; set; }
  43. [SugarColumn(ColumnName = "update_time")]
  44. public DateTime UpdateTime { get; set; }
  45. }