9.2.4.16. workflow 工作流表

## 字段

列名 | 类型 | 是否非空 | 默认值 | 备注 |
———— | ————– | ——– | —- | ————- |
workflow_id | int | not null | null | 工作流自增ID |
workflow_name | varchar(100) | not null | null | 工作流名称,用户创建时定义 |
creator_id | int | not null | null | 创建者用户id |
workflow_xml | blob | not null | | 工作流XML文件 |
workflow_jsonstr | blob | not null | | 添加工作流前端传递json字符串 |
create_time | datetime | not null | null | 创建时间 |
desc | varchar(300) | not null | null | 工作流描述 |
workflow_path | varchar(100) | not null | null | 工作流工作路径 |
status | smallint | not null | 0 | 状态。 0-正常,1-停用,2-可运行|

## 索引

字段 | 唯一索引 | 备注 |
— | —- | — |
无 | | |

## 说明

## 建表语句

create table workflow(
    workflow_id int primary key auto_increment comment '唯一键',
    workflow_name varchar(30) not null comment '工作流名称',
    creator_id int comment not null '用户id',
    workflowx blob comment not null '工作流XML文件',
    workflow_jsonstr blob comment not null '工作流json字符串',
    create_time datetime comment not null '创建时间',
    desc varchar(300) not null comment '工作流描述',
    workflow_path varchar(100) not null comment '工作流工作路径',
    status smallint not null comment '状态'
);