SET FOREIGN_KEY_CHECKS = 0;
DROP TABLE IF EXISTS plugin_packages;
DROP TABLE IF EXISTS plugin_package_dependencies;
DROP TABLE IF EXISTS plugin_package_menus;
DROP TABLE IF EXISTS plugin_package_data_model;
DROP TABLE IF EXISTS plugin_package_entities;
DROP TABLE IF EXISTS plugin_package_attributes;
DROP TABLE IF EXISTS system_variables;
DROP TABLE IF EXISTS plugin_package_authorities;
DROP TABLE IF EXISTS plugin_package_runtime_resources_docker;
DROP TABLE IF EXISTS plugin_package_runtime_resources_mysql;
DROP TABLE IF EXISTS plugin_package_runtime_resources_s3;
DROP TABLE IF EXISTS plugin_configs;
DROP TABLE IF EXISTS plugin_config_interfaces;
DROP TABLE IF EXISTS plugin_config_interface_parameters;
DROP TABLE IF EXISTS menu_items;
DROP TABLE IF EXISTS plugin_package_resource_files;
DROP TABLE IF EXISTS resource_server;
DROP TABLE IF EXISTS resource_item;
DROP TABLE IF EXISTS plugin_instances;
DROP TABLE IF EXISTS plugin_mysql_instances;
DROP TABLE IF EXISTS role_menu;
DROP TABLE IF EXISTS core_ru_proc_role_binding;
DROP TABLE IF EXISTS batch_execution_jobs;
DROP TABLE IF EXISTS execution_jobs;
DROP TABLE IF EXISTS execution_job_parameters;
DROP TABLE IF EXISTS favorites;
DROP TABLE IF EXISTS favorites_role;
DROP TABLE IF EXISTS plugin_artifact_pull_req;
#workflow
DROP TABLE IF EXISTS ACT_GE_BYTEARRAY;
DROP TABLE IF EXISTS ACT_GE_PROPERTY;
DROP TABLE IF EXISTS ACT_GE_SCHEMA_LOG;
DROP TABLE IF EXISTS ACT_HI_ACTINST;
DROP TABLE IF EXISTS ACT_HI_ATTACHMENT;
DROP TABLE IF EXISTS ACT_HI_BATCH;
DROP TABLE IF EXISTS ACT_HI_CASEACTINST;
DROP TABLE IF EXISTS ACT_HI_CASEINST;
DROP TABLE IF EXISTS ACT_HI_COMMENT;
DROP TABLE IF EXISTS ACT_HI_DECINST;
DROP TABLE IF EXISTS ACT_HI_DEC_IN;
DROP TABLE IF EXISTS ACT_HI_DEC_OUT;
DROP TABLE IF EXISTS ACT_HI_DETAIL;
DROP TABLE IF EXISTS ACT_HI_EXT_TASK_LOG;
DROP TABLE IF EXISTS ACT_HI_IDENTITYLINK;
DROP TABLE IF EXISTS ACT_HI_INCIDENT;
DROP TABLE IF EXISTS ACT_HI_JOB_LOG;
DROP TABLE IF EXISTS ACT_HI_OP_LOG;
DROP TABLE IF EXISTS ACT_HI_PROCINST;
DROP TABLE IF EXISTS ACT_HI_TASKINST;
DROP TABLE IF EXISTS ACT_HI_VARINST;
DROP TABLE IF EXISTS ACT_ID_GROUP;
DROP TABLE IF EXISTS ACT_ID_INFO;
DROP TABLE IF EXISTS ACT_ID_MEMBERSHIP;
DROP TABLE IF EXISTS ACT_ID_TENANT;
DROP TABLE IF EXISTS ACT_ID_TENANT_MEMBER;
DROP TABLE IF EXISTS ACT_ID_USER;
DROP TABLE IF EXISTS ACT_RE_CASE_DEF;
DROP TABLE IF EXISTS ACT_RE_DECISION_DEF;
DROP TABLE IF EXISTS ACT_RE_DECISION_REQ_DEF;
DROP TABLE IF EXISTS ACT_RE_DEPLOYMENT;
DROP TABLE IF EXISTS ACT_RE_PROCDEF;
DROP TABLE IF EXISTS ACT_RU_AUTHORIZATION;
DROP TABLE IF EXISTS ACT_RU_BATCH;
DROP TABLE IF EXISTS ACT_RU_CASE_EXECUTION;
DROP TABLE IF EXISTS ACT_RU_CASE_SENTRY_PART;
DROP TABLE IF EXISTS ACT_RU_EVENT_SUBSCR;
DROP TABLE IF EXISTS ACT_RU_EXECUTION;
DROP TABLE IF EXISTS ACT_RU_EXT_TASK;
DROP TABLE IF EXISTS ACT_RU_FILTER;
DROP TABLE IF EXISTS ACT_RU_IDENTITYLINK;
DROP TABLE IF EXISTS ACT_RU_INCIDENT;
DROP TABLE IF EXISTS ACT_RU_JOB;
DROP TABLE IF EXISTS ACT_RU_JOBDEF;
DROP TABLE IF EXISTS ACT_RU_METER_LOG;
DROP TABLE IF EXISTS ACT_RU_TASK;
DROP TABLE IF EXISTS ACT_RU_VARIABLE;

DROP TABLE IF EXISTS act_ru_procinst_status;
DROP TABLE IF EXISTS act_ru_srvnode_status;

DROP TABLE IF EXISTS core_operation_event;
DROP TABLE IF EXISTS core_re_proc_def_info;
DROP TABLE IF EXISTS core_re_task_node_def_info;
DROP TABLE IF EXISTS core_re_task_node_param;
DROP TABLE IF EXISTS core_ru_graph_node;
DROP TABLE IF EXISTS core_ru_proc_exec_binding;
DROP TABLE IF EXISTS core_ru_proc_exec_binding_tmp;
DROP TABLE IF EXISTS core_ru_proc_inst_info;
DROP TABLE IF EXISTS core_ru_proc_role_binding;
DROP TABLE IF EXISTS core_ru_task_node_exec_param;
DROP TABLE IF EXISTS core_ru_task_node_exec_req;
DROP TABLE IF EXISTS core_ru_task_node_inst_info;
DROP TABLE IF EXISTS plugin_config_roles;

DROP TABLE IF EXISTS core_object_meta;
DROP TABLE IF EXISTS core_object_property_meta;
DROP TABLE IF EXISTS core_object_var;
DROP TABLE IF EXISTS core_object_property_var;
DROP TABLE IF EXISTS core_object_list_var;
SET FOREIGN_KEY_CHECKS = 1;