@ -15,13 +15,15 @@
* limitations under the License .
* /
SET FOREIGN_KEY_CHECKS = 0 ;
SET
FOREIGN_KEY_CHECKS = 0 ;
-- ----------------------------
-- Table structure for QRTZ_JOB_DETAILS
-- ----------------------------
DROP TABLE IF EXISTS QRTZ_JOB_DETAILS ;
CREATE TABLE QRTZ_JOB_DETAILS (
CREATE TABLE QRTZ_JOB_DETAILS
(
SCHED_NAME varchar ( 120 ) NOT NULL ,
JOB_NAME varchar ( 200 ) NOT NULL ,
JOB_GROUP varchar ( 200 ) NOT NULL ,
@ -39,7 +41,8 @@ CREATE TABLE QRTZ_JOB_DETAILS (
-- Table structure for QRTZ_TRIGGERS
-- ----------------------------
DROP TABLE IF EXISTS QRTZ_TRIGGERS ;
CREATE TABLE QRTZ_TRIGGERS (
CREATE TABLE QRTZ_TRIGGERS
(
SCHED_NAME varchar ( 120 ) NOT NULL ,
TRIGGER_NAME varchar ( 200 ) NOT NULL ,
TRIGGER_GROUP varchar ( 200 ) NOT NULL ,
@ -64,7 +67,8 @@ CREATE TABLE QRTZ_TRIGGERS (
-- Table structure for QRTZ_BLOB_TRIGGERS
-- ----------------------------
DROP TABLE IF EXISTS QRTZ_BLOB_TRIGGERS ;
CREATE TABLE QRTZ_BLOB_TRIGGERS (
CREATE TABLE QRTZ_BLOB_TRIGGERS
(
SCHED_NAME varchar ( 120 ) NOT NULL ,
TRIGGER_NAME varchar ( 200 ) NOT NULL ,
TRIGGER_GROUP varchar ( 200 ) NOT NULL ,
@ -81,7 +85,8 @@ CREATE TABLE QRTZ_BLOB_TRIGGERS (
-- Table structure for QRTZ_CALENDARS
-- ----------------------------
DROP TABLE IF EXISTS QRTZ_CALENDARS ;
CREATE TABLE QRTZ_CALENDARS (
CREATE TABLE QRTZ_CALENDARS
(
SCHED_NAME varchar ( 120 ) NOT NULL ,
CALENDAR_NAME varchar ( 200 ) NOT NULL ,
CALENDAR blob NOT NULL ,
@ -96,7 +101,8 @@ CREATE TABLE QRTZ_CALENDARS (
-- Table structure for QRTZ_CRON_TRIGGERS
-- ----------------------------
DROP TABLE IF EXISTS QRTZ_CRON_TRIGGERS ;
CREATE TABLE QRTZ_CRON_TRIGGERS (
CREATE TABLE QRTZ_CRON_TRIGGERS
(
SCHED_NAME varchar ( 120 ) NOT NULL ,
TRIGGER_NAME varchar ( 200 ) NOT NULL ,
TRIGGER_GROUP varchar ( 200 ) NOT NULL ,
@ -114,7 +120,8 @@ CREATE TABLE QRTZ_CRON_TRIGGERS (
-- Table structure for QRTZ_FIRED_TRIGGERS
-- ----------------------------
DROP TABLE IF EXISTS QRTZ_FIRED_TRIGGERS ;
CREATE TABLE QRTZ_FIRED_TRIGGERS (
CREATE TABLE QRTZ_FIRED_TRIGGERS
(
SCHED_NAME varchar ( 120 ) NOT NULL ,
ENTRY_ID varchar ( 200 ) NOT NULL ,
TRIGGER_NAME varchar ( 200 ) NOT NULL ,
@ -143,7 +150,8 @@ CREATE TABLE QRTZ_FIRED_TRIGGERS (
-- Table structure for QRTZ_LOCKS
-- ----------------------------
DROP TABLE IF EXISTS QRTZ_LOCKS ;
CREATE TABLE QRTZ_LOCKS (
CREATE TABLE QRTZ_LOCKS
(
SCHED_NAME varchar ( 120 ) NOT NULL ,
LOCK_NAME varchar ( 40 ) NOT NULL ,
PRIMARY KEY ( SCHED_NAME , LOCK_NAME )
@ -157,7 +165,8 @@ CREATE TABLE QRTZ_LOCKS (
-- Table structure for QRTZ_PAUSED_TRIGGER_GRPS
-- ----------------------------
DROP TABLE IF EXISTS QRTZ_PAUSED_TRIGGER_GRPS ;
CREATE TABLE QRTZ_PAUSED_TRIGGER_GRPS (
CREATE TABLE QRTZ_PAUSED_TRIGGER_GRPS
(
SCHED_NAME varchar ( 120 ) NOT NULL ,
TRIGGER_GROUP varchar ( 200 ) NOT NULL ,
PRIMARY KEY ( SCHED_NAME , TRIGGER_GROUP )
@ -171,7 +180,8 @@ CREATE TABLE QRTZ_PAUSED_TRIGGER_GRPS (
-- Table structure for QRTZ_SCHEDULER_STATE
-- ----------------------------
DROP TABLE IF EXISTS QRTZ_SCHEDULER_STATE ;
CREATE TABLE QRTZ_SCHEDULER_STATE (
CREATE TABLE QRTZ_SCHEDULER_STATE
(
SCHED_NAME varchar ( 120 ) NOT NULL ,
INSTANCE_NAME varchar ( 200 ) NOT NULL ,
LAST_CHECKIN_TIME bigint ( 13 ) NOT NULL ,
@ -187,7 +197,8 @@ CREATE TABLE QRTZ_SCHEDULER_STATE (
-- Table structure for QRTZ_SIMPLE_TRIGGERS
-- ----------------------------
DROP TABLE IF EXISTS QRTZ_SIMPLE_TRIGGERS ;
CREATE TABLE QRTZ_SIMPLE_TRIGGERS (
CREATE TABLE QRTZ_SIMPLE_TRIGGERS
(
SCHED_NAME varchar ( 120 ) NOT NULL ,
TRIGGER_NAME varchar ( 200 ) NOT NULL ,
TRIGGER_GROUP varchar ( 200 ) NOT NULL ,
@ -206,7 +217,8 @@ CREATE TABLE QRTZ_SIMPLE_TRIGGERS (
-- Table structure for QRTZ_SIMPROP_TRIGGERS
-- ----------------------------
DROP TABLE IF EXISTS QRTZ_SIMPROP_TRIGGERS ;
CREATE TABLE QRTZ_SIMPROP_TRIGGERS (
CREATE TABLE QRTZ_SIMPROP_TRIGGERS
(
SCHED_NAME varchar ( 120 ) NOT NULL ,
TRIGGER_NAME varchar ( 200 ) NOT NULL ,
TRIGGER_GROUP varchar ( 200 ) NOT NULL ,
@ -237,7 +249,8 @@ CREATE TABLE QRTZ_SIMPROP_TRIGGERS (
-- Table structure for t_ds_access_token
-- ----------------------------
DROP TABLE IF EXISTS t_ds_access_token ;
CREATE TABLE t_ds_access_token (
CREATE TABLE t_ds_access_token
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
user_id int ( 11 ) DEFAULT NULL ,
token varchar ( 64 ) DEFAULT NULL ,
@ -255,7 +268,8 @@ CREATE TABLE t_ds_access_token (
-- Table structure for t_ds_alert
-- ----------------------------
DROP TABLE IF EXISTS t_ds_alert ;
CREATE TABLE t_ds_alert (
CREATE TABLE t_ds_alert
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
title varchar ( 64 ) DEFAULT NULL ,
content text ,
@ -275,7 +289,8 @@ CREATE TABLE t_ds_alert (
-- Table structure for t_ds_alertgroup
-- ----------------------------
DROP TABLE IF EXISTS t_ds_alertgroup ;
CREATE TABLE t_ds_alertgroup (
CREATE TABLE t_ds_alertgroup
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
alert_instance_ids varchar ( 255 ) DEFAULT NULL ,
create_user_id int ( 11 ) DEFAULT NULL ,
@ -295,7 +310,8 @@ CREATE TABLE t_ds_alertgroup(
-- Table structure for t_ds_command
-- ----------------------------
DROP TABLE IF EXISTS t_ds_command ;
CREATE TABLE t_ds_command (
CREATE TABLE t_ds_command
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
command_type tinyint ( 4 ) DEFAULT NULL ,
process_definition_id int ( 11 ) DEFAULT NULL ,
@ -321,7 +337,8 @@ CREATE TABLE t_ds_command (
-- Table structure for t_ds_datasource
-- ----------------------------
DROP TABLE IF EXISTS t_ds_datasource ;
CREATE TABLE t_ds_datasource (
CREATE TABLE t_ds_datasource
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
name varchar ( 64 ) NOT NULL ,
note varchar ( 255 ) DEFAULT NULL ,
@ -342,7 +359,8 @@ CREATE TABLE t_ds_datasource (
-- Table structure for t_ds_error_command
-- ----------------------------
DROP TABLE IF EXISTS t_ds_error_command ;
CREATE TABLE t_ds_error_command (
CREATE TABLE t_ds_error_command
(
id int ( 11 ) NOT NULL ,
command_type tinyint ( 4 ) DEFAULT NULL ,
executor_id int ( 11 ) DEFAULT NULL ,
@ -369,7 +387,8 @@ CREATE TABLE t_ds_error_command (
-- Table structure for t_ds_process_definition
-- ----------------------------
DROP TABLE IF EXISTS t_ds_process_definition ;
CREATE TABLE t_ds_process_definition (
CREATE TABLE t_ds_process_definition
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
code bigint ( 20 ) NOT NULL ,
name varchar ( 255 ) DEFAULT NULL ,
@ -400,7 +419,8 @@ CREATE TABLE t_ds_process_definition (
-- Table structure for t_ds_process_definition_log
-- ----------------------------
DROP TABLE IF EXISTS t_ds_process_definition_log ;
CREATE TABLE t_ds_process_definition_log (
CREATE TABLE t_ds_process_definition_log
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
code bigint ( 20 ) NOT NULL ,
name varchar ( 200 ) DEFAULT NULL ,
@ -427,7 +447,8 @@ CREATE TABLE t_ds_process_definition_log (
-- Table structure for t_ds_task_definition
-- ----------------------------
DROP TABLE IF EXISTS t_ds_task_definition ;
CREATE TABLE t_ds_task_definition (
CREATE TABLE t_ds_task_definition
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
code bigint ( 20 ) NOT NULL ,
name varchar ( 200 ) DEFAULT NULL ,
@ -457,7 +478,8 @@ CREATE TABLE t_ds_task_definition (
-- Table structure for t_ds_task_definition_log
-- ----------------------------
DROP TABLE IF EXISTS t_ds_task_definition_log ;
CREATE TABLE t_ds_task_definition_log (
CREATE TABLE t_ds_task_definition_log
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
code bigint ( 20 ) NOT NULL ,
name varchar ( 200 ) DEFAULT NULL ,
@ -488,7 +510,8 @@ CREATE TABLE t_ds_task_definition_log (
-- Table structure for t_ds_process_task_relation
-- ----------------------------
DROP TABLE IF EXISTS t_ds_process_task_relation ;
CREATE TABLE t_ds_process_task_relation (
CREATE TABLE t_ds_process_task_relation
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
name varchar ( 200 ) DEFAULT NULL ,
process_definition_version int ( 11 ) DEFAULT NULL ,
@ -509,7 +532,8 @@ CREATE TABLE t_ds_process_task_relation (
-- Table structure for t_ds_process_task_relation_log
-- ----------------------------
DROP TABLE IF EXISTS t_ds_process_task_relation_log ;
CREATE TABLE t_ds_process_task_relation_log (
CREATE TABLE t_ds_process_task_relation_log
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
name varchar ( 200 ) DEFAULT NULL ,
process_definition_version int ( 11 ) DEFAULT NULL ,
@ -532,7 +556,8 @@ CREATE TABLE t_ds_process_task_relation_log (
-- Table structure for t_ds_process_instance
-- ----------------------------
DROP TABLE IF EXISTS t_ds_process_instance ;
CREATE TABLE t_ds_process_instance (
CREATE TABLE t_ds_process_instance
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
name varchar ( 255 ) DEFAULT NULL ,
process_definition_version int ( 11 ) DEFAULT NULL ,
@ -574,7 +599,8 @@ CREATE TABLE t_ds_process_instance (
-- Table structure for t_ds_project
-- ----------------------------
DROP TABLE IF EXISTS t_ds_project ;
CREATE TABLE t_ds_project (
CREATE TABLE t_ds_project
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
name varchar ( 100 ) DEFAULT NULL ,
code bigint ( 20 ) NOT NULL ,
@ -594,7 +620,8 @@ CREATE TABLE t_ds_project (
-- Table structure for t_ds_queue
-- ----------------------------
DROP TABLE IF EXISTS t_ds_queue ;
CREATE TABLE t_ds_queue (
CREATE TABLE t_ds_queue
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
queue_name varchar ( 64 ) DEFAULT NULL ,
queue varchar ( 64 ) DEFAULT NULL ,
@ -606,13 +633,15 @@ CREATE TABLE t_ds_queue (
-- ----------------------------
-- Records of t_ds_queue
-- ----------------------------
INSERT INTO t_ds_queue VALUES ( ' 1 ' , ' default ' , ' default ' , null , null ) ;
INSERT INTO t_ds_queue
VALUES ( ' 1 ' , ' default ' , ' default ' , null , null ) ;
-- ----------------------------
-- Table structure for t_ds_relation_datasource_user
-- ----------------------------
DROP TABLE IF EXISTS t_ds_relation_datasource_user ;
CREATE TABLE t_ds_relation_datasource_user (
CREATE TABLE t_ds_relation_datasource_user
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
user_id int ( 11 ) NOT NULL ,
datasource_id int ( 11 ) DEFAULT NULL ,
@ -630,7 +659,8 @@ CREATE TABLE t_ds_relation_datasource_user (
-- Table structure for t_ds_relation_process_instance
-- ----------------------------
DROP TABLE IF EXISTS t_ds_relation_process_instance ;
CREATE TABLE t_ds_relation_process_instance (
CREATE TABLE t_ds_relation_process_instance
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
parent_process_instance_id int ( 11 ) DEFAULT NULL ,
parent_task_instance_id int ( 11 ) DEFAULT NULL ,
@ -646,7 +676,8 @@ CREATE TABLE t_ds_relation_process_instance (
-- Table structure for t_ds_relation_project_user
-- ----------------------------
DROP TABLE IF EXISTS t_ds_relation_project_user ;
CREATE TABLE t_ds_relation_project_user (
CREATE TABLE t_ds_relation_project_user
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
user_id int ( 11 ) NOT NULL ,
project_id int ( 11 ) DEFAULT NULL ,
@ -664,7 +695,8 @@ CREATE TABLE t_ds_relation_project_user (
-- Table structure for t_ds_relation_resources_user
-- ----------------------------
DROP TABLE IF EXISTS t_ds_relation_resources_user ;
CREATE TABLE t_ds_relation_resources_user (
CREATE TABLE t_ds_relation_resources_user
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
user_id int ( 11 ) NOT NULL ,
resources_id int ( 11 ) DEFAULT NULL ,
@ -682,7 +714,8 @@ CREATE TABLE t_ds_relation_resources_user (
-- Table structure for t_ds_relation_udfs_user
-- ----------------------------
DROP TABLE IF EXISTS t_ds_relation_udfs_user ;
CREATE TABLE t_ds_relation_udfs_user (
CREATE TABLE t_ds_relation_udfs_user
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
user_id int ( 11 ) NOT NULL ,
udf_id int ( 11 ) DEFAULT NULL ,
@ -696,7 +729,8 @@ CREATE TABLE t_ds_relation_udfs_user (
-- Table structure for t_ds_resources
-- ----------------------------
DROP TABLE IF EXISTS t_ds_resources ;
CREATE TABLE t_ds_resources (
CREATE TABLE t_ds_resources
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
alias varchar ( 64 ) DEFAULT NULL ,
file_name varchar ( 64 ) DEFAULT NULL ,
@ -721,7 +755,8 @@ CREATE TABLE t_ds_resources (
-- Table structure for t_ds_schedules
-- ----------------------------
DROP TABLE IF EXISTS t_ds_schedules ;
CREATE TABLE t_ds_schedules (
CREATE TABLE t_ds_schedules
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
process_definition_id int ( 11 ) NOT NULL ,
start_time datetime NOT NULL ,
@ -748,7 +783,8 @@ CREATE TABLE t_ds_schedules (
-- Table structure for t_ds_session
-- ----------------------------
DROP TABLE IF EXISTS t_ds_session ;
CREATE TABLE t_ds_session (
CREATE TABLE t_ds_session
(
id varchar ( 64 ) NOT NULL ,
user_id int ( 11 ) DEFAULT NULL ,
ip varchar ( 45 ) DEFAULT NULL ,
@ -764,7 +800,8 @@ CREATE TABLE t_ds_session (
-- Table structure for t_ds_task_instance
-- ----------------------------
DROP TABLE IF EXISTS t_ds_task_instance ;
CREATE TABLE t_ds_task_instance (
CREATE TABLE t_ds_task_instance
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
name varchar ( 255 ) DEFAULT NULL ,
task_type varchar ( 50 ) NOT NULL ,
@ -804,7 +841,8 @@ CREATE TABLE t_ds_task_instance (
-- Table structure for t_ds_tenant
-- ----------------------------
DROP TABLE IF EXISTS t_ds_tenant ;
CREATE TABLE t_ds_tenant (
CREATE TABLE t_ds_tenant
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
tenant_code varchar ( 64 ) DEFAULT NULL ,
description varchar ( 255 ) DEFAULT NULL ,
@ -822,7 +860,8 @@ CREATE TABLE t_ds_tenant (
-- Table structure for t_ds_udfs
-- ----------------------------
DROP TABLE IF EXISTS t_ds_udfs ;
CREATE TABLE t_ds_udfs (
CREATE TABLE t_ds_udfs
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
user_id int ( 11 ) NOT NULL ,
func_name varchar ( 100 ) NOT NULL ,
@ -846,7 +885,8 @@ CREATE TABLE t_ds_udfs (
-- Table structure for t_ds_user
-- ----------------------------
DROP TABLE IF EXISTS t_ds_user ;
CREATE TABLE t_ds_user (
CREATE TABLE t_ds_user
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
user_name varchar ( 64 ) DEFAULT NULL ,
user_password varchar ( 64 ) DEFAULT NULL ,
@ -870,7 +910,8 @@ CREATE TABLE t_ds_user (
-- Table structure for t_ds_worker_group
-- ----------------------------
DROP TABLE IF EXISTS t_ds_worker_group ;
CREATE TABLE t_ds_worker_group (
CREATE TABLE t_ds_worker_group
(
id bigint ( 11 ) NOT NULL AUTO_INCREMENT ,
name varchar ( 255 ) NOT NULL ,
addr_list text NULL DEFAULT NULL ,
@ -888,7 +929,8 @@ CREATE TABLE t_ds_worker_group (
-- Table structure for t_ds_version
-- ----------------------------
DROP TABLE IF EXISTS t_ds_version ;
CREATE TABLE t_ds_version (
CREATE TABLE t_ds_version
(
id int ( 11 ) NOT NULL AUTO_INCREMENT ,
version varchar ( 200 ) NOT NULL ,
PRIMARY KEY ( id ) ,
@ -898,26 +940,30 @@ CREATE TABLE t_ds_version (
-- ----------------------------
-- Records of t_ds_version
-- ----------------------------
INSERT INTO t_ds_version VALUES ( ' 1 ' , ' 1.4.0 ' ) ;
INSERT INTO t_ds_version
VALUES ( ' 1 ' , ' 1.4.0 ' ) ;
-- ----------------------------
-- Records of t_ds_alertgroup
-- ----------------------------
INSERT INTO t_ds_alertgroup ( alert_instance_ids , create_user_id , group_name , description , create_time , update_time )
VALUES ( ' 1,2 ' , 1 , ' default admin warning group ' , ' default admin warning group ' , ' 2018-11-29 10:20:39 ' , ' 2018-11-29 10:20:39 ' ) ;
VALUES ( ' 1,2 ' , 1 , ' default admin warning group ' , ' default admin warning group ' , ' 2018-11-29 10:20:39 ' ,
' 2018-11-29 10:20:39 ' ) ;
-- ----------------------------
-- Records of t_ds_user
-- ----------------------------
INSERT INTO t_ds_user
VALUES ( ' 1 ' , ' admin ' , ' 7ad2410b2f4c074479a8937a28a22b8f ' , ' 0 ' , ' xxx@qq.com ' , ' ' , ' 0 ' , ' 2018-03-27 15:48:50 ' , ' 2018-10-24 17:40:22 ' , null , 1 ) ;
VALUES ( ' 1 ' , ' admin ' , ' 7ad2410b2f4c074479a8937a28a22b8f ' , ' 0 ' , ' xxx@qq.com ' , ' ' , ' 0 ' , ' 2018-03-27 15:48:50 ' ,
' 2018-10-24 17:40:22 ' , null , 1 ) ;
-- ----------------------------
-- Table structure for t_ds_plugin_define
-- ----------------------------
DROP TABLE IF EXISTS t_ds_plugin_define ;
CREATE TABLE t_ds_plugin_define (
CREATE TABLE t_ds_plugin_define
(
id int NOT NULL AUTO_INCREMENT ,
plugin_name varchar ( 100 ) NOT NULL ,
plugin_type varchar ( 100 ) NOT NULL ,
@ -932,7 +978,8 @@ CREATE TABLE t_ds_plugin_define (
-- Table structure for t_ds_alert_plugin_instance
-- ----------------------------
DROP TABLE IF EXISTS t_ds_alert_plugin_instance ;
CREATE TABLE t_ds_alert_plugin_instance (
CREATE TABLE t_ds_alert_plugin_instance
(
id int NOT NULL AUTO_INCREMENT ,
plugin_define_id int NOT NULL ,
plugin_instance_params text ,