sj_notify_recipient.sql 1.1 KB

1234567891011121314151617
  1. create table sj_notify_recipient
  2. (
  3. id bigint unsigned auto_increment comment '主键'
  4. primary key,
  5. namespace_id varchar(64) default '764d604ec6fc45f68cd92514c40e9e1a' not null comment '命名空间id',
  6. recipient_name varchar(64) not null comment '接收人名称',
  7. notify_type tinyint default 0 not null comment '通知类型 1、钉钉 2、邮件 3、企业微信 4 飞书 5 webhook',
  8. notify_attribute varchar(512) not null comment '配置属性',
  9. description varchar(256) default '' not null comment '描述',
  10. create_dt datetime default CURRENT_TIMESTAMP not null comment '创建时间',
  11. update_dt datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '修改时间'
  12. )
  13. comment '告警通知接收人';
  14. create index idx_namespace_id
  15. on sj_notify_recipient (namespace_id);