sj_workflow_task_batch.sql 1.9 KB

1234567891011121314151617181920212223242526272829
  1. create table sj_workflow_task_batch
  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. workflow_id bigint not null comment '工作流任务id',
  8. task_batch_status tinyint default 0 not null comment '任务批次状态 0、失败 1、成功',
  9. operation_reason tinyint default 0 not null comment '操作原因',
  10. flow_info text null comment '流程信息',
  11. wf_context text null comment '全局上下文',
  12. execution_at bigint default 0 not null comment '任务执行时间',
  13. ext_attrs varchar(256) default '' null comment '扩展字段',
  14. version int default 1 not null comment '版本号',
  15. deleted tinyint default 0 not null comment '逻辑删除 1、删除',
  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_create_dt
  21. on sj_workflow_task_batch (create_dt);
  22. create index idx_job_id_task_batch_status
  23. on sj_workflow_task_batch (workflow_id, task_batch_status);
  24. create index idx_namespace_id_group_name
  25. on sj_workflow_task_batch (namespace_id, group_name);