From eb03afef41dc6c57b9c6e0c6e64c384556092d95 Mon Sep 17 00:00:00 2001 From: gssong <1742057357@qq.com> Date: 星期六, 06 四月 2024 11:29:42 +0800 Subject: [PATCH] update 补充节点配置sql --- script/sql/sqlserver/flowable.sql | 29 ++++++++------ script/sql/oracle/flowable.sql | 26 +++++++------ script/sql/flowable.sql | 25 ++++++------ script/sql/postgres/flowable.sql | 27 +++++++------ 4 files changed, 59 insertions(+), 48 deletions(-) diff --git a/script/sql/flowable.sql b/script/sql/flowable.sql index 4c03f8d..36ca5c9 100644 --- a/script/sql/flowable.sql +++ b/script/sql/flowable.sql @@ -115,19 +115,20 @@ create table wf_node_config ( - id bigint not null comment '涓婚敭' + id bigint not null comment '涓婚敭' primary key, - form_id bigint null comment '琛ㄥ崟id', - form_type varchar(255) null comment '琛ㄥ崟绫诲瀷', - node_name varchar(255) not null comment '鑺傜偣鍚嶇О', - node_id varchar(255) not null comment '鑺傜偣id', - definition_id varchar(255) not null comment '娴佺▼瀹氫箟id', - create_dept bigint null comment '鍒涘缓閮ㄩ棬', - create_by bigint null comment '鍒涘缓鑰�', - create_time datetime null comment '鍒涘缓鏃堕棿', - update_by bigint null comment '鏇存柊鑰�', - update_time datetime null comment '鏇存柊鏃堕棿', - tenant_id varchar(20) null comment '绉熸埛缂栧彿' + form_id bigint null comment '琛ㄥ崟id', + form_type varchar(255) null comment '琛ㄥ崟绫诲瀷', + node_name varchar(255) not null comment '鑺傜偣鍚嶇О', + node_id varchar(255) not null comment '鑺傜偣id', + definition_id varchar(255) not null comment '娴佺▼瀹氫箟id', + apply_user_task char(1) default '0' comment '鏄惁涓虹敵璇蜂汉鑺傜偣 锛�0鏄� 1鍚︼級', + create_dept bigint null comment '鍒涘缓閮ㄩ棬', + create_by bigint null comment '鍒涘缓鑰�', + create_time datetime null comment '鍒涘缓鏃堕棿', + update_by bigint null comment '鏇存柊鑰�', + update_time datetime null comment '鏇存柊鏃堕棿', + tenant_id varchar(20) null comment '绉熸埛缂栧彿' ) comment '鑺傜偣閰嶇疆'; diff --git a/script/sql/oracle/flowable.sql b/script/sql/oracle/flowable.sql index 4c5e706..2691d7a 100644 --- a/script/sql/oracle/flowable.sql +++ b/script/sql/oracle/flowable.sql @@ -183,20 +183,21 @@ create table WF_NODE_CONFIG ( - ID NUMBER(20) NOT NULL + ID NUMBER(20) NOT NULL CONSTRAINT PK_WF_NODE_CONFIG PRIMARY KEY, - FORM_ID NUMBER(20), - FORM_TYPE VARCHAR2(255), - NODE_NAME VARCHAR2(255) NOT NULL, - NODE_ID VARCHAR2(255) NOT NULL, - DEFINITION_ID VARCHAR2(255) NOT NULL, - TENANT_ID VARCHAR2(20), - CREATE_DEPT NUMBER(20), - CREATE_BY NUMBER(20), - CREATE_TIME DATE, - UPDATE_BY NUMBER(20), - UPDATE_TIME DATE + FORM_ID NUMBER(20), + FORM_TYPE VARCHAR2(255), + NODE_NAME VARCHAR2(255) NOT NULL, + NODE_ID VARCHAR2(255) NOT NULL, + DEFINITION_ID VARCHAR2(255) NOT NULL, + APPLY_USER_TASK CHAR(1) DEFAULT '0', + TENANT_ID VARCHAR2(20), + CREATE_DEPT NUMBER(20), + CREATE_BY NUMBER(20), + CREATE_TIME DATE, + UPDATE_BY NUMBER(20), + UPDATE_TIME DATE ); comment on table WF_NODE_CONFIG is '鑺傜偣閰嶇疆' @@ -206,6 +207,7 @@ comment on column WF_NODE_CONFIG.NODE_ID is '鑺傜偣id' comment on column WF_NODE_CONFIG.NODE_NAME is '鑺傜偣鍚嶇О' comment on column WF_NODE_CONFIG.DEFINITION_ID is '娴佺▼瀹氫箟id' +comment on column WF_NODE_CONFIG.APPLY_USER_TASK is '鏄惁涓虹敵璇蜂汉鑺傜偣 锛�0鏄� 1鍚︼級' comment on column WF_NODE_CONFIG.TENANT_ID is '绉熸埛缂栧彿' comment on column WF_NODE_CONFIG.CREATE_DEPT is '鍒涘缓閮ㄩ棬' comment on column WF_NODE_CONFIG.CREATE_BY is '鍒涘缓鑰�' diff --git a/script/sql/postgres/flowable.sql b/script/sql/postgres/flowable.sql index f20426d..c67e527 100644 --- a/script/sql/postgres/flowable.sql +++ b/script/sql/postgres/flowable.sql @@ -252,20 +252,21 @@ create table wf_node_config ( - id bigint not null + id bigint not null constraint pk_wf_node_config primary key, - form_id bigint, - form_type varchar(255), - node_name varchar(255) not null, - node_id varchar(255) not null, - definition_id varchar(255) not null, - tenant_id varchar(20), - create_dept bigint, - create_by bigint, - create_time timestamp, - update_by bigint, - update_time timestamp + form_id bigint, + form_type varchar(255), + node_name varchar(255) not null, + node_id varchar(255) not null, + definition_id varchar(255) not null, + apply_user_task char(1) default '0', + tenant_id varchar(20), + create_dept bigint, + create_by bigint, + create_time timestamp, + update_by bigint, + update_time timestamp ); comment on table wf_node_config is '鑺傜偣閰嶇疆'; @@ -282,6 +283,8 @@ comment on column wf_node_config.definition_id is '娴佺▼瀹氫箟id'; +comment on column wf_node_config.apply_user_task is '鏄惁涓虹敵璇蜂汉鑺傜偣 锛�0鏄� 1鍚︼級'; + comment on column wf_node_config.tenant_id is '绉熸埛id'; comment on column wf_node_config.create_dept is '鍒涘缓閮ㄩ棬'; diff --git a/script/sql/sqlserver/flowable.sql b/script/sql/sqlserver/flowable.sql index 19810b0..b3651bb 100644 --- a/script/sql/sqlserver/flowable.sql +++ b/script/sql/sqlserver/flowable.sql @@ -333,18 +333,19 @@ create table wf_node_config ( - id bigint not null primary key, - form_id bigint, - form_type nvarchar(255) , - node_name nvarchar(255) not null, - node_id nvarchar(255) not null, - definition_id nvarchar(255) not null, - tenant_id nvarchar(20), - create_dept bigint, - create_by bigint, - create_time datetime2, - update_by bigint, - update_time datetime2 + id bigint not null primary key, + form_id bigint, + form_type nvarchar(255) , + node_name nvarchar(255) not null, + node_id nvarchar(255) not null, + definition_id nvarchar(255) not null, + apply_user_task nchar default ('0') null, + tenant_id nvarchar(20), + create_dept bigint, + create_by bigint, + create_time datetime2, + update_by bigint, + update_time datetime2 ) go @@ -374,6 +375,10 @@ 'definition_id' go +exec sp_addextendedproperty 'MS_Description', N'鏄惁涓虹敵璇蜂汉鑺傜偣 锛�0鏄� 1鍚︼級', 'SCHEMA', 'dbo', 'TABLE', 'wf_node_config', 'COLUMN', + 'apply_user_task' +go + exec sp_addextendedproperty 'MS_Description', N'绉熸埛缂栧彿', 'SCHEMA', 'dbo', 'TABLE', 'wf_node_config', 'COLUMN', 'tenant_id' go -- Gitblit v1.9.3