namespace Admin.NET.Plugin.AiDOP.Entity; [SugarTable("ado_smart_ops_kpi_target_config", "运营指标正式目标配置")] public class AdoSmartOpsKpiTargetConfig { [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)] public long Id { get; set; } [SugarColumn(ColumnName = "tenant_id")] public long TenantId { get; set; } [SugarColumn(ColumnName = "factory_id")] public long FactoryId { get; set; } [SugarColumn(ColumnName = "metric_code", Length = 50)] public string MetricCode { get; set; } = string.Empty; [SugarColumn(ColumnName = "target_value", DecimalDigits = 6)] public decimal TargetValue { get; set; } [SugarColumn(ColumnName = "effective_from")] public DateTime EffectiveFrom { get; set; } [SugarColumn(ColumnName = "effective_to", IsNullable = true)] public DateTime? EffectiveTo { get; set; } [SugarColumn(ColumnName = "source_type", Length = 30)] public string SourceType { get; set; } = "MANUAL"; [SugarColumn(ColumnName = "source_batch_id", Length = 100, IsNullable = true)] public string? SourceBatchId { get; set; } [SugarColumn(ColumnName = "status")] public int Status { get; set; } = 1; [SugarColumn(ColumnName = "remark", Length = 500, IsNullable = true)] public string? Remark { get; set; } [SugarColumn(ColumnName = "created_by", IsNullable = true)] public long? CreatedBy { get; set; } [SugarColumn(ColumnName = "updated_by", IsNullable = true)] public long? UpdatedBy { get; set; } [SugarColumn(ColumnName = "create_time")] public DateTime CreateTime { get; set; } [SugarColumn(ColumnName = "update_time")] public DateTime UpdateTime { get; set; } }