sj_retry_task_log_message.sql 1.2 KB

123456789101112131415161718192021
  1. create table sj_retry_task_log_message
  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. retry_id bigint not null comment '重试信息Id',
  8. retry_task_id bigint not null comment '重试任务Id',
  9. message longtext not null comment '异常信息',
  10. log_num int default 1 not null comment '日志数量',
  11. real_time bigint default 0 not null comment '上报时间',
  12. create_dt datetime default CURRENT_TIMESTAMP not null comment '创建时间'
  13. )
  14. comment '任务调度日志信息记录表';
  15. create index idx_create_dt
  16. on sj_retry_task_log_message (create_dt);
  17. create index idx_namespace_id_group_name_retry_task_id
  18. on sj_retry_task_log_message (namespace_id, group_name, retry_task_id);