AdoSmartOpsLayoutItem.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using Admin.NET.Core;
  2. namespace Admin.NET.Plugin.AiDOP.Entity;
  3. /// <summary>
  4. /// 租户运营指标布局行(L1/L2),与 Catalog 中 metric_code 绑定。
  5. /// </summary>
  6. [SugarTable("ado_smart_ops_layout_item", "智慧运营布局行")]
  7. public class AdoSmartOpsLayoutItem : ITenantIdFilter
  8. {
  9. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true)]
  10. public long Id { get; set; }
  11. [SugarColumn(ColumnDescription = "租户")]
  12. public long? TenantId { get; set; }
  13. [SugarColumn(ColumnDescription = "工厂")]
  14. public long FactoryId { get; set; }
  15. [SugarColumn(ColumnDescription = "模块", Length = 8)]
  16. public string ModuleCode { get; set; } = string.Empty;
  17. /// <summary>稳定行键,如 S4-L1-S4_CYCLE_L1</summary>
  18. [SugarColumn(ColumnDescription = "行ID", Length = 96)]
  19. public string RowId { get; set; } = string.Empty;
  20. [SugarColumn(ColumnDescription = "1=L1 2=L2")]
  21. public int MetricLevel { get; set; }
  22. [SugarColumn(ColumnDescription = "指标编码", Length = 64)]
  23. public string MetricCode { get; set; } = string.Empty;
  24. [SugarColumn(ColumnDescription = "展示名覆盖", Length = 256, IsNullable = true)]
  25. public string? DisplayName { get; set; }
  26. [SugarColumn(ColumnDescription = "排序")]
  27. public int SortNo { get; set; }
  28. [SugarColumn(ColumnDescription = "L2 父行 RowId", Length = 96, IsNullable = true)]
  29. public string? ParentRowId { get; set; }
  30. [SugarColumn(ColumnDescription = "公式说明", ColumnDataType = "text", IsNullable = true)]
  31. public string? FormulaText { get; set; }
  32. /// <summary>S4 详情左右栏:left / right,其它模块可空</summary>
  33. [SugarColumn(ColumnDescription = "详情分区", Length = 16, IsNullable = true)]
  34. public string? PanelZone { get; set; }
  35. [SugarColumn(ColumnDescription = "启用 0/1")]
  36. public int IsEnabled { get; set; } = 1;
  37. [SugarColumn(ColumnDescription = "更新时间")]
  38. public DateTime UpdateTime { get; set; }
  39. }