AdoSmartOpsKpiTargetConfig.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. namespace Admin.NET.Plugin.AiDOP.Entity;
  2. [SugarTable("ado_smart_ops_kpi_target_config", "运营指标正式目标配置")]
  3. public class AdoSmartOpsKpiTargetConfig
  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; }
  11. [SugarColumn(ColumnName = "metric_code", Length = 50)]
  12. public string MetricCode { get; set; } = string.Empty;
  13. [SugarColumn(ColumnName = "target_value", DecimalDigits = 6)]
  14. public decimal TargetValue { get; set; }
  15. [SugarColumn(ColumnName = "effective_from")]
  16. public DateTime EffectiveFrom { get; set; }
  17. [SugarColumn(ColumnName = "effective_to", IsNullable = true)]
  18. public DateTime? EffectiveTo { get; set; }
  19. [SugarColumn(ColumnName = "source_type", Length = 30)]
  20. public string SourceType { get; set; } = "MANUAL";
  21. [SugarColumn(ColumnName = "source_batch_id", Length = 100, IsNullable = true)]
  22. public string? SourceBatchId { get; set; }
  23. [SugarColumn(ColumnName = "status")]
  24. public int Status { get; set; } = 1;
  25. [SugarColumn(ColumnName = "remark", Length = 500, IsNullable = true)]
  26. public string? Remark { get; set; }
  27. [SugarColumn(ColumnName = "created_by", IsNullable = true)]
  28. public long? CreatedBy { get; set; }
  29. [SugarColumn(ColumnName = "updated_by", IsNullable = true)]
  30. public long? UpdatedBy { get; set; }
  31. [SugarColumn(ColumnName = "create_time")]
  32. public DateTime CreateTime { get; set; }
  33. [SugarColumn(ColumnName = "update_time")]
  34. public DateTime UpdateTime { get; set; }
  35. }