sj_notify_config.sql 1.9 KB

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