|
@@ -3212,7 +3212,6 @@ CREATE TABLE alarm_event_template (
|
|
|
category VARCHAR(50),
|
|
category VARCHAR(50),
|
|
|
content_format VARCHAR(500),
|
|
content_format VARCHAR(500),
|
|
|
color_code VARCHAR(20),
|
|
color_code VARCHAR(20),
|
|
|
- is_active SMALLINT NOT NULL DEFAULT 1,
|
|
|
|
|
enable_flag BOOLEAN NOT NULL DEFAULT TRUE,
|
|
enable_flag BOOLEAN NOT NULL DEFAULT TRUE,
|
|
|
del_flag BOOLEAN NOT NULL DEFAULT FALSE,
|
|
del_flag BOOLEAN NOT NULL DEFAULT FALSE,
|
|
|
create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
@@ -3229,7 +3228,6 @@ COMMENT ON COLUMN alarm_event_template.template_name IS '模板名称';
|
|
|
COMMENT ON COLUMN alarm_event_template.category IS '告警分类(如:数据异常、设备故障、预测偏差)';
|
|
COMMENT ON COLUMN alarm_event_template.category IS '告警分类(如:数据异常、设备故障、预测偏差)';
|
|
|
COMMENT ON COLUMN alarm_event_template.content_format IS '内容模板(支持占位符,如:{station_name}发生{metric}偏差)';
|
|
COMMENT ON COLUMN alarm_event_template.content_format IS '内容模板(支持占位符,如:{station_name}发生{metric}偏差)';
|
|
|
COMMENT ON COLUMN alarm_event_template.color_code IS 'UI展示颜色(如:#FF0000)';
|
|
COMMENT ON COLUMN alarm_event_template.color_code IS 'UI展示颜色(如:#FF0000)';
|
|
|
-COMMENT ON COLUMN alarm_event_template.is_active IS '是否有效(1-有效,0-无效)';
|
|
|
|
|
COMMENT ON COLUMN alarm_event_template.create_time IS '创建时间';
|
|
COMMENT ON COLUMN alarm_event_template.create_time IS '创建时间';
|
|
|
COMMENT ON COLUMN alarm_event_template.update_time IS '更新时间';
|
|
COMMENT ON COLUMN alarm_event_template.update_time IS '更新时间';
|
|
|
|
|
|