sj_job_log_message.sql 1.4 KB

1234567891011121314151617181920212223242526
  1. create table sj_job_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. job_id bigint not null comment '任务信息id',
  8. task_batch_id bigint not null comment '任务批次id',
  9. task_id bigint not null comment '调度任务id',
  10. message longtext not null comment '调度信息',
  11. log_num int default 1 not null comment '日志数量',
  12. real_time bigint default 0 not null comment '上报时间',
  13. ext_attrs varchar(256) default '' null comment '扩展字段',
  14. create_dt datetime default CURRENT_TIMESTAMP not null comment '创建时间'
  15. )
  16. comment '调度日志';
  17. create index idx_create_dt
  18. on sj_job_log_message (create_dt);
  19. create index idx_namespace_id_group_name
  20. on sj_job_log_message (namespace_id, group_name);
  21. create index idx_task_batch_id_task_id
  22. on sj_job_log_message (task_batch_id, task_id);