bladex-flowable-mysql.sql 125 KB

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