bladex-flowable-mysql.sql 114 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775
  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: 01/08/2019 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. `thumbnail` longblob NULL,
  506. `model_type` int(11) NULL DEFAULT NULL,
  507. `tenant_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  508. PRIMARY KEY (`id`) USING BTREE,
  509. INDEX `idx_proc_mod_created`(`created_by`) USING BTREE
  510. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  511. -- ----------------------------
  512. -- Table structure for ACT_DE_MODEL_HISTORY
  513. -- ----------------------------
  514. DROP TABLE IF EXISTS `ACT_DE_MODEL_HISTORY`;
  515. CREATE TABLE `ACT_DE_MODEL_HISTORY` (
  516. `id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  517. `name` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  518. `model_key` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  519. `description` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  520. `model_comment` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  521. `created` datetime(6) NULL DEFAULT NULL,
  522. `created_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  523. `last_updated` datetime(6) NULL DEFAULT NULL,
  524. `last_updated_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  525. `removal_date` datetime(6) NULL DEFAULT NULL,
  526. `version` int(11) NULL DEFAULT NULL,
  527. `model_editor_json` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
  528. `model_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  529. `model_type` int(11) NULL DEFAULT NULL,
  530. `tenant_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  531. PRIMARY KEY (`id`) USING BTREE,
  532. INDEX `idx_proc_mod_history_proc`(`model_id`) USING BTREE
  533. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  534. -- ----------------------------
  535. -- Table structure for ACT_DE_MODEL_RELATION
  536. -- ----------------------------
  537. DROP TABLE IF EXISTS `ACT_DE_MODEL_RELATION`;
  538. CREATE TABLE `ACT_DE_MODEL_RELATION` (
  539. `id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  540. `parent_model_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  541. `model_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  542. `relation_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  543. PRIMARY KEY (`id`) USING BTREE,
  544. INDEX `fk_relation_parent`(`parent_model_id`) USING BTREE,
  545. INDEX `fk_relation_child`(`model_id`) USING BTREE,
  546. CONSTRAINT `fk_relation_child` FOREIGN KEY (`model_id`) REFERENCES `ACT_DE_MODEL` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  547. CONSTRAINT `fk_relation_parent` FOREIGN KEY (`parent_model_id`) REFERENCES `ACT_DE_MODEL` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
  548. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  549. -- ----------------------------
  550. -- Table structure for ACT_DMN_DATABASECHANGELOG
  551. -- ----------------------------
  552. DROP TABLE IF EXISTS `ACT_DMN_DATABASECHANGELOG`;
  553. CREATE TABLE `ACT_DMN_DATABASECHANGELOG` (
  554. `ID` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  555. `AUTHOR` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  556. `FILENAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  557. `DATEEXECUTED` datetime(0) NOT NULL,
  558. `ORDEREXECUTED` int(11) NOT NULL,
  559. `EXECTYPE` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  560. `MD5SUM` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  561. `DESCRIPTION` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  562. `COMMENTS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  563. `TAG` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  564. `LIQUIBASE` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  565. `CONTEXTS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  566. `LABELS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  567. `DEPLOYMENT_ID` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL
  568. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  569. -- ----------------------------
  570. -- Records of ACT_DMN_DATABASECHANGELOG
  571. -- ----------------------------
  572. BEGIN;
  573. 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');
  574. COMMIT;
  575. -- ----------------------------
  576. -- Table structure for ACT_DMN_DATABASECHANGELOGLOCK
  577. -- ----------------------------
  578. DROP TABLE IF EXISTS `ACT_DMN_DATABASECHANGELOGLOCK`;
  579. CREATE TABLE `ACT_DMN_DATABASECHANGELOGLOCK` (
  580. `ID` int(11) NOT NULL,
  581. `LOCKED` bit(1) NOT NULL,
  582. `LOCKGRANTED` datetime(0) NULL DEFAULT NULL,
  583. `LOCKEDBY` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  584. PRIMARY KEY (`ID`) USING BTREE
  585. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  586. -- ----------------------------
  587. -- Records of ACT_DMN_DATABASECHANGELOGLOCK
  588. -- ----------------------------
  589. BEGIN;
  590. INSERT INTO `ACT_DMN_DATABASECHANGELOGLOCK` VALUES (1, b'0', NULL, NULL);
  591. COMMIT;
  592. -- ----------------------------
  593. -- Table structure for ACT_DMN_DECISION_TABLE
  594. -- ----------------------------
  595. DROP TABLE IF EXISTS `ACT_DMN_DECISION_TABLE`;
  596. CREATE TABLE `ACT_DMN_DECISION_TABLE` (
  597. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  598. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  599. `VERSION_` int(11) NULL DEFAULT NULL,
  600. `KEY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  601. `CATEGORY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  602. `DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  603. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  604. `RESOURCE_NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  605. `DESCRIPTION_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  606. PRIMARY KEY (`ID_`) USING BTREE,
  607. UNIQUE INDEX `ACT_IDX_DEC_TBL_UNIQ`(`KEY_`, `VERSION_`, `TENANT_ID_`) USING BTREE
  608. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  609. -- ----------------------------
  610. -- Table structure for ACT_DMN_DEPLOYMENT
  611. -- ----------------------------
  612. DROP TABLE IF EXISTS `ACT_DMN_DEPLOYMENT`;
  613. CREATE TABLE `ACT_DMN_DEPLOYMENT` (
  614. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  615. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  616. `CATEGORY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  617. `DEPLOY_TIME_` datetime(3) NULL DEFAULT NULL,
  618. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  619. `PARENT_DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  620. PRIMARY KEY (`ID_`) USING BTREE
  621. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  622. -- ----------------------------
  623. -- Table structure for ACT_DMN_DEPLOYMENT_RESOURCE
  624. -- ----------------------------
  625. DROP TABLE IF EXISTS `ACT_DMN_DEPLOYMENT_RESOURCE`;
  626. CREATE TABLE `ACT_DMN_DEPLOYMENT_RESOURCE` (
  627. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  628. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  629. `DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  630. `RESOURCE_BYTES_` longblob NULL,
  631. PRIMARY KEY (`ID_`) USING BTREE
  632. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  633. -- ----------------------------
  634. -- Table structure for ACT_DMN_HI_DECISION_EXECUTION
  635. -- ----------------------------
  636. DROP TABLE IF EXISTS `ACT_DMN_HI_DECISION_EXECUTION`;
  637. CREATE TABLE `ACT_DMN_HI_DECISION_EXECUTION` (
  638. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  639. `DECISION_DEFINITION_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  640. `DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  641. `START_TIME_` datetime(3) NULL DEFAULT NULL,
  642. `END_TIME_` datetime(3) NULL DEFAULT NULL,
  643. `INSTANCE_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  644. `EXECUTION_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  645. `ACTIVITY_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  646. `FAILED_` bit(1) NULL DEFAULT b'0',
  647. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  648. `EXECUTION_JSON_` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
  649. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  650. PRIMARY KEY (`ID_`) USING BTREE
  651. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  652. -- ----------------------------
  653. -- Table structure for ACT_EVT_LOG
  654. -- ----------------------------
  655. DROP TABLE IF EXISTS `ACT_EVT_LOG`;
  656. CREATE TABLE `ACT_EVT_LOG` (
  657. `LOG_NR_` bigint(20) NOT NULL AUTO_INCREMENT,
  658. `TYPE_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  659. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  660. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  661. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  662. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  663. `TIME_STAMP_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3),
  664. `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  665. `DATA_` longblob NULL,
  666. `LOCK_OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  667. `LOCK_TIME_` timestamp(3) NULL DEFAULT NULL,
  668. `IS_PROCESSED_` tinyint(4) NULL DEFAULT 0,
  669. PRIMARY KEY (`LOG_NR_`) USING BTREE
  670. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin;
  671. -- ----------------------------
  672. -- Table structure for ACT_FO_DATABASECHANGELOG
  673. -- ----------------------------
  674. DROP TABLE IF EXISTS `ACT_FO_DATABASECHANGELOG`;
  675. CREATE TABLE `ACT_FO_DATABASECHANGELOG` (
  676. `ID` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  677. `AUTHOR` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  678. `FILENAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  679. `DATEEXECUTED` datetime(0) NOT NULL,
  680. `ORDEREXECUTED` int(11) NOT NULL,
  681. `EXECTYPE` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  682. `MD5SUM` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  683. `DESCRIPTION` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  684. `COMMENTS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  685. `TAG` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  686. `LIQUIBASE` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  687. `CONTEXTS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  688. `LABELS` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  689. `DEPLOYMENT_ID` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL
  690. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  691. -- ----------------------------
  692. -- Records of ACT_FO_DATABASECHANGELOG
  693. -- ----------------------------
  694. BEGIN;
  695. 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');
  696. COMMIT;
  697. -- ----------------------------
  698. -- Table structure for ACT_FO_DATABASECHANGELOGLOCK
  699. -- ----------------------------
  700. DROP TABLE IF EXISTS `ACT_FO_DATABASECHANGELOGLOCK`;
  701. CREATE TABLE `ACT_FO_DATABASECHANGELOGLOCK` (
  702. `ID` int(11) NOT NULL,
  703. `LOCKED` bit(1) NOT NULL,
  704. `LOCKGRANTED` datetime(0) NULL DEFAULT NULL,
  705. `LOCKEDBY` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  706. PRIMARY KEY (`ID`) USING BTREE
  707. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  708. -- ----------------------------
  709. -- Records of ACT_FO_DATABASECHANGELOGLOCK
  710. -- ----------------------------
  711. BEGIN;
  712. INSERT INTO `ACT_FO_DATABASECHANGELOGLOCK` VALUES (1, b'0', NULL, NULL);
  713. COMMIT;
  714. -- ----------------------------
  715. -- Table structure for ACT_FO_FORM_DEFINITION
  716. -- ----------------------------
  717. DROP TABLE IF EXISTS `ACT_FO_FORM_DEFINITION`;
  718. CREATE TABLE `ACT_FO_FORM_DEFINITION` (
  719. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  720. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  721. `VERSION_` int(11) NULL DEFAULT NULL,
  722. `KEY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  723. `CATEGORY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  724. `DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  725. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  726. `RESOURCE_NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  727. `DESCRIPTION_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  728. PRIMARY KEY (`ID_`) USING BTREE,
  729. UNIQUE INDEX `ACT_IDX_FORM_DEF_UNIQ`(`KEY_`, `VERSION_`, `TENANT_ID_`) USING BTREE
  730. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  731. -- ----------------------------
  732. -- Table structure for ACT_FO_FORM_DEPLOYMENT
  733. -- ----------------------------
  734. DROP TABLE IF EXISTS `ACT_FO_FORM_DEPLOYMENT`;
  735. CREATE TABLE `ACT_FO_FORM_DEPLOYMENT` (
  736. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  737. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  738. `CATEGORY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  739. `DEPLOY_TIME_` datetime(3) NULL DEFAULT NULL,
  740. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  741. `PARENT_DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  742. PRIMARY KEY (`ID_`) USING BTREE
  743. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  744. -- ----------------------------
  745. -- Table structure for ACT_FO_FORM_INSTANCE
  746. -- ----------------------------
  747. DROP TABLE IF EXISTS `ACT_FO_FORM_INSTANCE`;
  748. CREATE TABLE `ACT_FO_FORM_INSTANCE` (
  749. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  750. `FORM_DEFINITION_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  751. `TASK_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  752. `PROC_INST_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  753. `PROC_DEF_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  754. `SUBMITTED_DATE_` datetime(3) NULL DEFAULT NULL,
  755. `SUBMITTED_BY_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  756. `FORM_VALUES_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  757. `TENANT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  758. `SCOPE_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  759. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  760. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  761. PRIMARY KEY (`ID_`) USING BTREE
  762. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  763. -- ----------------------------
  764. -- Table structure for ACT_FO_FORM_RESOURCE
  765. -- ----------------------------
  766. DROP TABLE IF EXISTS `ACT_FO_FORM_RESOURCE`;
  767. CREATE TABLE `ACT_FO_FORM_RESOURCE` (
  768. `ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  769. `NAME_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  770. `DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  771. `RESOURCE_BYTES_` longblob NULL,
  772. PRIMARY KEY (`ID_`) USING BTREE
  773. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
  774. -- ----------------------------
  775. -- Table structure for ACT_GE_BYTEARRAY
  776. -- ----------------------------
  777. DROP TABLE IF EXISTS `ACT_GE_BYTEARRAY`;
  778. CREATE TABLE `ACT_GE_BYTEARRAY` (
  779. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  780. `REV_` int(11) NULL DEFAULT NULL,
  781. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  782. `DEPLOYMENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  783. `BYTES_` longblob NULL,
  784. `GENERATED_` tinyint(4) NULL DEFAULT NULL,
  785. PRIMARY KEY (`ID_`) USING BTREE,
  786. INDEX `ACT_FK_BYTEARR_DEPL`(`DEPLOYMENT_ID_`) USING BTREE,
  787. CONSTRAINT `ACT_FK_BYTEARR_DEPL` FOREIGN KEY (`DEPLOYMENT_ID_`) REFERENCES `ACT_RE_DEPLOYMENT` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  788. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  789. -- ----------------------------
  790. -- Table structure for ACT_GE_PROPERTY
  791. -- ----------------------------
  792. DROP TABLE IF EXISTS `ACT_GE_PROPERTY`;
  793. CREATE TABLE `ACT_GE_PROPERTY` (
  794. `NAME_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  795. `VALUE_` varchar(300) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  796. `REV_` int(11) NULL DEFAULT NULL,
  797. PRIMARY KEY (`NAME_`) USING BTREE
  798. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  799. -- ----------------------------
  800. -- Records of ACT_GE_PROPERTY
  801. -- ----------------------------
  802. BEGIN;
  803. 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);
  804. COMMIT;
  805. -- ----------------------------
  806. -- Table structure for ACT_HI_ACTINST
  807. -- ----------------------------
  808. DROP TABLE IF EXISTS `ACT_HI_ACTINST`;
  809. CREATE TABLE `ACT_HI_ACTINST` (
  810. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  811. `REV_` int(11) NULL DEFAULT 1,
  812. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  813. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  814. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  815. `ACT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  816. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  817. `CALL_PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  818. `ACT_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  819. `ACT_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  820. `ASSIGNEE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  821. `START_TIME_` datetime(3) NOT NULL,
  822. `END_TIME_` datetime(3) NULL DEFAULT NULL,
  823. `DURATION_` bigint(20) NULL DEFAULT NULL,
  824. `DELETE_REASON_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  825. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  826. PRIMARY KEY (`ID_`) USING BTREE,
  827. INDEX `ACT_IDX_HI_ACT_INST_START`(`START_TIME_`) USING BTREE,
  828. INDEX `ACT_IDX_HI_ACT_INST_END`(`END_TIME_`) USING BTREE,
  829. INDEX `ACT_IDX_HI_ACT_INST_PROCINST`(`PROC_INST_ID_`, `ACT_ID_`) USING BTREE,
  830. INDEX `ACT_IDX_HI_ACT_INST_EXEC`(`EXECUTION_ID_`, `ACT_ID_`) USING BTREE
  831. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  832. -- ----------------------------
  833. -- Table structure for ACT_HI_ATTACHMENT
  834. -- ----------------------------
  835. DROP TABLE IF EXISTS `ACT_HI_ATTACHMENT`;
  836. CREATE TABLE `ACT_HI_ATTACHMENT` (
  837. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  838. `REV_` int(11) NULL DEFAULT NULL,
  839. `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  840. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  841. `DESCRIPTION_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  842. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  843. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  844. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  845. `URL_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  846. `CONTENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  847. `TIME_` datetime(3) NULL DEFAULT NULL,
  848. PRIMARY KEY (`ID_`) USING BTREE
  849. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  850. -- ----------------------------
  851. -- Table structure for ACT_HI_COMMENT
  852. -- ----------------------------
  853. DROP TABLE IF EXISTS `ACT_HI_COMMENT`;
  854. CREATE TABLE `ACT_HI_COMMENT` (
  855. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  856. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  857. `TIME_` datetime(3) NOT NULL,
  858. `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  859. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  860. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  861. `ACTION_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  862. `MESSAGE_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  863. `FULL_MSG_` longblob NULL,
  864. PRIMARY KEY (`ID_`) USING BTREE
  865. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  866. -- ----------------------------
  867. -- Table structure for ACT_HI_DETAIL
  868. -- ----------------------------
  869. DROP TABLE IF EXISTS `ACT_HI_DETAIL`;
  870. CREATE TABLE `ACT_HI_DETAIL` (
  871. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  872. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  873. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  874. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  875. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  876. `ACT_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  877. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  878. `VAR_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  879. `REV_` int(11) NULL DEFAULT NULL,
  880. `TIME_` datetime(3) NOT NULL,
  881. `BYTEARRAY_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  882. `DOUBLE_` double NULL DEFAULT NULL,
  883. `LONG_` bigint(20) NULL DEFAULT NULL,
  884. `TEXT_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  885. `TEXT2_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  886. PRIMARY KEY (`ID_`) USING BTREE,
  887. INDEX `ACT_IDX_HI_DETAIL_PROC_INST`(`PROC_INST_ID_`) USING BTREE,
  888. INDEX `ACT_IDX_HI_DETAIL_ACT_INST`(`ACT_INST_ID_`) USING BTREE,
  889. INDEX `ACT_IDX_HI_DETAIL_TIME`(`TIME_`) USING BTREE,
  890. INDEX `ACT_IDX_HI_DETAIL_NAME`(`NAME_`) USING BTREE,
  891. INDEX `ACT_IDX_HI_DETAIL_TASK_ID`(`TASK_ID_`) USING BTREE
  892. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  893. -- ----------------------------
  894. -- Table structure for ACT_HI_ENTITYLINK
  895. -- ----------------------------
  896. DROP TABLE IF EXISTS `ACT_HI_ENTITYLINK`;
  897. CREATE TABLE `ACT_HI_ENTITYLINK` (
  898. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  899. `LINK_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  900. `CREATE_TIME_` datetime(3) NULL DEFAULT NULL,
  901. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  902. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  903. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  904. `REF_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  905. `REF_SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  906. `REF_SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  907. `HIERARCHY_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  908. PRIMARY KEY (`ID_`) USING BTREE,
  909. INDEX `ACT_IDX_HI_ENT_LNK_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`, `LINK_TYPE_`) USING BTREE,
  910. INDEX `ACT_IDX_HI_ENT_LNK_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`, `LINK_TYPE_`) USING BTREE
  911. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  912. -- ----------------------------
  913. -- Table structure for ACT_HI_IDENTITYLINK
  914. -- ----------------------------
  915. DROP TABLE IF EXISTS `ACT_HI_IDENTITYLINK`;
  916. CREATE TABLE `ACT_HI_IDENTITYLINK` (
  917. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  918. `GROUP_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  919. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  920. `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  921. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  922. `CREATE_TIME_` datetime(3) NULL DEFAULT NULL,
  923. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  924. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  925. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  926. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  927. PRIMARY KEY (`ID_`) USING BTREE,
  928. INDEX `ACT_IDX_HI_IDENT_LNK_USER`(`USER_ID_`) USING BTREE,
  929. INDEX `ACT_IDX_HI_IDENT_LNK_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  930. INDEX `ACT_IDX_HI_IDENT_LNK_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`) USING BTREE,
  931. INDEX `ACT_IDX_HI_IDENT_LNK_TASK`(`TASK_ID_`) USING BTREE,
  932. INDEX `ACT_IDX_HI_IDENT_LNK_PROCINST`(`PROC_INST_ID_`) USING BTREE
  933. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  934. -- ----------------------------
  935. -- Table structure for ACT_HI_PROCINST
  936. -- ----------------------------
  937. DROP TABLE IF EXISTS `ACT_HI_PROCINST`;
  938. CREATE TABLE `ACT_HI_PROCINST` (
  939. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  940. `REV_` int(11) NULL DEFAULT 1,
  941. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  942. `BUSINESS_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  943. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  944. `START_TIME_` datetime(3) NOT NULL,
  945. `END_TIME_` datetime(3) NULL DEFAULT NULL,
  946. `DURATION_` bigint(20) NULL DEFAULT NULL,
  947. `START_USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  948. `START_ACT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  949. `END_ACT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  950. `SUPER_PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  951. `DELETE_REASON_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  952. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  953. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  954. `CALLBACK_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  955. `CALLBACK_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  956. PRIMARY KEY (`ID_`) USING BTREE,
  957. UNIQUE INDEX `PROC_INST_ID_`(`PROC_INST_ID_`) USING BTREE,
  958. INDEX `ACT_IDX_HI_PRO_INST_END`(`END_TIME_`) USING BTREE,
  959. INDEX `ACT_IDX_HI_PRO_I_BUSKEY`(`BUSINESS_KEY_`) USING BTREE
  960. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  961. -- ----------------------------
  962. -- Table structure for ACT_HI_TASKINST
  963. -- ----------------------------
  964. DROP TABLE IF EXISTS `ACT_HI_TASKINST`;
  965. CREATE TABLE `ACT_HI_TASKINST` (
  966. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  967. `REV_` int(11) NULL DEFAULT 1,
  968. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  969. `TASK_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  970. `TASK_DEF_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  971. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  972. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  973. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  974. `SUB_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  975. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  976. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  977. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  978. `PARENT_TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  979. `DESCRIPTION_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  980. `OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  981. `ASSIGNEE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  982. `START_TIME_` datetime(3) NOT NULL,
  983. `CLAIM_TIME_` datetime(3) NULL DEFAULT NULL,
  984. `END_TIME_` datetime(3) NULL DEFAULT NULL,
  985. `DURATION_` bigint(20) NULL DEFAULT NULL,
  986. `DELETE_REASON_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  987. `PRIORITY_` int(11) NULL DEFAULT NULL,
  988. `DUE_DATE_` datetime(3) NULL DEFAULT NULL,
  989. `FORM_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  990. `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  991. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  992. `LAST_UPDATED_TIME_` datetime(3) NULL DEFAULT NULL,
  993. PRIMARY KEY (`ID_`) USING BTREE,
  994. INDEX `ACT_IDX_HI_TASK_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  995. INDEX `ACT_IDX_HI_TASK_SUB_SCOPE`(`SUB_SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  996. INDEX `ACT_IDX_HI_TASK_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`) USING BTREE,
  997. INDEX `ACT_IDX_HI_TASK_INST_PROCINST`(`PROC_INST_ID_`) USING BTREE
  998. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  999. -- ----------------------------
  1000. -- Table structure for ACT_HI_TSK_LOG
  1001. -- ----------------------------
  1002. DROP TABLE IF EXISTS `ACT_HI_TSK_LOG`;
  1003. CREATE TABLE `ACT_HI_TSK_LOG` (
  1004. `ID_` bigint(20) NOT NULL AUTO_INCREMENT,
  1005. `TYPE_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1006. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1007. `TIME_STAMP_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3),
  1008. `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1009. `DATA_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1010. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1011. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1012. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1013. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1014. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1015. `SUB_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1016. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1017. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1018. PRIMARY KEY (`ID_`) USING BTREE
  1019. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_bin;
  1020. -- ----------------------------
  1021. -- Table structure for ACT_HI_VARINST
  1022. -- ----------------------------
  1023. DROP TABLE IF EXISTS `ACT_HI_VARINST`;
  1024. CREATE TABLE `ACT_HI_VARINST` (
  1025. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1026. `REV_` int(11) NULL DEFAULT 1,
  1027. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1028. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1029. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1030. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1031. `VAR_TYPE_` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1032. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1033. `SUB_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1034. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1035. `BYTEARRAY_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1036. `DOUBLE_` double NULL DEFAULT NULL,
  1037. `LONG_` bigint(20) NULL DEFAULT NULL,
  1038. `TEXT_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1039. `TEXT2_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1040. `CREATE_TIME_` datetime(3) NULL DEFAULT NULL,
  1041. `LAST_UPDATED_TIME_` datetime(3) NULL DEFAULT NULL,
  1042. PRIMARY KEY (`ID_`) USING BTREE,
  1043. INDEX `ACT_IDX_HI_PROCVAR_NAME_TYPE`(`NAME_`, `VAR_TYPE_`) USING BTREE,
  1044. INDEX `ACT_IDX_HI_VAR_SCOPE_ID_TYPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1045. INDEX `ACT_IDX_HI_VAR_SUB_ID_TYPE`(`SUB_SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1046. INDEX `ACT_IDX_HI_PROCVAR_PROC_INST`(`PROC_INST_ID_`) USING BTREE,
  1047. INDEX `ACT_IDX_HI_PROCVAR_TASK_ID`(`TASK_ID_`) USING BTREE,
  1048. INDEX `ACT_IDX_HI_PROCVAR_EXE`(`EXECUTION_ID_`) USING BTREE
  1049. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1050. -- ----------------------------
  1051. -- Table structure for ACT_ID_BYTEARRAY
  1052. -- ----------------------------
  1053. DROP TABLE IF EXISTS `ACT_ID_BYTEARRAY`;
  1054. CREATE TABLE `ACT_ID_BYTEARRAY` (
  1055. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1056. `REV_` int(11) NULL DEFAULT NULL,
  1057. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1058. `BYTES_` longblob NULL,
  1059. PRIMARY KEY (`ID_`) USING BTREE
  1060. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1061. -- ----------------------------
  1062. -- Table structure for ACT_ID_GROUP
  1063. -- ----------------------------
  1064. DROP TABLE IF EXISTS `ACT_ID_GROUP`;
  1065. CREATE TABLE `ACT_ID_GROUP` (
  1066. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1067. `REV_` int(11) NULL DEFAULT NULL,
  1068. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1069. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1070. PRIMARY KEY (`ID_`) USING BTREE
  1071. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1072. -- ----------------------------
  1073. -- Table structure for ACT_ID_INFO
  1074. -- ----------------------------
  1075. DROP TABLE IF EXISTS `ACT_ID_INFO`;
  1076. CREATE TABLE `ACT_ID_INFO` (
  1077. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1078. `REV_` int(11) NULL DEFAULT NULL,
  1079. `USER_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1080. `TYPE_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1081. `KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1082. `VALUE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1083. `PASSWORD_` longblob NULL,
  1084. `PARENT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1085. PRIMARY KEY (`ID_`) USING BTREE
  1086. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1087. -- ----------------------------
  1088. -- Table structure for ACT_ID_MEMBERSHIP
  1089. -- ----------------------------
  1090. DROP TABLE IF EXISTS `ACT_ID_MEMBERSHIP`;
  1091. CREATE TABLE `ACT_ID_MEMBERSHIP` (
  1092. `USER_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1093. `GROUP_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1094. PRIMARY KEY (`USER_ID_`, `GROUP_ID_`) USING BTREE,
  1095. INDEX `ACT_FK_MEMB_GROUP`(`GROUP_ID_`) USING BTREE,
  1096. CONSTRAINT `ACT_FK_MEMB_GROUP` FOREIGN KEY (`GROUP_ID_`) REFERENCES `ACT_ID_GROUP` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1097. CONSTRAINT `ACT_FK_MEMB_USER` FOREIGN KEY (`USER_ID_`) REFERENCES `ACT_ID_USER` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1098. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1099. -- ----------------------------
  1100. -- Table structure for ACT_ID_PRIV
  1101. -- ----------------------------
  1102. DROP TABLE IF EXISTS `ACT_ID_PRIV`;
  1103. CREATE TABLE `ACT_ID_PRIV` (
  1104. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1105. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1106. PRIMARY KEY (`ID_`) USING BTREE,
  1107. UNIQUE INDEX `ACT_UNIQ_PRIV_NAME`(`NAME_`) USING BTREE
  1108. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1109. -- ----------------------------
  1110. -- Table structure for ACT_ID_PRIV_MAPPING
  1111. -- ----------------------------
  1112. DROP TABLE IF EXISTS `ACT_ID_PRIV_MAPPING`;
  1113. CREATE TABLE `ACT_ID_PRIV_MAPPING` (
  1114. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1115. `PRIV_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1116. `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1117. `GROUP_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1118. PRIMARY KEY (`ID_`) USING BTREE,
  1119. INDEX `ACT_FK_PRIV_MAPPING`(`PRIV_ID_`) USING BTREE,
  1120. INDEX `ACT_IDX_PRIV_USER`(`USER_ID_`) USING BTREE,
  1121. INDEX `ACT_IDX_PRIV_GROUP`(`GROUP_ID_`) USING BTREE,
  1122. CONSTRAINT `ACT_FK_PRIV_MAPPING` FOREIGN KEY (`PRIV_ID_`) REFERENCES `ACT_ID_PRIV` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1123. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1124. -- ----------------------------
  1125. -- Table structure for ACT_ID_PROPERTY
  1126. -- ----------------------------
  1127. DROP TABLE IF EXISTS `ACT_ID_PROPERTY`;
  1128. CREATE TABLE `ACT_ID_PROPERTY` (
  1129. `NAME_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1130. `VALUE_` varchar(300) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1131. `REV_` int(11) NULL DEFAULT NULL,
  1132. PRIMARY KEY (`NAME_`) USING BTREE
  1133. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1134. -- ----------------------------
  1135. -- Records of ACT_ID_PROPERTY
  1136. -- ----------------------------
  1137. BEGIN;
  1138. INSERT INTO `ACT_ID_PROPERTY` VALUES ('schema.version', '6.5.0.1', 1);
  1139. COMMIT;
  1140. -- ----------------------------
  1141. -- Table structure for ACT_ID_TOKEN
  1142. -- ----------------------------
  1143. DROP TABLE IF EXISTS `ACT_ID_TOKEN`;
  1144. CREATE TABLE `ACT_ID_TOKEN` (
  1145. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1146. `REV_` int(11) NULL DEFAULT NULL,
  1147. `TOKEN_VALUE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1148. `TOKEN_DATE_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3),
  1149. `IP_ADDRESS_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1150. `USER_AGENT_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1151. `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1152. `TOKEN_DATA_` varchar(2000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1153. PRIMARY KEY (`ID_`) USING BTREE
  1154. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1155. -- ----------------------------
  1156. -- Table structure for ACT_ID_USER
  1157. -- ----------------------------
  1158. DROP TABLE IF EXISTS `ACT_ID_USER`;
  1159. CREATE TABLE `ACT_ID_USER` (
  1160. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1161. `REV_` int(11) NULL DEFAULT NULL,
  1162. `FIRST_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1163. `LAST_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1164. `DISPLAY_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1165. `EMAIL_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1166. `PWD_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1167. `PICTURE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1168. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1169. PRIMARY KEY (`ID_`) USING BTREE
  1170. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1171. -- ----------------------------
  1172. -- Table structure for ACT_PROCDEF_INFO
  1173. -- ----------------------------
  1174. DROP TABLE IF EXISTS `ACT_PROCDEF_INFO`;
  1175. CREATE TABLE `ACT_PROCDEF_INFO` (
  1176. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1177. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1178. `REV_` int(11) NULL DEFAULT NULL,
  1179. `INFO_JSON_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1180. PRIMARY KEY (`ID_`) USING BTREE,
  1181. UNIQUE INDEX `ACT_UNIQ_INFO_PROCDEF`(`PROC_DEF_ID_`) USING BTREE,
  1182. INDEX `ACT_IDX_INFO_PROCDEF`(`PROC_DEF_ID_`) USING BTREE,
  1183. INDEX `ACT_FK_INFO_JSON_BA`(`INFO_JSON_ID_`) USING BTREE,
  1184. CONSTRAINT `ACT_FK_INFO_JSON_BA` FOREIGN KEY (`INFO_JSON_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1185. CONSTRAINT `ACT_FK_INFO_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1186. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1187. -- ----------------------------
  1188. -- Table structure for ACT_RE_DEPLOYMENT
  1189. -- ----------------------------
  1190. DROP TABLE IF EXISTS `ACT_RE_DEPLOYMENT`;
  1191. CREATE TABLE `ACT_RE_DEPLOYMENT` (
  1192. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1193. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1194. `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1195. `KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1196. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1197. `DEPLOY_TIME_` timestamp(3) NULL DEFAULT NULL,
  1198. `DERIVED_FROM_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1199. `DERIVED_FROM_ROOT_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1200. `PARENT_DEPLOYMENT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1201. `ENGINE_VERSION_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1202. PRIMARY KEY (`ID_`) USING BTREE
  1203. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1204. -- ----------------------------
  1205. -- Table structure for ACT_RE_MODEL
  1206. -- ----------------------------
  1207. DROP TABLE IF EXISTS `ACT_RE_MODEL`;
  1208. CREATE TABLE `ACT_RE_MODEL` (
  1209. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1210. `REV_` int(11) NULL DEFAULT NULL,
  1211. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1212. `KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1213. `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1214. `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  1215. `LAST_UPDATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  1216. `VERSION_` int(11) NULL DEFAULT NULL,
  1217. `META_INFO_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1218. `DEPLOYMENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1219. `EDITOR_SOURCE_VALUE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1220. `EDITOR_SOURCE_EXTRA_VALUE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1221. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1222. PRIMARY KEY (`ID_`) USING BTREE,
  1223. INDEX `ACT_FK_MODEL_SOURCE`(`EDITOR_SOURCE_VALUE_ID_`) USING BTREE,
  1224. INDEX `ACT_FK_MODEL_SOURCE_EXTRA`(`EDITOR_SOURCE_EXTRA_VALUE_ID_`) USING BTREE,
  1225. INDEX `ACT_FK_MODEL_DEPLOYMENT`(`DEPLOYMENT_ID_`) USING BTREE,
  1226. CONSTRAINT `ACT_FK_MODEL_DEPLOYMENT` FOREIGN KEY (`DEPLOYMENT_ID_`) REFERENCES `ACT_RE_DEPLOYMENT` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1227. CONSTRAINT `ACT_FK_MODEL_SOURCE` FOREIGN KEY (`EDITOR_SOURCE_VALUE_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1228. CONSTRAINT `ACT_FK_MODEL_SOURCE_EXTRA` FOREIGN KEY (`EDITOR_SOURCE_EXTRA_VALUE_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1229. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1230. -- ----------------------------
  1231. -- Table structure for ACT_RE_PROCDEF
  1232. -- ----------------------------
  1233. DROP TABLE IF EXISTS `ACT_RE_PROCDEF`;
  1234. CREATE TABLE `ACT_RE_PROCDEF` (
  1235. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1236. `REV_` int(11) NULL DEFAULT NULL,
  1237. `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1238. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1239. `KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1240. `VERSION_` int(11) NOT NULL,
  1241. `DEPLOYMENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1242. `RESOURCE_NAME_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1243. `DGRM_RESOURCE_NAME_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1244. `DESCRIPTION_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1245. `HAS_START_FORM_KEY_` tinyint(4) NULL DEFAULT NULL,
  1246. `HAS_GRAPHICAL_NOTATION_` tinyint(4) NULL DEFAULT NULL,
  1247. `SUSPENSION_STATE_` int(11) NULL DEFAULT NULL,
  1248. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1249. `ENGINE_VERSION_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1250. `DERIVED_FROM_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1251. `DERIVED_FROM_ROOT_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1252. `DERIVED_VERSION_` int(11) NOT NULL DEFAULT 0,
  1253. PRIMARY KEY (`ID_`) USING BTREE,
  1254. UNIQUE INDEX `ACT_UNIQ_PROCDEF`(`KEY_`, `VERSION_`, `DERIVED_VERSION_`, `TENANT_ID_`) USING BTREE
  1255. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1256. -- ----------------------------
  1257. -- Table structure for ACT_RU_ACTINST
  1258. -- ----------------------------
  1259. DROP TABLE IF EXISTS `ACT_RU_ACTINST`;
  1260. CREATE TABLE `ACT_RU_ACTINST` (
  1261. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1262. `REV_` int(11) NULL DEFAULT 1,
  1263. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1264. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1265. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1266. `ACT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1267. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1268. `CALL_PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1269. `ACT_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1270. `ACT_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1271. `ASSIGNEE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1272. `START_TIME_` datetime(3) NOT NULL,
  1273. `END_TIME_` datetime(3) NULL DEFAULT NULL,
  1274. `DURATION_` bigint(20) NULL DEFAULT NULL,
  1275. `DELETE_REASON_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1276. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1277. PRIMARY KEY (`ID_`) USING BTREE,
  1278. INDEX `ACT_IDX_RU_ACTI_START`(`START_TIME_`) USING BTREE,
  1279. INDEX `ACT_IDX_RU_ACTI_END`(`END_TIME_`) USING BTREE,
  1280. INDEX `ACT_IDX_RU_ACTI_PROC`(`PROC_INST_ID_`) USING BTREE,
  1281. INDEX `ACT_IDX_RU_ACTI_PROC_ACT`(`PROC_INST_ID_`, `ACT_ID_`) USING BTREE,
  1282. INDEX `ACT_IDX_RU_ACTI_EXEC`(`EXECUTION_ID_`) USING BTREE,
  1283. INDEX `ACT_IDX_RU_ACTI_EXEC_ACT`(`EXECUTION_ID_`, `ACT_ID_`) USING BTREE
  1284. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1285. -- ----------------------------
  1286. -- Table structure for ACT_RU_DEADLETTER_JOB
  1287. -- ----------------------------
  1288. DROP TABLE IF EXISTS `ACT_RU_DEADLETTER_JOB`;
  1289. CREATE TABLE `ACT_RU_DEADLETTER_JOB` (
  1290. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1291. `REV_` int(11) NULL DEFAULT NULL,
  1292. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1293. `EXCLUSIVE_` tinyint(1) NULL DEFAULT NULL,
  1294. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1295. `PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1296. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1297. `ELEMENT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1298. `ELEMENT_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1299. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1300. `SUB_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1301. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1302. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1303. `EXCEPTION_STACK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1304. `EXCEPTION_MSG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1305. `DUEDATE_` timestamp(3) NULL DEFAULT NULL,
  1306. `REPEAT_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1307. `HANDLER_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1308. `HANDLER_CFG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1309. `CUSTOM_VALUES_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1310. `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  1311. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1312. PRIMARY KEY (`ID_`) USING BTREE,
  1313. INDEX `ACT_IDX_DEADLETTER_JOB_EXCEPTION_STACK_ID`(`EXCEPTION_STACK_ID_`) USING BTREE,
  1314. INDEX `ACT_IDX_DEADLETTER_JOB_CUSTOM_VALUES_ID`(`CUSTOM_VALUES_ID_`) USING BTREE,
  1315. INDEX `ACT_IDX_DJOB_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1316. INDEX `ACT_IDX_DJOB_SUB_SCOPE`(`SUB_SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1317. INDEX `ACT_IDX_DJOB_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1318. INDEX `ACT_FK_DEADLETTER_JOB_EXECUTION`(`EXECUTION_ID_`) USING BTREE,
  1319. INDEX `ACT_FK_DEADLETTER_JOB_PROCESS_INSTANCE`(`PROCESS_INSTANCE_ID_`) USING BTREE,
  1320. INDEX `ACT_FK_DEADLETTER_JOB_PROC_DEF`(`PROC_DEF_ID_`) USING BTREE,
  1321. CONSTRAINT `ACT_FK_DEADLETTER_JOB_CUSTOM_VALUES` FOREIGN KEY (`CUSTOM_VALUES_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1322. CONSTRAINT `ACT_FK_DEADLETTER_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1323. CONSTRAINT `ACT_FK_DEADLETTER_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1324. CONSTRAINT `ACT_FK_DEADLETTER_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1325. CONSTRAINT `ACT_FK_DEADLETTER_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1326. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1327. -- ----------------------------
  1328. -- Table structure for ACT_RU_ENTITYLINK
  1329. -- ----------------------------
  1330. DROP TABLE IF EXISTS `ACT_RU_ENTITYLINK`;
  1331. CREATE TABLE `ACT_RU_ENTITYLINK` (
  1332. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1333. `REV_` int(11) NULL DEFAULT NULL,
  1334. `CREATE_TIME_` datetime(3) NULL DEFAULT NULL,
  1335. `LINK_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1336. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1337. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1338. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1339. `REF_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1340. `REF_SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1341. `REF_SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1342. `HIERARCHY_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1343. PRIMARY KEY (`ID_`) USING BTREE,
  1344. INDEX `ACT_IDX_ENT_LNK_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`, `LINK_TYPE_`) USING BTREE,
  1345. INDEX `ACT_IDX_ENT_LNK_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`, `LINK_TYPE_`) USING BTREE
  1346. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1347. -- ----------------------------
  1348. -- Table structure for ACT_RU_EVENT_SUBSCR
  1349. -- ----------------------------
  1350. DROP TABLE IF EXISTS `ACT_RU_EVENT_SUBSCR`;
  1351. CREATE TABLE `ACT_RU_EVENT_SUBSCR` (
  1352. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1353. `REV_` int(11) NULL DEFAULT NULL,
  1354. `EVENT_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1355. `EVENT_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1356. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1357. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1358. `ACTIVITY_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1359. `CONFIGURATION_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1360. `CREATED_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
  1361. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1362. `SUB_SCOPE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1363. `SCOPE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1364. `SCOPE_DEFINITION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1365. `SCOPE_TYPE_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1366. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1367. PRIMARY KEY (`ID_`) USING BTREE,
  1368. INDEX `ACT_IDX_EVENT_SUBSCR_CONFIG_`(`CONFIGURATION_`) USING BTREE,
  1369. INDEX `ACT_FK_EVENT_EXEC`(`EXECUTION_ID_`) USING BTREE,
  1370. CONSTRAINT `ACT_FK_EVENT_EXEC` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1371. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1372. -- ----------------------------
  1373. -- Table structure for ACT_RU_EXECUTION
  1374. -- ----------------------------
  1375. DROP TABLE IF EXISTS `ACT_RU_EXECUTION`;
  1376. CREATE TABLE `ACT_RU_EXECUTION` (
  1377. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1378. `REV_` int(11) NULL DEFAULT NULL,
  1379. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1380. `BUSINESS_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1381. `PARENT_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1382. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1383. `SUPER_EXEC_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1384. `ROOT_PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1385. `ACT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1386. `IS_ACTIVE_` tinyint(4) NULL DEFAULT NULL,
  1387. `IS_CONCURRENT_` tinyint(4) NULL DEFAULT NULL,
  1388. `IS_SCOPE_` tinyint(4) NULL DEFAULT NULL,
  1389. `IS_EVENT_SCOPE_` tinyint(4) NULL DEFAULT NULL,
  1390. `IS_MI_ROOT_` tinyint(4) NULL DEFAULT NULL,
  1391. `SUSPENSION_STATE_` int(11) NULL DEFAULT NULL,
  1392. `CACHED_ENT_STATE_` int(11) NULL DEFAULT NULL,
  1393. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1394. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1395. `START_ACT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1396. `START_TIME_` datetime(3) NULL DEFAULT NULL,
  1397. `START_USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1398. `LOCK_TIME_` timestamp(3) NULL DEFAULT NULL,
  1399. `IS_COUNT_ENABLED_` tinyint(4) NULL DEFAULT NULL,
  1400. `EVT_SUBSCR_COUNT_` int(11) NULL DEFAULT NULL,
  1401. `TASK_COUNT_` int(11) NULL DEFAULT NULL,
  1402. `JOB_COUNT_` int(11) NULL DEFAULT NULL,
  1403. `TIMER_JOB_COUNT_` int(11) NULL DEFAULT NULL,
  1404. `SUSP_JOB_COUNT_` int(11) NULL DEFAULT NULL,
  1405. `DEADLETTER_JOB_COUNT_` int(11) NULL DEFAULT NULL,
  1406. `VAR_COUNT_` int(11) NULL DEFAULT NULL,
  1407. `ID_LINK_COUNT_` int(11) NULL DEFAULT NULL,
  1408. `CALLBACK_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1409. `CALLBACK_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1410. PRIMARY KEY (`ID_`) USING BTREE,
  1411. INDEX `ACT_IDX_EXEC_BUSKEY`(`BUSINESS_KEY_`) USING BTREE,
  1412. INDEX `ACT_IDC_EXEC_ROOT`(`ROOT_PROC_INST_ID_`) USING BTREE,
  1413. INDEX `ACT_FK_EXE_PROCINST`(`PROC_INST_ID_`) USING BTREE,
  1414. INDEX `ACT_FK_EXE_PARENT`(`PARENT_ID_`) USING BTREE,
  1415. INDEX `ACT_FK_EXE_SUPER`(`SUPER_EXEC_`) USING BTREE,
  1416. INDEX `ACT_FK_EXE_PROCDEF`(`PROC_DEF_ID_`) USING BTREE,
  1417. CONSTRAINT `ACT_FK_EXE_PARENT` FOREIGN KEY (`PARENT_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE CASCADE ON UPDATE RESTRICT,
  1418. CONSTRAINT `ACT_FK_EXE_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1419. CONSTRAINT `ACT_FK_EXE_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE CASCADE ON UPDATE CASCADE,
  1420. CONSTRAINT `ACT_FK_EXE_SUPER` FOREIGN KEY (`SUPER_EXEC_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE CASCADE ON UPDATE RESTRICT
  1421. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1422. -- ----------------------------
  1423. -- Table structure for ACT_RU_HISTORY_JOB
  1424. -- ----------------------------
  1425. DROP TABLE IF EXISTS `ACT_RU_HISTORY_JOB`;
  1426. CREATE TABLE `ACT_RU_HISTORY_JOB` (
  1427. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1428. `REV_` int(11) NULL DEFAULT NULL,
  1429. `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL,
  1430. `LOCK_OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1431. `RETRIES_` int(11) NULL DEFAULT NULL,
  1432. `EXCEPTION_STACK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1433. `EXCEPTION_MSG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1434. `HANDLER_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1435. `HANDLER_CFG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1436. `CUSTOM_VALUES_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1437. `ADV_HANDLER_CFG_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1438. `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  1439. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1440. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1441. PRIMARY KEY (`ID_`) USING BTREE
  1442. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1443. -- ----------------------------
  1444. -- Table structure for ACT_RU_IDENTITYLINK
  1445. -- ----------------------------
  1446. DROP TABLE IF EXISTS `ACT_RU_IDENTITYLINK`;
  1447. CREATE TABLE `ACT_RU_IDENTITYLINK` (
  1448. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1449. `REV_` int(11) NULL DEFAULT NULL,
  1450. `GROUP_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1451. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1452. `USER_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1453. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1454. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1455. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1456. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1457. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1458. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1459. PRIMARY KEY (`ID_`) USING BTREE,
  1460. INDEX `ACT_IDX_IDENT_LNK_USER`(`USER_ID_`) USING BTREE,
  1461. INDEX `ACT_IDX_IDENT_LNK_GROUP`(`GROUP_ID_`) USING BTREE,
  1462. INDEX `ACT_IDX_IDENT_LNK_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1463. INDEX `ACT_IDX_IDENT_LNK_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1464. INDEX `ACT_IDX_ATHRZ_PROCEDEF`(`PROC_DEF_ID_`) USING BTREE,
  1465. INDEX `ACT_FK_TSKASS_TASK`(`TASK_ID_`) USING BTREE,
  1466. INDEX `ACT_FK_IDL_PROCINST`(`PROC_INST_ID_`) USING BTREE,
  1467. CONSTRAINT `ACT_FK_ATHRZ_PROCEDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1468. CONSTRAINT `ACT_FK_IDL_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1469. CONSTRAINT `ACT_FK_TSKASS_TASK` FOREIGN KEY (`TASK_ID_`) REFERENCES `ACT_RU_TASK` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1470. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1471. -- ----------------------------
  1472. -- Table structure for ACT_RU_JOB
  1473. -- ----------------------------
  1474. DROP TABLE IF EXISTS `ACT_RU_JOB`;
  1475. CREATE TABLE `ACT_RU_JOB` (
  1476. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1477. `REV_` int(11) NULL DEFAULT NULL,
  1478. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1479. `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL,
  1480. `LOCK_OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1481. `EXCLUSIVE_` tinyint(1) NULL DEFAULT NULL,
  1482. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1483. `PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1484. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1485. `ELEMENT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1486. `ELEMENT_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1487. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1488. `SUB_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1489. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1490. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1491. `RETRIES_` int(11) NULL DEFAULT NULL,
  1492. `EXCEPTION_STACK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1493. `EXCEPTION_MSG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1494. `DUEDATE_` timestamp(3) NULL DEFAULT NULL,
  1495. `REPEAT_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1496. `HANDLER_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1497. `HANDLER_CFG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1498. `CUSTOM_VALUES_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1499. `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  1500. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1501. PRIMARY KEY (`ID_`) USING BTREE,
  1502. INDEX `ACT_IDX_JOB_EXCEPTION_STACK_ID`(`EXCEPTION_STACK_ID_`) USING BTREE,
  1503. INDEX `ACT_IDX_JOB_CUSTOM_VALUES_ID`(`CUSTOM_VALUES_ID_`) USING BTREE,
  1504. INDEX `ACT_IDX_JOB_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1505. INDEX `ACT_IDX_JOB_SUB_SCOPE`(`SUB_SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1506. INDEX `ACT_IDX_JOB_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1507. INDEX `ACT_FK_JOB_EXECUTION`(`EXECUTION_ID_`) USING BTREE,
  1508. INDEX `ACT_FK_JOB_PROCESS_INSTANCE`(`PROCESS_INSTANCE_ID_`) USING BTREE,
  1509. INDEX `ACT_FK_JOB_PROC_DEF`(`PROC_DEF_ID_`) USING BTREE,
  1510. CONSTRAINT `ACT_FK_JOB_CUSTOM_VALUES` FOREIGN KEY (`CUSTOM_VALUES_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1511. CONSTRAINT `ACT_FK_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1512. CONSTRAINT `ACT_FK_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1513. CONSTRAINT `ACT_FK_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1514. CONSTRAINT `ACT_FK_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1515. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1516. -- ----------------------------
  1517. -- Table structure for ACT_RU_SUSPENDED_JOB
  1518. -- ----------------------------
  1519. DROP TABLE IF EXISTS `ACT_RU_SUSPENDED_JOB`;
  1520. CREATE TABLE `ACT_RU_SUSPENDED_JOB` (
  1521. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1522. `REV_` int(11) NULL DEFAULT NULL,
  1523. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1524. `EXCLUSIVE_` tinyint(1) NULL DEFAULT NULL,
  1525. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1526. `PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1527. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1528. `ELEMENT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1529. `ELEMENT_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1530. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1531. `SUB_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1532. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1533. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1534. `RETRIES_` int(11) NULL DEFAULT NULL,
  1535. `EXCEPTION_STACK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1536. `EXCEPTION_MSG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1537. `DUEDATE_` timestamp(3) NULL DEFAULT NULL,
  1538. `REPEAT_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1539. `HANDLER_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1540. `HANDLER_CFG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1541. `CUSTOM_VALUES_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1542. `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  1543. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1544. PRIMARY KEY (`ID_`) USING BTREE,
  1545. INDEX `ACT_IDX_SUSPENDED_JOB_EXCEPTION_STACK_ID`(`EXCEPTION_STACK_ID_`) USING BTREE,
  1546. INDEX `ACT_IDX_SUSPENDED_JOB_CUSTOM_VALUES_ID`(`CUSTOM_VALUES_ID_`) USING BTREE,
  1547. INDEX `ACT_IDX_SJOB_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1548. INDEX `ACT_IDX_SJOB_SUB_SCOPE`(`SUB_SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1549. INDEX `ACT_IDX_SJOB_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1550. INDEX `ACT_FK_SUSPENDED_JOB_EXECUTION`(`EXECUTION_ID_`) USING BTREE,
  1551. INDEX `ACT_FK_SUSPENDED_JOB_PROCESS_INSTANCE`(`PROCESS_INSTANCE_ID_`) USING BTREE,
  1552. INDEX `ACT_FK_SUSPENDED_JOB_PROC_DEF`(`PROC_DEF_ID_`) USING BTREE,
  1553. CONSTRAINT `ACT_FK_SUSPENDED_JOB_CUSTOM_VALUES` FOREIGN KEY (`CUSTOM_VALUES_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1554. CONSTRAINT `ACT_FK_SUSPENDED_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1555. CONSTRAINT `ACT_FK_SUSPENDED_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1556. CONSTRAINT `ACT_FK_SUSPENDED_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1557. CONSTRAINT `ACT_FK_SUSPENDED_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1558. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1559. -- ----------------------------
  1560. -- Table structure for ACT_RU_TASK
  1561. -- ----------------------------
  1562. DROP TABLE IF EXISTS `ACT_RU_TASK`;
  1563. CREATE TABLE `ACT_RU_TASK` (
  1564. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1565. `REV_` int(11) NULL DEFAULT NULL,
  1566. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1567. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1568. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1569. `TASK_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1570. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1571. `SUB_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1572. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1573. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1574. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1575. `PARENT_TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1576. `DESCRIPTION_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1577. `TASK_DEF_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1578. `OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1579. `ASSIGNEE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1580. `DELEGATION_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1581. `PRIORITY_` int(11) NULL DEFAULT NULL,
  1582. `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  1583. `DUE_DATE_` datetime(3) NULL DEFAULT NULL,
  1584. `CATEGORY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1585. `SUSPENSION_STATE_` int(11) NULL DEFAULT NULL,
  1586. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1587. `FORM_KEY_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1588. `CLAIM_TIME_` datetime(3) NULL DEFAULT NULL,
  1589. `IS_COUNT_ENABLED_` tinyint(4) NULL DEFAULT NULL,
  1590. `VAR_COUNT_` int(11) NULL DEFAULT NULL,
  1591. `ID_LINK_COUNT_` int(11) NULL DEFAULT NULL,
  1592. `SUB_TASK_COUNT_` int(11) NULL DEFAULT NULL,
  1593. PRIMARY KEY (`ID_`) USING BTREE,
  1594. INDEX `ACT_IDX_TASK_CREATE`(`CREATE_TIME_`) USING BTREE,
  1595. INDEX `ACT_IDX_TASK_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1596. INDEX `ACT_IDX_TASK_SUB_SCOPE`(`SUB_SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1597. INDEX `ACT_IDX_TASK_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1598. INDEX `ACT_FK_TASK_EXE`(`EXECUTION_ID_`) USING BTREE,
  1599. INDEX `ACT_FK_TASK_PROCINST`(`PROC_INST_ID_`) USING BTREE,
  1600. INDEX `ACT_FK_TASK_PROCDEF`(`PROC_DEF_ID_`) USING BTREE,
  1601. CONSTRAINT `ACT_FK_TASK_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1602. CONSTRAINT `ACT_FK_TASK_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1603. CONSTRAINT `ACT_FK_TASK_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1604. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1605. -- ----------------------------
  1606. -- Table structure for ACT_RU_TIMER_JOB
  1607. -- ----------------------------
  1608. DROP TABLE IF EXISTS `ACT_RU_TIMER_JOB`;
  1609. CREATE TABLE `ACT_RU_TIMER_JOB` (
  1610. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1611. `REV_` int(11) NULL DEFAULT NULL,
  1612. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1613. `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL,
  1614. `LOCK_OWNER_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1615. `EXCLUSIVE_` tinyint(1) NULL DEFAULT NULL,
  1616. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1617. `PROCESS_INSTANCE_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1618. `PROC_DEF_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1619. `ELEMENT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1620. `ELEMENT_NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1621. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1622. `SUB_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1623. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1624. `SCOPE_DEFINITION_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1625. `RETRIES_` int(11) NULL DEFAULT NULL,
  1626. `EXCEPTION_STACK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1627. `EXCEPTION_MSG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1628. `DUEDATE_` timestamp(3) NULL DEFAULT NULL,
  1629. `REPEAT_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1630. `HANDLER_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1631. `HANDLER_CFG_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1632. `CUSTOM_VALUES_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1633. `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL,
  1634. `TENANT_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
  1635. PRIMARY KEY (`ID_`) USING BTREE,
  1636. INDEX `ACT_IDX_TIMER_JOB_EXCEPTION_STACK_ID`(`EXCEPTION_STACK_ID_`) USING BTREE,
  1637. INDEX `ACT_IDX_TIMER_JOB_CUSTOM_VALUES_ID`(`CUSTOM_VALUES_ID_`) USING BTREE,
  1638. INDEX `ACT_IDX_TJOB_SCOPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1639. INDEX `ACT_IDX_TJOB_SUB_SCOPE`(`SUB_SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1640. INDEX `ACT_IDX_TJOB_SCOPE_DEF`(`SCOPE_DEFINITION_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1641. INDEX `ACT_FK_TIMER_JOB_EXECUTION`(`EXECUTION_ID_`) USING BTREE,
  1642. INDEX `ACT_FK_TIMER_JOB_PROCESS_INSTANCE`(`PROCESS_INSTANCE_ID_`) USING BTREE,
  1643. INDEX `ACT_FK_TIMER_JOB_PROC_DEF`(`PROC_DEF_ID_`) USING BTREE,
  1644. CONSTRAINT `ACT_FK_TIMER_JOB_CUSTOM_VALUES` FOREIGN KEY (`CUSTOM_VALUES_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1645. CONSTRAINT `ACT_FK_TIMER_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1646. CONSTRAINT `ACT_FK_TIMER_JOB_EXECUTION` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1647. CONSTRAINT `ACT_FK_TIMER_JOB_PROCESS_INSTANCE` FOREIGN KEY (`PROCESS_INSTANCE_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1648. CONSTRAINT `ACT_FK_TIMER_JOB_PROC_DEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `ACT_RE_PROCDEF` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1649. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1650. -- ----------------------------
  1651. -- Table structure for ACT_RU_VARIABLE
  1652. -- ----------------------------
  1653. DROP TABLE IF EXISTS `ACT_RU_VARIABLE`;
  1654. CREATE TABLE `ACT_RU_VARIABLE` (
  1655. `ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1656. `REV_` int(11) NULL DEFAULT NULL,
  1657. `TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1658. `NAME_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  1659. `EXECUTION_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1660. `PROC_INST_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1661. `TASK_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1662. `SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1663. `SUB_SCOPE_ID_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1664. `SCOPE_TYPE_` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1665. `BYTEARRAY_ID_` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1666. `DOUBLE_` double NULL DEFAULT NULL,
  1667. `LONG_` bigint(20) NULL DEFAULT NULL,
  1668. `TEXT_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1669. `TEXT2_` varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
  1670. PRIMARY KEY (`ID_`) USING BTREE,
  1671. INDEX `ACT_IDX_RU_VAR_SCOPE_ID_TYPE`(`SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1672. INDEX `ACT_IDX_RU_VAR_SUB_ID_TYPE`(`SUB_SCOPE_ID_`, `SCOPE_TYPE_`) USING BTREE,
  1673. INDEX `ACT_FK_VAR_BYTEARRAY`(`BYTEARRAY_ID_`) USING BTREE,
  1674. INDEX `ACT_IDX_VARIABLE_TASK_ID`(`TASK_ID_`) USING BTREE,
  1675. INDEX `ACT_FK_VAR_EXE`(`EXECUTION_ID_`) USING BTREE,
  1676. INDEX `ACT_FK_VAR_PROCINST`(`PROC_INST_ID_`) USING BTREE,
  1677. CONSTRAINT `ACT_FK_VAR_BYTEARRAY` FOREIGN KEY (`BYTEARRAY_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1678. CONSTRAINT `ACT_FK_VAR_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  1679. CONSTRAINT `ACT_FK_VAR_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `ACT_RU_EXECUTION` (`ID_`) ON DELETE RESTRICT ON UPDATE RESTRICT
  1680. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin;
  1681. SET FOREIGN_KEY_CHECKS = 1;