赞
踩
CentOS7.5环境下jar包安装卷王教程
CentOS7.5 x86_64(云服务器)
Jdk 1.8_211
MySQL 5.7.24
surveyking-v0.3.0-beta.11.jar
此步骤可省略,若后期出现MySQL安装较慢,可更换后重新安装
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
两条命令二选一即可(本人选择阿里云源,其他 源可在网上找到相关链接)
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
yum -y update
yum -y upgrade #此命令会删除旧版本的依赖包
upgrade会删除旧版本的依赖包,而update不会。因此你无法确定软件依赖包版本时,最好是使用update,确保不会出现兼容问题。
此处为下载安装教程,本人安装使用的为已有的JDK1.8_211版本。
由于CentOS7有些版本自带JDK,所以在安装前需要确认是否自带并删除。
rpm -qa | grep jdk
此处本人系统不自带JDK,若在此处查找到包名,可以使用以下命令卸载
yum -y remove <包名>
卸载过程中,出现Complete即为成功,此时可以使用以下命令确定,若返回值相同即正确。
java -version
查看自己的系统架构,便于去官网下载适合自己操作系统的JDK版本
uname -a
楼主使用的为x86架构
JDK包需要去甲骨文官网下载
下载地址:JDK下载
使用工具如xftp、Mobaxterm等将下载的tar包上传到CentOS云服务器
建议上传到/opt目录下。
进入上传tar文件的目录并解压tar包
cd /opt
tar -zxvf /opt/jdk-8u211-linux-x64.tar.gz
确定解压是否完成
vim /etc/profile
跳转至最后一行,并在最后一行添加以下内容
export JAVA_HOME=/opt/jdk1.8.0_211
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
编辑完成后,按照Esc–>:wq退出并保存文件
source /etc/profile
java -version
centos7.5 内部集成了mariadb,而安装mysql的话会和mariadb的文件冲突,所以要先卸载mariadb。
rpm -qa | grep mariadb
rpm -e --nodeps <包名> #强制卸载,不查检依赖
直接卸载会提示有依赖于这的安装包,所以不检查依赖,强制卸载
在opt下新建mysql安装目录并进入目录
mkdir /opt/mysql
cd /opt/mysql/
依次运行一下命令下载源
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-common-5.7.24-1.el7.x86_64.rpm
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-libs-5.7.24-1.el7.x86_64.rpm
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-client-5.7.24-1.el7.x86_64.rpm
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-server-5.7.24-1.el7.x86_64.rpm
安装源存在一定依赖关系,务必按照以下步骤顺序安装
rpm -ivh mysql-community-common-5.7.24-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.24-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.24-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.24-1.el7.x86_64.rpm
检验是否安装成功
mysql --version
启动mysql并查看是否启动成功
systemctl start mysqld #启动mysql
systemctl status mysqld #查看mysql运行状态
查看mysql密码(框中处,即为默认密码)
grep "password" /var/log/mysqld.log
使用默认密码登录mysql(框中处输入默认密码,此处密码不会显示,输入完成回车即可,外联工具可以复制粘贴)
mysql -uroot -p
登录成功
修改root账户密码
alter user 'root'@'localhost' identified by '要修改的密码';
刷新权限使配置生效
flush privileges;
退出,尝试用新密码登录
systemctl enable mysqld
设置成功,至此MySQL安装完成
mkdir /opt/surveyking
cd /opt/surveyking/
登录并创建数据库
mysql -u root -p
CREATE DATABASE surveyking;
在安装目录下新建surveyking.sql文件,并写入以下内容
以下内容来自卷王项目gitee地址数据库初始化脚本:查看脚本
新建sql文件并编辑sql文件
touch surveyking.sql
vim surveyking
将内容写入sql文件
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for ACT_EVT_LOG -- ---------------------------- DROP TABLE IF EXISTS `ACT_EVT_LOG`; CREATE TABLE `ACT_EVT_LOG` ( `LOG_NR_` bigint(20) NOT NULL AUTO_INCREMENT, `TYPE_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TIME_STAMP_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), `USER_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `DATA_` longblob, `LOCK_OWNER_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `LOCK_TIME_` timestamp(3) NULL DEFAULT NULL, `IS_PROCESSED_` tinyint(4) DEFAULT '0', PRIMARY KEY (`LOG_NR_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_EVT_LOG -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_GE_BYTEARRAY -- ---------------------------- DROP TABLE IF EXISTS `ACT_GE_BYTEARRAY`; CREATE TABLE `ACT_GE_BYTEARRAY` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `DEPLOYMENT_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `BYTES_` longblob, `GENERATED_` tinyint(4) DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_FK_BYTEARR_DEPL` (`DEPLOYMENT_ID_`), CONSTRAINT `ACT_FK_BYTEARR_DEPL` FOREIGN KEY (`DEPLOYMENT_ID_`) REFERENCES `ACT_RE_DEPLOYMENT` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_GE_BYTEARRAY -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_GE_PROPERTY -- ---------------------------- DROP TABLE IF EXISTS `ACT_GE_PROPERTY`; CREATE TABLE `ACT_GE_PROPERTY` ( `NAME_` varchar(64) COLLATE utf8_bin NOT NULL, `VALUE_` varchar(300) COLLATE utf8_bin DEFAULT NULL, `REV_` int(11) DEFAULT NULL, PRIMARY KEY (`NAME_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_GE_PROPERTY -- ---------------------------- BEGIN; INSERT INTO `ACT_GE_PROPERTY` VALUES ('batch.schema.version', '6.7.0.0', 1); INSERT INTO `ACT_GE_PROPERTY` VALUES ('cfg.execution-related-entities-count', 'true', 1); INSERT INTO `ACT_GE_PROPERTY` VALUES ('cfg.task-related-entities-count', 'true', 1); INSERT INTO `ACT_GE_PROPERTY` VALUES ('common.schema.version', '6.7.0.0', 1); INSERT INTO `ACT_GE_PROPERTY` VALUES ('entitylink.schema.version', '6.7.0.0', 1); INSERT INTO `ACT_GE_PROPERTY` VALUES ('eventsubscription.schema.version', '6.7.0.0', 1); INSERT INTO `ACT_GE_PROPERTY` VALUES ('identitylink.schema.version', '6.7.0.0', 1); INSERT INTO `ACT_GE_PROPERTY` VALUES ('job.schema.version', '6.7.0.0', 1); INSERT INTO `ACT_GE_PROPERTY` VALUES ('next.dbid', '1', 1); INSERT INTO `ACT_GE_PROPERTY` VALUES ('schema.history', 'create(6.7.0.0)', 1); INSERT INTO `ACT_GE_PROPERTY` VALUES ('schema.version', '6.7.0.0', 1); INSERT INTO `ACT_GE_PROPERTY` VALUES ('task.schema.version', '6.7.0.0', 1); INSERT INTO `ACT_GE_PROPERTY` VALUES ('variable.schema.version', '6.7.0.0', 1); COMMIT; -- ---------------------------- -- Table structure for ACT_HI_ACTINST -- ---------------------------- DROP TABLE IF EXISTS `ACT_HI_ACTINST`; CREATE TABLE `ACT_HI_ACTINST` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT '1', `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin NOT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin NOT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin NOT NULL, `ACT_ID_` varchar(255) COLLATE utf8_bin NOT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `CALL_PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `ACT_NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `ACT_TYPE_` varchar(255) COLLATE utf8_bin NOT NULL, `ASSIGNEE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `START_TIME_` datetime(3) NOT NULL, `END_TIME_` datetime(3) DEFAULT NULL, `TRANSACTION_ORDER_` int(11) DEFAULT NULL, `DURATION_` bigint(20) DEFAULT NULL, `DELETE_REASON_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`), KEY `ACT_IDX_HI_ACT_INST_START` (`START_TIME_`), KEY `ACT_IDX_HI_ACT_INST_END` (`END_TIME_`), KEY `ACT_IDX_HI_ACT_INST_PROCINST` (`PROC_INST_ID_`,`ACT_ID_`), KEY `ACT_IDX_HI_ACT_INST_EXEC` (`EXECUTION_ID_`,`ACT_ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_HI_ACTINST -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_HI_ATTACHMENT -- ---------------------------- DROP TABLE IF EXISTS `ACT_HI_ATTACHMENT`; CREATE TABLE `ACT_HI_ATTACHMENT` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `USER_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `DESCRIPTION_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `URL_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `CONTENT_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TIME_` datetime(3) DEFAULT NULL, PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_HI_ATTACHMENT -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_HI_COMMENT -- ---------------------------- DROP TABLE IF EXISTS `ACT_HI_COMMENT`; CREATE TABLE `ACT_HI_COMMENT` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TIME_` datetime(3) NOT NULL, `USER_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `ACTION_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `MESSAGE_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `FULL_MSG_` longblob, PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_HI_COMMENT -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_HI_DETAIL -- ---------------------------- DROP TABLE IF EXISTS `ACT_HI_DETAIL`; CREATE TABLE `ACT_HI_DETAIL` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `TYPE_` varchar(255) COLLATE utf8_bin NOT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `ACT_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin NOT NULL, `VAR_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `REV_` int(11) DEFAULT NULL, `TIME_` datetime(3) NOT NULL, `BYTEARRAY_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `DOUBLE_` double DEFAULT NULL, `LONG_` bigint(20) DEFAULT NULL, `TEXT_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `TEXT2_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_IDX_HI_DETAIL_PROC_INST` (`PROC_INST_ID_`), KEY `ACT_IDX_HI_DETAIL_ACT_INST` (`ACT_INST_ID_`), KEY `ACT_IDX_HI_DETAIL_TIME` (`TIME_`), KEY `ACT_IDX_HI_DETAIL_NAME` (`NAME_`), KEY `ACT_IDX_HI_DETAIL_TASK_ID` (`TASK_ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_HI_DETAIL -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_HI_ENTITYLINK -- ---------------------------- DROP TABLE IF EXISTS `ACT_HI_ENTITYLINK`; CREATE TABLE `ACT_HI_ENTITYLINK` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `LINK_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CREATE_TIME_` datetime(3) DEFAULT NULL, `SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SUB_SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_DEFINITION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PARENT_ELEMENT_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `REF_SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `REF_SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `REF_SCOPE_DEFINITION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `ROOT_SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `ROOT_SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `HIERARCHY_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_IDX_HI_ENT_LNK_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`,`LINK_TYPE_`), KEY `ACT_IDX_HI_ENT_LNK_REF_SCOPE` (`REF_SCOPE_ID_`,`REF_SCOPE_TYPE_`,`LINK_TYPE_`), KEY `ACT_IDX_HI_ENT_LNK_ROOT_SCOPE` (`ROOT_SCOPE_ID_`,`ROOT_SCOPE_TYPE_`,`LINK_TYPE_`), KEY `ACT_IDX_HI_ENT_LNK_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`,`LINK_TYPE_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_HI_ENTITYLINK -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_HI_IDENTITYLINK -- ---------------------------- DROP TABLE IF EXISTS `ACT_HI_IDENTITYLINK`; CREATE TABLE `ACT_HI_IDENTITYLINK` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `GROUP_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `USER_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `CREATE_TIME_` datetime(3) DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SUB_SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_DEFINITION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_IDX_HI_IDENT_LNK_USER` (`USER_ID_`), KEY `ACT_IDX_HI_IDENT_LNK_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_HI_IDENT_LNK_SUB_SCOPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_HI_IDENT_LNK_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_HI_IDENT_LNK_TASK` (`TASK_ID_`), KEY `ACT_IDX_HI_IDENT_LNK_PROCINST` (`PROC_INST_ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_HI_IDENTITYLINK -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_HI_PROCINST -- ---------------------------- DROP TABLE IF EXISTS `ACT_HI_PROCINST`; CREATE TABLE `ACT_HI_PROCINST` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT '1', `PROC_INST_ID_` varchar(64) COLLATE utf8_bin NOT NULL, `BUSINESS_KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin NOT NULL, `START_TIME_` datetime(3) NOT NULL, `END_TIME_` datetime(3) DEFAULT NULL, `DURATION_` bigint(20) DEFAULT NULL, `START_USER_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `START_ACT_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `END_ACT_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SUPER_PROCESS_INSTANCE_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `DELETE_REASON_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CALLBACK_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CALLBACK_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `REFERENCE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `REFERENCE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PROPAGATED_STAGE_INST_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`), UNIQUE KEY `PROC_INST_ID_` (`PROC_INST_ID_`), KEY `ACT_IDX_HI_PRO_INST_END` (`END_TIME_`), KEY `ACT_IDX_HI_PRO_I_BUSKEY` (`BUSINESS_KEY_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_HI_PROCINST -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_HI_TASKINST -- ---------------------------- DROP TABLE IF EXISTS `ACT_HI_TASKINST`; CREATE TABLE `ACT_HI_TASKINST` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT '1', `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TASK_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TASK_DEF_KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SUB_SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_DEFINITION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PROPAGATED_STAGE_INST_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PARENT_TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `DESCRIPTION_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `OWNER_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `ASSIGNEE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `START_TIME_` datetime(3) NOT NULL, `CLAIM_TIME_` datetime(3) DEFAULT NULL, `END_TIME_` datetime(3) DEFAULT NULL, `DURATION_` bigint(20) DEFAULT NULL, `DELETE_REASON_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `PRIORITY_` int(11) DEFAULT NULL, `DUE_DATE_` datetime(3) DEFAULT NULL, `FORM_KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', `LAST_UPDATED_TIME_` datetime(3) DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_IDX_HI_TASK_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_HI_TASK_SUB_SCOPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_HI_TASK_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_HI_TASK_INST_PROCINST` (`PROC_INST_ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_HI_TASKINST -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_HI_TSK_LOG -- ---------------------------- DROP TABLE IF EXISTS `ACT_HI_TSK_LOG`; CREATE TABLE `ACT_HI_TSK_LOG` ( `ID_` bigint(20) NOT NULL AUTO_INCREMENT, `TYPE_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin NOT NULL, `TIME_STAMP_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), `USER_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `DATA_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_DEFINITION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SUB_SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_HI_TSK_LOG -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_HI_VARINST -- ---------------------------- DROP TABLE IF EXISTS `ACT_HI_VARINST`; CREATE TABLE `ACT_HI_VARINST` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT '1', `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin NOT NULL, `VAR_TYPE_` varchar(100) COLLATE utf8_bin DEFAULT NULL, `SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SUB_SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `BYTEARRAY_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `DOUBLE_` double DEFAULT NULL, `LONG_` bigint(20) DEFAULT NULL, `TEXT_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `TEXT2_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `CREATE_TIME_` datetime(3) DEFAULT NULL, `LAST_UPDATED_TIME_` datetime(3) DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_IDX_HI_PROCVAR_NAME_TYPE` (`NAME_`,`VAR_TYPE_`), KEY `ACT_IDX_HI_VAR_SCOPE_ID_TYPE` (`SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_HI_VAR_SUB_ID_TYPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_HI_PROCVAR_PROC_INST` (`PROC_INST_ID_`), KEY `ACT_IDX_HI_PROCVAR_TASK_ID` (`TASK_ID_`), KEY `ACT_IDX_HI_PROCVAR_EXE` (`EXECUTION_ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_HI_VARINST -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_ID_BYTEARRAY -- ---------------------------- DROP TABLE IF EXISTS `ACT_ID_BYTEARRAY`; CREATE TABLE `ACT_ID_BYTEARRAY` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `BYTES_` longblob, PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_ID_BYTEARRAY -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_ID_GROUP -- ---------------------------- DROP TABLE IF EXISTS `ACT_ID_GROUP`; CREATE TABLE `ACT_ID_GROUP` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_ID_GROUP -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_ID_INFO -- ---------------------------- DROP TABLE IF EXISTS `ACT_ID_INFO`; CREATE TABLE `ACT_ID_INFO` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `USER_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TYPE_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `VALUE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PASSWORD_` longblob, `PARENT_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_ID_INFO -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_ID_MEMBERSHIP -- ---------------------------- DROP TABLE IF EXISTS `ACT_ID_MEMBERSHIP`; CREATE TABLE `ACT_ID_MEMBERSHIP` ( `USER_ID_` varchar(64) COLLATE utf8_bin NOT NULL, `GROUP_ID_` varchar(64) COLLATE utf8_bin NOT NULL, PRIMARY KEY (`USER_ID_`,`GROUP_ID_`), KEY `ACT_FK_MEMB_GROUP` (`GROUP_ID_`), CONSTRAINT `ACT_FK_MEMB_GROUP` FOREIGN KEY (`GROUP_ID_`) REFERENCES `ACT_ID_GROUP` (`ID_`), CONSTRAINT `ACT_FK_MEMB_USER` FOREIGN KEY (`USER_ID_`) REFERENCES `ACT_ID_USER` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_ID_MEMBERSHIP -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_ID_PRIV -- ---------------------------- DROP TABLE IF EXISTS `ACT_ID_PRIV`; CREATE TABLE `ACT_ID_PRIV` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `NAME_` varchar(255) COLLATE utf8_bin NOT NULL, PRIMARY KEY (`ID_`), UNIQUE KEY `ACT_UNIQ_PRIV_NAME` (`NAME_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_ID_PRIV -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_ID_PRIV_MAPPING -- ---------------------------- DROP TABLE IF EXISTS `ACT_ID_PRIV_MAPPING`; CREATE TABLE `ACT_ID_PRIV_MAPPING` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `PRIV_ID_` varchar(64) COLLATE utf8_bin NOT NULL, `USER_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `GROUP_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_FK_PRIV_MAPPING` (`PRIV_ID_`), KEY `ACT_IDX_PRIV_USER` (`USER_ID_`), KEY `ACT_IDX_PRIV_GROUP` (`GROUP_ID_`), CONSTRAINT `ACT_FK_PRIV_MAPPING` FOREIGN KEY (`PRIV_ID_`) REFERENCES `ACT_ID_PRIV` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_ID_PRIV_MAPPING -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_ID_PROPERTY -- ---------------------------- DROP TABLE IF EXISTS `ACT_ID_PROPERTY`; CREATE TABLE `ACT_ID_PROPERTY` ( `NAME_` varchar(64) COLLATE utf8_bin NOT NULL, `VALUE_` varchar(300) COLLATE utf8_bin DEFAULT NULL, `REV_` int(11) DEFAULT NULL, PRIMARY KEY (`NAME_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_ID_PROPERTY -- ---------------------------- BEGIN; INSERT INTO `ACT_ID_PROPERTY` VALUES ('schema.version', '6.7.0.0', 1); COMMIT; -- ---------------------------- -- Table structure for ACT_ID_TOKEN -- ---------------------------- DROP TABLE IF EXISTS `ACT_ID_TOKEN`; CREATE TABLE `ACT_ID_TOKEN` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `TOKEN_VALUE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TOKEN_DATE_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), `IP_ADDRESS_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `USER_AGENT_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `USER_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TOKEN_DATA_` varchar(2000) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_ID_TOKEN -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_ID_USER -- ---------------------------- DROP TABLE IF EXISTS `ACT_ID_USER`; CREATE TABLE `ACT_ID_USER` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `FIRST_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `LAST_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `DISPLAY_NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `EMAIL_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PWD_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PICTURE_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_ID_USER -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_PROCDEF_INFO -- ---------------------------- DROP TABLE IF EXISTS `ACT_PROCDEF_INFO`; CREATE TABLE `ACT_PROCDEF_INFO` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `INFO_JSON_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`), UNIQUE KEY `ACT_UNIQ_INFO_PROCDEF` (`PROC_DEF_ID_`), KEY `ACT_IDX_INFO_PROCDEF` (`PROC_DEF_ID_`), KEY `ACT_FK_INFO_JSON_BA` (`INFO_JSON_ID_`), CONSTRAINT `ACT_FK_INFO_JSON_BA` FOREIGN KEY (`INFO_JSON_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), CONSTRAINT `ACT_FK_INFO_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_PROCDEF_INFO -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_RE_DEPLOYMENT -- ---------------------------- DROP TABLE IF EXISTS `ACT_RE_DEPLOYMENT`; CREATE TABLE `ACT_RE_DEPLOYMENT` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', `DEPLOY_TIME_` timestamp(3) NULL DEFAULT NULL, `DERIVED_FROM_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `DERIVED_FROM_ROOT_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PARENT_DEPLOYMENT_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `ENGINE_VERSION_` varchar(255) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_RE_DEPLOYMENT -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_RE_MODEL -- ---------------------------- DROP TABLE IF EXISTS `ACT_RE_MODEL`; CREATE TABLE `ACT_RE_MODEL` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL, `LAST_UPDATE_TIME_` timestamp(3) NULL DEFAULT NULL, `VERSION_` int(11) DEFAULT NULL, `META_INFO_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `DEPLOYMENT_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EDITOR_SOURCE_VALUE_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EDITOR_SOURCE_EXTRA_VALUE_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`), KEY `ACT_FK_MODEL_SOURCE` (`EDITOR_SOURCE_VALUE_ID_`), KEY `ACT_FK_MODEL_SOURCE_EXTRA` (`EDITOR_SOURCE_EXTRA_VALUE_ID_`), KEY `ACT_FK_MODEL_DEPLOYMENT` (`DEPLOYMENT_ID_`), CONSTRAINT `ACT_FK_MODEL_DEPLOYMENT` FOREIGN KEY (`DEPLOYMENT_ID_`) REFERENCES `ACT_RE_DEPLOYMENT` (`ID_`), CONSTRAINT `ACT_FK_MODEL_SOURCE` FOREIGN KEY (`EDITOR_SOURCE_VALUE_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), CONSTRAINT `ACT_FK_MODEL_SOURCE_EXTRA` FOREIGN KEY (`EDITOR_SOURCE_EXTRA_VALUE_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_RE_MODEL -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_RE_PROCDEF -- ---------------------------- DROP TABLE IF EXISTS `ACT_RE_PROCDEF`; CREATE TABLE `ACT_RE_PROCDEF` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `KEY_` varchar(255) COLLATE utf8_bin NOT NULL, `VERSION_` int(11) NOT NULL, `DEPLOYMENT_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `RESOURCE_NAME_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `DGRM_RESOURCE_NAME_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `DESCRIPTION_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `HAS_START_FORM_KEY_` tinyint(4) DEFAULT NULL, `HAS_GRAPHICAL_NOTATION_` tinyint(4) DEFAULT NULL, `SUSPENSION_STATE_` int(11) DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', `ENGINE_VERSION_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `DERIVED_FROM_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `DERIVED_FROM_ROOT_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `DERIVED_VERSION_` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ID_`), UNIQUE KEY `ACT_UNIQ_PROCDEF` (`KEY_`,`VERSION_`,`DERIVED_VERSION_`,`TENANT_ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_RE_PROCDEF -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_RU_ACTINST -- ---------------------------- DROP TABLE IF EXISTS `ACT_RU_ACTINST`; CREATE TABLE `ACT_RU_ACTINST` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT '1', `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin NOT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin NOT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin NOT NULL, `ACT_ID_` varchar(255) COLLATE utf8_bin NOT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `CALL_PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `ACT_NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `ACT_TYPE_` varchar(255) COLLATE utf8_bin NOT NULL, `ASSIGNEE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `START_TIME_` datetime(3) NOT NULL, `END_TIME_` datetime(3) DEFAULT NULL, `DURATION_` bigint(20) DEFAULT NULL, `TRANSACTION_ORDER_` int(11) DEFAULT NULL, `DELETE_REASON_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`), KEY `ACT_IDX_RU_ACTI_START` (`START_TIME_`), KEY `ACT_IDX_RU_ACTI_END` (`END_TIME_`), KEY `ACT_IDX_RU_ACTI_PROC` (`PROC_INST_ID_`), KEY `ACT_IDX_RU_ACTI_PROC_ACT` (`PROC_INST_ID_`,`ACT_ID_`), KEY `ACT_IDX_RU_ACTI_EXEC` (`EXECUTION_ID_`), KEY `ACT_IDX_RU_ACTI_EXEC_ACT` (`EXECUTION_ID_`,`ACT_ID_`), KEY `ACT_IDX_RU_ACTI_TASK` (`TASK_ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_RU_ACTINST -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_RU_DEADLETTER_JOB -- ---------------------------- DROP TABLE IF EXISTS `ACT_RU_DEADLETTER_JOB`; CREATE TABLE `ACT_RU_DEADLETTER_JOB` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TYPE_` varchar(255) COLLATE utf8_bin NOT NULL, `EXCLUSIVE_` tinyint(1) DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROCESS_INSTANCE_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `ELEMENT_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `ELEMENT_NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SUB_SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_DEFINITION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CORRELATION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `EXCEPTION_STACK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EXCEPTION_MSG_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `DUEDATE_` timestamp(3) NULL DEFAULT NULL, `REPEAT_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `HANDLER_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `HANDLER_CFG_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `CUSTOM_VALUES_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`), KEY `ACT_IDX_DEADLETTER_JOB_EXCEPTION_STACK_ID` (`EXCEPTION_STACK_ID_`), KEY `ACT_IDX_DEADLETTER_JOB_CUSTOM_VALUES_ID` (`CUSTOM_VALUES_ID_`), KEY `ACT_IDX_DEADLETTER_JOB_CORRELATION_ID` (`CORRELATION_ID_`), KEY `ACT_IDX_DJOB_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_DJOB_SUB_SCOPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_DJOB_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`), KEY `ACT_FK_DEADLETTER_JOB_EXECUTION` (`EXECUTION_ID_`), KEY `ACT_FK_DEADLETTER_JOB_PROCESS_INSTANCE` (`PROCESS_INSTANCE_ID_`), KEY `ACT_FK_DEADLETTER_JOB_PROC_DEF` (`PROC_DEF_ID_`), CONSTRAINT `ACT_FK_DEADLETTER_JOB_CUSTOM_VALUES` FOREIGN KEY (`CUSTOM_VALUES_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), CONSTRAINT `ACT_FK_DEADLETTER_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), CONSTRAINT `ACT_FK_DEADLETTER_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`), CONSTRAINT `ACT_FK_DEADLETTER_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`), CONSTRAINT `ACT_FK_DEADLETTER_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_RU_DEADLETTER_JOB -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_RU_ENTITYLINK -- ---------------------------- DROP TABLE IF EXISTS `ACT_RU_ENTITYLINK`; CREATE TABLE `ACT_RU_ENTITYLINK` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `CREATE_TIME_` datetime(3) DEFAULT NULL, `LINK_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SUB_SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_DEFINITION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PARENT_ELEMENT_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `REF_SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `REF_SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `REF_SCOPE_DEFINITION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `ROOT_SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `ROOT_SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `HIERARCHY_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_IDX_ENT_LNK_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`,`LINK_TYPE_`), KEY `ACT_IDX_ENT_LNK_REF_SCOPE` (`REF_SCOPE_ID_`,`REF_SCOPE_TYPE_`,`LINK_TYPE_`), KEY `ACT_IDX_ENT_LNK_ROOT_SCOPE` (`ROOT_SCOPE_ID_`,`ROOT_SCOPE_TYPE_`,`LINK_TYPE_`), KEY `ACT_IDX_ENT_LNK_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`,`LINK_TYPE_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_RU_ENTITYLINK -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_RU_EVENT_SUBSCR -- ---------------------------- DROP TABLE IF EXISTS `ACT_RU_EVENT_SUBSCR`; CREATE TABLE `ACT_RU_EVENT_SUBSCR` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `EVENT_TYPE_` varchar(255) COLLATE utf8_bin NOT NULL, `EVENT_NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `ACTIVITY_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `CONFIGURATION_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CREATED_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `SUB_SCOPE_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `SCOPE_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `SCOPE_DEFINITION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `SCOPE_TYPE_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`), KEY `ACT_IDX_EVENT_SUBSCR_CONFIG_` (`CONFIGURATION_`), KEY `ACT_FK_EVENT_EXEC` (`EXECUTION_ID_`), CONSTRAINT `ACT_FK_EVENT_EXEC` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_RU_EVENT_SUBSCR -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_RU_EXECUTION -- ---------------------------- DROP TABLE IF EXISTS `ACT_RU_EXECUTION`; CREATE TABLE `ACT_RU_EXECUTION` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `BUSINESS_KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PARENT_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `SUPER_EXEC_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `ROOT_PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `ACT_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `IS_ACTIVE_` tinyint(4) DEFAULT NULL, `IS_CONCURRENT_` tinyint(4) DEFAULT NULL, `IS_SCOPE_` tinyint(4) DEFAULT NULL, `IS_EVENT_SCOPE_` tinyint(4) DEFAULT NULL, `IS_MI_ROOT_` tinyint(4) DEFAULT NULL, `SUSPENSION_STATE_` int(11) DEFAULT NULL, `CACHED_ENT_STATE_` int(11) DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `START_ACT_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `START_TIME_` datetime(3) DEFAULT NULL, `START_USER_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `LOCK_TIME_` timestamp(3) NULL DEFAULT NULL, `LOCK_OWNER_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `IS_COUNT_ENABLED_` tinyint(4) DEFAULT NULL, `EVT_SUBSCR_COUNT_` int(11) DEFAULT NULL, `TASK_COUNT_` int(11) DEFAULT NULL, `JOB_COUNT_` int(11) DEFAULT NULL, `TIMER_JOB_COUNT_` int(11) DEFAULT NULL, `SUSP_JOB_COUNT_` int(11) DEFAULT NULL, `DEADLETTER_JOB_COUNT_` int(11) DEFAULT NULL, `EXTERNAL_WORKER_JOB_COUNT_` int(11) DEFAULT NULL, `VAR_COUNT_` int(11) DEFAULT NULL, `ID_LINK_COUNT_` int(11) DEFAULT NULL, `CALLBACK_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CALLBACK_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `REFERENCE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `REFERENCE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PROPAGATED_STAGE_INST_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_IDX_EXEC_BUSKEY` (`BUSINESS_KEY_`), KEY `ACT_IDC_EXEC_ROOT` (`ROOT_PROC_INST_ID_`), KEY `ACT_IDX_EXEC_REF_ID_` (`REFERENCE_ID_`), KEY `ACT_FK_EXE_PROCINST` (`PROC_INST_ID_`), KEY `ACT_FK_EXE_PARENT` (`PARENT_ID_`), KEY `ACT_FK_EXE_SUPER` (`SUPER_EXEC_`), KEY `ACT_FK_EXE_PROCDEF` (`PROC_DEF_ID_`), CONSTRAINT `ACT_FK_EXE_PARENT` FOREIGN KEY (`PARENT_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE CASCADE, CONSTRAINT `ACT_FK_EXE_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`), CONSTRAINT `ACT_FK_EXE_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `ACT_FK_EXE_SUPER` FOREIGN KEY (`SUPER_EXEC_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_RU_EXECUTION -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_RU_EXTERNAL_JOB -- ---------------------------- DROP TABLE IF EXISTS `ACT_RU_EXTERNAL_JOB`; CREATE TABLE `ACT_RU_EXTERNAL_JOB` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TYPE_` varchar(255) COLLATE utf8_bin NOT NULL, `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL, `LOCK_OWNER_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `EXCLUSIVE_` tinyint(1) DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROCESS_INSTANCE_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `ELEMENT_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `ELEMENT_NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SUB_SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_DEFINITION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CORRELATION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `RETRIES_` int(11) DEFAULT NULL, `EXCEPTION_STACK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EXCEPTION_MSG_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `DUEDATE_` timestamp(3) NULL DEFAULT NULL, `REPEAT_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `HANDLER_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `HANDLER_CFG_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `CUSTOM_VALUES_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`), KEY `ACT_IDX_EXTERNAL_JOB_EXCEPTION_STACK_ID` (`EXCEPTION_STACK_ID_`), KEY `ACT_IDX_EXTERNAL_JOB_CUSTOM_VALUES_ID` (`CUSTOM_VALUES_ID_`), KEY `ACT_IDX_EXTERNAL_JOB_CORRELATION_ID` (`CORRELATION_ID_`), KEY `ACT_IDX_EJOB_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_EJOB_SUB_SCOPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_EJOB_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`), CONSTRAINT `ACT_FK_EXTERNAL_JOB_CUSTOM_VALUES` FOREIGN KEY (`CUSTOM_VALUES_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), CONSTRAINT `ACT_FK_EXTERNAL_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_RU_EXTERNAL_JOB -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_RU_HISTORY_JOB -- ---------------------------- DROP TABLE IF EXISTS `ACT_RU_HISTORY_JOB`; CREATE TABLE `ACT_RU_HISTORY_JOB` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL, `LOCK_OWNER_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `RETRIES_` int(11) DEFAULT NULL, `EXCEPTION_STACK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EXCEPTION_MSG_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `HANDLER_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `HANDLER_CFG_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `CUSTOM_VALUES_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `ADV_HANDLER_CFG_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL, `SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_RU_HISTORY_JOB -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_RU_IDENTITYLINK -- ---------------------------- DROP TABLE IF EXISTS `ACT_RU_IDENTITYLINK`; CREATE TABLE `ACT_RU_IDENTITYLINK` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `GROUP_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `USER_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SUB_SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_DEFINITION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_IDX_IDENT_LNK_USER` (`USER_ID_`), KEY `ACT_IDX_IDENT_LNK_GROUP` (`GROUP_ID_`), KEY `ACT_IDX_IDENT_LNK_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_IDENT_LNK_SUB_SCOPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_IDENT_LNK_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_ATHRZ_PROCEDEF` (`PROC_DEF_ID_`), KEY `ACT_FK_TSKASS_TASK` (`TASK_ID_`), KEY `ACT_FK_IDL_PROCINST` (`PROC_INST_ID_`), CONSTRAINT `ACT_FK_ATHRZ_PROCEDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`), CONSTRAINT `ACT_FK_IDL_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`), CONSTRAINT `ACT_FK_TSKASS_TASK` FOREIGN KEY (`TASK_ID_`) REFERENCES `ACT_RU_TASK` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_RU_IDENTITYLINK -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_RU_JOB -- ---------------------------- DROP TABLE IF EXISTS `ACT_RU_JOB`; CREATE TABLE `ACT_RU_JOB` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TYPE_` varchar(255) COLLATE utf8_bin NOT NULL, `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL, `LOCK_OWNER_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `EXCLUSIVE_` tinyint(1) DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROCESS_INSTANCE_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `ELEMENT_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `ELEMENT_NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SUB_SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_DEFINITION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CORRELATION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `RETRIES_` int(11) DEFAULT NULL, `EXCEPTION_STACK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EXCEPTION_MSG_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `DUEDATE_` timestamp(3) NULL DEFAULT NULL, `REPEAT_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `HANDLER_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `HANDLER_CFG_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `CUSTOM_VALUES_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`), KEY `ACT_IDX_JOB_EXCEPTION_STACK_ID` (`EXCEPTION_STACK_ID_`), KEY `ACT_IDX_JOB_CUSTOM_VALUES_ID` (`CUSTOM_VALUES_ID_`), KEY `ACT_IDX_JOB_CORRELATION_ID` (`CORRELATION_ID_`), KEY `ACT_IDX_JOB_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_JOB_SUB_SCOPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_JOB_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`), KEY `ACT_FK_JOB_EXECUTION` (`EXECUTION_ID_`), KEY `ACT_FK_JOB_PROCESS_INSTANCE` (`PROCESS_INSTANCE_ID_`), KEY `ACT_FK_JOB_PROC_DEF` (`PROC_DEF_ID_`), CONSTRAINT `ACT_FK_JOB_CUSTOM_VALUES` FOREIGN KEY (`CUSTOM_VALUES_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), CONSTRAINT `ACT_FK_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), CONSTRAINT `ACT_FK_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`), CONSTRAINT `ACT_FK_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`), CONSTRAINT `ACT_FK_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_RU_JOB -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_RU_SUSPENDED_JOB -- ---------------------------- DROP TABLE IF EXISTS `ACT_RU_SUSPENDED_JOB`; CREATE TABLE `ACT_RU_SUSPENDED_JOB` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TYPE_` varchar(255) COLLATE utf8_bin NOT NULL, `EXCLUSIVE_` tinyint(1) DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROCESS_INSTANCE_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `ELEMENT_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `ELEMENT_NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SUB_SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_DEFINITION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CORRELATION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `RETRIES_` int(11) DEFAULT NULL, `EXCEPTION_STACK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EXCEPTION_MSG_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `DUEDATE_` timestamp(3) NULL DEFAULT NULL, `REPEAT_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `HANDLER_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `HANDLER_CFG_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `CUSTOM_VALUES_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`), KEY `ACT_IDX_SUSPENDED_JOB_EXCEPTION_STACK_ID` (`EXCEPTION_STACK_ID_`), KEY `ACT_IDX_SUSPENDED_JOB_CUSTOM_VALUES_ID` (`CUSTOM_VALUES_ID_`), KEY `ACT_IDX_SUSPENDED_JOB_CORRELATION_ID` (`CORRELATION_ID_`), KEY `ACT_IDX_SJOB_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_SJOB_SUB_SCOPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_SJOB_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`), KEY `ACT_FK_SUSPENDED_JOB_EXECUTION` (`EXECUTION_ID_`), KEY `ACT_FK_SUSPENDED_JOB_PROCESS_INSTANCE` (`PROCESS_INSTANCE_ID_`), KEY `ACT_FK_SUSPENDED_JOB_PROC_DEF` (`PROC_DEF_ID_`), CONSTRAINT `ACT_FK_SUSPENDED_JOB_CUSTOM_VALUES` FOREIGN KEY (`CUSTOM_VALUES_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), CONSTRAINT `ACT_FK_SUSPENDED_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), CONSTRAINT `ACT_FK_SUSPENDED_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`), CONSTRAINT `ACT_FK_SUSPENDED_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`), CONSTRAINT `ACT_FK_SUSPENDED_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_RU_SUSPENDED_JOB -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_RU_TASK -- ---------------------------- DROP TABLE IF EXISTS `ACT_RU_TASK`; CREATE TABLE `ACT_RU_TASK` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TASK_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SUB_SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_DEFINITION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PROPAGATED_STAGE_INST_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PARENT_TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `DESCRIPTION_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `TASK_DEF_KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `OWNER_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `ASSIGNEE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `DELEGATION_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PRIORITY_` int(11) DEFAULT NULL, `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL, `DUE_DATE_` datetime(3) DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SUSPENSION_STATE_` int(11) DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', `FORM_KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CLAIM_TIME_` datetime(3) DEFAULT NULL, `IS_COUNT_ENABLED_` tinyint(4) DEFAULT NULL, `VAR_COUNT_` int(11) DEFAULT NULL, `ID_LINK_COUNT_` int(11) DEFAULT NULL, `SUB_TASK_COUNT_` int(11) DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_IDX_TASK_CREATE` (`CREATE_TIME_`), KEY `ACT_IDX_TASK_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_TASK_SUB_SCOPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_TASK_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`), KEY `ACT_FK_TASK_EXE` (`EXECUTION_ID_`), KEY `ACT_FK_TASK_PROCINST` (`PROC_INST_ID_`), KEY `ACT_FK_TASK_PROCDEF` (`PROC_DEF_ID_`), CONSTRAINT `ACT_FK_TASK_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`), CONSTRAINT `ACT_FK_TASK_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`), CONSTRAINT `ACT_FK_TASK_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_RU_TASK -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_RU_TIMER_JOB -- ---------------------------- DROP TABLE IF EXISTS `ACT_RU_TIMER_JOB`; CREATE TABLE `ACT_RU_TIMER_JOB` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TYPE_` varchar(255) COLLATE utf8_bin NOT NULL, `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL, `LOCK_OWNER_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `EXCLUSIVE_` tinyint(1) DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROCESS_INSTANCE_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `ELEMENT_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `ELEMENT_NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SUB_SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_DEFINITION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CORRELATION_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `RETRIES_` int(11) DEFAULT NULL, `EXCEPTION_STACK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EXCEPTION_MSG_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `DUEDATE_` timestamp(3) NULL DEFAULT NULL, `REPEAT_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `HANDLER_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `HANDLER_CFG_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `CUSTOM_VALUES_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`), KEY `ACT_IDX_TIMER_JOB_EXCEPTION_STACK_ID` (`EXCEPTION_STACK_ID_`), KEY `ACT_IDX_TIMER_JOB_CUSTOM_VALUES_ID` (`CUSTOM_VALUES_ID_`), KEY `ACT_IDX_TIMER_JOB_CORRELATION_ID` (`CORRELATION_ID_`), KEY `ACT_IDX_TIMER_JOB_DUEDATE` (`DUEDATE_`), KEY `ACT_IDX_TJOB_SCOPE` (`SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_TJOB_SUB_SCOPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_TJOB_SCOPE_DEF` (`SCOPE_DEFINITION_ID_`,`SCOPE_TYPE_`), KEY `ACT_FK_TIMER_JOB_EXECUTION` (`EXECUTION_ID_`), KEY `ACT_FK_TIMER_JOB_PROCESS_INSTANCE` (`PROCESS_INSTANCE_ID_`), KEY `ACT_FK_TIMER_JOB_PROC_DEF` (`PROC_DEF_ID_`), CONSTRAINT `ACT_FK_TIMER_JOB_CUSTOM_VALUES` FOREIGN KEY (`CUSTOM_VALUES_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), CONSTRAINT `ACT_FK_TIMER_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), CONSTRAINT `ACT_FK_TIMER_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`), CONSTRAINT `ACT_FK_TIMER_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`), CONSTRAINT `ACT_FK_TIMER_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_RU_TIMER_JOB -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for ACT_RU_VARIABLE -- ---------------------------- DROP TABLE IF EXISTS `ACT_RU_VARIABLE`; CREATE TABLE `ACT_RU_VARIABLE` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `TYPE_` varchar(255) COLLATE utf8_bin NOT NULL, `NAME_` varchar(255) COLLATE utf8_bin NOT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SUB_SCOPE_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SCOPE_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `BYTEARRAY_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `DOUBLE_` double DEFAULT NULL, `LONG_` bigint(20) DEFAULT NULL, `TEXT_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `TEXT2_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_IDX_RU_VAR_SCOPE_ID_TYPE` (`SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_IDX_RU_VAR_SUB_ID_TYPE` (`SUB_SCOPE_ID_`,`SCOPE_TYPE_`), KEY `ACT_FK_VAR_BYTEARRAY` (`BYTEARRAY_ID_`), KEY `ACT_IDX_VARIABLE_TASK_ID` (`TASK_ID_`), KEY `ACT_FK_VAR_EXE` (`EXECUTION_ID_`), KEY `ACT_FK_VAR_PROCINST` (`PROC_INST_ID_`), CONSTRAINT `ACT_FK_VAR_BYTEARRAY` FOREIGN KEY (`BYTEARRAY_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`), CONSTRAINT `ACT_FK_VAR_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`), CONSTRAINT `ACT_FK_VAR_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of ACT_RU_VARIABLE -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for FLW_CHANNEL_DEFINITION -- ---------------------------- DROP TABLE IF EXISTS `FLW_CHANNEL_DEFINITION`; CREATE TABLE `FLW_CHANNEL_DEFINITION` ( `ID_` varchar(64) COLLATE utf8mb4_bin NOT NULL, `NAME_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `VERSION_` int(11) DEFAULT NULL, `KEY_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `DEPLOYMENT_ID_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `CREATE_TIME_` datetime(3) DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `RESOURCE_NAME_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `DESCRIPTION_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`ID_`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- ---------------------------- -- Records of FLW_CHANNEL_DEFINITION -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for FLW_EVENT_DEFINITION -- ---------------------------- DROP TABLE IF EXISTS `FLW_EVENT_DEFINITION`; CREATE TABLE `FLW_EVENT_DEFINITION` ( `ID_` varchar(64) COLLATE utf8mb4_bin NOT NULL, `NAME_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `VERSION_` int(11) DEFAULT NULL, `KEY_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `DEPLOYMENT_ID_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `RESOURCE_NAME_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `DESCRIPTION_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`ID_`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- ---------------------------- -- Records of FLW_EVENT_DEFINITION -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for FLW_EVENT_DEPLOYMENT -- ---------------------------- DROP TABLE IF EXISTS `FLW_EVENT_DEPLOYMENT`; CREATE TABLE `FLW_EVENT_DEPLOYMENT` ( `ID_` varchar(64) COLLATE utf8mb4_bin NOT NULL, `NAME_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `DEPLOY_TIME_` datetime(3) DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `PARENT_DEPLOYMENT_ID_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- ---------------------------- -- Records of FLW_EVENT_DEPLOYMENT -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for FLW_EVENT_RESOURCE -- ---------------------------- DROP TABLE IF EXISTS `FLW_EVENT_RESOURCE`; CREATE TABLE `FLW_EVENT_RESOURCE` ( `ID_` varchar(64) COLLATE utf8mb4_bin NOT NULL, `NAME_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `DEPLOYMENT_ID_` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `RESOURCE_BYTES_` longblob, PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- ---------------------------- -- Records of FLW_EVENT_RESOURCE -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for FLW_EV_DATABASECHANGELOG -- ---------------------------- DROP TABLE IF EXISTS `FLW_EV_DATABASECHANGELOG`; CREATE TABLE `FLW_EV_DATABASECHANGELOG` ( `ID` varchar(255) COLLATE utf8mb4_bin NOT NULL, `AUTHOR` varchar(255) COLLATE utf8mb4_bin NOT NULL, `FILENAME` varchar(255) COLLATE utf8mb4_bin NOT NULL, `DATEEXECUTED` datetime NOT NULL, `ORDEREXECUTED` int(11) NOT NULL, `EXECTYPE` varchar(10) COLLATE utf8mb4_bin NOT NULL, `MD5SUM` varchar(35) COLLATE utf8mb4_bin DEFAULT NULL, `DESCRIPTION` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `COMMENTS` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `TAG` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `LIQUIBASE` varchar(20) COLLATE utf8mb4_bin DEFAULT NULL, `CONTEXTS` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `LABELS` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `DEPLOYMENT_ID` varchar(10) COLLATE utf8mb4_bin DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- ---------------------------- -- Records of FLW_EV_DATABASECHANGELOG -- ---------------------------- BEGIN; INSERT INTO `FLW_EV_DATABASECHANGELOG` VALUES ('1', 'flowable', 'org/flowable/eventregistry/db/liquibase/flowable-eventregistry-db-changelog.xml', '2022-02-11 14:36:51', 1, 'EXECUTED', '8:1b0c48c9cf7945be799d868a2626d687', 'createTable tableName=FLW_EVENT_DEPLOYMENT; createTable tableName=FLW_EVENT_RESOURCE; createTable tableName=FLW_EVENT_DEFINITION; createIndex indexName=ACT_IDX_EVENT_DEF_UNIQ, tableName=FLW_EVENT_DEFINITION; createTable tableName=FLW_CHANNEL_DEFIN...', '', NULL, '4.3.5', NULL, NULL, '4561410939'); COMMIT; -- ---------------------------- -- Table structure for FLW_EV_DATABASECHANGELOGLOCK -- ---------------------------- DROP TABLE IF EXISTS `FLW_EV_DATABASECHANGELOGLOCK`; CREATE TABLE `FLW_EV_DATABASECHANGELOGLOCK` ( `ID` int(11) NOT NULL, `LOCKED` bit(1) NOT NULL, `LOCKGRANTED` datetime DEFAULT NULL, `LOCKEDBY` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- ---------------------------- -- Records of FLW_EV_DATABASECHANGELOGLOCK -- ---------------------------- BEGIN; INSERT INTO `FLW_EV_DATABASECHANGELOGLOCK` VALUES (1, b'0', NULL, NULL); COMMIT; -- ---------------------------- -- Table structure for FLW_RU_BATCH -- ---------------------------- DROP TABLE IF EXISTS `FLW_RU_BATCH`; CREATE TABLE `FLW_RU_BATCH` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `TYPE_` varchar(64) COLLATE utf8_bin NOT NULL, `SEARCH_KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SEARCH_KEY2_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CREATE_TIME_` datetime(3) NOT NULL, `COMPLETE_TIME_` datetime(3) DEFAULT NULL, `STATUS_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `BATCH_DOC_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of FLW_RU_BATCH -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for FLW_RU_BATCH_PART -- ---------------------------- DROP TABLE IF EXISTS `FLW_RU_BATCH_PART`; CREATE TABLE `FLW_RU_BATCH_PART` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `BATCH_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TYPE_` varchar(64) COLLATE utf8_bin NOT NULL, `SCOPE_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `SUB_SCOPE_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `SCOPE_TYPE_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `SEARCH_KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SEARCH_KEY2_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CREATE_TIME_` datetime(3) NOT NULL, `COMPLETE_TIME_` datetime(3) DEFAULT NULL, `STATUS_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `RESULT_DOC_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`), KEY `FLW_IDX_BATCH_PART` (`BATCH_ID_`), CONSTRAINT `FLW_FK_BATCH_PART_PARENT` FOREIGN KEY (`BATCH_ID_`) REFERENCES `FLW_RU_BATCH` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Records of FLW_RU_BATCH_PART -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for t_account -- ---------------------------- DROP TABLE IF EXISTS `t_account`; CREATE TABLE `t_account` ( `id` varchar(64) NOT NULL COMMENT 'ID', `user_type` varchar(100) NOT NULL DEFAULT 'SysUser' COMMENT '用户类型', `user_id` varchar(64) NOT NULL COMMENT '用户ID', `auth_type` varchar(20) NOT NULL DEFAULT 'PWD' COMMENT '认证方式', `auth_account` varchar(100) NOT NULL COMMENT '用户名', `auth_secret` varchar(64) DEFAULT NULL COMMENT '密码', `secret_salt` varchar(32) DEFAULT NULL COMMENT '加密盐', `status` int(11) NOT NULL DEFAULT '1' COMMENT '用户状态', `is_deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='登录账号'; -- ---------------------------- -- Records of t_account -- ---------------------------- BEGIN; INSERT INTO `t_account` VALUES ('1457995482310680578', 'SysUser', '1457995481966747649', 'PWD', 'admin', '$2a$10$vZk9P3XtbD2KrdLbQYPvBuPAkkUda0OlkDg7io1Q6VEtfFPig/tqO', NULL, 1, 0, '2021-11-09 16:56:26', NULL, '2022-02-01 23:57:27', '1457995481966747649'); COMMIT; -- ---------------------------- -- Table structure for t_answer -- ---------------------------- DROP TABLE IF EXISTS `t_answer`; CREATE TABLE `t_answer` ( `id` varchar(64) COLLATE utf8mb4_bin NOT NULL, `project_id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL, `answer` text COLLATE utf8mb4_bin COMMENT '问卷答案', `attachment` varchar(1024) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '问卷元数据', `meta_info` text COLLATE utf8mb4_bin COMMENT '问卷元数据', `temp_save` int(11) DEFAULT NULL COMMENT '0暂存 1已完成', `is_deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='答案'; -- ---------------------------- -- Records of t_answer -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for t_dashboard -- ---------------------------- DROP TABLE IF EXISTS `t_dashboard`; CREATE TABLE `t_dashboard` ( `id` varchar(64) NOT NULL COMMENT 'ID', `key` varchar(256) NOT NULL COMMENT '仪表盘组件key', `type` int(2) DEFAULT NULL COMMENT '仪表盘分类', `project_id` varchar(64) DEFAULT NULL COMMENT '项目ID', `setting` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '仪表盘设置', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='仪表盘'; -- ---------------------------- -- Records of t_dashboard -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for t_dept -- ---------------------------- DROP TABLE IF EXISTS `t_dept`; CREATE TABLE `t_dept` ( `id` varchar(64) NOT NULL COMMENT 'ID', `parent_id` varchar(64) NOT NULL, `name` varchar(64) DEFAULT NULL COMMENT '名称', `short_name` varchar(64) NOT NULL COMMENT '简称', `code` varchar(64) DEFAULT NULL COMMENT '数据权限类型', `manager_id` varchar(64) DEFAULT NULL COMMENT '扩展字段', `sort_code` int(11) DEFAULT NULL, `property_json` varchar(256) DEFAULT NULL COMMENT '扩展字段', `status` varchar(20) DEFAULT NULL COMMENT '扩展字段', `remark` varchar(256) DEFAULT NULL COMMENT '扩展字段', `is_deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='组织机构'; -- ---------------------------- -- Records of t_dept -- ---------------------------- BEGIN; INSERT INTO `t_dept` VALUES ('1', '0', '卷王', 'juanwang', 'juanwang', '1457995481966747649', NULL, NULL, NULL, NULL, 0, '2021-11-21 14:12:08', NULL, '2021-11-21 14:22:58', '1457995481966747649'); COMMIT; -- ---------------------------- -- Table structure for t_file -- ---------------------------- DROP TABLE IF EXISTS `t_file`; CREATE TABLE `t_file` ( `id` varchar(64) COLLATE utf8mb4_bin NOT NULL, `original_name` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, `file_name` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, `file_path` varchar(512) COLLATE utf8mb4_bin DEFAULT NULL, `thumb_file_path` varchar(512) COLLATE utf8mb4_bin DEFAULT NULL, `storage_type` int(11) DEFAULT NULL, `shared` int(11) DEFAULT '0', `is_deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='附件'; -- ---------------------------- -- Records of t_file -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for t_flow_entry -- ---------------------------- DROP TABLE IF EXISTS `t_flow_entry`; CREATE TABLE `t_flow_entry` ( `id` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '主键', `project_id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '流程定义key', `process_definition_id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '流程定义 id', `deploy_id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '部署id', `bpmn_xml` longtext COLLATE utf8mb4_bin COMMENT '流程XML', `nodes` longtext COLLATE utf8mb4_bin COMMENT '流程节点', `icon` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '流程图标', `status` int(11) DEFAULT '0' COMMENT '0未发布 1已发布', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='流程实体'; -- ---------------------------- -- Records of t_flow_entry -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for t_flow_entry_node -- ---------------------------- DROP TABLE IF EXISTS `t_flow_entry_node`; CREATE TABLE `t_flow_entry_node` ( `id` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '节点id', `name` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '节点名称', `project_id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '项目id', `task_type` int(11) DEFAULT NULL COMMENT '流程节点类型', `field_permission` text COLLATE utf8mb4_bin COMMENT '字段权限', `setting` text COLLATE utf8mb4_bin COMMENT '流程设置', `identity` text COLLATE utf8mb4_bin COMMENT '授权用户', `expression` text COLLATE utf8mb4_bin COMMENT '表达式', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='流程节点'; -- ---------------------------- -- Records of t_flow_entry_node -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for t_flow_entry_publish -- ---------------------------- DROP TABLE IF EXISTS `t_flow_entry_publish`; CREATE TABLE `t_flow_entry_publish` ( `id` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '流程部署Id', `entry_id` bigint(20) NOT NULL COMMENT '流程Id', `process_definition_id` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '流程引擎的定义Id', `publish_version` int(11) NOT NULL COMMENT '发布版本', `active_status` bit(1) NOT NULL COMMENT '激活状态', `main_version` bit(1) NOT NULL COMMENT '是否为主版本', `publish_time` datetime NOT NULL COMMENT '发布时间', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- ---------------------------- -- Records of t_flow_entry_publish -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for t_flow_instance -- ---------------------------- DROP TABLE IF EXISTS `t_flow_instance`; CREATE TABLE `t_flow_instance` ( `id` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '流程实例ID', `project_id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '项目id', `answer_id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '答案id', `status` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '当前状态', `approval_stage` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '审批阶段', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='流程实例'; -- ---------------------------- -- Records of t_flow_instance -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for t_flow_operation -- ---------------------------- DROP TABLE IF EXISTS `t_flow_operation`; CREATE TABLE `t_flow_operation` ( `id` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '主键id', `instance_id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '流程实例id', `project_id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '项目id', `answer_id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '答案id', `activity_id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '任务对应的xml节点id', `task_id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '任务id', `task_name` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '任务名称', `task_type` int(11) DEFAULT NULL COMMENT '任务类型', `approval_type` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '审批类型', `comment` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '注释内容', `delegate_assignee` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '委托指定人', `answer` varchar(1024) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '当前节点答案', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, `new_activity_id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '新的任务节点id', `latest` bit(1) DEFAULT NULL COMMENT '当前流程最新操作', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='流程操作'; -- ---------------------------- -- Records of t_flow_operation -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for t_flow_operation_user -- ---------------------------- DROP TABLE IF EXISTS `t_flow_operation_user`; CREATE TABLE `t_flow_operation_user` ( `id` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '节点id', `operation_id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '操作id', `user_id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '用户id', `group_id` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '组id', `link_type` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '用户类型', `latest` bit(1) NOT NULL DEFAULT b'1' COMMENT '是否最新记录', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- ---------------------------- -- Records of t_flow_operation_user -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for t_position -- ---------------------------- DROP TABLE IF EXISTS `t_position`; CREATE TABLE `t_position` ( `id` varchar(64) NOT NULL COMMENT 'ID', `name` varchar(50) NOT NULL, `code` varchar(20) DEFAULT NULL, `is_virtual` tinyint(1) NOT NULL COMMENT '是否虚拟岗', `data_permission_type` varchar(256) DEFAULT NULL COMMENT '数据权限类型', `property_json` varchar(20) DEFAULT NULL COMMENT '扩展字段', `is_deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='岗位'; -- ---------------------------- -- Records of t_position -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for t_project -- ---------------------------- DROP TABLE IF EXISTS `t_project`; CREATE TABLE `t_project` ( `id` varchar(64) COLLATE utf8mb4_bin NOT NULL, `short_id` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL, `name` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '项目名称', `survey` longtext COLLATE utf8mb4_bin COMMENT '问卷', `setting` text COLLATE utf8mb4_bin DEFAULT NULL COMMENT '问卷设置', `status` int(11) DEFAULT '0' COMMENT '0未发布 1已发布', `belong_group` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, `is_deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `short_id` (`short_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='项目'; -- ---------------------------- -- Records of t_project -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for t_project_partner -- ---------------------------- DROP TABLE IF EXISTS `t_project_partner`; CREATE TABLE `t_project_partner` ( `id` varchar(64) COLLATE utf8mb4_bin NOT NULL, `project_id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '项目id', `type` int(2) DEFAULT NULL COMMENT '参与者类型', `user_id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '参与者id', `group_id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '参与组id', `data_permission` text COLLATE utf8mb4_bin COMMENT '数据权限', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- ---------------------------- -- Records of t_project_partner -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for t_role -- ---------------------------- DROP TABLE IF EXISTS `t_role`; CREATE TABLE `t_role` ( `id` varchar(64) NOT NULL COMMENT 'ID', `name` varchar(50) NOT NULL COMMENT '名称', `code` varchar(50) NOT NULL COMMENT '编码', `remark` varchar(100) DEFAULT NULL COMMENT '备注', `authority` varchar(3000) DEFAULT NULL COMMENT '权限列表', `is_deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='角色'; -- ---------------------------- -- Records of t_role -- ---------------------------- BEGIN; INSERT INTO `t_role` VALUES ('1457995481928998914', 'Admin', 'admin', '系统初始化角色', 'answer,answer:list,answer:detail,answer:create,answer:update,answer:delete,answer:export,file,file:detail,file:list,file:import,file:delete,project,project:list,project:detail,project:create,project:update,project:delete,project:report,system,system:role,system:role:list,system:user,system:user:list,system:role:create,system:role:update,system:role:delete,system:user:create,system:user:update,system:user:updatePosition,system:user:delete,position,position:list,position:create,system:position,system:position:update,system:position:delete,system:org,system:org:list,system:org:create,system:org:update,system:org:delete,template,template:list,template:create,template:update,template:delete,system:position:list,system:position:create,system:dept,system:dept:list,system:dept:create,system:dept:update,system:dept:delete', 0, '2021-11-09 16:56:26', NULL, '2022-02-01 23:53:28', '1457995481966747649'); INSERT INTO `t_role` VALUES ('1462366121347792897', '普通用户', 'role', NULL, 'answer,answer:export,answer:list,answer:detail,answer:create,answer:update,answer:delete,file,file:detail,file:import,file:list,file:delete,project,project:list,project:detail,project:create,project:update,project:delete,project:report,system,system:user,system:user:list,system:role,system:role:list,system:role:create,system:role:update,system:role:delete,system:user:create,system:user:update,system:user:updatePosition,system:user:delete,system:position,system:position:list,system:position:create,system:position:update,system:position:delete,system:org,system:org:list,system:org:create,system:org:update,system:org:delete,template,template:list,template:create,template:update,template:delete', 1, '2021-11-21 18:23:47', '1457995481966747649', '2022-01-27 14:08:14', '1457995481966747649'); COMMIT; -- ---------------------------- -- Table structure for t_sys_info -- ---------------------------- DROP TABLE IF EXISTS `t_sys_info`; CREATE TABLE `t_sys_info` ( `id` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT '主键', `name` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '系统名称', `description` varchar(128) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '系统描述信息', `avatar` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '图标', `locale` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '默认语言', `version` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '默认语言', `is_default` tinyint(1) DEFAULT NULL COMMENT '是否默认设置', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='系统信息'; -- ---------------------------- -- Records of t_sys_info -- ---------------------------- BEGIN; INSERT INTO `t_sys_info` VALUES ('1', '卷王', '做更好的调查问卷系统', NULL, 'zh-CN', NULL, 1, '2022-02-11 10:13:19', NULL, '2022-02-11 14:29:03', NULL); COMMIT; -- ---------------------------- -- Table structure for t_template -- ---------------------------- DROP TABLE IF EXISTS `t_template`; CREATE TABLE `t_template` ( `id` varchar(64) COLLATE utf8mb4_bin NOT NULL, `name` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '模板标题', `question_type` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '问题类型', `template` longtext COLLATE utf8mb4_bin COMMENT '模板', `category` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '模板分类', `tag` varchar(512) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '标签', `priority` int(11) DEFAULT NULL COMMENT '排序优先级', `preview_url` varchar(512) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '预览地址', `shared` int(11) DEFAULT '0', `is_deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- ---------------------------- -- Records of t_template -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for t_user -- ---------------------------- DROP TABLE IF EXISTS `t_user`; CREATE TABLE `t_user` ( `id` varchar(64) NOT NULL COMMENT 'ID', `name` varchar(50) NOT NULL COMMENT '真实姓名', `dept_id` varchar(20) DEFAULT NULL, `gender` varchar(10) NOT NULL COMMENT '性别', `birthday` date DEFAULT NULL COMMENT '出生日期', `phone` varchar(20) DEFAULT NULL COMMENT '手机号', `email` varchar(50) DEFAULT NULL COMMENT 'Email', `avatar` varchar(200) DEFAULT NULL COMMENT '头像地址', `status` int(11) NOT NULL DEFAULT '1' COMMENT '用户状态', `is_deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) DEFAULT NULL, `profile` varbinary(255) DEFAULT NULL COMMENT '个人简介', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='系统用户'; -- ---------------------------- -- Records of t_user -- ---------------------------- BEGIN; INSERT INTO `t_user` VALUES ('1457995481966747649', 'Admin', '1', 'F', NULL, '13800138000', 'javahrp@gmail.com', '1492007810605539329', 1, 0, '2021-11-09 16:56:26', NULL, '2022-02-11 13:29:17', '1457995481966747649', 0x68656C6C6F20776F726C647E); COMMIT; -- ---------------------------- -- Table structure for t_user_position -- ---------------------------- DROP TABLE IF EXISTS `t_user_position`; CREATE TABLE `t_user_position` ( `id` varchar(64) NOT NULL COMMENT 'ID', `user_id` varchar(64) NOT NULL, `dept_id` varchar(64) DEFAULT NULL, `position_id` varchar(64) DEFAULT NULL COMMENT '数据权限类型', `is_primary_position` tinyint(1) DEFAULT NULL COMMENT '是否主岗', `propertyJson` varchar(256) DEFAULT NULL COMMENT '扩展字段', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户岗位'; -- ---------------------------- -- Records of t_user_position -- ---------------------------- BEGIN; COMMIT; -- ---------------------------- -- Table structure for t_user_role -- ---------------------------- DROP TABLE IF EXISTS `t_user_role`; CREATE TABLE `t_user_role` ( `id` varchar(64) NOT NULL COMMENT 'ID', `user_type` varchar(100) NOT NULL DEFAULT 'SysUser' COMMENT '用户类型', `user_id` bigint(20) NOT NULL COMMENT '用户ID', `role_id` bigint(20) NOT NULL COMMENT '角色ID', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` varchar(256) DEFAULT NULL, `update_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `update_by` varchar(256) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_t_user_role` (`user_type`,`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户角色关联'; -- ---------------------------- -- Records of t_user_role -- ---------------------------- BEGIN; INSERT INTO `t_user_role` VALUES ('1488542015867121666', 'SysUser', 1457995481966747649, 1457995481928998914, '2022-02-01 23:57:27', '1457995481966747649', NULL, NULL); COMMIT; SET FOREIGN_KEY_CHECKS = 1;
写入后,Esc–>:wq保存退出
运行sql文件此处有两种方式
方法一:若未连接数据库,可以用以下命令
mysql -u root -p surveyking< /opt/surveyking/surveyking.sql
方法二:若连接数据库,可以用以下命令
use surveyking;
source /opt/surveyking/surveyking.sql
登录mysql控制台,使用以下命令
use surveyking;
show tables;
至此,数据库初始化成功。
关闭防火墙并设置开机不自动启动
systemctl stop firewalld #关闭防火墙
systemctl disable firewalld #禁止防火墙开机启动
firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)
运行命令部署卷王
java -jar surveyking-v0.x.x.jar --server.port=8080 --spring.datasource.url=jdbc:mysql://localhost:3306/surveyking --spring.datasource.username=root --spring.datasource.password=123456
此处重要参数说明:
–server.port=8080 系统端口,按照实际情况更改
–spring.datasource.url=jdbc:mysql://localhost:3306/surveyking 数据库连接的 url,按照实际情况更改
–spring.datasource.username=root 数据库账号,按照实际情况更改
–spring.datasource.password=123456 数据库密码,按照实际情况更改
用以下地址访问你的应用:
http://你的ip:8080
默认用户名密码可以在gitee中找到。
至此,问卷系统部署完成。
com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Exception during pool initialization.
造成此问题的主要原因是你的时区配置的有歧义,可以在步骤4.6中,在–spring.datasource.url后加上&serverTimezone=Asia/Shanghai 这样无歧义的值,既将命令行变更为 以下命令即可。
java -jar surveyking-v0.x.x.jar --server.port=8080 --spring.datasource.url=jdbc:mysql://localhost:3306/surveyking&serverTimezone=Asia/Shanghai --spring.datasource.username=root --spring.datasource.password=123456
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。