From 8573e6a4052f582150522e1fc2c41bd73dbe6f0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AA=80=E6=B7=AE=E5=8D=97?= Date: Fri, 15 Nov 2024 03:40:06 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dsql=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 檀淮南 --- web/src/main/resources/script/bpm_init_db.sql | 63 ++++++++----------- 1 file changed, 26 insertions(+), 37 deletions(-) diff --git a/web/src/main/resources/script/bpm_init_db.sql b/web/src/main/resources/script/bpm_init_db.sql index 5ba5e76..101c718 100644 --- a/web/src/main/resources/script/bpm_init_db.sql +++ b/web/src/main/resources/script/bpm_init_db.sql @@ -768,7 +768,7 @@ CREATE TABLE if not exists `t_bpmn_node_button_conf` CREATE TABLE if not exists `bpm_business_process` ( - `id` bigint(11) NOT NULL AUTO_INCREMENT, + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', `PROCESSINESS_KEY` varchar(64) DEFAULT NULL, `BUSINESS_ID` varchar(64) NOT NULL COMMENT 'business id', `BUSINESS_NUMBER` varchar(64) DEFAULT NULL COMMENT 'process number', @@ -785,7 +785,7 @@ CREATE TABLE if not exists `bpm_business_process` `PROC_INST_ID_` varchar(64) DEFAULT '' COMMENT 'process instance id', `back_user_id` varchar(64) DEFAULT NULL COMMENT 'back to user id', user_name varchar(255) null, - is_out_side_process tinyint default 0 null comment 'is it an outside process,0 no,1 yes' + is_out_side_process tinyint default 0 null comment 'is it an outside process,0 no,1 yes', PRIMARY KEY (`id`) USING BTREE, KEY `PROC_INST_ID_index` (`PROC_INST_ID_`) USING BTREE, KEY `process_entry_id` (`ENTRY_ID`) USING BTREE, @@ -798,6 +798,7 @@ CREATE TABLE if not exists `bpm_business_process` + CREATE TABLE if not exists `bpm_process_name_relevancy` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, @@ -977,10 +978,7 @@ CREATE TABLE IF NOT EXISTS bpm_process_app_application is_all tinyint default 0 null, state tinyint default 1 null, sort int null, - source varchar(255) null, - user_request_uri varchar(255) null comment 'get user info', - role_request_uri varchar(255) null comment 'get role info' - + source varchar(255) null ) comment 'BPM Process Application Table'; @@ -1203,7 +1201,7 @@ CREATE TABLE IF NOT EXISTS `t_bpmn_node_role_conf` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT 'auto incr id', `bpmn_node_id` BIGINT(20) NOT NULL COMMENT 'node id', `role_id` varchar(64) NOT NULL COMMENT 'role id', - `role_name` varchar(64) NOT NULL COMMENT 'role name' + `role_name` varchar(64) NOT NULL COMMENT 'role name', `sign_type` INT(11) NOT NULL COMMENT 'sign type 1 all sign,2 or sign', `remark` VARCHAR(255) DEFAULT NULL COMMENT 'remark', `is_del` TINYINT(1) NOT NULL DEFAULT '0' COMMENT '0:normal,1:deleted', @@ -1281,27 +1279,27 @@ create table if not exists t_user -- ---------------------------- -- Records of t_user -- ---------------------------- -INSERT INTO `t_user` VALUES (1, '张三'); -INSERT INTO `t_user` VALUES (2, '李四'); -INSERT INTO `t_user` VALUES (3, '王五'); -INSERT INTO `t_user` VALUES (4, '菜六'); -INSERT INTO `t_user` VALUES (5, '牛七'); -INSERT INTO `t_user` VALUES (6, '马八'); -INSERT INTO `t_user` VALUES (7, '李九'); -INSERT INTO `t_user` VALUES (8, '周十'); -INSERT INTO `t_user` VALUES (9, '肖十一'); -INSERT INTO `t_user` VALUES (10, '令狐冲'); -INSERT INTO `t_user` VALUES (11, '风清扬'); -INSERT INTO `t_user` VALUES (12, '刘正风'); -INSERT INTO `t_user` VALUES (13, '岳不群'); -INSERT INTO `t_user` VALUES (14, '宁中则'); -INSERT INTO `t_user` VALUES (15, '桃谷六仙'); -INSERT INTO `t_user` VALUES (16, '不介和尚'); -INSERT INTO `t_user` VALUES (17, '丁一师太'); -INSERT INTO `t_user` VALUES (18, '依林师妹'); -INSERT INTO `t_user` VALUES (19, '邱灵珊'); -INSERT INTO `t_user` VALUES (20, '任盈盈'); -INSERT INTO `t_user` VALUES (1001, 'test'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (1, '张三'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (2, '李四'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (3, '王五'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (4, '菜六'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (5, '牛七'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (6, '马八'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (7, '李九'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (8, '周十'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (9, '肖十一'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (10, '令狐冲'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (11, '风清扬'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (12, '刘正风'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (13, '岳不群'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (14, '宁中则'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (15, '桃谷六仙'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (16, '不介和尚'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (17, '丁一师太'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (18, '依林师妹'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (19, '邱灵珊'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (20, '任盈盈'); +INSERT INTO `t_user`(`id`, `user_name`) VALUES (1001, 'test'); DROP TABLE IF EXISTS `t_role`; CREATE TABLE `t_role` ( @@ -1382,15 +1380,6 @@ PRIMARY KEY (`id`) ALTER TABLE bpm_process_node_submit ADD INDEX idx_processInstance_Id(processInstance_Id); -CREATE TABLE `t_user_role` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user_id` int(11) DEFAULT NULL COMMENT 'user id ', - `role_id` int(11) DEFAULT NULL COMMENT 'role id', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户角色关联表'; - - - SET FOREIGN_KEY_CHECKS = 1; -- Gitee