This commit is contained in:
zhuangdashia 2025-06-29 15:53:43 +08:00
parent aa7a560a48
commit a81f426497

View File

@ -28,6 +28,7 @@ CREATE TABLE `sj_group_config`
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`namespace_id` varchar(64) NOT NULL DEFAULT '764d604ec6fc45f68cd92514c40e9e1a' COMMENT '命名空间id',
`group_name` varchar(64) NOT NULL DEFAULT '' COMMENT '组名称',
`group_name_cn` varchar(128) NOT NULL DEFAULT '' COMMENT '组中文名称',
`description` varchar(256) NOT NULL DEFAULT '' COMMENT '组描述',
`token` varchar(64) NOT NULL DEFAULT 'SJ_cKqBTPzCsWA3VyuCfFoccmuIEGXjr5KT' COMMENT 'token',
`group_status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '组状态 0、未启用 1、启用',
@ -566,3 +567,27 @@ create index idx_create_dt
create index idx_namespace_id_group_name
on sj_workflow_history (namespace_id, group_name);
create table sj_system_variable
(
id bigint auto_increment comment 'id'
primary key,
variable_key varchar(64) not null comment '变量键名(如current_date)',
variable_name varchar(64) not null comment '变量键名(如current_date)',
variable_value varchar(512) not null comment '表达式/值',
variable_type tinyint default 1 not null comment '1-字符串变量 2-表达式变量',
system_user_id bigint not null comment '绑定userid',
namespace_id varchar(64) not null comment '命名空间',
group_names varchar(128) null comment '',
description varchar(256) default '' null comment '描述',
create_dt datetime default CURRENT_TIMESTAMP not null,
update_dt datetime default CURRENT_TIMESTAMP not null
)
comment '系统变量表';
create index idx_namespace_id_group_name
on sj_system_variable (namespace_id, group_names);
create index idx_variable_key
on sj_system_variable (variable_key);