bladex-flowable-mysql.sql 114 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : mysql_localhost
  4. Source Server Type : MySQL
  5. Source Server Version : 50723
  6. Source Host : localhost:3306
  7. Source Schema : bladex_flow
  8. Target Server Type : MySQL
  9. Target Server Version : 50723
  10. File Encoding : 65001
  11. Date: 20/03/2022 11:09:17
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for ACT_APP_APPDEF
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `ACT_APP_APPDEF`;
  19. CREATE TABLE `ACT_APP_APPDEF` (
  20. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  21. `REV_` int(11) NOT NULL,
  22. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  23. `KEY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  24. `VERSION_` int(11) NOT NULL,
  25. `CATEGORY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  26. `DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  27. `RESOURCE_NAME_` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  28. `DESCRIPTION_` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  29. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
  30. PRIMARY KEY (`ID_`) USING BTREE,
  31. UNIQUE INDEX `ACT_IDX_APP_DEF_UNIQ`(`KEY_`, `VERSION_`, `TENANT_ID_`) USING BTREE,
  32. INDEX `ACT_IDX_APP_DEF_DPLY`(`DEPLOYMENT_ID_`) USING BTREE,
  33. CONSTRAINT `ACT_FK_APP_DEF_DPLY` FOREIGN KEY (`DEPLOYMENT_ID_`) REFERENCES `ACT_APP_DEPLOYMENT` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  34. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  35. -- ----------------------------
  36. -- Table structure for ACT_APP_DATABASECHANGELOG
  37. -- ----------------------------
  38. DROP TABLE IF EXISTS `ACT_APP_DATABASECHANGELOG`;
  39. CREATE TABLE `ACT_APP_DATABASECHANGELOG` (
  40. `ID` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  41. `AUTHOR` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  42. `FILENAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  43. `DATEEXECUTED` datetime(0) NOT NULL,
  44. `ORDEREXECUTED` int(11) NOT NULL,
  45. `EXECTYPE` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  46. `MD5SUM` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  47. `DESCRIPTION` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  48. `COMMENTS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  49. `TAG` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  50. `LIQUIBASE` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  51. `CONTEXTS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  52. `LABELS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  53. `DEPLOYMENT_ID` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL
  54. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  55. -- ----------------------------
  56. -- Records of ACT_APP_DATABASECHANGELOG
  57. -- ----------------------------
  58. BEGIN;
  59. INSERT INTO `ACT_APP_DATABASECHANGELOG` VALUES ('1', 'flowable', 'org/flowable/app/db/liquibase/flowable-app-db-changelog.xml', '2019-08-01 03:08:02', 1, 'EXECUTED', '8:496fc778bdf2ab13f2e1926d0e63e0a2', 'createTable tableName=ACT_APP_DEPLOYMENT; createTable tableName=ACT_APP_DEPLOYMENT_RESOURCE; addForeignKeyConstraint baseTableName=ACT_APP_DEPLOYMENT_RESOURCE, constraintName=ACT_FK_APP_RSRC_DPL, referencedTableName=ACT_APP_DEPLOYMENT; createIndex...', '', NULL, '3.6.3', NULL, NULL, '4628882015'), ('2', 'flowable', 'org/flowable/app/db/liquibase/flowable-app-db-changelog.xml', '2019-08-01 03:08:02', 2, 'EXECUTED', '8:ccea9ebfb6c1f8367ca4dd473fcbb7db', 'modifyDataType columnName=DEPLOY_TIME_, tableName=ACT_APP_DEPLOYMENT', '', NULL, '3.6.3', NULL, NULL, '4628882015'), ('3', 'flowable', 'org/flowable/app/db/liquibase/flowable-app-db-changelog.xml', '2019-08-01 03:08:02', 3, 'EXECUTED', '8:f1f8aff320aade831944ebad24355f3d', 'createIndex indexName=ACT_IDX_APP_DEF_UNIQ, tableName=ACT_APP_APPDEF', '', NULL, '3.6.3', NULL, NULL, '4628882015');
  60. COMMIT;
  61. -- ----------------------------
  62. -- Table structure for ACT_APP_DATABASECHANGELOGLOCK
  63. -- ----------------------------
  64. DROP TABLE IF EXISTS `ACT_APP_DATABASECHANGELOGLOCK`;
  65. CREATE TABLE `ACT_APP_DATABASECHANGELOGLOCK` (
  66. `ID` int(11) NOT NULL,
  67. `LOCKED` bit(1) NOT NULL,
  68. `LOCKGRANTED` datetime(0) NULL DEFAULT NULL,
  69. `LOCKEDBY` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  70. PRIMARY KEY (`ID`) USING BTREE
  71. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  72. -- ----------------------------
  73. -- Records of ACT_APP_DATABASECHANGELOGLOCK
  74. -- ----------------------------
  75. BEGIN;
  76. INSERT INTO `ACT_APP_DATABASECHANGELOGLOCK` VALUES (1, b'0', NULL, NULL);
  77. COMMIT;
  78. -- ----------------------------
  79. -- Table structure for ACT_APP_DEPLOYMENT
  80. -- ----------------------------
  81. DROP TABLE IF EXISTS `ACT_APP_DEPLOYMENT`;
  82. CREATE TABLE `ACT_APP_DEPLOYMENT` (
  83. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  84. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  85. `CATEGORY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  86. `KEY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  87. `DEPLOY_TIME_` datetime(3) NULL DEFAULT NULL,
  88. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
  89. PRIMARY KEY (`ID_`) USING BTREE
  90. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  91. -- ----------------------------
  92. -- Table structure for ACT_APP_DEPLOYMENT_RESOURCE
  93. -- ----------------------------
  94. DROP TABLE IF EXISTS `ACT_APP_DEPLOYMENT_RESOURCE`;
  95. CREATE TABLE `ACT_APP_DEPLOYMENT_RESOURCE` (
  96. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  97. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  98. `DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  99. `RESOURCE_BYTES_` longblob NULL,
  100. PRIMARY KEY (`ID_`) USING BTREE,
  101. INDEX `ACT_IDX_APP_RSRC_DPL`(`DEPLOYMENT_ID_`) USING BTREE,
  102. CONSTRAINT `ACT_FK_APP_RSRC_DPL` FOREIGN KEY (`DEPLOYMENT_ID_`) REFERENCES `ACT_APP_DEPLOYMENT` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  103. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  104. -- ----------------------------
  105. -- Table structure for ACT_CMMN_CASEDEF
  106. -- ----------------------------
  107. DROP TABLE IF EXISTS `ACT_CMMN_CASEDEF`;
  108. CREATE TABLE `ACT_CMMN_CASEDEF` (
  109. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  110. `REV_` int(11) NOT NULL,
  111. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  112. `KEY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  113. `VERSION_` int(11) NOT NULL,
  114. `CATEGORY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  115. `DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  116. `RESOURCE_NAME_` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  117. `DESCRIPTION_` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  118. `HAS_GRAPHICAL_NOTATION_` bit(1) NULL DEFAULT NULL,
  119. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
  120. `DGRM_RESOURCE_NAME_` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  121. `HAS_START_FORM_KEY_` bit(1) NULL DEFAULT NULL,
  122. PRIMARY KEY (`ID_`) USING BTREE,
  123. UNIQUE INDEX `ACT_IDX_CASE_DEF_UNIQ`(`KEY_`, `VERSION_`, `TENANT_ID_`) USING BTREE,
  124. INDEX `ACT_IDX_CASE_DEF_DPLY`(`DEPLOYMENT_ID_`) USING BTREE,
  125. CONSTRAINT `ACT_FK_CASE_DEF_DPLY` FOREIGN KEY (`DEPLOYMENT_ID_`) REFERENCES `ACT_CMMN_DEPLOYMENT` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  126. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  127. -- ----------------------------
  128. -- Table structure for ACT_CMMN_DATABASECHANGELOG
  129. -- ----------------------------
  130. DROP TABLE IF EXISTS `ACT_CMMN_DATABASECHANGELOG`;
  131. CREATE TABLE `ACT_CMMN_DATABASECHANGELOG` (
  132. `ID` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  133. `AUTHOR` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  134. `FILENAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  135. `DATEEXECUTED` datetime(0) NOT NULL,
  136. `ORDEREXECUTED` int(11) NOT NULL,
  137. `EXECTYPE` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  138. `MD5SUM` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  139. `DESCRIPTION` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  140. `COMMENTS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  141. `TAG` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  142. `LIQUIBASE` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  143. `CONTEXTS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  144. `LABELS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  145. `DEPLOYMENT_ID` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL
  146. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  147. -- ----------------------------
  148. -- Records of ACT_CMMN_DATABASECHANGELOG
  149. -- ----------------------------
  150. BEGIN;
  151. INSERT INTO `ACT_CMMN_DATABASECHANGELOG` VALUES ('1', 'flowable', 'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', '2019-08-01 03:07:59', 1, 'EXECUTED', '8:8b4b922d90b05ff27483abefc9597aa6', 'createTable tableName=ACT_CMMN_DEPLOYMENT; createTable tableName=ACT_CMMN_DEPLOYMENT_RESOURCE; addForeignKeyConstraint baseTableName=ACT_CMMN_DEPLOYMENT_RESOURCE, constraintName=ACT_FK_CMMN_RSRC_DPL, referencedTableName=ACT_CMMN_DEPLOYMENT; create...', '', NULL, '3.6.3', NULL, NULL, '4628878437'), ('2', 'flowable', 'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', '2019-08-01 03:07:59', 2, 'EXECUTED', '8:65e39b3d385706bb261cbeffe7533cbe', 'addColumn tableName=ACT_CMMN_CASEDEF; addColumn tableName=ACT_CMMN_DEPLOYMENT_RESOURCE; addColumn tableName=ACT_CMMN_RU_CASE_INST; addColumn tableName=ACT_CMMN_RU_PLAN_ITEM_INST', '', NULL, '3.6.3', NULL, NULL, '4628878437'), ('3', 'flowable', 'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', '2019-08-01 03:08:00', 3, 'EXECUTED', '8:c01f6e802b49436b4489040da3012359', 'addColumn tableName=ACT_CMMN_RU_PLAN_ITEM_INST; addColumn tableName=ACT_CMMN_RU_CASE_INST; createIndex indexName=ACT_IDX_PLAN_ITEM_STAGE_INST, tableName=ACT_CMMN_RU_PLAN_ITEM_INST; addColumn tableName=ACT_CMMN_RU_PLAN_ITEM_INST; addColumn tableNam...', '', NULL, '3.6.3', NULL, NULL, '4628878437'), ('4', 'flowable', 'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', '2019-08-01 03:08:00', 4, 'EXECUTED', '8:e40d29cb79345b7fb5afd38a7f0ba8fc', 'createTable tableName=ACT_CMMN_HI_PLAN_ITEM_INST; addColumn tableName=ACT_CMMN_RU_MIL_INST; addColumn tableName=ACT_CMMN_HI_MIL_INST', '', NULL, '3.6.3', NULL, NULL, '4628878437'), ('5', 'flowable', 'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', '2019-08-01 03:08:01', 5, 'EXECUTED', '8:70349de472f87368dcdec971a10311a0', 'modifyDataType columnName=DEPLOY_TIME_, tableName=ACT_CMMN_DEPLOYMENT; modifyDataType columnName=START_TIME_, tableName=ACT_CMMN_RU_CASE_INST; modifyDataType columnName=START_TIME_, tableName=ACT_CMMN_RU_PLAN_ITEM_INST; modifyDataType columnName=T...', '', NULL, '3.6.3', NULL, NULL, '4628878437'), ('6', 'flowable', 'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', '2019-08-01 03:08:01', 6, 'EXECUTED', '8:10e82e26a7fee94c32a92099c059c18c', 'createIndex indexName=ACT_IDX_CASE_DEF_UNIQ, tableName=ACT_CMMN_CASEDEF', '', NULL, '3.6.3', NULL, NULL, '4628878437'), ('7', 'flowable', 'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', '2019-08-01 03:08:01', 7, 'EXECUTED', '8:530bc81a1e30618ccf4a2da1f7c6c043', 'renameColumn newColumnName=CREATE_TIME_, oldColumnName=START_TIME_, tableName=ACT_CMMN_RU_PLAN_ITEM_INST; renameColumn newColumnName=CREATE_TIME_, oldColumnName=CREATED_TIME_, tableName=ACT_CMMN_HI_PLAN_ITEM_INST; addColumn tableName=ACT_CMMN_RU_P...', '', NULL, '3.6.3', NULL, NULL, '4628878437');
  152. COMMIT;
  153. -- ----------------------------
  154. -- Table structure for ACT_CMMN_DATABASECHANGELOGLOCK
  155. -- ----------------------------
  156. DROP TABLE IF EXISTS `ACT_CMMN_DATABASECHANGELOGLOCK`;
  157. CREATE TABLE `ACT_CMMN_DATABASECHANGELOGLOCK` (
  158. `ID` int(11) NOT NULL,
  159. `LOCKED` bit(1) NOT NULL,
  160. `LOCKGRANTED` datetime(0) NULL DEFAULT NULL,
  161. `LOCKEDBY` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  162. PRIMARY KEY (`ID`) USING BTREE
  163. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  164. -- ----------------------------
  165. -- Records of ACT_CMMN_DATABASECHANGELOGLOCK
  166. -- ----------------------------
  167. BEGIN;
  168. INSERT INTO `ACT_CMMN_DATABASECHANGELOGLOCK` VALUES (1, b'0', NULL, NULL);
  169. COMMIT;
  170. -- ----------------------------
  171. -- Table structure for ACT_CMMN_DEPLOYMENT
  172. -- ----------------------------
  173. DROP TABLE IF EXISTS `ACT_CMMN_DEPLOYMENT`;
  174. CREATE TABLE `ACT_CMMN_DEPLOYMENT` (
  175. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  176. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  177. `CATEGORY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  178. `KEY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  179. `DEPLOY_TIME_` datetime(3) NULL DEFAULT NULL,
  180. `PARENT_DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  181. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
  182. PRIMARY KEY (`ID_`) USING BTREE
  183. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  184. -- ----------------------------
  185. -- Table structure for ACT_CMMN_DEPLOYMENT_RESOURCE
  186. -- ----------------------------
  187. DROP TABLE IF EXISTS `ACT_CMMN_DEPLOYMENT_RESOURCE`;
  188. CREATE TABLE `ACT_CMMN_DEPLOYMENT_RESOURCE` (
  189. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  190. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  191. `DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  192. `RESOURCE_BYTES_` longblob NULL,
  193. `GENERATED_` bit(1) NULL DEFAULT NULL,
  194. PRIMARY KEY (`ID_`) USING BTREE,
  195. INDEX `ACT_IDX_CMMN_RSRC_DPL`(`DEPLOYMENT_ID_`) USING BTREE,
  196. CONSTRAINT `ACT_FK_CMMN_RSRC_DPL` FOREIGN KEY (`DEPLOYMENT_ID_`) REFERENCES `ACT_CMMN_DEPLOYMENT` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  197. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  198. -- ----------------------------
  199. -- Table structure for ACT_CMMN_HI_CASE_INST
  200. -- ----------------------------
  201. DROP TABLE IF EXISTS `ACT_CMMN_HI_CASE_INST`;
  202. CREATE TABLE `ACT_CMMN_HI_CASE_INST` (
  203. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  204. `REV_` int(11) NOT NULL,
  205. `BUSINESS_KEY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  206. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  207. `PARENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  208. `CASE_DEF_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  209. `STATE_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  210. `START_TIME_` datetime(3) NULL DEFAULT NULL,
  211. `END_TIME_` datetime(3) NULL DEFAULT NULL,
  212. `START_USER_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  213. `CALLBACK_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  214. `CALLBACK_TYPE_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  215. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
  216. PRIMARY KEY (`ID_`) USING BTREE
  217. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  218. -- ----------------------------
  219. -- Table structure for ACT_CMMN_HI_MIL_INST
  220. -- ----------------------------
  221. DROP TABLE IF EXISTS `ACT_CMMN_HI_MIL_INST`;
  222. CREATE TABLE `ACT_CMMN_HI_MIL_INST` (
  223. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  224. `REV_` int(11) NOT NULL,
  225. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  226. `TIME_STAMP_` datetime(3) NULL DEFAULT NULL,
  227. `CASE_INST_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  228. `CASE_DEF_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  229. `ELEMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  230. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
  231. PRIMARY KEY (`ID_`) USING BTREE
  232. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  233. -- ----------------------------
  234. -- Table structure for ACT_CMMN_HI_PLAN_ITEM_INST
  235. -- ----------------------------
  236. DROP TABLE IF EXISTS `ACT_CMMN_HI_PLAN_ITEM_INST`;
  237. CREATE TABLE `ACT_CMMN_HI_PLAN_ITEM_INST` (
  238. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  239. `REV_` int(11) NOT NULL,
  240. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  241. `STATE_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  242. `CASE_DEF_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  243. `CASE_INST_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  244. `STAGE_INST_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  245. `IS_STAGE_` bit(1) NULL DEFAULT NULL,
  246. `ELEMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  247. `ITEM_DEFINITION_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  248. `ITEM_DEFINITION_TYPE_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  249. `CREATE_TIME_` datetime(3) NULL DEFAULT NULL,
  250. `LAST_AVAILABLE_TIME_` datetime(3) NULL DEFAULT NULL,
  251. `LAST_ENABLED_TIME_` datetime(3) NULL DEFAULT NULL,
  252. `LAST_DISABLED_TIME_` datetime(3) NULL DEFAULT NULL,
  253. `LAST_STARTED_TIME_` datetime(3) NULL DEFAULT NULL,
  254. `LAST_SUSPENDED_TIME_` datetime(3) NULL DEFAULT NULL,
  255. `COMPLETED_TIME_` datetime(3) NULL DEFAULT NULL,
  256. `OCCURRED_TIME_` datetime(3) NULL DEFAULT NULL,
  257. `TERMINATED_TIME_` datetime(3) NULL DEFAULT NULL,
  258. `EXIT_TIME_` datetime(3) NULL DEFAULT NULL,
  259. `ENDED_TIME_` datetime(3) NULL DEFAULT NULL,
  260. `LAST_UPDATED_TIME_` datetime(3) NULL DEFAULT NULL,
  261. `START_USER_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  262. `REFERENCE_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  263. `REFERENCE_TYPE_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  264. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
  265. `ENTRY_CRITERION_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  266. `EXIT_CRITERION_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  267. PRIMARY KEY (`ID_`) USING BTREE
  268. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  269. -- ----------------------------
  270. -- Table structure for ACT_CMMN_RU_CASE_INST
  271. -- ----------------------------
  272. DROP TABLE IF EXISTS `ACT_CMMN_RU_CASE_INST`;
  273. CREATE TABLE `ACT_CMMN_RU_CASE_INST` (
  274. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  275. `REV_` int(11) NOT NULL,
  276. `BUSINESS_KEY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  277. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  278. `PARENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  279. `CASE_DEF_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  280. `STATE_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  281. `START_TIME_` datetime(3) NULL DEFAULT NULL,
  282. `START_USER_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  283. `CALLBACK_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  284. `CALLBACK_TYPE_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  285. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
  286. `LOCK_TIME_` datetime(3) NULL DEFAULT NULL,
  287. `IS_COMPLETEABLE_` bit(1) NULL DEFAULT NULL,
  288. PRIMARY KEY (`ID_`) USING BTREE,
  289. INDEX `ACT_IDX_CASE_INST_CASE_DEF`(`CASE_DEF_ID_`) USING BTREE,
  290. INDEX `ACT_IDX_CASE_INST_PARENT`(`PARENT_ID_`) USING BTREE,
  291. CONSTRAINT `ACT_FK_CASE_INST_CASE_DEF` FOREIGN KEY (`CASE_DEF_ID_`) REFERENCES `ACT_CMMN_CASEDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  292. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  293. -- ----------------------------
  294. -- Table structure for ACT_CMMN_RU_MIL_INST
  295. -- ----------------------------
  296. DROP TABLE IF EXISTS `ACT_CMMN_RU_MIL_INST`;
  297. CREATE TABLE `ACT_CMMN_RU_MIL_INST` (
  298. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  299. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  300. `TIME_STAMP_` datetime(3) NULL DEFAULT NULL,
  301. `CASE_INST_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  302. `CASE_DEF_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  303. `ELEMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  304. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
  305. PRIMARY KEY (`ID_`) USING BTREE,
  306. INDEX `ACT_IDX_MIL_CASE_DEF`(`CASE_DEF_ID_`) USING BTREE,
  307. INDEX `ACT_IDX_MIL_CASE_INST`(`CASE_INST_ID_`) USING BTREE,
  308. CONSTRAINT `ACT_FK_MIL_CASE_DEF` FOREIGN KEY (`CASE_DEF_ID_`) REFERENCES `ACT_CMMN_CASEDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  309. CONSTRAINT `ACT_FK_MIL_CASE_INST` FOREIGN KEY (`CASE_INST_ID_`) REFERENCES `ACT_CMMN_RU_CASE_INST` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  310. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  311. -- ----------------------------
  312. -- Table structure for ACT_CMMN_RU_PLAN_ITEM_INST
  313. -- ----------------------------
  314. DROP TABLE IF EXISTS `ACT_CMMN_RU_PLAN_ITEM_INST`;
  315. CREATE TABLE `ACT_CMMN_RU_PLAN_ITEM_INST` (
  316. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  317. `REV_` int(11) NOT NULL,
  318. `CASE_DEF_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  319. `CASE_INST_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  320. `STAGE_INST_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  321. `IS_STAGE_` bit(1) NULL DEFAULT NULL,
  322. `ELEMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  323. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  324. `STATE_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  325. `CREATE_TIME_` datetime(3) NULL DEFAULT NULL,
  326. `START_USER_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  327. `REFERENCE_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  328. `REFERENCE_TYPE_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  329. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '',
  330. `ITEM_DEFINITION_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  331. `ITEM_DEFINITION_TYPE_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  332. `IS_COMPLETEABLE_` bit(1) NULL DEFAULT NULL,
  333. `IS_COUNT_ENABLED_` bit(1) NULL DEFAULT NULL,
  334. `VAR_COUNT_` int(11) NULL DEFAULT NULL,
  335. `SENTRY_PART_INST_COUNT_` int(11) NULL DEFAULT NULL,
  336. `LAST_AVAILABLE_TIME_` datetime(3) NULL DEFAULT NULL,
  337. `LAST_ENABLED_TIME_` datetime(3) NULL DEFAULT NULL,
  338. `LAST_DISABLED_TIME_` datetime(3) NULL DEFAULT NULL,
  339. `LAST_STARTED_TIME_` datetime(3) NULL DEFAULT NULL,
  340. `LAST_SUSPENDED_TIME_` datetime(3) NULL DEFAULT NULL,
  341. `COMPLETED_TIME_` datetime(3) NULL DEFAULT NULL,
  342. `OCCURRED_TIME_` datetime(3) NULL DEFAULT NULL,
  343. `TERMINATED_TIME_` datetime(3) NULL DEFAULT NULL,
  344. `EXIT_TIME_` datetime(3) NULL DEFAULT NULL,
  345. `ENDED_TIME_` datetime(3) NULL DEFAULT NULL,
  346. `ENTRY_CRITERION_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  347. `EXIT_CRITERION_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  348. PRIMARY KEY (`ID_`) USING BTREE,
  349. INDEX `ACT_IDX_PLAN_ITEM_CASE_DEF`(`CASE_DEF_ID_`) USING BTREE,
  350. INDEX `ACT_IDX_PLAN_ITEM_CASE_INST`(`CASE_INST_ID_`) USING BTREE,
  351. INDEX `ACT_IDX_PLAN_ITEM_STAGE_INST`(`STAGE_INST_ID_`) USING BTREE,
  352. CONSTRAINT `ACT_FK_PLAN_ITEM_CASE_DEF` FOREIGN KEY (`CASE_DEF_ID_`) REFERENCES `ACT_CMMN_CASEDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  353. CONSTRAINT `ACT_FK_PLAN_ITEM_CASE_INST` FOREIGN KEY (`CASE_INST_ID_`) REFERENCES `ACT_CMMN_RU_CASE_INST` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  354. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  355. -- ----------------------------
  356. -- Table structure for ACT_CMMN_RU_SENTRY_PART_INST
  357. -- ----------------------------
  358. DROP TABLE IF EXISTS `ACT_CMMN_RU_SENTRY_PART_INST`;
  359. CREATE TABLE `ACT_CMMN_RU_SENTRY_PART_INST` (
  360. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  361. `REV_` int(11) NOT NULL,
  362. `CASE_DEF_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  363. `CASE_INST_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  364. `PLAN_ITEM_INST_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  365. `ON_PART_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  366. `IF_PART_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  367. `TIME_STAMP_` datetime(3) NULL DEFAULT NULL,
  368. PRIMARY KEY (`ID_`) USING BTREE,
  369. INDEX `ACT_IDX_SENTRY_CASE_DEF`(`CASE_DEF_ID_`) USING BTREE,
  370. INDEX `ACT_IDX_SENTRY_CASE_INST`(`CASE_INST_ID_`) USING BTREE,
  371. INDEX `ACT_IDX_SENTRY_PLAN_ITEM`(`PLAN_ITEM_INST_ID_`) USING BTREE,
  372. CONSTRAINT `ACT_FK_SENTRY_CASE_DEF` FOREIGN KEY (`CASE_DEF_ID_`) REFERENCES `ACT_CMMN_CASEDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  373. CONSTRAINT `ACT_FK_SENTRY_CASE_INST` FOREIGN KEY (`CASE_INST_ID_`) REFERENCES `ACT_CMMN_RU_CASE_INST` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  374. CONSTRAINT `ACT_FK_SENTRY_PLAN_ITEM` FOREIGN KEY (`PLAN_ITEM_INST_ID_`) REFERENCES `ACT_CMMN_RU_PLAN_ITEM_INST` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  375. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  376. -- ----------------------------
  377. -- Table structure for ACT_CO_CONTENT_ITEM
  378. -- ----------------------------
  379. DROP TABLE IF EXISTS `ACT_CO_CONTENT_ITEM`;
  380. CREATE TABLE `ACT_CO_CONTENT_ITEM` (
  381. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  382. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  383. `MIME_TYPE_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  384. `TASK_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  385. `PROC_INST_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  386. `CONTENT_STORE_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  387. `CONTENT_STORE_NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  388. `FIELD_` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  389. `CONTENT_AVAILABLE_` bit(1) NULL DEFAULT b'0',
  390. `CREATED_` timestamp(6) NULL DEFAULT NULL,
  391. `CREATED_BY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  392. `LAST_MODIFIED_` timestamp(6) NULL DEFAULT NULL,
  393. `LAST_MODIFIED_BY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  394. `CONTENT_SIZE_` bigint(20) NULL DEFAULT 0,
  395. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  396. `SCOPE_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  397. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  398. PRIMARY KEY (`ID_`) USING BTREE,
  399. INDEX `idx_contitem_taskid`(`TASK_ID_`) USING BTREE,
  400. INDEX `idx_contitem_procid`(`PROC_INST_ID_`) USING BTREE,
  401. INDEX `idx_contitem_scope`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE
  402. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  403. -- ----------------------------
  404. -- Table structure for ACT_CO_DATABASECHANGELOG
  405. -- ----------------------------
  406. DROP TABLE IF EXISTS `ACT_CO_DATABASECHANGELOG`;
  407. CREATE TABLE `ACT_CO_DATABASECHANGELOG` (
  408. `ID` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  409. `AUTHOR` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  410. `FILENAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  411. `DATEEXECUTED` datetime(0) NOT NULL,
  412. `ORDEREXECUTED` int(11) NOT NULL,
  413. `EXECTYPE` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  414. `MD5SUM` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  415. `DESCRIPTION` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  416. `COMMENTS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  417. `TAG` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  418. `LIQUIBASE` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  419. `CONTEXTS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  420. `LABELS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  421. `DEPLOYMENT_ID` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL
  422. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  423. -- ----------------------------
  424. -- Records of ACT_CO_DATABASECHANGELOG
  425. -- ----------------------------
  426. BEGIN;
  427. INSERT INTO `ACT_CO_DATABASECHANGELOG` VALUES ('1', 'activiti', 'org/flowable/content/db/liquibase/flowable-content-db-changelog.xml', '2019-08-01 03:07:58', 1, 'EXECUTED', '8:7644d7165cfe799200a2abdd3419e8b6', 'createTable tableName=ACT_CO_CONTENT_ITEM; createIndex indexName=idx_contitem_taskid, tableName=ACT_CO_CONTENT_ITEM; createIndex indexName=idx_contitem_procid, tableName=ACT_CO_CONTENT_ITEM', '', NULL, '3.6.3', NULL, NULL, '4628877941'), ('2', 'flowable', 'org/flowable/content/db/liquibase/flowable-content-db-changelog.xml', '2019-08-01 03:07:58', 2, 'EXECUTED', '8:fe7b11ac7dbbf9c43006b23bbab60bab', 'addColumn tableName=ACT_CO_CONTENT_ITEM; createIndex indexName=idx_contitem_scope, tableName=ACT_CO_CONTENT_ITEM', '', NULL, '3.6.3', NULL, NULL, '4628877941');
  428. COMMIT;
  429. -- ----------------------------
  430. -- Table structure for ACT_CO_DATABASECHANGELOGLOCK
  431. -- ----------------------------
  432. DROP TABLE IF EXISTS `ACT_CO_DATABASECHANGELOGLOCK`;
  433. CREATE TABLE `ACT_CO_DATABASECHANGELOGLOCK` (
  434. `ID` int(11) NOT NULL,
  435. `LOCKED` bit(1) NOT NULL,
  436. `LOCKGRANTED` datetime(0) NULL DEFAULT NULL,
  437. `LOCKEDBY` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  438. PRIMARY KEY (`ID`) USING BTREE
  439. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  440. -- ----------------------------
  441. -- Records of ACT_CO_DATABASECHANGELOGLOCK
  442. -- ----------------------------
  443. BEGIN;
  444. INSERT INTO `ACT_CO_DATABASECHANGELOGLOCK` VALUES (1, b'0', NULL, NULL);
  445. COMMIT;
  446. -- ----------------------------
  447. -- Table structure for ACT_DE_DATABASECHANGELOG
  448. -- ----------------------------
  449. DROP TABLE IF EXISTS `ACT_DE_DATABASECHANGELOG`;
  450. CREATE TABLE `ACT_DE_DATABASECHANGELOG` (
  451. `ID` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  452. `AUTHOR` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  453. `FILENAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  454. `DATEEXECUTED` datetime(0) NOT NULL,
  455. `ORDEREXECUTED` int(11) NOT NULL,
  456. `EXECTYPE` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  457. `MD5SUM` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  458. `DESCRIPTION` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  459. `COMMENTS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  460. `TAG` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  461. `LIQUIBASE` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  462. `CONTEXTS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  463. `LABELS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  464. `DEPLOYMENT_ID` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL
  465. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  466. -- ----------------------------
  467. -- Records of ACT_DE_DATABASECHANGELOG
  468. -- ----------------------------
  469. BEGIN;
  470. INSERT INTO `ACT_DE_DATABASECHANGELOG` VALUES ('1', 'flowable', 'META-INF/liquibase/flowable-modeler-app-db-changelog.xml', '2019-08-01 03:08:43', 1, 'EXECUTED', '8:e70d1d9d3899a734296b2514ccc71501', 'createTable tableName=ACT_DE_MODEL; createIndex indexName=idx_proc_mod_created, tableName=ACT_DE_MODEL; createTable tableName=ACT_DE_MODEL_HISTORY; createIndex indexName=idx_proc_mod_history_proc, tableName=ACT_DE_MODEL_HISTORY; createTable tableN...', '', NULL, '3.6.3', NULL, NULL, '4628923400'), ('3', 'flowable', 'META-INF/liquibase/flowable-modeler-app-db-changelog.xml', '2019-08-01 03:08:43', 2, 'EXECUTED', '8:3a9143bef2e45f2316231cc1369138b6', 'addColumn tableName=ACT_DE_MODEL; addColumn tableName=ACT_DE_MODEL_HISTORY', '', NULL, '3.6.3', NULL, NULL, '4628923400');
  471. COMMIT;
  472. -- ----------------------------
  473. -- Table structure for ACT_DE_DATABASECHANGELOGLOCK
  474. -- ----------------------------
  475. DROP TABLE IF EXISTS `ACT_DE_DATABASECHANGELOGLOCK`;
  476. CREATE TABLE `ACT_DE_DATABASECHANGELOGLOCK` (
  477. `ID` int(11) NOT NULL,
  478. `LOCKED` bit(1) NOT NULL,
  479. `LOCKGRANTED` datetime(0) NULL DEFAULT NULL,
  480. `LOCKEDBY` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  481. PRIMARY KEY (`ID`) USING BTREE
  482. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  483. -- ----------------------------
  484. -- Records of ACT_DE_DATABASECHANGELOGLOCK
  485. -- ----------------------------
  486. BEGIN;
  487. INSERT INTO `ACT_DE_DATABASECHANGELOGLOCK` VALUES (1, b'0', NULL, NULL);
  488. COMMIT;
  489. -- ----------------------------
  490. -- Table structure for ACT_DE_MODEL
  491. -- ----------------------------
  492. DROP TABLE IF EXISTS `ACT_DE_MODEL`;
  493. CREATE TABLE `ACT_DE_MODEL` (
  494. `id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  495. `name` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  496. `model_key` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  497. `description` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  498. `model_comment` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  499. `created` datetime(6) NULL DEFAULT NULL,
  500. `created_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  501. `last_updated` datetime(6) NULL DEFAULT NULL,
  502. `last_updated_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  503. `version` int(11) NULL DEFAULT NULL,
  504. `model_editor_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
  505. `model_editor_xml` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
  506. `thumbnail` longblob NULL,
  507. `model_type` int(11) NULL DEFAULT NULL,
  508. `tenant_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  509. `xml` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL NULL,
  510. PRIMARY KEY (`id`) USING BTREE,
  511. INDEX `idx_proc_mod_created`(`created_by`) USING BTREE
  512. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  513. -- ----------------------------
  514. -- Table structure for ACT_DE_MODEL_HISTORY
  515. -- ----------------------------
  516. DROP TABLE IF EXISTS `ACT_DE_MODEL_HISTORY`;
  517. CREATE TABLE `ACT_DE_MODEL_HISTORY` (
  518. `id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  519. `name` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  520. `model_key` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  521. `description` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  522. `model_comment` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  523. `created` datetime(6) NULL DEFAULT NULL,
  524. `created_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  525. `last_updated` datetime(6) NULL DEFAULT NULL,
  526. `last_updated_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  527. `removal_date` datetime(6) NULL DEFAULT NULL,
  528. `version` int(11) NULL DEFAULT NULL,
  529. `model_editor_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
  530. `model_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  531. `model_type` int(11) NULL DEFAULT NULL,
  532. `tenant_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  533. PRIMARY KEY (`id`) USING BTREE,
  534. INDEX `idx_proc_mod_history_proc`(`model_id`) USING BTREE
  535. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  536. -- ----------------------------
  537. -- Table structure for ACT_DE_MODEL_RELATION
  538. -- ----------------------------
  539. DROP TABLE IF EXISTS `ACT_DE_MODEL_RELATION`;
  540. CREATE TABLE `ACT_DE_MODEL_RELATION` (
  541. `id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  542. `parent_model_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  543. `model_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  544. `relation_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  545. PRIMARY KEY (`id`) USING BTREE,
  546. INDEX `fk_relation_parent`(`parent_model_id`) USING BTREE,
  547. INDEX `fk_relation_child`(`model_id`) USING BTREE,
  548. CONSTRAINT `fk_relation_child` FOREIGN KEY (`model_id`) REFERENCES `ACT_DE_MODEL` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  549. CONSTRAINT `fk_relation_parent` FOREIGN KEY (`parent_model_id`) REFERENCES `ACT_DE_MODEL` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
  550. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  551. -- ----------------------------
  552. -- Table structure for ACT_DMN_DATABASECHANGELOG
  553. -- ----------------------------
  554. DROP TABLE IF EXISTS `ACT_DMN_DATABASECHANGELOG`;
  555. CREATE TABLE `ACT_DMN_DATABASECHANGELOG` (
  556. `ID` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  557. `AUTHOR` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  558. `FILENAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  559. `DATEEXECUTED` datetime(0) NOT NULL,
  560. `ORDEREXECUTED` int(11) NOT NULL,
  561. `EXECTYPE` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  562. `MD5SUM` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  563. `DESCRIPTION` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  564. `COMMENTS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  565. `TAG` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  566. `LIQUIBASE` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  567. `CONTEXTS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  568. `LABELS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  569. `DEPLOYMENT_ID` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL
  570. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  571. -- ----------------------------
  572. -- Records of ACT_DMN_DATABASECHANGELOG
  573. -- ----------------------------
  574. BEGIN;
  575. INSERT INTO `ACT_DMN_DATABASECHANGELOG` VALUES ('1', 'activiti', 'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', '2019-08-01 03:07:57', 1, 'EXECUTED', '8:c8701f1c71018b55029f450b2e9a10a1', 'createTable tableName=ACT_DMN_DEPLOYMENT; createTable tableName=ACT_DMN_DEPLOYMENT_RESOURCE; createTable tableName=ACT_DMN_DECISION_TABLE', '', NULL, '3.6.3', NULL, NULL, '4628876950'), ('2', 'flowable', 'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', '2019-08-01 03:07:57', 2, 'EXECUTED', '8:47f94b27feb7df8a30d4e338c7bd5fb8', 'createTable tableName=ACT_DMN_HI_DECISION_EXECUTION', '', NULL, '3.6.3', NULL, NULL, '4628876950'), ('3', 'flowable', 'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', '2019-08-01 03:07:57', 3, 'EXECUTED', '8:ac17eae89fbdccb6e08daf3c7797b579', 'addColumn tableName=ACT_DMN_HI_DECISION_EXECUTION', '', NULL, '3.6.3', NULL, NULL, '4628876950'), ('4', 'flowable', 'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', '2019-08-01 03:07:57', 4, 'EXECUTED', '8:f73aabc4529e7292c2942073d1cff6f9', 'dropColumn columnName=PARENT_DEPLOYMENT_ID_, tableName=ACT_DMN_DECISION_TABLE', '', NULL, '3.6.3', NULL, NULL, '4628876950'), ('5', 'flowable', 'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', '2019-08-01 03:07:57', 5, 'EXECUTED', '8:3e03528582dd4eeb4eb41f9b9539140d', 'modifyDataType columnName=DEPLOY_TIME_, tableName=ACT_DMN_DEPLOYMENT; modifyDataType columnName=START_TIME_, tableName=ACT_DMN_HI_DECISION_EXECUTION; modifyDataType columnName=END_TIME_, tableName=ACT_DMN_HI_DECISION_EXECUTION', '', NULL, '3.6.3', NULL, NULL, '4628876950'), ('6', 'flowable', 'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', '2019-08-01 03:07:57', 6, 'EXECUTED', '8:646c6a061e0b6e8a62e69844ff96abb0', 'createIndex indexName=ACT_IDX_DEC_TBL_UNIQ, tableName=ACT_DMN_DECISION_TABLE', '', NULL, '3.6.3', NULL, NULL, '4628876950');
  576. COMMIT;
  577. -- ----------------------------
  578. -- Table structure for ACT_DMN_DATABASECHANGELOGLOCK
  579. -- ----------------------------
  580. DROP TABLE IF EXISTS `ACT_DMN_DATABASECHANGELOGLOCK`;
  581. CREATE TABLE `ACT_DMN_DATABASECHANGELOGLOCK` (
  582. `ID` int(11) NOT NULL,
  583. `LOCKED` bit(1) NOT NULL,
  584. `LOCKGRANTED` datetime(0) NULL DEFAULT NULL,
  585. `LOCKEDBY` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  586. PRIMARY KEY (`ID`) USING BTREE
  587. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  588. -- ----------------------------
  589. -- Records of ACT_DMN_DATABASECHANGELOGLOCK
  590. -- ----------------------------
  591. BEGIN;
  592. INSERT INTO `ACT_DMN_DATABASECHANGELOGLOCK` VALUES (1, b'0', NULL, NULL);
  593. COMMIT;
  594. -- ----------------------------
  595. -- Table structure for ACT_DMN_DECISION_TABLE
  596. -- ----------------------------
  597. DROP TABLE IF EXISTS `ACT_DMN_DECISION_TABLE`;
  598. CREATE TABLE `ACT_DMN_DECISION_TABLE` (
  599. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  600. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  601. `VERSION_` int(11) NULL DEFAULT NULL,
  602. `KEY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  603. `CATEGORY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  604. `DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  605. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  606. `RESOURCE_NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  607. `DESCRIPTION_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  608. PRIMARY KEY (`ID_`) USING BTREE,
  609. UNIQUE INDEX `ACT_IDX_DEC_TBL_UNIQ`(`KEY_`, `VERSION_`, `TENANT_ID_`) USING BTREE
  610. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  611. -- ----------------------------
  612. -- Table structure for ACT_DMN_DEPLOYMENT
  613. -- ----------------------------
  614. DROP TABLE IF EXISTS `ACT_DMN_DEPLOYMENT`;
  615. CREATE TABLE `ACT_DMN_DEPLOYMENT` (
  616. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  617. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  618. `CATEGORY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  619. `DEPLOY_TIME_` datetime(3) NULL DEFAULT NULL,
  620. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  621. `PARENT_DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  622. PRIMARY KEY (`ID_`) USING BTREE
  623. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  624. -- ----------------------------
  625. -- Table structure for ACT_DMN_DEPLOYMENT_RESOURCE
  626. -- ----------------------------
  627. DROP TABLE IF EXISTS `ACT_DMN_DEPLOYMENT_RESOURCE`;
  628. CREATE TABLE `ACT_DMN_DEPLOYMENT_RESOURCE` (
  629. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  630. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  631. `DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  632. `RESOURCE_BYTES_` longblob NULL,
  633. PRIMARY KEY (`ID_`) USING BTREE
  634. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  635. -- ----------------------------
  636. -- Table structure for ACT_DMN_HI_DECISION_EXECUTION
  637. -- ----------------------------
  638. DROP TABLE IF EXISTS `ACT_DMN_HI_DECISION_EXECUTION`;
  639. CREATE TABLE `ACT_DMN_HI_DECISION_EXECUTION` (
  640. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  641. `DECISION_DEFINITION_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  642. `DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  643. `START_TIME_` datetime(3) NULL DEFAULT NULL,
  644. `END_TIME_` datetime(3) NULL DEFAULT NULL,
  645. `INSTANCE_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  646. `EXECUTION_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  647. `ACTIVITY_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  648. `FAILED_` bit(1) NULL DEFAULT b'0',
  649. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  650. `EXECUTION_JSON_` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
  651. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  652. PRIMARY KEY (`ID_`) USING BTREE
  653. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  654. -- ----------------------------
  655. -- Table structure for ACT_EVT_LOG
  656. -- ----------------------------
  657. DROP TABLE IF EXISTS `ACT_EVT_LOG`;
  658. CREATE TABLE `ACT_EVT_LOG` (
  659. `LOG_NR_` bigint(20) NOT NULL AUTO_INCREMENT,
  660. `TYPE_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  661. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  662. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  663. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  664. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  665. `TIME_STAMP_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3),
  666. `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  667. `DATA_` longblob NULL,
  668. `LOCK_OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  669. `LOCK_TIME_` timestamp(3) NULL DEFAULT NULL,
  670. `IS_PROCESSED_` tinyint(4) NULL DEFAULT 0,
  671. PRIMARY KEY (`LOG_NR_`) USING BTREE
  672. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin;
  673. -- ----------------------------
  674. -- Table structure for ACT_FO_DATABASECHANGELOG
  675. -- ----------------------------
  676. DROP TABLE IF EXISTS `ACT_FO_DATABASECHANGELOG`;
  677. CREATE TABLE `ACT_FO_DATABASECHANGELOG` (
  678. `ID` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  679. `AUTHOR` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  680. `FILENAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  681. `DATEEXECUTED` datetime(0) NOT NULL,
  682. `ORDEREXECUTED` int(11) NOT NULL,
  683. `EXECTYPE` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  684. `MD5SUM` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  685. `DESCRIPTION` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  686. `COMMENTS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  687. `TAG` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  688. `LIQUIBASE` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  689. `CONTEXTS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  690. `LABELS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  691. `DEPLOYMENT_ID` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL
  692. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  693. -- ----------------------------
  694. -- Records of ACT_FO_DATABASECHANGELOG
  695. -- ----------------------------
  696. BEGIN;
  697. INSERT INTO `ACT_FO_DATABASECHANGELOG` VALUES ('1', 'activiti', 'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', '2019-08-01 03:07:57', 1, 'EXECUTED', '8:033ebf9380889aed7c453927ecc3250d', 'createTable tableName=ACT_FO_FORM_DEPLOYMENT; createTable tableName=ACT_FO_FORM_RESOURCE; createTable tableName=ACT_FO_FORM_DEFINITION; createTable tableName=ACT_FO_FORM_INSTANCE', '', NULL, '3.6.3', NULL, NULL, '4628877478'), ('2', 'flowable', 'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', '2019-08-01 03:07:57', 2, 'EXECUTED', '8:986365ceb40445ce3b27a8e6b40f159b', 'addColumn tableName=ACT_FO_FORM_INSTANCE', '', NULL, '3.6.3', NULL, NULL, '4628877478'), ('3', 'flowable', 'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', '2019-08-01 03:07:57', 3, 'EXECUTED', '8:abf482518ceb09830ef674e52c06bf15', 'dropColumn columnName=PARENT_DEPLOYMENT_ID_, tableName=ACT_FO_FORM_DEFINITION', '', NULL, '3.6.3', NULL, NULL, '4628877478'), ('4', 'flowable', 'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', '2019-08-01 03:07:57', 4, 'EXECUTED', '8:2087829f22a4b2298dbf530681c74854', 'modifyDataType columnName=DEPLOY_TIME_, tableName=ACT_FO_FORM_DEPLOYMENT; modifyDataType columnName=SUBMITTED_DATE_, tableName=ACT_FO_FORM_INSTANCE', '', NULL, '3.6.3', NULL, NULL, '4628877478'), ('5', 'flowable', 'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', '2019-08-01 03:07:57', 5, 'EXECUTED', '8:b4be732b89e5ca028bdd520c6ad4d446', 'createIndex indexName=ACT_IDX_FORM_DEF_UNIQ, tableName=ACT_FO_FORM_DEFINITION', '', NULL, '3.6.3', NULL, NULL, '4628877478');
  698. COMMIT;
  699. -- ----------------------------
  700. -- Table structure for ACT_FO_DATABASECHANGELOGLOCK
  701. -- ----------------------------
  702. DROP TABLE IF EXISTS `ACT_FO_DATABASECHANGELOGLOCK`;
  703. CREATE TABLE `ACT_FO_DATABASECHANGELOGLOCK` (
  704. `ID` int(11) NOT NULL,
  705. `LOCKED` bit(1) NOT NULL,
  706. `LOCKGRANTED` datetime(0) NULL DEFAULT NULL,
  707. `LOCKEDBY` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  708. PRIMARY KEY (`ID`) USING BTREE
  709. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  710. -- ----------------------------
  711. -- Records of ACT_FO_DATABASECHANGELOGLOCK
  712. -- ----------------------------
  713. BEGIN;
  714. INSERT INTO `ACT_FO_DATABASECHANGELOGLOCK` VALUES (1, b'0', NULL, NULL);
  715. COMMIT;
  716. -- ----------------------------
  717. -- Table structure for ACT_FO_FORM_DEFINITION
  718. -- ----------------------------
  719. DROP TABLE IF EXISTS `ACT_FO_FORM_DEFINITION`;
  720. CREATE TABLE `ACT_FO_FORM_DEFINITION` (
  721. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  722. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  723. `VERSION_` int(11) NULL DEFAULT NULL,
  724. `KEY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  725. `CATEGORY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  726. `DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  727. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  728. `RESOURCE_NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  729. `DESCRIPTION_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  730. PRIMARY KEY (`ID_`) USING BTREE,
  731. UNIQUE INDEX `ACT_IDX_FORM_DEF_UNIQ`(`KEY_`, `VERSION_`, `TENANT_ID_`) USING BTREE
  732. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  733. -- ----------------------------
  734. -- Table structure for ACT_FO_FORM_DEPLOYMENT
  735. -- ----------------------------
  736. DROP TABLE IF EXISTS `ACT_FO_FORM_DEPLOYMENT`;
  737. CREATE TABLE `ACT_FO_FORM_DEPLOYMENT` (
  738. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  739. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  740. `CATEGORY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  741. `DEPLOY_TIME_` datetime(3) NULL DEFAULT NULL,
  742. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  743. `PARENT_DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  744. PRIMARY KEY (`ID_`) USING BTREE
  745. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  746. -- ----------------------------
  747. -- Table structure for ACT_FO_FORM_INSTANCE
  748. -- ----------------------------
  749. DROP TABLE IF EXISTS `ACT_FO_FORM_INSTANCE`;
  750. CREATE TABLE `ACT_FO_FORM_INSTANCE` (
  751. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  752. `FORM_DEFINITION_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  753. `TASK_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  754. `PROC_INST_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  755. `PROC_DEF_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  756. `SUBMITTED_DATE_` datetime(3) NULL DEFAULT NULL,
  757. `SUBMITTED_BY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  758. `FORM_VALUES_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  759. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  760. `SCOPE_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  761. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  762. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  763. PRIMARY KEY (`ID_`) USING BTREE
  764. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  765. -- ----------------------------
  766. -- Table structure for ACT_FO_FORM_RESOURCE
  767. -- ----------------------------
  768. DROP TABLE IF EXISTS `ACT_FO_FORM_RESOURCE`;
  769. CREATE TABLE `ACT_FO_FORM_RESOURCE` (
  770. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  771. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  772. `DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  773. `RESOURCE_BYTES_` longblob NULL,
  774. PRIMARY KEY (`ID_`) USING BTREE
  775. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  776. -- ----------------------------
  777. -- Table structure for ACT_GE_BYTEARRAY
  778. -- ----------------------------
  779. DROP TABLE IF EXISTS `ACT_GE_BYTEARRAY`;
  780. CREATE TABLE `ACT_GE_BYTEARRAY` (
  781. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  782. `REV_` int(11) NULL DEFAULT NULL,
  783. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  784. `DEPLOYMENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  785. `BYTES_` longblob NULL,
  786. `GENERATED_` tinyint(4) NULL DEFAULT NULL,
  787. PRIMARY KEY (`ID_`) USING BTREE,
  788. INDEX `ACT_FK_BYTEARR_DEPL`(`DEPLOYMENT_ID_`) USING BTREE,
  789. CONSTRAINT `ACT_FK_BYTEARR_DEPL` FOREIGN KEY (`DEPLOYMENT_ID_`) REFERENCES `ACT_RE_DEPLOYMENT` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  790. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  791. -- ----------------------------
  792. -- Table structure for ACT_GE_PROPERTY
  793. -- ----------------------------
  794. DROP TABLE IF EXISTS `ACT_GE_PROPERTY`;
  795. CREATE TABLE `ACT_GE_PROPERTY` (
  796. `NAME_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  797. `VALUE_` varchar(300) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  798. `REV_` int(11) NULL DEFAULT NULL,
  799. PRIMARY KEY (`NAME_`) USING BTREE
  800. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  801. -- ----------------------------
  802. -- Records of ACT_GE_PROPERTY
  803. -- ----------------------------
  804. BEGIN;
  805. INSERT INTO `ACT_GE_PROPERTY` VALUES ('cfg.execution-related-entities-count', 'true', 1), ('cfg.task-related-entities-count', 'true', 1), ('common.schema.version', '6.5.0.1', 1), ('entitylink.schema.version', '6.5.0.1', 1), ('eventsubscription.schema.version', '6.5.0.1', 1), ('identitylink.schema.version', '6.5.0.1', 1), ('job.schema.version', '6.5.0.1', 1), ('next.dbid', '1', 1), ('schema.history', 'create(6.5.0.1)', 1), ('schema.version', '6.5.0.1', 1), ('task.schema.version', '6.5.0.1', 1), ('variable.schema.version', '6.5.0.1', 1);
  806. COMMIT;
  807. -- ----------------------------
  808. -- Table structure for ACT_HI_ACTINST
  809. -- ----------------------------
  810. DROP TABLE IF EXISTS `ACT_HI_ACTINST`;
  811. CREATE TABLE `ACT_HI_ACTINST` (
  812. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  813. `REV_` int(11) NULL DEFAULT 1,
  814. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  815. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  816. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  817. `ACT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  818. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  819. `CALL_PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  820. `ACT_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  821. `ACT_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  822. `ASSIGNEE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  823. `START_TIME_` datetime(3) NOT NULL,
  824. `END_TIME_` datetime(3) NULL DEFAULT NULL,
  825. `DURATION_` bigint(20) NULL DEFAULT NULL,
  826. `DELETE_REASON_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  827. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  828. PRIMARY KEY (`ID_`) USING BTREE,
  829. INDEX `ACT_IDX_HI_ACT_INST_START`(`START_TIME_`) USING BTREE,
  830. INDEX `ACT_IDX_HI_ACT_INST_END`(`END_TIME_`) USING BTREE,
  831. INDEX `ACT_IDX_HI_ACT_INST_PROCINST`(`PROC_INST_ID_`, `ACT_ID_`) USING BTREE,
  832. INDEX `ACT_IDX_HI_ACT_INST_EXEC`(`EXECUTION_ID_`, `ACT_ID_`) USING BTREE
  833. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  834. -- ----------------------------
  835. -- Table structure for ACT_HI_ATTACHMENT
  836. -- ----------------------------
  837. DROP TABLE IF EXISTS `ACT_HI_ATTACHMENT`;
  838. CREATE TABLE `ACT_HI_ATTACHMENT` (
  839. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  840. `REV_` int(11) NULL DEFAULT NULL,
  841. `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  842. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  843. `DESCRIPTION_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  844. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  845. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  846. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  847. `URL_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  848. `CONTENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  849. `TIME_` datetime(3) NULL DEFAULT NULL,
  850. PRIMARY KEY (`ID_`) USING BTREE
  851. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  852. -- ----------------------------
  853. -- Table structure for ACT_HI_COMMENT
  854. -- ----------------------------
  855. DROP TABLE IF EXISTS `ACT_HI_COMMENT`;
  856. CREATE TABLE `ACT_HI_COMMENT` (
  857. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  858. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  859. `TIME_` datetime(3) NOT NULL,
  860. `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  861. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  862. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  863. `ACTION_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  864. `MESSAGE_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  865. `FULL_MSG_` longblob NULL,
  866. PRIMARY KEY (`ID_`) USING BTREE
  867. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  868. -- ----------------------------
  869. -- Table structure for ACT_HI_DETAIL
  870. -- ----------------------------
  871. DROP TABLE IF EXISTS `ACT_HI_DETAIL`;
  872. CREATE TABLE `ACT_HI_DETAIL` (
  873. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  874. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  875. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  876. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  877. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  878. `ACT_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  879. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  880. `VAR_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  881. `REV_` int(11) NULL DEFAULT NULL,
  882. `TIME_` datetime(3) NOT NULL,
  883. `BYTEARRAY_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  884. `DOUBLE_` double NULL DEFAULT NULL,
  885. `LONG_` bigint(20) NULL DEFAULT NULL,
  886. `TEXT_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  887. `TEXT2_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  888. PRIMARY KEY (`ID_`) USING BTREE,
  889. INDEX `ACT_IDX_HI_DETAIL_PROC_INST`(`PROC_INST_ID_`) USING BTREE,
  890. INDEX `ACT_IDX_HI_DETAIL_ACT_INST`(`ACT_INST_ID_`) USING BTREE,
  891. INDEX `ACT_IDX_HI_DETAIL_TIME`(`TIME_`) USING BTREE,
  892. INDEX `ACT_IDX_HI_DETAIL_NAME`(`NAME_`) USING BTREE,
  893. INDEX `ACT_IDX_HI_DETAIL_TASK_ID`(`TASK_ID_`) USING BTREE
  894. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  895. -- ----------------------------
  896. -- Table structure for ACT_HI_ENTITYLINK
  897. -- ----------------------------
  898. DROP TABLE IF EXISTS `ACT_HI_ENTITYLINK`;
  899. CREATE TABLE `ACT_HI_ENTITYLINK` (
  900. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  901. `LINK_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  902. `CREATE_TIME_` datetime(3) NULL DEFAULT NULL,
  903. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  904. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  905. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  906. `REF_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  907. `REF_SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  908. `REF_SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  909. `HIERARCHY_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  910. PRIMARY KEY (`ID_`) USING BTREE,
  911. INDEX `ACT_IDX_HI_ENT_LNK_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`, `LINK_TYPE_`) USING BTREE,
  912. INDEX `ACT_IDX_HI_ENT_LNK_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`, `LINK_TYPE_`) USING BTREE
  913. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  914. -- ----------------------------
  915. -- Table structure for ACT_HI_IDENTITYLINK
  916. -- ----------------------------
  917. DROP TABLE IF EXISTS `ACT_HI_IDENTITYLINK`;
  918. CREATE TABLE `ACT_HI_IDENTITYLINK` (
  919. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  920. `GROUP_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  921. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  922. `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  923. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  924. `CREATE_TIME_` datetime(3) NULL DEFAULT NULL,
  925. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  926. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  927. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  928. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  929. PRIMARY KEY (`ID_`) USING BTREE,
  930. INDEX `ACT_IDX_HI_IDENT_LNK_USER`(`USER_ID_`) USING BTREE,
  931. INDEX `ACT_IDX_HI_IDENT_LNK_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  932. INDEX `ACT_IDX_HI_IDENT_LNK_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`) USING BTREE,
  933. INDEX `ACT_IDX_HI_IDENT_LNK_TASK`(`TASK_ID_`) USING BTREE,
  934. INDEX `ACT_IDX_HI_IDENT_LNK_PROCINST`(`PROC_INST_ID_`) USING BTREE
  935. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  936. -- ----------------------------
  937. -- Table structure for ACT_HI_PROCINST
  938. -- ----------------------------
  939. DROP TABLE IF EXISTS `ACT_HI_PROCINST`;
  940. CREATE TABLE `ACT_HI_PROCINST` (
  941. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  942. `REV_` int(11) NULL DEFAULT 1,
  943. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  944. `BUSINESS_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  945. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  946. `START_TIME_` datetime(3) NOT NULL,
  947. `END_TIME_` datetime(3) NULL DEFAULT NULL,
  948. `DURATION_` bigint(20) NULL DEFAULT NULL,
  949. `START_USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  950. `START_ACT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  951. `END_ACT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  952. `SUPER_PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  953. `DELETE_REASON_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  954. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  955. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  956. `CALLBACK_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  957. `CALLBACK_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  958. PRIMARY KEY (`ID_`) USING BTREE,
  959. UNIQUE INDEX `PROC_INST_ID_`(`PROC_INST_ID_`) USING BTREE,
  960. INDEX `ACT_IDX_HI_PRO_INST_END`(`END_TIME_`) USING BTREE,
  961. INDEX `ACT_IDX_HI_PRO_I_BUSKEY`(`BUSINESS_KEY_`) USING BTREE
  962. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  963. -- ----------------------------
  964. -- Table structure for ACT_HI_TASKINST
  965. -- ----------------------------
  966. DROP TABLE IF EXISTS `ACT_HI_TASKINST`;
  967. CREATE TABLE `ACT_HI_TASKINST` (
  968. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  969. `REV_` int(11) NULL DEFAULT 1,
  970. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  971. `TASK_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  972. `TASK_DEF_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  973. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  974. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  975. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  976. `SUB_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  977. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  978. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  979. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  980. `PARENT_TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  981. `DESCRIPTION_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  982. `OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  983. `ASSIGNEE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  984. `START_TIME_` datetime(3) NOT NULL,
  985. `CLAIM_TIME_` datetime(3) NULL DEFAULT NULL,
  986. `END_TIME_` datetime(3) NULL DEFAULT NULL,
  987. `DURATION_` bigint(20) NULL DEFAULT NULL,
  988. `DELETE_REASON_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  989. `PRIORITY_` int(11) NULL DEFAULT NULL,
  990. `DUE_DATE_` datetime(3) NULL DEFAULT NULL,
  991. `FORM_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  992. `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  993. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  994. `LAST_UPDATED_TIME_` datetime(3) NULL DEFAULT NULL,
  995. PRIMARY KEY (`ID_`) USING BTREE,
  996. INDEX `ACT_IDX_HI_TASK_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  997. INDEX `ACT_IDX_HI_TASK_SUB_SCOPE`(`SUB_SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  998. INDEX `ACT_IDX_HI_TASK_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`) USING BTREE,
  999. INDEX `ACT_IDX_HI_TASK_INST_PROCINST`(`PROC_INST_ID_`) USING BTREE
  1000. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1001. -- ----------------------------
  1002. -- Table structure for ACT_HI_TSK_LOG
  1003. -- ----------------------------
  1004. DROP TABLE IF EXISTS `ACT_HI_TSK_LOG`;
  1005. CREATE TABLE `ACT_HI_TSK_LOG` (
  1006. `ID_` bigint(20) NOT NULL AUTO_INCREMENT,
  1007. `TYPE_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1008. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1009. `TIME_STAMP_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3),
  1010. `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1011. `DATA_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1012. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1013. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1014. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1015. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1016. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1017. `SUB_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1018. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1019. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1020. PRIMARY KEY (`ID_`) USING BTREE
  1021. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin;
  1022. -- ----------------------------
  1023. -- Table structure for ACT_HI_VARINST
  1024. -- ----------------------------
  1025. DROP TABLE IF EXISTS `ACT_HI_VARINST`;
  1026. CREATE TABLE `ACT_HI_VARINST` (
  1027. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1028. `REV_` int(11) NULL DEFAULT 1,
  1029. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1030. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1031. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1032. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1033. `VAR_TYPE_` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1034. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1035. `SUB_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1036. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1037. `BYTEARRAY_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1038. `DOUBLE_` double NULL DEFAULT NULL,
  1039. `LONG_` bigint(20) NULL DEFAULT NULL,
  1040. `TEXT_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1041. `TEXT2_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1042. `CREATE_TIME_` datetime(3) NULL DEFAULT NULL,
  1043. `LAST_UPDATED_TIME_` datetime(3) NULL DEFAULT NULL,
  1044. PRIMARY KEY (`ID_`) USING BTREE,
  1045. INDEX `ACT_IDX_HI_PROCVAR_NAME_TYPE`(`NAME_`, `VAR_TYPE_`) USING BTREE,
  1046. INDEX `ACT_IDX_HI_VAR_SCOPE_ID_TYPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1047. INDEX `ACT_IDX_HI_VAR_SUB_ID_TYPE`(`SUB_SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1048. INDEX `ACT_IDX_HI_PROCVAR_PROC_INST`(`PROC_INST_ID_`) USING BTREE,
  1049. INDEX `ACT_IDX_HI_PROCVAR_TASK_ID`(`TASK_ID_`) USING BTREE,
  1050. INDEX `ACT_IDX_HI_PROCVAR_EXE`(`EXECUTION_ID_`) USING BTREE
  1051. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1052. -- ----------------------------
  1053. -- Table structure for ACT_ID_BYTEARRAY
  1054. -- ----------------------------
  1055. DROP TABLE IF EXISTS `ACT_ID_BYTEARRAY`;
  1056. CREATE TABLE `ACT_ID_BYTEARRAY` (
  1057. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1058. `REV_` int(11) NULL DEFAULT NULL,
  1059. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1060. `BYTES_` longblob NULL,
  1061. PRIMARY KEY (`ID_`) USING BTREE
  1062. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1063. -- ----------------------------
  1064. -- Table structure for ACT_ID_GROUP
  1065. -- ----------------------------
  1066. DROP TABLE IF EXISTS `ACT_ID_GROUP`;
  1067. CREATE TABLE `ACT_ID_GROUP` (
  1068. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1069. `REV_` int(11) NULL DEFAULT NULL,
  1070. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1071. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1072. PRIMARY KEY (`ID_`) USING BTREE
  1073. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1074. -- ----------------------------
  1075. -- Table structure for ACT_ID_INFO
  1076. -- ----------------------------
  1077. DROP TABLE IF EXISTS `ACT_ID_INFO`;
  1078. CREATE TABLE `ACT_ID_INFO` (
  1079. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1080. `REV_` int(11) NULL DEFAULT NULL,
  1081. `USER_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1082. `TYPE_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1083. `KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1084. `VALUE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1085. `PASSWORD_` longblob NULL,
  1086. `PARENT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1087. PRIMARY KEY (`ID_`) USING BTREE
  1088. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1089. -- ----------------------------
  1090. -- Table structure for ACT_ID_MEMBERSHIP
  1091. -- ----------------------------
  1092. DROP TABLE IF EXISTS `ACT_ID_MEMBERSHIP`;
  1093. CREATE TABLE `ACT_ID_MEMBERSHIP` (
  1094. `USER_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1095. `GROUP_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1096. PRIMARY KEY (`USER_ID_`, `GROUP_ID_`) USING BTREE,
  1097. INDEX `ACT_FK_MEMB_GROUP`(`GROUP_ID_`) USING BTREE,
  1098. CONSTRAINT `ACT_FK_MEMB_GROUP` FOREIGN KEY (`GROUP_ID_`) REFERENCES `ACT_ID_GROUP` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1099. CONSTRAINT `ACT_FK_MEMB_USER` FOREIGN KEY (`USER_ID_`) REFERENCES `ACT_ID_USER` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1100. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1101. -- ----------------------------
  1102. -- Table structure for ACT_ID_PRIV
  1103. -- ----------------------------
  1104. DROP TABLE IF EXISTS `ACT_ID_PRIV`;
  1105. CREATE TABLE `ACT_ID_PRIV` (
  1106. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1107. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1108. PRIMARY KEY (`ID_`) USING BTREE,
  1109. UNIQUE INDEX `ACT_UNIQ_PRIV_NAME`(`NAME_`) USING BTREE
  1110. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1111. -- ----------------------------
  1112. -- Table structure for ACT_ID_PRIV_MAPPING
  1113. -- ----------------------------
  1114. DROP TABLE IF EXISTS `ACT_ID_PRIV_MAPPING`;
  1115. CREATE TABLE `ACT_ID_PRIV_MAPPING` (
  1116. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1117. `PRIV_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1118. `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1119. `GROUP_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1120. PRIMARY KEY (`ID_`) USING BTREE,
  1121. INDEX `ACT_FK_PRIV_MAPPING`(`PRIV_ID_`) USING BTREE,
  1122. INDEX `ACT_IDX_PRIV_USER`(`USER_ID_`) USING BTREE,
  1123. INDEX `ACT_IDX_PRIV_GROUP`(`GROUP_ID_`) USING BTREE,
  1124. CONSTRAINT `ACT_FK_PRIV_MAPPING` FOREIGN KEY (`PRIV_ID_`) REFERENCES `ACT_ID_PRIV` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1125. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1126. -- ----------------------------
  1127. -- Table structure for ACT_ID_PROPERTY
  1128. -- ----------------------------
  1129. DROP TABLE IF EXISTS `ACT_ID_PROPERTY`;
  1130. CREATE TABLE `ACT_ID_PROPERTY` (
  1131. `NAME_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1132. `VALUE_` varchar(300) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1133. `REV_` int(11) NULL DEFAULT NULL,
  1134. PRIMARY KEY (`NAME_`) USING BTREE
  1135. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1136. -- ----------------------------
  1137. -- Records of ACT_ID_PROPERTY
  1138. -- ----------------------------
  1139. BEGIN;
  1140. INSERT INTO `ACT_ID_PROPERTY` VALUES ('schema.version', '6.5.0.1', 1);
  1141. COMMIT;
  1142. -- ----------------------------
  1143. -- Table structure for ACT_ID_TOKEN
  1144. -- ----------------------------
  1145. DROP TABLE IF EXISTS `ACT_ID_TOKEN`;
  1146. CREATE TABLE `ACT_ID_TOKEN` (
  1147. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1148. `REV_` int(11) NULL DEFAULT NULL,
  1149. `TOKEN_VALUE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1150. `TOKEN_DATE_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3),
  1151. `IP_ADDRESS_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1152. `USER_AGENT_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1153. `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1154. `TOKEN_DATA_` varchar(2000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1155. PRIMARY KEY (`ID_`) USING BTREE
  1156. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1157. -- ----------------------------
  1158. -- Table structure for ACT_ID_USER
  1159. -- ----------------------------
  1160. DROP TABLE IF EXISTS `ACT_ID_USER`;
  1161. CREATE TABLE `ACT_ID_USER` (
  1162. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1163. `REV_` int(11) NULL DEFAULT NULL,
  1164. `FIRST_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1165. `LAST_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1166. `DISPLAY_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1167. `EMAIL_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1168. `PWD_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1169. `PICTURE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1170. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1171. PRIMARY KEY (`ID_`) USING BTREE
  1172. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1173. -- ----------------------------
  1174. -- Table structure for ACT_PROCDEF_INFO
  1175. -- ----------------------------
  1176. DROP TABLE IF EXISTS `ACT_PROCDEF_INFO`;
  1177. CREATE TABLE `ACT_PROCDEF_INFO` (
  1178. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1179. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1180. `REV_` int(11) NULL DEFAULT NULL,
  1181. `INFO_JSON_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1182. PRIMARY KEY (`ID_`) USING BTREE,
  1183. UNIQUE INDEX `ACT_UNIQ_INFO_PROCDEF`(`PROC_DEF_ID_`) USING BTREE,
  1184. INDEX `ACT_IDX_INFO_PROCDEF`(`PROC_DEF_ID_`) USING BTREE,
  1185. INDEX `ACT_FK_INFO_JSON_BA`(`INFO_JSON_ID_`) USING BTREE,
  1186. CONSTRAINT `ACT_FK_INFO_JSON_BA` FOREIGN KEY (`INFO_JSON_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1187. CONSTRAINT `ACT_FK_INFO_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1188. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1189. -- ----------------------------
  1190. -- Table structure for ACT_RE_DEPLOYMENT
  1191. -- ----------------------------
  1192. DROP TABLE IF EXISTS `ACT_RE_DEPLOYMENT`;
  1193. CREATE TABLE `ACT_RE_DEPLOYMENT` (
  1194. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1195. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1196. `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1197. `KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1198. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1199. `DEPLOY_TIME_` timestamp(3) NULL DEFAULT NULL,
  1200. `DERIVED_FROM_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1201. `DERIVED_FROM_ROOT_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1202. `PARENT_DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1203. `ENGINE_VERSION_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1204. PRIMARY KEY (`ID_`) USING BTREE
  1205. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1206. -- ----------------------------
  1207. -- Table structure for ACT_RE_MODEL
  1208. -- ----------------------------
  1209. DROP TABLE IF EXISTS `ACT_RE_MODEL`;
  1210. CREATE TABLE `ACT_RE_MODEL` (
  1211. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1212. `REV_` int(11) NULL DEFAULT NULL,
  1213. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1214. `KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1215. `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1216. `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  1217. `LAST_UPDATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  1218. `VERSION_` int(11) NULL DEFAULT NULL,
  1219. `META_INFO_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1220. `DEPLOYMENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1221. `EDITOR_SOURCE_VALUE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1222. `EDITOR_SOURCE_EXTRA_VALUE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1223. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1224. PRIMARY KEY (`ID_`) USING BTREE,
  1225. INDEX `ACT_FK_MODEL_SOURCE`(`EDITOR_SOURCE_VALUE_ID_`) USING BTREE,
  1226. INDEX `ACT_FK_MODEL_SOURCE_EXTRA`(`EDITOR_SOURCE_EXTRA_VALUE_ID_`) USING BTREE,
  1227. INDEX `ACT_FK_MODEL_DEPLOYMENT`(`DEPLOYMENT_ID_`) USING BTREE,
  1228. CONSTRAINT `ACT_FK_MODEL_DEPLOYMENT` FOREIGN KEY (`DEPLOYMENT_ID_`) REFERENCES `ACT_RE_DEPLOYMENT` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1229. CONSTRAINT `ACT_FK_MODEL_SOURCE` FOREIGN KEY (`EDITOR_SOURCE_VALUE_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1230. CONSTRAINT `ACT_FK_MODEL_SOURCE_EXTRA` FOREIGN KEY (`EDITOR_SOURCE_EXTRA_VALUE_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1231. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1232. -- ----------------------------
  1233. -- Table structure for ACT_RE_PROCDEF
  1234. -- ----------------------------
  1235. DROP TABLE IF EXISTS `ACT_RE_PROCDEF`;
  1236. CREATE TABLE `ACT_RE_PROCDEF` (
  1237. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1238. `REV_` int(11) NULL DEFAULT NULL,
  1239. `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1240. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1241. `KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1242. `VERSION_` int(11) NOT NULL,
  1243. `DEPLOYMENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1244. `RESOURCE_NAME_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1245. `DGRM_RESOURCE_NAME_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1246. `DESCRIPTION_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1247. `HAS_START_FORM_KEY_` tinyint(4) NULL DEFAULT NULL,
  1248. `HAS_GRAPHICAL_NOTATION_` tinyint(4) NULL DEFAULT NULL,
  1249. `SUSPENSION_STATE_` int(11) NULL DEFAULT NULL,
  1250. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1251. `ENGINE_VERSION_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1252. `DERIVED_FROM_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1253. `DERIVED_FROM_ROOT_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1254. `DERIVED_VERSION_` int(11) NOT NULL DEFAULT 0,
  1255. PRIMARY KEY (`ID_`) USING BTREE,
  1256. UNIQUE INDEX `ACT_UNIQ_PROCDEF`(`KEY_`, `VERSION_`, `DERIVED_VERSION_`, `TENANT_ID_`) USING BTREE
  1257. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1258. -- ----------------------------
  1259. -- Table structure for ACT_RU_ACTINST
  1260. -- ----------------------------
  1261. DROP TABLE IF EXISTS `ACT_RU_ACTINST`;
  1262. CREATE TABLE `ACT_RU_ACTINST` (
  1263. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1264. `REV_` int(11) NULL DEFAULT 1,
  1265. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1266. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1267. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1268. `ACT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1269. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1270. `CALL_PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1271. `ACT_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1272. `ACT_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1273. `ASSIGNEE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1274. `START_TIME_` datetime(3) NOT NULL,
  1275. `END_TIME_` datetime(3) NULL DEFAULT NULL,
  1276. `DURATION_` bigint(20) NULL DEFAULT NULL,
  1277. `DELETE_REASON_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1278. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1279. PRIMARY KEY (`ID_`) USING BTREE,
  1280. INDEX `ACT_IDX_RU_ACTI_START`(`START_TIME_`) USING BTREE,
  1281. INDEX `ACT_IDX_RU_ACTI_END`(`END_TIME_`) USING BTREE,
  1282. INDEX `ACT_IDX_RU_ACTI_PROC`(`PROC_INST_ID_`) USING BTREE,
  1283. INDEX `ACT_IDX_RU_ACTI_PROC_ACT`(`PROC_INST_ID_`, `ACT_ID_`) USING BTREE,
  1284. INDEX `ACT_IDX_RU_ACTI_EXEC`(`EXECUTION_ID_`) USING BTREE,
  1285. INDEX `ACT_IDX_RU_ACTI_EXEC_ACT`(`EXECUTION_ID_`, `ACT_ID_`) USING BTREE
  1286. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1287. -- ----------------------------
  1288. -- Table structure for ACT_RU_DEADLETTER_JOB
  1289. -- ----------------------------
  1290. DROP TABLE IF EXISTS `ACT_RU_DEADLETTER_JOB`;
  1291. CREATE TABLE `ACT_RU_DEADLETTER_JOB` (
  1292. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1293. `REV_` int(11) NULL DEFAULT NULL,
  1294. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1295. `EXCLUSIVE_` tinyint(1) NULL DEFAULT NULL,
  1296. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1297. `PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1298. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1299. `ELEMENT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1300. `ELEMENT_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1301. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1302. `SUB_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1303. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1304. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1305. `EXCEPTION_STACK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1306. `EXCEPTION_MSG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1307. `DUEDATE_` timestamp(3) NULL DEFAULT NULL,
  1308. `REPEAT_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1309. `HANDLER_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1310. `HANDLER_CFG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1311. `CUSTOM_VALUES_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1312. `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  1313. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1314. PRIMARY KEY (`ID_`) USING BTREE,
  1315. INDEX `ACT_IDX_DEADLETTER_JOB_EXCEPTION_STACK_ID`(`EXCEPTION_STACK_ID_`) USING BTREE,
  1316. INDEX `ACT_IDX_DEADLETTER_JOB_CUSTOM_VALUES_ID`(`CUSTOM_VALUES_ID_`) USING BTREE,
  1317. INDEX `ACT_IDX_DJOB_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1318. INDEX `ACT_IDX_DJOB_SUB_SCOPE`(`SUB_SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1319. INDEX `ACT_IDX_DJOB_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1320. INDEX `ACT_FK_DEADLETTER_JOB_EXECUTION`(`EXECUTION_ID_`) USING BTREE,
  1321. INDEX `ACT_FK_DEADLETTER_JOB_PROCESS_INSTANCE`(`PROCESS_INSTANCE_ID_`) USING BTREE,
  1322. INDEX `ACT_FK_DEADLETTER_JOB_PROC_DEF`(`PROC_DEF_ID_`) USING BTREE,
  1323. CONSTRAINT `ACT_FK_DEADLETTER_JOB_CUSTOM_VALUES` FOREIGN KEY (`CUSTOM_VALUES_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1324. CONSTRAINT `ACT_FK_DEADLETTER_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1325. CONSTRAINT `ACT_FK_DEADLETTER_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1326. CONSTRAINT `ACT_FK_DEADLETTER_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1327. CONSTRAINT `ACT_FK_DEADLETTER_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1328. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1329. -- ----------------------------
  1330. -- Table structure for ACT_RU_ENTITYLINK
  1331. -- ----------------------------
  1332. DROP TABLE IF EXISTS `ACT_RU_ENTITYLINK`;
  1333. CREATE TABLE `ACT_RU_ENTITYLINK` (
  1334. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1335. `REV_` int(11) NULL DEFAULT NULL,
  1336. `CREATE_TIME_` datetime(3) NULL DEFAULT NULL,
  1337. `LINK_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1338. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1339. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1340. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1341. `REF_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1342. `REF_SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1343. `REF_SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1344. `HIERARCHY_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1345. PRIMARY KEY (`ID_`) USING BTREE,
  1346. INDEX `ACT_IDX_ENT_LNK_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`, `LINK_TYPE_`) USING BTREE,
  1347. INDEX `ACT_IDX_ENT_LNK_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`, `LINK_TYPE_`) USING BTREE
  1348. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1349. -- ----------------------------
  1350. -- Table structure for ACT_RU_EVENT_SUBSCR
  1351. -- ----------------------------
  1352. DROP TABLE IF EXISTS `ACT_RU_EVENT_SUBSCR`;
  1353. CREATE TABLE `ACT_RU_EVENT_SUBSCR` (
  1354. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1355. `REV_` int(11) NULL DEFAULT NULL,
  1356. `EVENT_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1357. `EVENT_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1358. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1359. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1360. `ACTIVITY_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1361. `CONFIGURATION_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1362. `CREATED_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  1363. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1364. `SUB_SCOPE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1365. `SCOPE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1366. `SCOPE_DEFINITION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1367. `SCOPE_TYPE_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1368. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1369. PRIMARY KEY (`ID_`) USING BTREE,
  1370. INDEX `ACT_IDX_EVENT_SUBSCR_CONFIG_`(`CONFIGURATION_`) USING BTREE,
  1371. INDEX `ACT_FK_EVENT_EXEC`(`EXECUTION_ID_`) USING BTREE,
  1372. CONSTRAINT `ACT_FK_EVENT_EXEC` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1373. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1374. -- ----------------------------
  1375. -- Table structure for ACT_RU_EXECUTION
  1376. -- ----------------------------
  1377. DROP TABLE IF EXISTS `ACT_RU_EXECUTION`;
  1378. CREATE TABLE `ACT_RU_EXECUTION` (
  1379. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1380. `REV_` int(11) NULL DEFAULT NULL,
  1381. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1382. `BUSINESS_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1383. `PARENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1384. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1385. `SUPER_EXEC_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1386. `ROOT_PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1387. `ACT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1388. `IS_ACTIVE_` tinyint(4) NULL DEFAULT NULL,
  1389. `IS_CONCURRENT_` tinyint(4) NULL DEFAULT NULL,
  1390. `IS_SCOPE_` tinyint(4) NULL DEFAULT NULL,
  1391. `IS_EVENT_SCOPE_` tinyint(4) NULL DEFAULT NULL,
  1392. `IS_MI_ROOT_` tinyint(4) NULL DEFAULT NULL,
  1393. `SUSPENSION_STATE_` int(11) NULL DEFAULT NULL,
  1394. `CACHED_ENT_STATE_` int(11) NULL DEFAULT NULL,
  1395. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1396. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1397. `START_ACT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1398. `START_TIME_` datetime(3) NULL DEFAULT NULL,
  1399. `START_USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1400. `LOCK_TIME_` timestamp(3) NULL DEFAULT NULL,
  1401. `IS_COUNT_ENABLED_` tinyint(4) NULL DEFAULT NULL,
  1402. `EVT_SUBSCR_COUNT_` int(11) NULL DEFAULT NULL,
  1403. `TASK_COUNT_` int(11) NULL DEFAULT NULL,
  1404. `JOB_COUNT_` int(11) NULL DEFAULT NULL,
  1405. `TIMER_JOB_COUNT_` int(11) NULL DEFAULT NULL,
  1406. `SUSP_JOB_COUNT_` int(11) NULL DEFAULT NULL,
  1407. `DEADLETTER_JOB_COUNT_` int(11) NULL DEFAULT NULL,
  1408. `VAR_COUNT_` int(11) NULL DEFAULT NULL,
  1409. `ID_LINK_COUNT_` int(11) NULL DEFAULT NULL,
  1410. `CALLBACK_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1411. `CALLBACK_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1412. PRIMARY KEY (`ID_`) USING BTREE,
  1413. INDEX `ACT_IDX_EXEC_BUSKEY`(`BUSINESS_KEY_`) USING BTREE,
  1414. INDEX `ACT_IDC_EXEC_ROOT`(`ROOT_PROC_INST_ID_`) USING BTREE,
  1415. INDEX `ACT_FK_EXE_PROCINST`(`PROC_INST_ID_`) USING BTREE,
  1416. INDEX `ACT_FK_EXE_PARENT`(`PARENT_ID_`) USING BTREE,
  1417. INDEX `ACT_FK_EXE_SUPER`(`SUPER_EXEC_`) USING BTREE,
  1418. INDEX `ACT_FK_EXE_PROCDEF`(`PROC_DEF_ID_`) USING BTREE,
  1419. CONSTRAINT `ACT_FK_EXE_PARENT` FOREIGN KEY (`PARENT_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE CASCADE ON UPDATE RESTRICT,
  1420. CONSTRAINT `ACT_FK_EXE_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1421. CONSTRAINT `ACT_FK_EXE_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE CASCADE ON UPDATE CASCADE,
  1422. CONSTRAINT `ACT_FK_EXE_SUPER` FOREIGN KEY (`SUPER_EXEC_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE CASCADE ON UPDATE RESTRICT
  1423. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1424. -- ----------------------------
  1425. -- Table structure for ACT_RU_HISTORY_JOB
  1426. -- ----------------------------
  1427. DROP TABLE IF EXISTS `ACT_RU_HISTORY_JOB`;
  1428. CREATE TABLE `ACT_RU_HISTORY_JOB` (
  1429. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1430. `REV_` int(11) NULL DEFAULT NULL,
  1431. `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL,
  1432. `LOCK_OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1433. `RETRIES_` int(11) NULL DEFAULT NULL,
  1434. `EXCEPTION_STACK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1435. `EXCEPTION_MSG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1436. `HANDLER_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1437. `HANDLER_CFG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1438. `CUSTOM_VALUES_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1439. `ADV_HANDLER_CFG_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1440. `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  1441. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1442. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1443. PRIMARY KEY (`ID_`) USING BTREE
  1444. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1445. -- ----------------------------
  1446. -- Table structure for ACT_RU_IDENTITYLINK
  1447. -- ----------------------------
  1448. DROP TABLE IF EXISTS `ACT_RU_IDENTITYLINK`;
  1449. CREATE TABLE `ACT_RU_IDENTITYLINK` (
  1450. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1451. `REV_` int(11) NULL DEFAULT NULL,
  1452. `GROUP_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1453. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1454. `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1455. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1456. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1457. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1458. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1459. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1460. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1461. PRIMARY KEY (`ID_`) USING BTREE,
  1462. INDEX `ACT_IDX_IDENT_LNK_USER`(`USER_ID_`) USING BTREE,
  1463. INDEX `ACT_IDX_IDENT_LNK_GROUP`(`GROUP_ID_`) USING BTREE,
  1464. INDEX `ACT_IDX_IDENT_LNK_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1465. INDEX `ACT_IDX_IDENT_LNK_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1466. INDEX `ACT_IDX_ATHRZ_PROCEDEF`(`PROC_DEF_ID_`) USING BTREE,
  1467. INDEX `ACT_FK_TSKASS_TASK`(`TASK_ID_`) USING BTREE,
  1468. INDEX `ACT_FK_IDL_PROCINST`(`PROC_INST_ID_`) USING BTREE,
  1469. CONSTRAINT `ACT_FK_ATHRZ_PROCEDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1470. CONSTRAINT `ACT_FK_IDL_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1471. CONSTRAINT `ACT_FK_TSKASS_TASK` FOREIGN KEY (`TASK_ID_`) REFERENCES `ACT_RU_TASK` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1472. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1473. -- ----------------------------
  1474. -- Table structure for ACT_RU_JOB
  1475. -- ----------------------------
  1476. DROP TABLE IF EXISTS `ACT_RU_JOB`;
  1477. CREATE TABLE `ACT_RU_JOB` (
  1478. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1479. `REV_` int(11) NULL DEFAULT NULL,
  1480. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1481. `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL,
  1482. `LOCK_OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1483. `EXCLUSIVE_` tinyint(1) NULL DEFAULT NULL,
  1484. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1485. `PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1486. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1487. `ELEMENT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1488. `ELEMENT_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1489. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1490. `SUB_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1491. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1492. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1493. `RETRIES_` int(11) NULL DEFAULT NULL,
  1494. `EXCEPTION_STACK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1495. `EXCEPTION_MSG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1496. `DUEDATE_` timestamp(3) NULL DEFAULT NULL,
  1497. `REPEAT_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1498. `HANDLER_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1499. `HANDLER_CFG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1500. `CUSTOM_VALUES_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1501. `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  1502. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1503. PRIMARY KEY (`ID_`) USING BTREE,
  1504. INDEX `ACT_IDX_JOB_EXCEPTION_STACK_ID`(`EXCEPTION_STACK_ID_`) USING BTREE,
  1505. INDEX `ACT_IDX_JOB_CUSTOM_VALUES_ID`(`CUSTOM_VALUES_ID_`) USING BTREE,
  1506. INDEX `ACT_IDX_JOB_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1507. INDEX `ACT_IDX_JOB_SUB_SCOPE`(`SUB_SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1508. INDEX `ACT_IDX_JOB_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1509. INDEX `ACT_FK_JOB_EXECUTION`(`EXECUTION_ID_`) USING BTREE,
  1510. INDEX `ACT_FK_JOB_PROCESS_INSTANCE`(`PROCESS_INSTANCE_ID_`) USING BTREE,
  1511. INDEX `ACT_FK_JOB_PROC_DEF`(`PROC_DEF_ID_`) USING BTREE,
  1512. CONSTRAINT `ACT_FK_JOB_CUSTOM_VALUES` FOREIGN KEY (`CUSTOM_VALUES_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1513. CONSTRAINT `ACT_FK_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1514. CONSTRAINT `ACT_FK_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1515. CONSTRAINT `ACT_FK_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1516. CONSTRAINT `ACT_FK_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1517. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1518. -- ----------------------------
  1519. -- Table structure for ACT_RU_SUSPENDED_JOB
  1520. -- ----------------------------
  1521. DROP TABLE IF EXISTS `ACT_RU_SUSPENDED_JOB`;
  1522. CREATE TABLE `ACT_RU_SUSPENDED_JOB` (
  1523. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1524. `REV_` int(11) NULL DEFAULT NULL,
  1525. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1526. `EXCLUSIVE_` tinyint(1) NULL DEFAULT NULL,
  1527. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1528. `PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1529. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1530. `ELEMENT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1531. `ELEMENT_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1532. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1533. `SUB_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1534. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1535. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1536. `RETRIES_` int(11) NULL DEFAULT NULL,
  1537. `EXCEPTION_STACK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1538. `EXCEPTION_MSG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1539. `DUEDATE_` timestamp(3) NULL DEFAULT NULL,
  1540. `REPEAT_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1541. `HANDLER_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1542. `HANDLER_CFG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1543. `CUSTOM_VALUES_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1544. `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  1545. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1546. PRIMARY KEY (`ID_`) USING BTREE,
  1547. INDEX `ACT_IDX_SUSPENDED_JOB_EXCEPTION_STACK_ID`(`EXCEPTION_STACK_ID_`) USING BTREE,
  1548. INDEX `ACT_IDX_SUSPENDED_JOB_CUSTOM_VALUES_ID`(`CUSTOM_VALUES_ID_`) USING BTREE,
  1549. INDEX `ACT_IDX_SJOB_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1550. INDEX `ACT_IDX_SJOB_SUB_SCOPE`(`SUB_SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1551. INDEX `ACT_IDX_SJOB_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1552. INDEX `ACT_FK_SUSPENDED_JOB_EXECUTION`(`EXECUTION_ID_`) USING BTREE,
  1553. INDEX `ACT_FK_SUSPENDED_JOB_PROCESS_INSTANCE`(`PROCESS_INSTANCE_ID_`) USING BTREE,
  1554. INDEX `ACT_FK_SUSPENDED_JOB_PROC_DEF`(`PROC_DEF_ID_`) USING BTREE,
  1555. CONSTRAINT `ACT_FK_SUSPENDED_JOB_CUSTOM_VALUES` FOREIGN KEY (`CUSTOM_VALUES_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1556. CONSTRAINT `ACT_FK_SUSPENDED_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1557. CONSTRAINT `ACT_FK_SUSPENDED_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1558. CONSTRAINT `ACT_FK_SUSPENDED_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1559. CONSTRAINT `ACT_FK_SUSPENDED_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1560. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1561. -- ----------------------------
  1562. -- Table structure for ACT_RU_TASK
  1563. -- ----------------------------
  1564. DROP TABLE IF EXISTS `ACT_RU_TASK`;
  1565. CREATE TABLE `ACT_RU_TASK` (
  1566. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1567. `REV_` int(11) NULL DEFAULT NULL,
  1568. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1569. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1570. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1571. `TASK_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1572. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1573. `SUB_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1574. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1575. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1576. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1577. `PARENT_TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1578. `DESCRIPTION_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1579. `TASK_DEF_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1580. `OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1581. `ASSIGNEE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1582. `DELEGATION_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1583. `PRIORITY_` int(11) NULL DEFAULT NULL,
  1584. `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  1585. `DUE_DATE_` datetime(3) NULL DEFAULT NULL,
  1586. `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1587. `SUSPENSION_STATE_` int(11) NULL DEFAULT NULL,
  1588. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1589. `FORM_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1590. `CLAIM_TIME_` datetime(3) NULL DEFAULT NULL,
  1591. `IS_COUNT_ENABLED_` tinyint(4) NULL DEFAULT NULL,
  1592. `VAR_COUNT_` int(11) NULL DEFAULT NULL,
  1593. `ID_LINK_COUNT_` int(11) NULL DEFAULT NULL,
  1594. `SUB_TASK_COUNT_` int(11) NULL DEFAULT NULL,
  1595. PRIMARY KEY (`ID_`) USING BTREE,
  1596. INDEX `ACT_IDX_TASK_CREATE`(`CREATE_TIME_`) USING BTREE,
  1597. INDEX `ACT_IDX_TASK_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1598. INDEX `ACT_IDX_TASK_SUB_SCOPE`(`SUB_SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1599. INDEX `ACT_IDX_TASK_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1600. INDEX `ACT_FK_TASK_EXE`(`EXECUTION_ID_`) USING BTREE,
  1601. INDEX `ACT_FK_TASK_PROCINST`(`PROC_INST_ID_`) USING BTREE,
  1602. INDEX `ACT_FK_TASK_PROCDEF`(`PROC_DEF_ID_`) USING BTREE,
  1603. CONSTRAINT `ACT_FK_TASK_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1604. CONSTRAINT `ACT_FK_TASK_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1605. CONSTRAINT `ACT_FK_TASK_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1606. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1607. -- ----------------------------
  1608. -- Table structure for ACT_RU_TIMER_JOB
  1609. -- ----------------------------
  1610. DROP TABLE IF EXISTS `ACT_RU_TIMER_JOB`;
  1611. CREATE TABLE `ACT_RU_TIMER_JOB` (
  1612. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1613. `REV_` int(11) NULL DEFAULT NULL,
  1614. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1615. `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL,
  1616. `LOCK_OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1617. `EXCLUSIVE_` tinyint(1) NULL DEFAULT NULL,
  1618. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1619. `PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1620. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1621. `ELEMENT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1622. `ELEMENT_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1623. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1624. `SUB_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1625. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1626. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1627. `RETRIES_` int(11) NULL DEFAULT NULL,
  1628. `EXCEPTION_STACK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1629. `EXCEPTION_MSG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1630. `DUEDATE_` timestamp(3) NULL DEFAULT NULL,
  1631. `REPEAT_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1632. `HANDLER_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1633. `HANDLER_CFG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1634. `CUSTOM_VALUES_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1635. `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  1636. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1637. PRIMARY KEY (`ID_`) USING BTREE,
  1638. INDEX `ACT_IDX_TIMER_JOB_EXCEPTION_STACK_ID`(`EXCEPTION_STACK_ID_`) USING BTREE,
  1639. INDEX `ACT_IDX_TIMER_JOB_CUSTOM_VALUES_ID`(`CUSTOM_VALUES_ID_`) USING BTREE,
  1640. INDEX `ACT_IDX_TJOB_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1641. INDEX `ACT_IDX_TJOB_SUB_SCOPE`(`SUB_SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1642. INDEX `ACT_IDX_TJOB_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1643. INDEX `ACT_FK_TIMER_JOB_EXECUTION`(`EXECUTION_ID_`) USING BTREE,
  1644. INDEX `ACT_FK_TIMER_JOB_PROCESS_INSTANCE`(`PROCESS_INSTANCE_ID_`) USING BTREE,
  1645. INDEX `ACT_FK_TIMER_JOB_PROC_DEF`(`PROC_DEF_ID_`) USING BTREE,
  1646. CONSTRAINT `ACT_FK_TIMER_JOB_CUSTOM_VALUES` FOREIGN KEY (`CUSTOM_VALUES_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1647. CONSTRAINT `ACT_FK_TIMER_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1648. CONSTRAINT `ACT_FK_TIMER_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1649. CONSTRAINT `ACT_FK_TIMER_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1650. CONSTRAINT `ACT_FK_TIMER_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1651. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1652. -- ----------------------------
  1653. -- Table structure for ACT_RU_VARIABLE
  1654. -- ----------------------------
  1655. DROP TABLE IF EXISTS `ACT_RU_VARIABLE`;
  1656. CREATE TABLE `ACT_RU_VARIABLE` (
  1657. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1658. `REV_` int(11) NULL DEFAULT NULL,
  1659. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1660. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1661. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1662. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1663. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1664. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1665. `SUB_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1666. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1667. `BYTEARRAY_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1668. `DOUBLE_` double NULL DEFAULT NULL,
  1669. `LONG_` bigint(20) NULL DEFAULT NULL,
  1670. `TEXT_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1671. `TEXT2_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1672. PRIMARY KEY (`ID_`) USING BTREE,
  1673. INDEX `ACT_IDX_RU_VAR_SCOPE_ID_TYPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1674. INDEX `ACT_IDX_RU_VAR_SUB_ID_TYPE`(`SUB_SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1675. INDEX `ACT_FK_VAR_BYTEARRAY`(`BYTEARRAY_ID_`) USING BTREE,
  1676. INDEX `ACT_IDX_VARIABLE_TASK_ID`(`TASK_ID_`) USING BTREE,
  1677. INDEX `ACT_FK_VAR_EXE`(`EXECUTION_ID_`) USING BTREE,
  1678. INDEX `ACT_FK_VAR_PROCINST`(`PROC_INST_ID_`) USING BTREE,
  1679. CONSTRAINT `ACT_FK_VAR_BYTEARRAY` FOREIGN KEY (`BYTEARRAY_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1680. CONSTRAINT `ACT_FK_VAR_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1681. CONSTRAINT `ACT_FK_VAR_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1682. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1683. SET FOREIGN_KEY_CHECKS = 1;