flow_his_task.sql 2.2 KB

1234567891011121314151617181920212223242526272829
  1. create table flow_his_task
  2. (
  3. id bigint not null comment '主键id'
  4. primary key,
  5. definition_id bigint not null comment '对应flow_definition表的id',
  6. instance_id bigint not null comment '对应flow_instance表的id',
  7. task_id bigint not null comment '对应flow_task表的id',
  8. node_code varchar(100) null comment '开始节点编码',
  9. node_name varchar(100) null comment '开始节点名称',
  10. node_type tinyint(1) null comment '开始节点类型(0开始节点 1中间节点 2结束节点 3互斥网关 4并行网关)',
  11. target_node_code varchar(200) null comment '目标节点编码',
  12. target_node_name varchar(200) null comment '结束节点名称',
  13. approver varchar(40) null comment '审批者',
  14. cooperate_type tinyint(1) default 0 not null comment '协作方式(1审批 2转办 3委派 4会签 5票签 6加签 7减签)',
  15. collaborator varchar(40) null comment '协作人',
  16. skip_type varchar(10) not null comment '流转类型(PASS通过 REJECT退回 NONE无动作)',
  17. flow_status varchar(20) not null comment '流程状态(0待提交 1审批中 2审批通过 4终止 5作废 6撤销 8已完成 9已退回 10失效 11拿回)',
  18. form_custom char default 'N' null comment '审批表单是否自定义(Y是 N否)',
  19. form_path varchar(100) null comment '审批表单路径',
  20. message varchar(500) null comment '审批意见',
  21. variable text null comment '任务变量',
  22. ext text null comment '业务详情 存业务表对象json字符串',
  23. create_time datetime null comment '任务开始时间',
  24. update_time datetime null comment '审批完成时间',
  25. del_flag char default '0' null comment '删除标志',
  26. tenant_id varchar(40) null comment '租户id'
  27. )
  28. comment '历史任务记录表';