sj_workflow_node.sql 2.2 KB

1234567891011121314151617181920212223242526272829
  1. create table sj_workflow_node
  2. (
  3. id bigint unsigned auto_increment comment '主键'
  4. primary key,
  5. namespace_id varchar(64) default '764d604ec6fc45f68cd92514c40e9e1a' not null comment '命名空间id',
  6. node_name varchar(64) not null comment '节点名称',
  7. group_name varchar(64) not null comment '组名称',
  8. job_id bigint not null comment '任务信息id',
  9. workflow_id bigint not null comment '工作流ID',
  10. node_type tinyint default 1 not null comment '1、任务节点 2、条件节点',
  11. expression_type tinyint default 0 not null comment '1、SpEl、2、Aviator 3、QL',
  12. fail_strategy tinyint default 1 not null comment '失败策略 1、跳过 2、阻塞',
  13. workflow_node_status tinyint default 1 not null comment '工作流节点状态 0、关闭、1、开启',
  14. priority_level int default 1 not null comment '优先级',
  15. node_info text null comment '节点信息 ',
  16. version int not null comment '版本号',
  17. ext_attrs varchar(256) default '' null comment '扩展字段',
  18. deleted tinyint default 0 not null comment '逻辑删除 1、删除',
  19. create_dt datetime default CURRENT_TIMESTAMP not null comment '创建时间',
  20. update_dt datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '修改时间'
  21. )
  22. comment '工作流节点';
  23. create index idx_create_dt
  24. on sj_workflow_node (create_dt);
  25. create index idx_namespace_id_group_name
  26. on sj_workflow_node (namespace_id, group_name);