namespace Admin.NET.Plugin.AiDOP.Entity.S8; [SugarTable("ado_s8_alert_rule", "S8 报警规则")] public class AdoS8AlertRule { [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")] public long Id { get; set; } [SugarColumn(ColumnName = "tenant_id", ColumnDataType = "bigint")] public long TenantId { get; set; } [SugarColumn(ColumnName = "factory_id", ColumnDataType = "bigint")] public long FactoryId { get; set; } [SugarColumn(ColumnName = "rule_code", Length = 64)] public string RuleCode { get; set; } = string.Empty; [SugarColumn(ColumnName = "scene_code", Length = 64)] public string SceneCode { get; set; } = string.Empty; [SugarColumn(ColumnName = "severity", Length = 32)] public string Severity { get; set; } = "MEDIUM"; [SugarColumn(ColumnName = "trigger_condition", Length = 512, IsNullable = true)] public string? TriggerCondition { get; set; } [SugarColumn(ColumnName = "threshold_val", Length = 128, IsNullable = true)] public string? ThresholdVal { get; set; } [SugarColumn(ColumnName = "time_window", Length = 64, IsNullable = true)] public string? TimeWindow { get; set; } [SugarColumn(ColumnName = "created_at")] public DateTime CreatedAt { get; set; } = DateTime.Now; [SugarColumn(ColumnName = "updated_at", IsNullable = true)] public DateTime? UpdatedAt { get; set; } }