| 1234567891011121314151617181920212223242526272829303132 |
- create table sj_workflow
- (
- id bigint unsigned auto_increment comment '主键'
- primary key,
- workflow_name varchar(64) not null comment '工作流名称',
- namespace_id varchar(64) default '764d604ec6fc45f68cd92514c40e9e1a' not null comment '命名空间id',
- group_name varchar(64) not null comment '组名称',
- workflow_status tinyint default 1 not null comment '工作流状态 0、关闭、1、开启',
- trigger_type tinyint not null comment '触发类型 1.CRON 表达式 2. 固定时间',
- trigger_interval varchar(255) not null comment '间隔时长',
- next_trigger_at bigint not null comment '下次触发时间',
- block_strategy tinyint default 1 not null comment '阻塞策略 1、丢弃 2、覆盖 3、并行',
- executor_timeout int default 0 not null comment '任务执行超时时间,单位秒',
- description varchar(256) default '' not null comment '描述',
- flow_info text null comment '流程信息',
- wf_context text null comment '上下文',
- notify_ids varchar(128) default '' not null comment '通知告警场景配置id列表',
- bucket_index int default 0 not null comment 'bucket',
- version int not null comment '版本号',
- ext_attrs varchar(256) default '' null comment '扩展字段',
- deleted tinyint default 0 not null comment '逻辑删除 1、删除',
- create_dt datetime default CURRENT_TIMESTAMP not null comment '创建时间',
- update_dt datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '修改时间'
- )
- comment '工作流';
- create index idx_create_dt
- on sj_workflow (create_dt);
- create index idx_namespace_id_group_name
- on sj_workflow (namespace_id, group_name);
|