create table sj_notify_config ( id bigint unsigned auto_increment comment '主键' primary key, namespace_id varchar(64) default '764d604ec6fc45f68cd92514c40e9e1a' not null comment '命名空间id', group_name varchar(64) not null comment '组名称', notify_name varchar(64) default '' not null comment '通知名称', system_task_type tinyint default 3 not null comment '任务类型 1. 重试任务 2. 重试回调 3、JOB任务 4、WORKFLOW任务', notify_status tinyint default 0 not null comment '通知状态 0、未启用 1、启用', recipient_ids varchar(128) not null comment '接收人id列表', notify_threshold int default 0 not null comment '通知阈值', notify_scene tinyint default 0 not null comment '通知场景', rate_limiter_status tinyint default 0 not null comment '限流状态 0、未启用 1、启用', rate_limiter_threshold int default 0 not null comment '每秒限流阈值', description varchar(256) default '' not null comment '描述', create_dt datetime default CURRENT_TIMESTAMP not null comment '创建时间', update_dt datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '修改时间' ) comment '通知配置'; create index idx_namespace_id_group_name_scene_name on sj_notify_config (namespace_id, group_name);