bladex-flowable-postgresql.sql 129 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : postgres_localhost
  4. Source Server Type : PostgreSQL
  5. Source Server Version : 110001
  6. Source Host : localhost:5432
  7. Source Catalog : bladex_flow
  8. Source Schema : public
  9. Target Server Type : PostgreSQL
  10. Target Server Version : 110001
  11. File Encoding : 65001
  12. Date: 20/03/2022 11:17:08
  13. */
  14. -- ----------------------------
  15. -- Sequence structure for act_evt_log_log_nr__seq
  16. -- ----------------------------
  17. DROP SEQUENCE IF EXISTS "act_evt_log_log_nr__seq";
  18. CREATE SEQUENCE "act_evt_log_log_nr__seq"
  19. INCREMENT 1
  20. MINVALUE 1
  21. MAXVALUE 2147483647
  22. START 1
  23. CACHE 1;
  24. -- ----------------------------
  25. -- Sequence structure for act_hi_tsk_log_id__seq
  26. -- ----------------------------
  27. DROP SEQUENCE IF EXISTS "act_hi_tsk_log_id__seq";
  28. CREATE SEQUENCE "act_hi_tsk_log_id__seq"
  29. INCREMENT 1
  30. MINVALUE 1
  31. MAXVALUE 2147483647
  32. START 1
  33. CACHE 1;
  34. -- ----------------------------
  35. -- Table structure for act_app_appdef
  36. -- ----------------------------
  37. DROP TABLE IF EXISTS "act_app_appdef";
  38. CREATE TABLE "act_app_appdef" (
  39. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  40. "rev_" int4 NOT NULL,
  41. "name_" varchar(255) COLLATE "pg_catalog"."default",
  42. "key_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  43. "version_" int4 NOT NULL,
  44. "category_" varchar(255) COLLATE "pg_catalog"."default",
  45. "deployment_id_" varchar(255) COLLATE "pg_catalog"."default",
  46. "resource_name_" varchar(4000) COLLATE "pg_catalog"."default",
  47. "description_" varchar(4000) COLLATE "pg_catalog"."default",
  48. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  49. )
  50. ;
  51. -- ----------------------------
  52. -- Table structure for act_app_databasechangelog
  53. -- ----------------------------
  54. DROP TABLE IF EXISTS "act_app_databasechangelog";
  55. CREATE TABLE "act_app_databasechangelog" (
  56. "id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  57. "author" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  58. "filename" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  59. "dateexecuted" timestamp(6) NOT NULL,
  60. "orderexecuted" int4 NOT NULL,
  61. "exectype" varchar(10) COLLATE "pg_catalog"."default" NOT NULL,
  62. "md5sum" varchar(35) COLLATE "pg_catalog"."default",
  63. "description" varchar(255) COLLATE "pg_catalog"."default",
  64. "comments" varchar(255) COLLATE "pg_catalog"."default",
  65. "tag" varchar(255) COLLATE "pg_catalog"."default",
  66. "liquibase" varchar(20) COLLATE "pg_catalog"."default",
  67. "contexts" varchar(255) COLLATE "pg_catalog"."default",
  68. "labels" varchar(255) COLLATE "pg_catalog"."default",
  69. "deployment_id" varchar(10) COLLATE "pg_catalog"."default"
  70. )
  71. ;
  72. -- ----------------------------
  73. -- Records of act_app_databasechangelog
  74. -- ----------------------------
  75. BEGIN;
  76. INSERT INTO "act_app_databasechangelog" VALUES ('1', 'flowable', 'org/flowable/app/db/liquibase/flowable-app-db-changelog.xml', '2019-08-01 11:14:44.941879', 1, 'EXECUTED', '8:496fc778bdf2ab13f2e1926d0e63e0a2', 'createTable tableName=ACT_APP_DEPLOYMENT; createTable tableName=ACT_APP_DEPLOYMENT_RESOURCE; addForeignKeyConstraint baseTableName=ACT_APP_DEPLOYMENT_RESOURCE, constraintName=ACT_FK_APP_RSRC_DPL, referencedTableName=ACT_APP_DEPLOYMENT; createIndex...', '', NULL, '3.6.3', NULL, NULL, '4629284892');
  77. INSERT INTO "act_app_databasechangelog" VALUES ('3', 'flowable', 'org/flowable/app/db/liquibase/flowable-app-db-changelog.xml', '2019-08-01 11:14:44.954037', 2, 'EXECUTED', '8:f1f8aff320aade831944ebad24355f3d', 'createIndex indexName=ACT_IDX_APP_DEF_UNIQ, tableName=ACT_APP_APPDEF', '', NULL, '3.6.3', NULL, NULL, '4629284892');
  78. COMMIT;
  79. -- ----------------------------
  80. -- Table structure for act_app_databasechangeloglock
  81. -- ----------------------------
  82. DROP TABLE IF EXISTS "act_app_databasechangeloglock";
  83. CREATE TABLE "act_app_databasechangeloglock" (
  84. "id" int4 NOT NULL,
  85. "locked" bool NOT NULL,
  86. "lockgranted" timestamp(6),
  87. "lockedby" varchar(255) COLLATE "pg_catalog"."default"
  88. )
  89. ;
  90. -- ----------------------------
  91. -- Records of act_app_databasechangeloglock
  92. -- ----------------------------
  93. BEGIN;
  94. INSERT INTO "act_app_databasechangeloglock" VALUES (1, 'f', NULL, NULL);
  95. COMMIT;
  96. -- ----------------------------
  97. -- Table structure for act_app_deployment
  98. -- ----------------------------
  99. DROP TABLE IF EXISTS "act_app_deployment";
  100. CREATE TABLE "act_app_deployment" (
  101. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  102. "name_" varchar(255) COLLATE "pg_catalog"."default",
  103. "category_" varchar(255) COLLATE "pg_catalog"."default",
  104. "key_" varchar(255) COLLATE "pg_catalog"."default",
  105. "deploy_time_" timestamp(6),
  106. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  107. )
  108. ;
  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. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  115. "name_" varchar(255) COLLATE "pg_catalog"."default",
  116. "deployment_id_" varchar(255) COLLATE "pg_catalog"."default",
  117. "resource_bytes_" bytea
  118. )
  119. ;
  120. -- ----------------------------
  121. -- Table structure for act_cmmn_casedef
  122. -- ----------------------------
  123. DROP TABLE IF EXISTS "act_cmmn_casedef";
  124. CREATE TABLE "act_cmmn_casedef" (
  125. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  126. "rev_" int4 NOT NULL,
  127. "name_" varchar(255) COLLATE "pg_catalog"."default",
  128. "key_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  129. "version_" int4 NOT NULL,
  130. "category_" varchar(255) COLLATE "pg_catalog"."default",
  131. "deployment_id_" varchar(255) COLLATE "pg_catalog"."default",
  132. "resource_name_" varchar(4000) COLLATE "pg_catalog"."default",
  133. "description_" varchar(4000) COLLATE "pg_catalog"."default",
  134. "has_graphical_notation_" bool,
  135. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  136. "dgrm_resource_name_" varchar(4000) COLLATE "pg_catalog"."default",
  137. "has_start_form_key_" bool
  138. )
  139. ;
  140. -- ----------------------------
  141. -- Table structure for act_cmmn_databasechangelog
  142. -- ----------------------------
  143. DROP TABLE IF EXISTS "act_cmmn_databasechangelog";
  144. CREATE TABLE "act_cmmn_databasechangelog" (
  145. "id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  146. "author" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  147. "filename" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  148. "dateexecuted" timestamp(6) NOT NULL,
  149. "orderexecuted" int4 NOT NULL,
  150. "exectype" varchar(10) COLLATE "pg_catalog"."default" NOT NULL,
  151. "md5sum" varchar(35) COLLATE "pg_catalog"."default",
  152. "description" varchar(255) COLLATE "pg_catalog"."default",
  153. "comments" varchar(255) COLLATE "pg_catalog"."default",
  154. "tag" varchar(255) COLLATE "pg_catalog"."default",
  155. "liquibase" varchar(20) COLLATE "pg_catalog"."default",
  156. "contexts" varchar(255) COLLATE "pg_catalog"."default",
  157. "labels" varchar(255) COLLATE "pg_catalog"."default",
  158. "deployment_id" varchar(10) COLLATE "pg_catalog"."default"
  159. )
  160. ;
  161. -- ----------------------------
  162. -- Records of act_cmmn_databasechangelog
  163. -- ----------------------------
  164. BEGIN;
  165. INSERT INTO "act_cmmn_databasechangelog" VALUES ('1', 'flowable', 'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', '2019-08-01 11:14:44.726809', 1, 'EXECUTED', '8:8b4b922d90b05ff27483abefc9597aa6', 'createTable tableName=ACT_CMMN_DEPLOYMENT; createTable tableName=ACT_CMMN_DEPLOYMENT_RESOURCE; addForeignKeyConstraint baseTableName=ACT_CMMN_DEPLOYMENT_RESOURCE, constraintName=ACT_FK_CMMN_RSRC_DPL, referencedTableName=ACT_CMMN_DEPLOYMENT; create...', '', NULL, '3.6.3', NULL, NULL, '4629284549');
  166. INSERT INTO "act_cmmn_databasechangelog" VALUES ('2', 'flowable', 'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', '2019-08-01 11:14:44.745381', 2, 'EXECUTED', '8:65e39b3d385706bb261cbeffe7533cbe', 'addColumn tableName=ACT_CMMN_CASEDEF; addColumn tableName=ACT_CMMN_DEPLOYMENT_RESOURCE; addColumn tableName=ACT_CMMN_RU_CASE_INST; addColumn tableName=ACT_CMMN_RU_PLAN_ITEM_INST', '', NULL, '3.6.3', NULL, NULL, '4629284549');
  167. INSERT INTO "act_cmmn_databasechangelog" VALUES ('3', 'flowable', 'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', '2019-08-01 11:14:44.760777', 3, 'EXECUTED', '8:c01f6e802b49436b4489040da3012359', 'addColumn tableName=ACT_CMMN_RU_PLAN_ITEM_INST; addColumn tableName=ACT_CMMN_RU_CASE_INST; createIndex indexName=ACT_IDX_PLAN_ITEM_STAGE_INST, tableName=ACT_CMMN_RU_PLAN_ITEM_INST; addColumn tableName=ACT_CMMN_RU_PLAN_ITEM_INST; addColumn tableNam...', '', NULL, '3.6.3', NULL, NULL, '4629284549');
  168. INSERT INTO "act_cmmn_databasechangelog" VALUES ('4', 'flowable', 'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', '2019-08-01 11:14:44.77726', 4, 'EXECUTED', '8:e40d29cb79345b7fb5afd38a7f0ba8fc', 'createTable tableName=ACT_CMMN_HI_PLAN_ITEM_INST; addColumn tableName=ACT_CMMN_RU_MIL_INST; addColumn tableName=ACT_CMMN_HI_MIL_INST', '', NULL, '3.6.3', NULL, NULL, '4629284549');
  169. INSERT INTO "act_cmmn_databasechangelog" VALUES ('6', 'flowable', 'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', '2019-08-01 11:14:44.786077', 5, 'EXECUTED', '8:10e82e26a7fee94c32a92099c059c18c', 'createIndex indexName=ACT_IDX_CASE_DEF_UNIQ, tableName=ACT_CMMN_CASEDEF', '', NULL, '3.6.3', NULL, NULL, '4629284549');
  170. INSERT INTO "act_cmmn_databasechangelog" VALUES ('7', 'flowable', 'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', '2019-08-01 11:14:44.810331', 6, 'EXECUTED', '8:530bc81a1e30618ccf4a2da1f7c6c043', 'renameColumn newColumnName=CREATE_TIME_, oldColumnName=START_TIME_, tableName=ACT_CMMN_RU_PLAN_ITEM_INST; renameColumn newColumnName=CREATE_TIME_, oldColumnName=CREATED_TIME_, tableName=ACT_CMMN_HI_PLAN_ITEM_INST; addColumn tableName=ACT_CMMN_RU_P...', '', NULL, '3.6.3', NULL, NULL, '4629284549');
  171. COMMIT;
  172. -- ----------------------------
  173. -- Table structure for act_cmmn_databasechangeloglock
  174. -- ----------------------------
  175. DROP TABLE IF EXISTS "act_cmmn_databasechangeloglock";
  176. CREATE TABLE "act_cmmn_databasechangeloglock" (
  177. "id" int4 NOT NULL,
  178. "locked" bool NOT NULL,
  179. "lockgranted" timestamp(6),
  180. "lockedby" varchar(255) COLLATE "pg_catalog"."default"
  181. )
  182. ;
  183. -- ----------------------------
  184. -- Records of act_cmmn_databasechangeloglock
  185. -- ----------------------------
  186. BEGIN;
  187. INSERT INTO "act_cmmn_databasechangeloglock" VALUES (1, 'f', NULL, NULL);
  188. COMMIT;
  189. -- ----------------------------
  190. -- Table structure for act_cmmn_deployment
  191. -- ----------------------------
  192. DROP TABLE IF EXISTS "act_cmmn_deployment";
  193. CREATE TABLE "act_cmmn_deployment" (
  194. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  195. "name_" varchar(255) COLLATE "pg_catalog"."default",
  196. "category_" varchar(255) COLLATE "pg_catalog"."default",
  197. "key_" varchar(255) COLLATE "pg_catalog"."default",
  198. "deploy_time_" timestamp(6),
  199. "parent_deployment_id_" varchar(255) COLLATE "pg_catalog"."default",
  200. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  201. )
  202. ;
  203. -- ----------------------------
  204. -- Table structure for act_cmmn_deployment_resource
  205. -- ----------------------------
  206. DROP TABLE IF EXISTS "act_cmmn_deployment_resource";
  207. CREATE TABLE "act_cmmn_deployment_resource" (
  208. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  209. "name_" varchar(255) COLLATE "pg_catalog"."default",
  210. "deployment_id_" varchar(255) COLLATE "pg_catalog"."default",
  211. "resource_bytes_" bytea,
  212. "generated_" bool
  213. )
  214. ;
  215. -- ----------------------------
  216. -- Table structure for act_cmmn_hi_case_inst
  217. -- ----------------------------
  218. DROP TABLE IF EXISTS "act_cmmn_hi_case_inst";
  219. CREATE TABLE "act_cmmn_hi_case_inst" (
  220. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  221. "rev_" int4 NOT NULL,
  222. "business_key_" varchar(255) COLLATE "pg_catalog"."default",
  223. "name_" varchar(255) COLLATE "pg_catalog"."default",
  224. "parent_id_" varchar(255) COLLATE "pg_catalog"."default",
  225. "case_def_id_" varchar(255) COLLATE "pg_catalog"."default",
  226. "state_" varchar(255) COLLATE "pg_catalog"."default",
  227. "start_time_" timestamp(6),
  228. "end_time_" timestamp(6),
  229. "start_user_id_" varchar(255) COLLATE "pg_catalog"."default",
  230. "callback_id_" varchar(255) COLLATE "pg_catalog"."default",
  231. "callback_type_" varchar(255) COLLATE "pg_catalog"."default",
  232. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  233. )
  234. ;
  235. -- ----------------------------
  236. -- Table structure for act_cmmn_hi_mil_inst
  237. -- ----------------------------
  238. DROP TABLE IF EXISTS "act_cmmn_hi_mil_inst";
  239. CREATE TABLE "act_cmmn_hi_mil_inst" (
  240. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  241. "rev_" int4 NOT NULL,
  242. "name_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  243. "time_stamp_" timestamp(6) NOT NULL,
  244. "case_inst_id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  245. "case_def_id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  246. "element_id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  247. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  248. )
  249. ;
  250. -- ----------------------------
  251. -- Table structure for act_cmmn_hi_plan_item_inst
  252. -- ----------------------------
  253. DROP TABLE IF EXISTS "act_cmmn_hi_plan_item_inst";
  254. CREATE TABLE "act_cmmn_hi_plan_item_inst" (
  255. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  256. "rev_" int4 NOT NULL,
  257. "name_" varchar(255) COLLATE "pg_catalog"."default",
  258. "state_" varchar(255) COLLATE "pg_catalog"."default",
  259. "case_def_id_" varchar(255) COLLATE "pg_catalog"."default",
  260. "case_inst_id_" varchar(255) COLLATE "pg_catalog"."default",
  261. "stage_inst_id_" varchar(255) COLLATE "pg_catalog"."default",
  262. "is_stage_" bool,
  263. "element_id_" varchar(255) COLLATE "pg_catalog"."default",
  264. "item_definition_id_" varchar(255) COLLATE "pg_catalog"."default",
  265. "item_definition_type_" varchar(255) COLLATE "pg_catalog"."default",
  266. "create_time_" timestamp(6),
  267. "last_available_time_" timestamp(6),
  268. "last_enabled_time_" timestamp(6),
  269. "last_disabled_time_" timestamp(6),
  270. "last_started_time_" timestamp(6),
  271. "last_suspended_time_" timestamp(6),
  272. "completed_time_" timestamp(6),
  273. "occurred_time_" timestamp(6),
  274. "terminated_time_" timestamp(6),
  275. "exit_time_" timestamp(6),
  276. "ended_time_" timestamp(6),
  277. "last_updated_time_" timestamp(6),
  278. "start_user_id_" varchar(255) COLLATE "pg_catalog"."default",
  279. "reference_id_" varchar(255) COLLATE "pg_catalog"."default",
  280. "reference_type_" varchar(255) COLLATE "pg_catalog"."default",
  281. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  282. "entry_criterion_id_" varchar(255) COLLATE "pg_catalog"."default",
  283. "exit_criterion_id_" varchar(255) COLLATE "pg_catalog"."default"
  284. )
  285. ;
  286. -- ----------------------------
  287. -- Table structure for act_cmmn_ru_case_inst
  288. -- ----------------------------
  289. DROP TABLE IF EXISTS "act_cmmn_ru_case_inst";
  290. CREATE TABLE "act_cmmn_ru_case_inst" (
  291. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  292. "rev_" int4 NOT NULL,
  293. "business_key_" varchar(255) COLLATE "pg_catalog"."default",
  294. "name_" varchar(255) COLLATE "pg_catalog"."default",
  295. "parent_id_" varchar(255) COLLATE "pg_catalog"."default",
  296. "case_def_id_" varchar(255) COLLATE "pg_catalog"."default",
  297. "state_" varchar(255) COLLATE "pg_catalog"."default",
  298. "start_time_" timestamp(6),
  299. "start_user_id_" varchar(255) COLLATE "pg_catalog"."default",
  300. "callback_id_" varchar(255) COLLATE "pg_catalog"."default",
  301. "callback_type_" varchar(255) COLLATE "pg_catalog"."default",
  302. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  303. "lock_time_" timestamp(6),
  304. "is_completeable_" bool
  305. )
  306. ;
  307. -- ----------------------------
  308. -- Table structure for act_cmmn_ru_mil_inst
  309. -- ----------------------------
  310. DROP TABLE IF EXISTS "act_cmmn_ru_mil_inst";
  311. CREATE TABLE "act_cmmn_ru_mil_inst" (
  312. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  313. "name_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  314. "time_stamp_" timestamp(6) NOT NULL,
  315. "case_inst_id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  316. "case_def_id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  317. "element_id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  318. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  319. )
  320. ;
  321. -- ----------------------------
  322. -- Table structure for act_cmmn_ru_plan_item_inst
  323. -- ----------------------------
  324. DROP TABLE IF EXISTS "act_cmmn_ru_plan_item_inst";
  325. CREATE TABLE "act_cmmn_ru_plan_item_inst" (
  326. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  327. "rev_" int4 NOT NULL,
  328. "case_def_id_" varchar(255) COLLATE "pg_catalog"."default",
  329. "case_inst_id_" varchar(255) COLLATE "pg_catalog"."default",
  330. "stage_inst_id_" varchar(255) COLLATE "pg_catalog"."default",
  331. "is_stage_" bool,
  332. "element_id_" varchar(255) COLLATE "pg_catalog"."default",
  333. "name_" varchar(255) COLLATE "pg_catalog"."default",
  334. "state_" varchar(255) COLLATE "pg_catalog"."default",
  335. "create_time_" timestamp(6),
  336. "start_user_id_" varchar(255) COLLATE "pg_catalog"."default",
  337. "reference_id_" varchar(255) COLLATE "pg_catalog"."default",
  338. "reference_type_" varchar(255) COLLATE "pg_catalog"."default",
  339. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  340. "item_definition_id_" varchar(255) COLLATE "pg_catalog"."default",
  341. "item_definition_type_" varchar(255) COLLATE "pg_catalog"."default",
  342. "is_completeable_" bool,
  343. "is_count_enabled_" bool,
  344. "var_count_" int4,
  345. "sentry_part_inst_count_" int4,
  346. "last_available_time_" timestamp(3),
  347. "last_enabled_time_" timestamp(3),
  348. "last_disabled_time_" timestamp(3),
  349. "last_started_time_" timestamp(3),
  350. "last_suspended_time_" timestamp(3),
  351. "completed_time_" timestamp(3),
  352. "occurred_time_" timestamp(3),
  353. "terminated_time_" timestamp(3),
  354. "exit_time_" timestamp(3),
  355. "ended_time_" timestamp(3),
  356. "entry_criterion_id_" varchar(255) COLLATE "pg_catalog"."default",
  357. "exit_criterion_id_" varchar(255) COLLATE "pg_catalog"."default"
  358. )
  359. ;
  360. -- ----------------------------
  361. -- Table structure for act_cmmn_ru_sentry_part_inst
  362. -- ----------------------------
  363. DROP TABLE IF EXISTS "act_cmmn_ru_sentry_part_inst";
  364. CREATE TABLE "act_cmmn_ru_sentry_part_inst" (
  365. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  366. "rev_" int4 NOT NULL,
  367. "case_def_id_" varchar(255) COLLATE "pg_catalog"."default",
  368. "case_inst_id_" varchar(255) COLLATE "pg_catalog"."default",
  369. "plan_item_inst_id_" varchar(255) COLLATE "pg_catalog"."default",
  370. "on_part_id_" varchar(255) COLLATE "pg_catalog"."default",
  371. "if_part_id_" varchar(255) COLLATE "pg_catalog"."default",
  372. "time_stamp_" timestamp(6)
  373. )
  374. ;
  375. -- ----------------------------
  376. -- Table structure for act_co_content_item
  377. -- ----------------------------
  378. DROP TABLE IF EXISTS "act_co_content_item";
  379. CREATE TABLE "act_co_content_item" (
  380. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  381. "name_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  382. "mime_type_" varchar(255) COLLATE "pg_catalog"."default",
  383. "task_id_" varchar(255) COLLATE "pg_catalog"."default",
  384. "proc_inst_id_" varchar(255) COLLATE "pg_catalog"."default",
  385. "content_store_id_" varchar(255) COLLATE "pg_catalog"."default",
  386. "content_store_name_" varchar(255) COLLATE "pg_catalog"."default",
  387. "field_" varchar(400) COLLATE "pg_catalog"."default",
  388. "content_available_" bool DEFAULT false,
  389. "created_" timestamp(6),
  390. "created_by_" varchar(255) COLLATE "pg_catalog"."default",
  391. "last_modified_" timestamp(6),
  392. "last_modified_by_" varchar(255) COLLATE "pg_catalog"."default",
  393. "content_size_" int8 DEFAULT 0,
  394. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default",
  395. "scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  396. "scope_type_" varchar(255) COLLATE "pg_catalog"."default"
  397. )
  398. ;
  399. -- ----------------------------
  400. -- Table structure for act_co_databasechangelog
  401. -- ----------------------------
  402. DROP TABLE IF EXISTS "act_co_databasechangelog";
  403. CREATE TABLE "act_co_databasechangelog" (
  404. "id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  405. "author" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  406. "filename" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  407. "dateexecuted" timestamp(6) NOT NULL,
  408. "orderexecuted" int4 NOT NULL,
  409. "exectype" varchar(10) COLLATE "pg_catalog"."default" NOT NULL,
  410. "md5sum" varchar(35) COLLATE "pg_catalog"."default",
  411. "description" varchar(255) COLLATE "pg_catalog"."default",
  412. "comments" varchar(255) COLLATE "pg_catalog"."default",
  413. "tag" varchar(255) COLLATE "pg_catalog"."default",
  414. "liquibase" varchar(20) COLLATE "pg_catalog"."default",
  415. "contexts" varchar(255) COLLATE "pg_catalog"."default",
  416. "labels" varchar(255) COLLATE "pg_catalog"."default",
  417. "deployment_id" varchar(10) COLLATE "pg_catalog"."default"
  418. )
  419. ;
  420. -- ----------------------------
  421. -- Records of act_co_databasechangelog
  422. -- ----------------------------
  423. BEGIN;
  424. INSERT INTO "act_co_databasechangelog" VALUES ('1', 'activiti', 'org/flowable/content/db/liquibase/flowable-content-db-changelog.xml', '2019-08-01 11:14:44.385299', 1, 'EXECUTED', '8:7644d7165cfe799200a2abdd3419e8b6', 'createTable tableName=ACT_CO_CONTENT_ITEM; createIndex indexName=idx_contitem_taskid, tableName=ACT_CO_CONTENT_ITEM; createIndex indexName=idx_contitem_procid, tableName=ACT_CO_CONTENT_ITEM', '', NULL, '3.6.3', NULL, NULL, '4629284351');
  425. INSERT INTO "act_co_databasechangelog" VALUES ('2', 'flowable', 'org/flowable/content/db/liquibase/flowable-content-db-changelog.xml', '2019-08-01 11:14:44.398737', 2, 'EXECUTED', '8:fe7b11ac7dbbf9c43006b23bbab60bab', 'addColumn tableName=ACT_CO_CONTENT_ITEM; createIndex indexName=idx_contitem_scope, tableName=ACT_CO_CONTENT_ITEM', '', NULL, '3.6.3', NULL, NULL, '4629284351');
  426. COMMIT;
  427. -- ----------------------------
  428. -- Table structure for act_co_databasechangeloglock
  429. -- ----------------------------
  430. DROP TABLE IF EXISTS "act_co_databasechangeloglock";
  431. CREATE TABLE "act_co_databasechangeloglock" (
  432. "id" int4 NOT NULL,
  433. "locked" bool NOT NULL,
  434. "lockgranted" timestamp(6),
  435. "lockedby" varchar(255) COLLATE "pg_catalog"."default"
  436. )
  437. ;
  438. -- ----------------------------
  439. -- Records of act_co_databasechangeloglock
  440. -- ----------------------------
  441. BEGIN;
  442. INSERT INTO "act_co_databasechangeloglock" VALUES (1, 'f', NULL, NULL);
  443. COMMIT;
  444. -- ----------------------------
  445. -- Table structure for act_de_databasechangelog
  446. -- ----------------------------
  447. DROP TABLE IF EXISTS "act_de_databasechangelog";
  448. CREATE TABLE "act_de_databasechangelog" (
  449. "id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  450. "author" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  451. "filename" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  452. "dateexecuted" timestamp(6) NOT NULL,
  453. "orderexecuted" int4 NOT NULL,
  454. "exectype" varchar(10) COLLATE "pg_catalog"."default" NOT NULL,
  455. "md5sum" varchar(35) COLLATE "pg_catalog"."default",
  456. "description" varchar(255) COLLATE "pg_catalog"."default",
  457. "comments" varchar(255) COLLATE "pg_catalog"."default",
  458. "tag" varchar(255) COLLATE "pg_catalog"."default",
  459. "liquibase" varchar(20) COLLATE "pg_catalog"."default",
  460. "contexts" varchar(255) COLLATE "pg_catalog"."default",
  461. "labels" varchar(255) COLLATE "pg_catalog"."default",
  462. "deployment_id" varchar(10) COLLATE "pg_catalog"."default"
  463. )
  464. ;
  465. -- ----------------------------
  466. -- Records of act_de_databasechangelog
  467. -- ----------------------------
  468. BEGIN;
  469. INSERT INTO "act_de_databasechangelog" VALUES ('1', 'flowable', 'META-INF/liquibase/flowable-modeler-app-db-changelog.xml', '2019-08-01 11:15:20.699493', 1, 'EXECUTED', '8:e70d1d9d3899a734296b2514ccc71501', 'createTable tableName=ACT_DE_MODEL; createIndex indexName=idx_proc_mod_created, tableName=ACT_DE_MODEL; createTable tableName=ACT_DE_MODEL_HISTORY; createIndex indexName=idx_proc_mod_history_proc, tableName=ACT_DE_MODEL_HISTORY; createTable tableN...', '', NULL, '3.6.3', NULL, NULL, '4629320613');
  470. INSERT INTO "act_de_databasechangelog" VALUES ('3', 'flowable', 'META-INF/liquibase/flowable-modeler-app-db-changelog.xml', '2019-08-01 11:15:20.714118', 2, 'EXECUTED', '8:3a9143bef2e45f2316231cc1369138b6', 'addColumn tableName=ACT_DE_MODEL; addColumn tableName=ACT_DE_MODEL_HISTORY', '', NULL, '3.6.3', NULL, NULL, '4629320613');
  471. COMMIT;
  472. -- ----------------------------
  473. -- Table structure for act_de_databasechangeloglock
  474. -- ----------------------------
  475. DROP TABLE IF EXISTS "act_de_databasechangeloglock";
  476. CREATE TABLE "act_de_databasechangeloglock" (
  477. "id" int4 NOT NULL,
  478. "locked" bool NOT NULL,
  479. "lockgranted" timestamp(6),
  480. "lockedby" varchar(255) COLLATE "pg_catalog"."default"
  481. )
  482. ;
  483. -- ----------------------------
  484. -- Records of act_de_databasechangeloglock
  485. -- ----------------------------
  486. BEGIN;
  487. INSERT INTO "act_de_databasechangeloglock" VALUES (1, 'f', NULL, NULL);
  488. COMMIT;
  489. -- ----------------------------
  490. -- Table structure for act_de_model
  491. -- ----------------------------
  492. DROP TABLE IF EXISTS "act_de_model";
  493. CREATE TABLE "act_de_model" (
  494. "id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  495. "name" varchar(400) COLLATE "pg_catalog"."default" NOT NULL,
  496. "model_key" varchar(400) COLLATE "pg_catalog"."default" NOT NULL,
  497. "description" varchar(4000) COLLATE "pg_catalog"."default",
  498. "model_comment" varchar(4000) COLLATE "pg_catalog"."default",
  499. "created" timestamp(6),
  500. "created_by" varchar(255) COLLATE "pg_catalog"."default",
  501. "last_updated" timestamp(6),
  502. "last_updated_by" varchar(255) COLLATE "pg_catalog"."default",
  503. "version" int4,
  504. "model_editor_json" text COLLATE "pg_catalog"."default",
  505. "model_editor_xml" text COLLATE "pg_catalog"."default",
  506. "thumbnail" bytea,
  507. "model_type" int4,
  508. "tenant_id" varchar(255) COLLATE "pg_catalog"."default"
  509. )
  510. ;
  511. -- ----------------------------
  512. -- Table structure for act_de_model_history
  513. -- ----------------------------
  514. DROP TABLE IF EXISTS "act_de_model_history";
  515. CREATE TABLE "act_de_model_history" (
  516. "id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  517. "name" varchar(400) COLLATE "pg_catalog"."default" NOT NULL,
  518. "model_key" varchar(400) COLLATE "pg_catalog"."default" NOT NULL,
  519. "description" varchar(4000) COLLATE "pg_catalog"."default",
  520. "model_comment" varchar(4000) COLLATE "pg_catalog"."default",
  521. "created" timestamp(6),
  522. "created_by" varchar(255) COLLATE "pg_catalog"."default",
  523. "last_updated" timestamp(6),
  524. "last_updated_by" varchar(255) COLLATE "pg_catalog"."default",
  525. "removal_date" timestamp(6),
  526. "version" int4,
  527. "model_editor_json" text COLLATE "pg_catalog"."default",
  528. "model_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  529. "model_type" int4,
  530. "tenant_id" varchar(255) COLLATE "pg_catalog"."default"
  531. )
  532. ;
  533. -- ----------------------------
  534. -- Table structure for act_de_model_relation
  535. -- ----------------------------
  536. DROP TABLE IF EXISTS "act_de_model_relation";
  537. CREATE TABLE "act_de_model_relation" (
  538. "id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  539. "parent_model_id" varchar(255) COLLATE "pg_catalog"."default",
  540. "model_id" varchar(255) COLLATE "pg_catalog"."default",
  541. "relation_type" varchar(255) COLLATE "pg_catalog"."default"
  542. )
  543. ;
  544. -- ----------------------------
  545. -- Table structure for act_dmn_databasechangelog
  546. -- ----------------------------
  547. DROP TABLE IF EXISTS "act_dmn_databasechangelog";
  548. CREATE TABLE "act_dmn_databasechangelog" (
  549. "id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  550. "author" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  551. "filename" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  552. "dateexecuted" timestamp(6) NOT NULL,
  553. "orderexecuted" int4 NOT NULL,
  554. "exectype" varchar(10) COLLATE "pg_catalog"."default" NOT NULL,
  555. "md5sum" varchar(35) COLLATE "pg_catalog"."default",
  556. "description" varchar(255) COLLATE "pg_catalog"."default",
  557. "comments" varchar(255) COLLATE "pg_catalog"."default",
  558. "tag" varchar(255) COLLATE "pg_catalog"."default",
  559. "liquibase" varchar(20) COLLATE "pg_catalog"."default",
  560. "contexts" varchar(255) COLLATE "pg_catalog"."default",
  561. "labels" varchar(255) COLLATE "pg_catalog"."default",
  562. "deployment_id" varchar(10) COLLATE "pg_catalog"."default"
  563. )
  564. ;
  565. -- ----------------------------
  566. -- Records of act_dmn_databasechangelog
  567. -- ----------------------------
  568. BEGIN;
  569. INSERT INTO "act_dmn_databasechangelog" VALUES ('1', 'activiti', 'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', '2019-08-01 11:14:44.107764', 1, 'EXECUTED', '8:c8701f1c71018b55029f450b2e9a10a1', 'createTable tableName=ACT_DMN_DEPLOYMENT; createTable tableName=ACT_DMN_DEPLOYMENT_RESOURCE; createTable tableName=ACT_DMN_DECISION_TABLE', '', NULL, '3.6.3', NULL, NULL, '4629284058');
  570. INSERT INTO "act_dmn_databasechangelog" VALUES ('2', 'flowable', 'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', '2019-08-01 11:14:44.126839', 2, 'EXECUTED', '8:47f94b27feb7df8a30d4e338c7bd5fb8', 'createTable tableName=ACT_DMN_HI_DECISION_EXECUTION', '', NULL, '3.6.3', NULL, NULL, '4629284058');
  571. INSERT INTO "act_dmn_databasechangelog" VALUES ('3', 'flowable', 'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', '2019-08-01 11:14:44.132822', 3, 'EXECUTED', '8:ac17eae89fbdccb6e08daf3c7797b579', 'addColumn tableName=ACT_DMN_HI_DECISION_EXECUTION', '', NULL, '3.6.3', NULL, NULL, '4629284058');
  572. INSERT INTO "act_dmn_databasechangelog" VALUES ('4', 'flowable', 'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', '2019-08-01 11:14:44.140014', 4, 'EXECUTED', '8:f73aabc4529e7292c2942073d1cff6f9', 'dropColumn columnName=PARENT_DEPLOYMENT_ID_, tableName=ACT_DMN_DECISION_TABLE', '', NULL, '3.6.3', NULL, NULL, '4629284058');
  573. INSERT INTO "act_dmn_databasechangelog" VALUES ('6', 'flowable', 'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', '2019-08-01 11:14:44.147178', 5, 'EXECUTED', '8:646c6a061e0b6e8a62e69844ff96abb0', 'createIndex indexName=ACT_IDX_DEC_TBL_UNIQ, tableName=ACT_DMN_DECISION_TABLE', '', NULL, '3.6.3', NULL, NULL, '4629284058');
  574. COMMIT;
  575. -- ----------------------------
  576. -- Table structure for act_dmn_databasechangeloglock
  577. -- ----------------------------
  578. DROP TABLE IF EXISTS "act_dmn_databasechangeloglock";
  579. CREATE TABLE "act_dmn_databasechangeloglock" (
  580. "id" int4 NOT NULL,
  581. "locked" bool NOT NULL,
  582. "lockgranted" timestamp(6),
  583. "lockedby" varchar(255) COLLATE "pg_catalog"."default"
  584. )
  585. ;
  586. -- ----------------------------
  587. -- Records of act_dmn_databasechangeloglock
  588. -- ----------------------------
  589. BEGIN;
  590. INSERT INTO "act_dmn_databasechangeloglock" VALUES (1, 'f', NULL, NULL);
  591. COMMIT;
  592. -- ----------------------------
  593. -- Table structure for act_dmn_decision_table
  594. -- ----------------------------
  595. DROP TABLE IF EXISTS "act_dmn_decision_table";
  596. CREATE TABLE "act_dmn_decision_table" (
  597. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  598. "name_" varchar(255) COLLATE "pg_catalog"."default",
  599. "version_" int4,
  600. "key_" varchar(255) COLLATE "pg_catalog"."default",
  601. "category_" varchar(255) COLLATE "pg_catalog"."default",
  602. "deployment_id_" varchar(255) COLLATE "pg_catalog"."default",
  603. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default",
  604. "resource_name_" varchar(255) COLLATE "pg_catalog"."default",
  605. "description_" varchar(255) COLLATE "pg_catalog"."default"
  606. )
  607. ;
  608. -- ----------------------------
  609. -- Table structure for act_dmn_deployment
  610. -- ----------------------------
  611. DROP TABLE IF EXISTS "act_dmn_deployment";
  612. CREATE TABLE "act_dmn_deployment" (
  613. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  614. "name_" varchar(255) COLLATE "pg_catalog"."default",
  615. "category_" varchar(255) COLLATE "pg_catalog"."default",
  616. "deploy_time_" timestamp(6),
  617. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default",
  618. "parent_deployment_id_" varchar(255) COLLATE "pg_catalog"."default"
  619. )
  620. ;
  621. -- ----------------------------
  622. -- Table structure for act_dmn_deployment_resource
  623. -- ----------------------------
  624. DROP TABLE IF EXISTS "act_dmn_deployment_resource";
  625. CREATE TABLE "act_dmn_deployment_resource" (
  626. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  627. "name_" varchar(255) COLLATE "pg_catalog"."default",
  628. "deployment_id_" varchar(255) COLLATE "pg_catalog"."default",
  629. "resource_bytes_" bytea
  630. )
  631. ;
  632. -- ----------------------------
  633. -- Table structure for act_dmn_hi_decision_execution
  634. -- ----------------------------
  635. DROP TABLE IF EXISTS "act_dmn_hi_decision_execution";
  636. CREATE TABLE "act_dmn_hi_decision_execution" (
  637. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  638. "decision_definition_id_" varchar(255) COLLATE "pg_catalog"."default",
  639. "deployment_id_" varchar(255) COLLATE "pg_catalog"."default",
  640. "start_time_" timestamp(6),
  641. "end_time_" timestamp(6),
  642. "instance_id_" varchar(255) COLLATE "pg_catalog"."default",
  643. "execution_id_" varchar(255) COLLATE "pg_catalog"."default",
  644. "activity_id_" varchar(255) COLLATE "pg_catalog"."default",
  645. "failed_" bool DEFAULT false,
  646. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default",
  647. "execution_json_" text COLLATE "pg_catalog"."default",
  648. "scope_type_" varchar(255) COLLATE "pg_catalog"."default"
  649. )
  650. ;
  651. -- ----------------------------
  652. -- Table structure for act_evt_log
  653. -- ----------------------------
  654. DROP TABLE IF EXISTS "act_evt_log";
  655. CREATE TABLE "act_evt_log" (
  656. "log_nr_" int4 NOT NULL DEFAULT nextval('act_evt_log_log_nr__seq'::regclass),
  657. "type_" varchar(64) COLLATE "pg_catalog"."default",
  658. "proc_def_id_" varchar(64) COLLATE "pg_catalog"."default",
  659. "proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default",
  660. "execution_id_" varchar(64) COLLATE "pg_catalog"."default",
  661. "task_id_" varchar(64) COLLATE "pg_catalog"."default",
  662. "time_stamp_" timestamp(6) NOT NULL,
  663. "user_id_" varchar(255) COLLATE "pg_catalog"."default",
  664. "data_" bytea,
  665. "lock_owner_" varchar(255) COLLATE "pg_catalog"."default",
  666. "lock_time_" timestamp(6),
  667. "is_processed_" int2 DEFAULT 0
  668. )
  669. ;
  670. -- ----------------------------
  671. -- Table structure for act_fo_databasechangelog
  672. -- ----------------------------
  673. DROP TABLE IF EXISTS "act_fo_databasechangelog";
  674. CREATE TABLE "act_fo_databasechangelog" (
  675. "id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  676. "author" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  677. "filename" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  678. "dateexecuted" timestamp(6) NOT NULL,
  679. "orderexecuted" int4 NOT NULL,
  680. "exectype" varchar(10) COLLATE "pg_catalog"."default" NOT NULL,
  681. "md5sum" varchar(35) COLLATE "pg_catalog"."default",
  682. "description" varchar(255) COLLATE "pg_catalog"."default",
  683. "comments" varchar(255) COLLATE "pg_catalog"."default",
  684. "tag" varchar(255) COLLATE "pg_catalog"."default",
  685. "liquibase" varchar(20) COLLATE "pg_catalog"."default",
  686. "contexts" varchar(255) COLLATE "pg_catalog"."default",
  687. "labels" varchar(255) COLLATE "pg_catalog"."default",
  688. "deployment_id" varchar(10) COLLATE "pg_catalog"."default"
  689. )
  690. ;
  691. -- ----------------------------
  692. -- Records of act_fo_databasechangelog
  693. -- ----------------------------
  694. BEGIN;
  695. INSERT INTO "act_fo_databasechangelog" VALUES ('1', 'activiti', 'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', '2019-08-01 11:14:44.257713', 1, 'EXECUTED', '8:033ebf9380889aed7c453927ecc3250d', 'createTable tableName=ACT_FO_FORM_DEPLOYMENT; createTable tableName=ACT_FO_FORM_RESOURCE; createTable tableName=ACT_FO_FORM_DEFINITION; createTable tableName=ACT_FO_FORM_INSTANCE', '', NULL, '3.6.3', NULL, NULL, '4629284208');
  696. INSERT INTO "act_fo_databasechangelog" VALUES ('2', 'flowable', 'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', '2019-08-01 11:14:44.269617', 2, 'EXECUTED', '8:986365ceb40445ce3b27a8e6b40f159b', 'addColumn tableName=ACT_FO_FORM_INSTANCE', '', NULL, '3.6.3', NULL, NULL, '4629284208');
  697. INSERT INTO "act_fo_databasechangelog" VALUES ('3', 'flowable', 'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', '2019-08-01 11:14:44.276052', 3, 'EXECUTED', '8:abf482518ceb09830ef674e52c06bf15', 'dropColumn columnName=PARENT_DEPLOYMENT_ID_, tableName=ACT_FO_FORM_DEFINITION', '', NULL, '3.6.3', NULL, NULL, '4629284208');
  698. INSERT INTO "act_fo_databasechangelog" VALUES ('5', 'flowable', 'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', '2019-08-01 11:14:44.2847', 4, 'EXECUTED', '8:b4be732b89e5ca028bdd520c6ad4d446', 'createIndex indexName=ACT_IDX_FORM_DEF_UNIQ, tableName=ACT_FO_FORM_DEFINITION', '', NULL, '3.6.3', NULL, NULL, '4629284208');
  699. COMMIT;
  700. -- ----------------------------
  701. -- Table structure for act_fo_databasechangeloglock
  702. -- ----------------------------
  703. DROP TABLE IF EXISTS "act_fo_databasechangeloglock";
  704. CREATE TABLE "act_fo_databasechangeloglock" (
  705. "id" int4 NOT NULL,
  706. "locked" bool NOT NULL,
  707. "lockgranted" timestamp(6),
  708. "lockedby" varchar(255) COLLATE "pg_catalog"."default"
  709. )
  710. ;
  711. -- ----------------------------
  712. -- Records of act_fo_databasechangeloglock
  713. -- ----------------------------
  714. BEGIN;
  715. INSERT INTO "act_fo_databasechangeloglock" VALUES (1, 'f', NULL, NULL);
  716. COMMIT;
  717. -- ----------------------------
  718. -- Table structure for act_fo_form_definition
  719. -- ----------------------------
  720. DROP TABLE IF EXISTS "act_fo_form_definition";
  721. CREATE TABLE "act_fo_form_definition" (
  722. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  723. "name_" varchar(255) COLLATE "pg_catalog"."default",
  724. "version_" int4,
  725. "key_" varchar(255) COLLATE "pg_catalog"."default",
  726. "category_" varchar(255) COLLATE "pg_catalog"."default",
  727. "deployment_id_" varchar(255) COLLATE "pg_catalog"."default",
  728. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default",
  729. "resource_name_" varchar(255) COLLATE "pg_catalog"."default",
  730. "description_" varchar(255) COLLATE "pg_catalog"."default"
  731. )
  732. ;
  733. -- ----------------------------
  734. -- Table structure for act_fo_form_deployment
  735. -- ----------------------------
  736. DROP TABLE IF EXISTS "act_fo_form_deployment";
  737. CREATE TABLE "act_fo_form_deployment" (
  738. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  739. "name_" varchar(255) COLLATE "pg_catalog"."default",
  740. "category_" varchar(255) COLLATE "pg_catalog"."default",
  741. "deploy_time_" timestamp(6),
  742. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default",
  743. "parent_deployment_id_" varchar(255) COLLATE "pg_catalog"."default"
  744. )
  745. ;
  746. -- ----------------------------
  747. -- Table structure for act_fo_form_instance
  748. -- ----------------------------
  749. DROP TABLE IF EXISTS "act_fo_form_instance";
  750. CREATE TABLE "act_fo_form_instance" (
  751. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  752. "form_definition_id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  753. "task_id_" varchar(255) COLLATE "pg_catalog"."default",
  754. "proc_inst_id_" varchar(255) COLLATE "pg_catalog"."default",
  755. "proc_def_id_" varchar(255) COLLATE "pg_catalog"."default",
  756. "submitted_date_" timestamp(6),
  757. "submitted_by_" varchar(255) COLLATE "pg_catalog"."default",
  758. "form_values_id_" varchar(255) COLLATE "pg_catalog"."default",
  759. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default",
  760. "scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  761. "scope_type_" varchar(255) COLLATE "pg_catalog"."default",
  762. "scope_definition_id_" varchar(255) COLLATE "pg_catalog"."default"
  763. )
  764. ;
  765. -- ----------------------------
  766. -- Table structure for act_fo_form_resource
  767. -- ----------------------------
  768. DROP TABLE IF EXISTS "act_fo_form_resource";
  769. CREATE TABLE "act_fo_form_resource" (
  770. "id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  771. "name_" varchar(255) COLLATE "pg_catalog"."default",
  772. "deployment_id_" varchar(255) COLLATE "pg_catalog"."default",
  773. "resource_bytes_" bytea
  774. )
  775. ;
  776. -- ----------------------------
  777. -- Table structure for act_ge_bytearray
  778. -- ----------------------------
  779. DROP TABLE IF EXISTS "act_ge_bytearray";
  780. CREATE TABLE "act_ge_bytearray" (
  781. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  782. "rev_" int4,
  783. "name_" varchar(255) COLLATE "pg_catalog"."default",
  784. "deployment_id_" varchar(64) COLLATE "pg_catalog"."default",
  785. "bytes_" bytea,
  786. "generated_" bool
  787. )
  788. ;
  789. -- ----------------------------
  790. -- Table structure for act_ge_property
  791. -- ----------------------------
  792. DROP TABLE IF EXISTS "act_ge_property";
  793. CREATE TABLE "act_ge_property" (
  794. "name_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  795. "value_" varchar(300) COLLATE "pg_catalog"."default",
  796. "rev_" int4
  797. )
  798. ;
  799. -- ----------------------------
  800. -- Records of act_ge_property
  801. -- ----------------------------
  802. BEGIN;
  803. INSERT INTO "act_ge_property" VALUES ('common.schema.version', '6.5.0.1', 1);
  804. INSERT INTO "act_ge_property" VALUES ('next.dbid', '1', 1);
  805. INSERT INTO "act_ge_property" VALUES ('identitylink.schema.version', '6.5.0.1', 1);
  806. INSERT INTO "act_ge_property" VALUES ('entitylink.schema.version', '6.5.0.1', 1);
  807. INSERT INTO "act_ge_property" VALUES ('eventsubscription.schema.version', '6.5.0.1', 1);
  808. INSERT INTO "act_ge_property" VALUES ('task.schema.version', '6.5.0.1', 1);
  809. INSERT INTO "act_ge_property" VALUES ('variable.schema.version', '6.5.0.1', 1);
  810. INSERT INTO "act_ge_property" VALUES ('job.schema.version', '6.5.0.1', 1);
  811. INSERT INTO "act_ge_property" VALUES ('schema.version', '6.5.0.1', 1);
  812. INSERT INTO "act_ge_property" VALUES ('schema.history', 'create(6.5.0.1)', 1);
  813. INSERT INTO "act_ge_property" VALUES ('cfg.execution-related-entities-count', 'true', 1);
  814. INSERT INTO "act_ge_property" VALUES ('cfg.task-related-entities-count', 'true', 1);
  815. COMMIT;
  816. -- ----------------------------
  817. -- Table structure for act_hi_actinst
  818. -- ----------------------------
  819. DROP TABLE IF EXISTS "act_hi_actinst";
  820. CREATE TABLE "act_hi_actinst" (
  821. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  822. "rev_" int4 DEFAULT 1,
  823. "proc_def_id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  824. "proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  825. "execution_id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  826. "act_id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  827. "task_id_" varchar(64) COLLATE "pg_catalog"."default",
  828. "call_proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default",
  829. "act_name_" varchar(255) COLLATE "pg_catalog"."default",
  830. "act_type_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  831. "assignee_" varchar(255) COLLATE "pg_catalog"."default",
  832. "start_time_" timestamp(6) NOT NULL,
  833. "end_time_" timestamp(6),
  834. "duration_" int8,
  835. "delete_reason_" varchar(4000) COLLATE "pg_catalog"."default",
  836. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  837. )
  838. ;
  839. -- ----------------------------
  840. -- Table structure for act_hi_attachment
  841. -- ----------------------------
  842. DROP TABLE IF EXISTS "act_hi_attachment";
  843. CREATE TABLE "act_hi_attachment" (
  844. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  845. "rev_" int4,
  846. "user_id_" varchar(255) COLLATE "pg_catalog"."default",
  847. "name_" varchar(255) COLLATE "pg_catalog"."default",
  848. "description_" varchar(4000) COLLATE "pg_catalog"."default",
  849. "type_" varchar(255) COLLATE "pg_catalog"."default",
  850. "task_id_" varchar(64) COLLATE "pg_catalog"."default",
  851. "proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default",
  852. "url_" varchar(4000) COLLATE "pg_catalog"."default",
  853. "content_id_" varchar(64) COLLATE "pg_catalog"."default",
  854. "time_" timestamp(6)
  855. )
  856. ;
  857. -- ----------------------------
  858. -- Table structure for act_hi_comment
  859. -- ----------------------------
  860. DROP TABLE IF EXISTS "act_hi_comment";
  861. CREATE TABLE "act_hi_comment" (
  862. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  863. "type_" varchar(255) COLLATE "pg_catalog"."default",
  864. "time_" timestamp(6) NOT NULL,
  865. "user_id_" varchar(255) COLLATE "pg_catalog"."default",
  866. "task_id_" varchar(64) COLLATE "pg_catalog"."default",
  867. "proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default",
  868. "action_" varchar(255) COLLATE "pg_catalog"."default",
  869. "message_" varchar(4000) COLLATE "pg_catalog"."default",
  870. "full_msg_" bytea
  871. )
  872. ;
  873. -- ----------------------------
  874. -- Table structure for act_hi_detail
  875. -- ----------------------------
  876. DROP TABLE IF EXISTS "act_hi_detail";
  877. CREATE TABLE "act_hi_detail" (
  878. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  879. "type_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  880. "proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default",
  881. "execution_id_" varchar(64) COLLATE "pg_catalog"."default",
  882. "task_id_" varchar(64) COLLATE "pg_catalog"."default",
  883. "act_inst_id_" varchar(64) COLLATE "pg_catalog"."default",
  884. "name_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  885. "var_type_" varchar(64) COLLATE "pg_catalog"."default",
  886. "rev_" int4,
  887. "time_" timestamp(6) NOT NULL,
  888. "bytearray_id_" varchar(64) COLLATE "pg_catalog"."default",
  889. "double_" float8,
  890. "long_" int8,
  891. "text_" varchar(4000) COLLATE "pg_catalog"."default",
  892. "text2_" varchar(4000) COLLATE "pg_catalog"."default"
  893. )
  894. ;
  895. -- ----------------------------
  896. -- Table structure for act_hi_entitylink
  897. -- ----------------------------
  898. DROP TABLE IF EXISTS "act_hi_entitylink";
  899. CREATE TABLE "act_hi_entitylink" (
  900. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  901. "link_type_" varchar(255) COLLATE "pg_catalog"."default",
  902. "create_time_" timestamp(6),
  903. "scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  904. "scope_type_" varchar(255) COLLATE "pg_catalog"."default",
  905. "scope_definition_id_" varchar(255) COLLATE "pg_catalog"."default",
  906. "ref_scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  907. "ref_scope_type_" varchar(255) COLLATE "pg_catalog"."default",
  908. "ref_scope_definition_id_" varchar(255) COLLATE "pg_catalog"."default",
  909. "hierarchy_type_" varchar(255) COLLATE "pg_catalog"."default"
  910. )
  911. ;
  912. -- ----------------------------
  913. -- Table structure for act_hi_identitylink
  914. -- ----------------------------
  915. DROP TABLE IF EXISTS "act_hi_identitylink";
  916. CREATE TABLE "act_hi_identitylink" (
  917. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  918. "group_id_" varchar(255) COLLATE "pg_catalog"."default",
  919. "type_" varchar(255) COLLATE "pg_catalog"."default",
  920. "user_id_" varchar(255) COLLATE "pg_catalog"."default",
  921. "task_id_" varchar(64) COLLATE "pg_catalog"."default",
  922. "create_time_" timestamp(6),
  923. "proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default",
  924. "scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  925. "scope_type_" varchar(255) COLLATE "pg_catalog"."default",
  926. "scope_definition_id_" varchar(255) COLLATE "pg_catalog"."default"
  927. )
  928. ;
  929. -- ----------------------------
  930. -- Table structure for act_hi_procinst
  931. -- ----------------------------
  932. DROP TABLE IF EXISTS "act_hi_procinst";
  933. CREATE TABLE "act_hi_procinst" (
  934. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  935. "rev_" int4 DEFAULT 1,
  936. "proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  937. "business_key_" varchar(255) COLLATE "pg_catalog"."default",
  938. "proc_def_id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  939. "start_time_" timestamp(6) NOT NULL,
  940. "end_time_" timestamp(6),
  941. "duration_" int8,
  942. "start_user_id_" varchar(255) COLLATE "pg_catalog"."default",
  943. "start_act_id_" varchar(255) COLLATE "pg_catalog"."default",
  944. "end_act_id_" varchar(255) COLLATE "pg_catalog"."default",
  945. "super_process_instance_id_" varchar(64) COLLATE "pg_catalog"."default",
  946. "delete_reason_" varchar(4000) COLLATE "pg_catalog"."default",
  947. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  948. "name_" varchar(255) COLLATE "pg_catalog"."default",
  949. "callback_id_" varchar(255) COLLATE "pg_catalog"."default",
  950. "callback_type_" varchar(255) COLLATE "pg_catalog"."default"
  951. )
  952. ;
  953. -- ----------------------------
  954. -- Table structure for act_hi_taskinst
  955. -- ----------------------------
  956. DROP TABLE IF EXISTS "act_hi_taskinst";
  957. CREATE TABLE "act_hi_taskinst" (
  958. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  959. "rev_" int4 DEFAULT 1,
  960. "proc_def_id_" varchar(64) COLLATE "pg_catalog"."default",
  961. "task_def_id_" varchar(64) COLLATE "pg_catalog"."default",
  962. "task_def_key_" varchar(255) COLLATE "pg_catalog"."default",
  963. "proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default",
  964. "execution_id_" varchar(64) COLLATE "pg_catalog"."default",
  965. "scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  966. "sub_scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  967. "scope_type_" varchar(255) COLLATE "pg_catalog"."default",
  968. "scope_definition_id_" varchar(255) COLLATE "pg_catalog"."default",
  969. "name_" varchar(255) COLLATE "pg_catalog"."default",
  970. "parent_task_id_" varchar(64) COLLATE "pg_catalog"."default",
  971. "description_" varchar(4000) COLLATE "pg_catalog"."default",
  972. "owner_" varchar(255) COLLATE "pg_catalog"."default",
  973. "assignee_" varchar(255) COLLATE "pg_catalog"."default",
  974. "start_time_" timestamp(6) NOT NULL,
  975. "claim_time_" timestamp(6),
  976. "end_time_" timestamp(6),
  977. "duration_" int8,
  978. "delete_reason_" varchar(4000) COLLATE "pg_catalog"."default",
  979. "priority_" int4,
  980. "due_date_" timestamp(6),
  981. "form_key_" varchar(255) COLLATE "pg_catalog"."default",
  982. "category_" varchar(255) COLLATE "pg_catalog"."default",
  983. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  984. "last_updated_time_" timestamp(6)
  985. )
  986. ;
  987. -- ----------------------------
  988. -- Table structure for act_hi_tsk_log
  989. -- ----------------------------
  990. DROP TABLE IF EXISTS "act_hi_tsk_log";
  991. CREATE TABLE "act_hi_tsk_log" (
  992. "id_" int4 NOT NULL DEFAULT nextval('act_hi_tsk_log_id__seq'::regclass),
  993. "type_" varchar(64) COLLATE "pg_catalog"."default",
  994. "task_id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  995. "time_stamp_" timestamp(6) NOT NULL,
  996. "user_id_" varchar(255) COLLATE "pg_catalog"."default",
  997. "data_" varchar(4000) COLLATE "pg_catalog"."default",
  998. "execution_id_" varchar(64) COLLATE "pg_catalog"."default",
  999. "proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default",
  1000. "proc_def_id_" varchar(64) COLLATE "pg_catalog"."default",
  1001. "scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1002. "scope_definition_id_" varchar(255) COLLATE "pg_catalog"."default",
  1003. "sub_scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1004. "scope_type_" varchar(255) COLLATE "pg_catalog"."default",
  1005. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  1006. )
  1007. ;
  1008. -- ----------------------------
  1009. -- Table structure for act_hi_varinst
  1010. -- ----------------------------
  1011. DROP TABLE IF EXISTS "act_hi_varinst";
  1012. CREATE TABLE "act_hi_varinst" (
  1013. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1014. "rev_" int4 DEFAULT 1,
  1015. "proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default",
  1016. "execution_id_" varchar(64) COLLATE "pg_catalog"."default",
  1017. "task_id_" varchar(64) COLLATE "pg_catalog"."default",
  1018. "name_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  1019. "var_type_" varchar(100) COLLATE "pg_catalog"."default",
  1020. "scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1021. "sub_scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1022. "scope_type_" varchar(255) COLLATE "pg_catalog"."default",
  1023. "bytearray_id_" varchar(64) COLLATE "pg_catalog"."default",
  1024. "double_" float8,
  1025. "long_" int8,
  1026. "text_" varchar(4000) COLLATE "pg_catalog"."default",
  1027. "text2_" varchar(4000) COLLATE "pg_catalog"."default",
  1028. "create_time_" timestamp(6),
  1029. "last_updated_time_" timestamp(6)
  1030. )
  1031. ;
  1032. -- ----------------------------
  1033. -- Table structure for act_id_bytearray
  1034. -- ----------------------------
  1035. DROP TABLE IF EXISTS "act_id_bytearray";
  1036. CREATE TABLE "act_id_bytearray" (
  1037. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1038. "rev_" int4,
  1039. "name_" varchar(255) COLLATE "pg_catalog"."default",
  1040. "bytes_" bytea
  1041. )
  1042. ;
  1043. -- ----------------------------
  1044. -- Table structure for act_id_group
  1045. -- ----------------------------
  1046. DROP TABLE IF EXISTS "act_id_group";
  1047. CREATE TABLE "act_id_group" (
  1048. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1049. "rev_" int4,
  1050. "name_" varchar(255) COLLATE "pg_catalog"."default",
  1051. "type_" varchar(255) COLLATE "pg_catalog"."default"
  1052. )
  1053. ;
  1054. -- ----------------------------
  1055. -- Table structure for act_id_info
  1056. -- ----------------------------
  1057. DROP TABLE IF EXISTS "act_id_info";
  1058. CREATE TABLE "act_id_info" (
  1059. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1060. "rev_" int4,
  1061. "user_id_" varchar(64) COLLATE "pg_catalog"."default",
  1062. "type_" varchar(64) COLLATE "pg_catalog"."default",
  1063. "key_" varchar(255) COLLATE "pg_catalog"."default",
  1064. "value_" varchar(255) COLLATE "pg_catalog"."default",
  1065. "password_" bytea,
  1066. "parent_id_" varchar(255) COLLATE "pg_catalog"."default"
  1067. )
  1068. ;
  1069. -- ----------------------------
  1070. -- Table structure for act_id_membership
  1071. -- ----------------------------
  1072. DROP TABLE IF EXISTS "act_id_membership";
  1073. CREATE TABLE "act_id_membership" (
  1074. "user_id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1075. "group_id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL
  1076. )
  1077. ;
  1078. -- ----------------------------
  1079. -- Table structure for act_id_priv
  1080. -- ----------------------------
  1081. DROP TABLE IF EXISTS "act_id_priv";
  1082. CREATE TABLE "act_id_priv" (
  1083. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1084. "name_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL
  1085. )
  1086. ;
  1087. -- ----------------------------
  1088. -- Table structure for act_id_priv_mapping
  1089. -- ----------------------------
  1090. DROP TABLE IF EXISTS "act_id_priv_mapping";
  1091. CREATE TABLE "act_id_priv_mapping" (
  1092. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1093. "priv_id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1094. "user_id_" varchar(255) COLLATE "pg_catalog"."default",
  1095. "group_id_" varchar(255) COLLATE "pg_catalog"."default"
  1096. )
  1097. ;
  1098. -- ----------------------------
  1099. -- Table structure for act_id_property
  1100. -- ----------------------------
  1101. DROP TABLE IF EXISTS "act_id_property";
  1102. CREATE TABLE "act_id_property" (
  1103. "name_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1104. "value_" varchar(300) COLLATE "pg_catalog"."default",
  1105. "rev_" int4
  1106. )
  1107. ;
  1108. -- ----------------------------
  1109. -- Records of act_id_property
  1110. -- ----------------------------
  1111. BEGIN;
  1112. INSERT INTO "act_id_property" VALUES ('schema.version', '6.5.0.1', 1);
  1113. COMMIT;
  1114. -- ----------------------------
  1115. -- Table structure for act_id_token
  1116. -- ----------------------------
  1117. DROP TABLE IF EXISTS "act_id_token";
  1118. CREATE TABLE "act_id_token" (
  1119. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1120. "rev_" int4,
  1121. "token_value_" varchar(255) COLLATE "pg_catalog"."default",
  1122. "token_date_" timestamp(6),
  1123. "ip_address_" varchar(255) COLLATE "pg_catalog"."default",
  1124. "user_agent_" varchar(255) COLLATE "pg_catalog"."default",
  1125. "user_id_" varchar(255) COLLATE "pg_catalog"."default",
  1126. "token_data_" varchar(2000) COLLATE "pg_catalog"."default"
  1127. )
  1128. ;
  1129. -- ----------------------------
  1130. -- Table structure for act_id_user
  1131. -- ----------------------------
  1132. DROP TABLE IF EXISTS "act_id_user";
  1133. CREATE TABLE "act_id_user" (
  1134. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1135. "rev_" int4,
  1136. "first_" varchar(255) COLLATE "pg_catalog"."default",
  1137. "last_" varchar(255) COLLATE "pg_catalog"."default",
  1138. "display_name_" varchar(255) COLLATE "pg_catalog"."default",
  1139. "email_" varchar(255) COLLATE "pg_catalog"."default",
  1140. "pwd_" varchar(255) COLLATE "pg_catalog"."default",
  1141. "picture_id_" varchar(64) COLLATE "pg_catalog"."default",
  1142. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  1143. )
  1144. ;
  1145. -- ----------------------------
  1146. -- Table structure for act_procdef_info
  1147. -- ----------------------------
  1148. DROP TABLE IF EXISTS "act_procdef_info";
  1149. CREATE TABLE "act_procdef_info" (
  1150. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1151. "proc_def_id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1152. "rev_" int4,
  1153. "info_json_id_" varchar(64) COLLATE "pg_catalog"."default"
  1154. )
  1155. ;
  1156. -- ----------------------------
  1157. -- Table structure for act_re_deployment
  1158. -- ----------------------------
  1159. DROP TABLE IF EXISTS "act_re_deployment";
  1160. CREATE TABLE "act_re_deployment" (
  1161. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1162. "name_" varchar(255) COLLATE "pg_catalog"."default",
  1163. "category_" varchar(255) COLLATE "pg_catalog"."default",
  1164. "key_" varchar(255) COLLATE "pg_catalog"."default",
  1165. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  1166. "deploy_time_" timestamp(6),
  1167. "derived_from_" varchar(64) COLLATE "pg_catalog"."default",
  1168. "derived_from_root_" varchar(64) COLLATE "pg_catalog"."default",
  1169. "parent_deployment_id_" varchar(255) COLLATE "pg_catalog"."default",
  1170. "engine_version_" varchar(255) COLLATE "pg_catalog"."default"
  1171. )
  1172. ;
  1173. -- ----------------------------
  1174. -- Table structure for act_re_model
  1175. -- ----------------------------
  1176. DROP TABLE IF EXISTS "act_re_model";
  1177. CREATE TABLE "act_re_model" (
  1178. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1179. "rev_" int4,
  1180. "name_" varchar(255) COLLATE "pg_catalog"."default",
  1181. "key_" varchar(255) COLLATE "pg_catalog"."default",
  1182. "category_" varchar(255) COLLATE "pg_catalog"."default",
  1183. "create_time_" timestamp(6),
  1184. "last_update_time_" timestamp(6),
  1185. "version_" int4,
  1186. "meta_info_" varchar(4000) COLLATE "pg_catalog"."default",
  1187. "deployment_id_" varchar(64) COLLATE "pg_catalog"."default",
  1188. "editor_source_value_id_" varchar(64) COLLATE "pg_catalog"."default",
  1189. "editor_source_extra_value_id_" varchar(64) COLLATE "pg_catalog"."default",
  1190. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  1191. )
  1192. ;
  1193. -- ----------------------------
  1194. -- Table structure for act_re_procdef
  1195. -- ----------------------------
  1196. DROP TABLE IF EXISTS "act_re_procdef";
  1197. CREATE TABLE "act_re_procdef" (
  1198. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1199. "rev_" int4,
  1200. "category_" varchar(255) COLLATE "pg_catalog"."default",
  1201. "name_" varchar(255) COLLATE "pg_catalog"."default",
  1202. "key_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  1203. "version_" int4 NOT NULL,
  1204. "deployment_id_" varchar(64) COLLATE "pg_catalog"."default",
  1205. "resource_name_" varchar(4000) COLLATE "pg_catalog"."default",
  1206. "dgrm_resource_name_" varchar(4000) COLLATE "pg_catalog"."default",
  1207. "description_" varchar(4000) COLLATE "pg_catalog"."default",
  1208. "has_start_form_key_" bool,
  1209. "has_graphical_notation_" bool,
  1210. "suspension_state_" int4,
  1211. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  1212. "derived_from_" varchar(64) COLLATE "pg_catalog"."default",
  1213. "derived_from_root_" varchar(64) COLLATE "pg_catalog"."default",
  1214. "derived_version_" int4 NOT NULL DEFAULT 0,
  1215. "engine_version_" varchar(255) COLLATE "pg_catalog"."default"
  1216. )
  1217. ;
  1218. -- ----------------------------
  1219. -- Table structure for act_ru_actinst
  1220. -- ----------------------------
  1221. DROP TABLE IF EXISTS "act_ru_actinst";
  1222. CREATE TABLE "act_ru_actinst" (
  1223. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1224. "rev_" int4 DEFAULT 1,
  1225. "proc_def_id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1226. "proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1227. "execution_id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1228. "act_id_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  1229. "task_id_" varchar(64) COLLATE "pg_catalog"."default",
  1230. "call_proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default",
  1231. "act_name_" varchar(255) COLLATE "pg_catalog"."default",
  1232. "act_type_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  1233. "assignee_" varchar(255) COLLATE "pg_catalog"."default",
  1234. "start_time_" timestamp(6) NOT NULL,
  1235. "end_time_" timestamp(6),
  1236. "duration_" int8,
  1237. "delete_reason_" varchar(4000) COLLATE "pg_catalog"."default",
  1238. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  1239. )
  1240. ;
  1241. -- ----------------------------
  1242. -- Table structure for act_ru_deadletter_job
  1243. -- ----------------------------
  1244. DROP TABLE IF EXISTS "act_ru_deadletter_job";
  1245. CREATE TABLE "act_ru_deadletter_job" (
  1246. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1247. "rev_" int4,
  1248. "type_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  1249. "exclusive_" bool,
  1250. "execution_id_" varchar(64) COLLATE "pg_catalog"."default",
  1251. "process_instance_id_" varchar(64) COLLATE "pg_catalog"."default",
  1252. "proc_def_id_" varchar(64) COLLATE "pg_catalog"."default",
  1253. "element_id_" varchar(255) COLLATE "pg_catalog"."default",
  1254. "element_name_" varchar(255) COLLATE "pg_catalog"."default",
  1255. "scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1256. "sub_scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1257. "scope_type_" varchar(255) COLLATE "pg_catalog"."default",
  1258. "scope_definition_id_" varchar(255) COLLATE "pg_catalog"."default",
  1259. "exception_stack_id_" varchar(64) COLLATE "pg_catalog"."default",
  1260. "exception_msg_" varchar(4000) COLLATE "pg_catalog"."default",
  1261. "duedate_" timestamp(6),
  1262. "repeat_" varchar(255) COLLATE "pg_catalog"."default",
  1263. "handler_type_" varchar(255) COLLATE "pg_catalog"."default",
  1264. "handler_cfg_" varchar(4000) COLLATE "pg_catalog"."default",
  1265. "custom_values_id_" varchar(64) COLLATE "pg_catalog"."default",
  1266. "create_time_" timestamp(6),
  1267. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  1268. )
  1269. ;
  1270. -- ----------------------------
  1271. -- Table structure for act_ru_entitylink
  1272. -- ----------------------------
  1273. DROP TABLE IF EXISTS "act_ru_entitylink";
  1274. CREATE TABLE "act_ru_entitylink" (
  1275. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1276. "rev_" int4,
  1277. "create_time_" timestamp(6),
  1278. "link_type_" varchar(255) COLLATE "pg_catalog"."default",
  1279. "scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1280. "scope_type_" varchar(255) COLLATE "pg_catalog"."default",
  1281. "scope_definition_id_" varchar(255) COLLATE "pg_catalog"."default",
  1282. "ref_scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1283. "ref_scope_type_" varchar(255) COLLATE "pg_catalog"."default",
  1284. "ref_scope_definition_id_" varchar(255) COLLATE "pg_catalog"."default",
  1285. "hierarchy_type_" varchar(255) COLLATE "pg_catalog"."default"
  1286. )
  1287. ;
  1288. -- ----------------------------
  1289. -- Table structure for act_ru_event_subscr
  1290. -- ----------------------------
  1291. DROP TABLE IF EXISTS "act_ru_event_subscr";
  1292. CREATE TABLE "act_ru_event_subscr" (
  1293. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1294. "rev_" int4,
  1295. "event_type_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  1296. "event_name_" varchar(255) COLLATE "pg_catalog"."default",
  1297. "execution_id_" varchar(64) COLLATE "pg_catalog"."default",
  1298. "proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default",
  1299. "activity_id_" varchar(64) COLLATE "pg_catalog"."default",
  1300. "configuration_" varchar(255) COLLATE "pg_catalog"."default",
  1301. "created_" timestamp(6) NOT NULL,
  1302. "proc_def_id_" varchar(64) COLLATE "pg_catalog"."default",
  1303. "sub_scope_id_" varchar(64) COLLATE "pg_catalog"."default",
  1304. "scope_id_" varchar(64) COLLATE "pg_catalog"."default",
  1305. "scope_definition_id_" varchar(64) COLLATE "pg_catalog"."default",
  1306. "scope_type_" varchar(64) COLLATE "pg_catalog"."default",
  1307. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  1308. )
  1309. ;
  1310. -- ----------------------------
  1311. -- Table structure for act_ru_execution
  1312. -- ----------------------------
  1313. DROP TABLE IF EXISTS "act_ru_execution";
  1314. CREATE TABLE "act_ru_execution" (
  1315. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1316. "rev_" int4,
  1317. "proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default",
  1318. "business_key_" varchar(255) COLLATE "pg_catalog"."default",
  1319. "parent_id_" varchar(64) COLLATE "pg_catalog"."default",
  1320. "proc_def_id_" varchar(64) COLLATE "pg_catalog"."default",
  1321. "super_exec_" varchar(64) COLLATE "pg_catalog"."default",
  1322. "root_proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default",
  1323. "act_id_" varchar(255) COLLATE "pg_catalog"."default",
  1324. "is_active_" bool,
  1325. "is_concurrent_" bool,
  1326. "is_scope_" bool,
  1327. "is_event_scope_" bool,
  1328. "is_mi_root_" bool,
  1329. "suspension_state_" int4,
  1330. "cached_ent_state_" int4,
  1331. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  1332. "name_" varchar(255) COLLATE "pg_catalog"."default",
  1333. "start_act_id_" varchar(255) COLLATE "pg_catalog"."default",
  1334. "start_time_" timestamp(6),
  1335. "start_user_id_" varchar(255) COLLATE "pg_catalog"."default",
  1336. "lock_time_" timestamp(6),
  1337. "is_count_enabled_" bool,
  1338. "evt_subscr_count_" int4,
  1339. "task_count_" int4,
  1340. "job_count_" int4,
  1341. "timer_job_count_" int4,
  1342. "susp_job_count_" int4,
  1343. "deadletter_job_count_" int4,
  1344. "var_count_" int4,
  1345. "id_link_count_" int4,
  1346. "callback_id_" varchar(255) COLLATE "pg_catalog"."default",
  1347. "callback_type_" varchar(255) COLLATE "pg_catalog"."default"
  1348. )
  1349. ;
  1350. -- ----------------------------
  1351. -- Table structure for act_ru_history_job
  1352. -- ----------------------------
  1353. DROP TABLE IF EXISTS "act_ru_history_job";
  1354. CREATE TABLE "act_ru_history_job" (
  1355. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1356. "rev_" int4,
  1357. "lock_exp_time_" timestamp(6),
  1358. "lock_owner_" varchar(255) COLLATE "pg_catalog"."default",
  1359. "retries_" int4,
  1360. "exception_stack_id_" varchar(64) COLLATE "pg_catalog"."default",
  1361. "exception_msg_" varchar(4000) COLLATE "pg_catalog"."default",
  1362. "handler_type_" varchar(255) COLLATE "pg_catalog"."default",
  1363. "handler_cfg_" varchar(4000) COLLATE "pg_catalog"."default",
  1364. "custom_values_id_" varchar(64) COLLATE "pg_catalog"."default",
  1365. "adv_handler_cfg_id_" varchar(64) COLLATE "pg_catalog"."default",
  1366. "create_time_" timestamp(6),
  1367. "scope_type_" varchar(255) COLLATE "pg_catalog"."default",
  1368. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  1369. )
  1370. ;
  1371. -- ----------------------------
  1372. -- Table structure for act_ru_identitylink
  1373. -- ----------------------------
  1374. DROP TABLE IF EXISTS "act_ru_identitylink";
  1375. CREATE TABLE "act_ru_identitylink" (
  1376. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1377. "rev_" int4,
  1378. "group_id_" varchar(255) COLLATE "pg_catalog"."default",
  1379. "type_" varchar(255) COLLATE "pg_catalog"."default",
  1380. "user_id_" varchar(255) COLLATE "pg_catalog"."default",
  1381. "task_id_" varchar(64) COLLATE "pg_catalog"."default",
  1382. "proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default",
  1383. "proc_def_id_" varchar(64) COLLATE "pg_catalog"."default",
  1384. "scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1385. "scope_type_" varchar(255) COLLATE "pg_catalog"."default",
  1386. "scope_definition_id_" varchar(255) COLLATE "pg_catalog"."default"
  1387. )
  1388. ;
  1389. -- ----------------------------
  1390. -- Table structure for act_ru_job
  1391. -- ----------------------------
  1392. DROP TABLE IF EXISTS "act_ru_job";
  1393. CREATE TABLE "act_ru_job" (
  1394. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1395. "rev_" int4,
  1396. "type_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  1397. "lock_exp_time_" timestamp(6),
  1398. "lock_owner_" varchar(255) COLLATE "pg_catalog"."default",
  1399. "exclusive_" bool,
  1400. "execution_id_" varchar(64) COLLATE "pg_catalog"."default",
  1401. "process_instance_id_" varchar(64) COLLATE "pg_catalog"."default",
  1402. "proc_def_id_" varchar(64) COLLATE "pg_catalog"."default",
  1403. "element_id_" varchar(255) COLLATE "pg_catalog"."default",
  1404. "element_name_" varchar(255) COLLATE "pg_catalog"."default",
  1405. "scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1406. "sub_scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1407. "scope_type_" varchar(255) COLLATE "pg_catalog"."default",
  1408. "scope_definition_id_" varchar(255) COLLATE "pg_catalog"."default",
  1409. "retries_" int4,
  1410. "exception_stack_id_" varchar(64) COLLATE "pg_catalog"."default",
  1411. "exception_msg_" varchar(4000) COLLATE "pg_catalog"."default",
  1412. "duedate_" timestamp(6),
  1413. "repeat_" varchar(255) COLLATE "pg_catalog"."default",
  1414. "handler_type_" varchar(255) COLLATE "pg_catalog"."default",
  1415. "handler_cfg_" varchar(4000) COLLATE "pg_catalog"."default",
  1416. "custom_values_id_" varchar(64) COLLATE "pg_catalog"."default",
  1417. "create_time_" timestamp(6),
  1418. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  1419. )
  1420. ;
  1421. -- ----------------------------
  1422. -- Table structure for act_ru_suspended_job
  1423. -- ----------------------------
  1424. DROP TABLE IF EXISTS "act_ru_suspended_job";
  1425. CREATE TABLE "act_ru_suspended_job" (
  1426. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1427. "rev_" int4,
  1428. "type_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  1429. "exclusive_" bool,
  1430. "execution_id_" varchar(64) COLLATE "pg_catalog"."default",
  1431. "process_instance_id_" varchar(64) COLLATE "pg_catalog"."default",
  1432. "proc_def_id_" varchar(64) COLLATE "pg_catalog"."default",
  1433. "element_id_" varchar(255) COLLATE "pg_catalog"."default",
  1434. "element_name_" varchar(255) COLLATE "pg_catalog"."default",
  1435. "scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1436. "sub_scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1437. "scope_type_" varchar(255) COLLATE "pg_catalog"."default",
  1438. "scope_definition_id_" varchar(255) COLLATE "pg_catalog"."default",
  1439. "retries_" int4,
  1440. "exception_stack_id_" varchar(64) COLLATE "pg_catalog"."default",
  1441. "exception_msg_" varchar(4000) COLLATE "pg_catalog"."default",
  1442. "duedate_" timestamp(6),
  1443. "repeat_" varchar(255) COLLATE "pg_catalog"."default",
  1444. "handler_type_" varchar(255) COLLATE "pg_catalog"."default",
  1445. "handler_cfg_" varchar(4000) COLLATE "pg_catalog"."default",
  1446. "custom_values_id_" varchar(64) COLLATE "pg_catalog"."default",
  1447. "create_time_" timestamp(6),
  1448. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  1449. )
  1450. ;
  1451. -- ----------------------------
  1452. -- Table structure for act_ru_task
  1453. -- ----------------------------
  1454. DROP TABLE IF EXISTS "act_ru_task";
  1455. CREATE TABLE "act_ru_task" (
  1456. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1457. "rev_" int4,
  1458. "execution_id_" varchar(64) COLLATE "pg_catalog"."default",
  1459. "proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default",
  1460. "proc_def_id_" varchar(64) COLLATE "pg_catalog"."default",
  1461. "task_def_id_" varchar(64) COLLATE "pg_catalog"."default",
  1462. "scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1463. "sub_scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1464. "scope_type_" varchar(255) COLLATE "pg_catalog"."default",
  1465. "scope_definition_id_" varchar(255) COLLATE "pg_catalog"."default",
  1466. "name_" varchar(255) COLLATE "pg_catalog"."default",
  1467. "parent_task_id_" varchar(64) COLLATE "pg_catalog"."default",
  1468. "description_" varchar(4000) COLLATE "pg_catalog"."default",
  1469. "task_def_key_" varchar(255) COLLATE "pg_catalog"."default",
  1470. "owner_" varchar(255) COLLATE "pg_catalog"."default",
  1471. "assignee_" varchar(255) COLLATE "pg_catalog"."default",
  1472. "delegation_" varchar(64) COLLATE "pg_catalog"."default",
  1473. "priority_" int4,
  1474. "create_time_" timestamp(6),
  1475. "due_date_" timestamp(6),
  1476. "category_" varchar(255) COLLATE "pg_catalog"."default",
  1477. "suspension_state_" int4,
  1478. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  1479. "form_key_" varchar(255) COLLATE "pg_catalog"."default",
  1480. "claim_time_" timestamp(6),
  1481. "is_count_enabled_" bool,
  1482. "var_count_" int4,
  1483. "id_link_count_" int4,
  1484. "sub_task_count_" int4
  1485. )
  1486. ;
  1487. -- ----------------------------
  1488. -- Table structure for act_ru_timer_job
  1489. -- ----------------------------
  1490. DROP TABLE IF EXISTS "act_ru_timer_job";
  1491. CREATE TABLE "act_ru_timer_job" (
  1492. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1493. "rev_" int4,
  1494. "type_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  1495. "lock_exp_time_" timestamp(6),
  1496. "lock_owner_" varchar(255) COLLATE "pg_catalog"."default",
  1497. "exclusive_" bool,
  1498. "execution_id_" varchar(64) COLLATE "pg_catalog"."default",
  1499. "process_instance_id_" varchar(64) COLLATE "pg_catalog"."default",
  1500. "proc_def_id_" varchar(64) COLLATE "pg_catalog"."default",
  1501. "element_id_" varchar(255) COLLATE "pg_catalog"."default",
  1502. "element_name_" varchar(255) COLLATE "pg_catalog"."default",
  1503. "scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1504. "sub_scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1505. "scope_type_" varchar(255) COLLATE "pg_catalog"."default",
  1506. "scope_definition_id_" varchar(255) COLLATE "pg_catalog"."default",
  1507. "retries_" int4,
  1508. "exception_stack_id_" varchar(64) COLLATE "pg_catalog"."default",
  1509. "exception_msg_" varchar(4000) COLLATE "pg_catalog"."default",
  1510. "duedate_" timestamp(6),
  1511. "repeat_" varchar(255) COLLATE "pg_catalog"."default",
  1512. "handler_type_" varchar(255) COLLATE "pg_catalog"."default",
  1513. "handler_cfg_" varchar(4000) COLLATE "pg_catalog"."default",
  1514. "custom_values_id_" varchar(64) COLLATE "pg_catalog"."default",
  1515. "create_time_" timestamp(6),
  1516. "tenant_id_" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  1517. )
  1518. ;
  1519. -- ----------------------------
  1520. -- Table structure for act_ru_variable
  1521. -- ----------------------------
  1522. DROP TABLE IF EXISTS "act_ru_variable";
  1523. CREATE TABLE "act_ru_variable" (
  1524. "id_" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1525. "rev_" int4,
  1526. "type_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  1527. "name_" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  1528. "execution_id_" varchar(64) COLLATE "pg_catalog"."default",
  1529. "proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default",
  1530. "task_id_" varchar(64) COLLATE "pg_catalog"."default",
  1531. "scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1532. "sub_scope_id_" varchar(255) COLLATE "pg_catalog"."default",
  1533. "scope_type_" varchar(255) COLLATE "pg_catalog"."default",
  1534. "bytearray_id_" varchar(64) COLLATE "pg_catalog"."default",
  1535. "double_" float8,
  1536. "long_" int8,
  1537. "text_" varchar(4000) COLLATE "pg_catalog"."default",
  1538. "text2_" varchar(4000) COLLATE "pg_catalog"."default"
  1539. )
  1540. ;
  1541. -- ----------------------------
  1542. -- Alter sequences owned by
  1543. -- ----------------------------
  1544. ALTER SEQUENCE "act_evt_log_log_nr__seq"
  1545. OWNED BY "act_evt_log"."log_nr_";
  1546. SELECT setval('"act_evt_log_log_nr__seq"', 2, false);
  1547. ALTER SEQUENCE "act_hi_tsk_log_id__seq"
  1548. OWNED BY "act_hi_tsk_log"."id_";
  1549. SELECT setval('"act_hi_tsk_log_id__seq"', 2, false);
  1550. -- ----------------------------
  1551. -- Indexes structure for table act_app_appdef
  1552. -- ----------------------------
  1553. CREATE INDEX "act_idx_app_def_dply" ON "act_app_appdef" USING btree (
  1554. "deployment_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1555. );
  1556. CREATE UNIQUE INDEX "act_idx_app_def_uniq" ON "act_app_appdef" USING btree (
  1557. "key_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1558. "version_" "pg_catalog"."int4_ops" ASC NULLS LAST,
  1559. "tenant_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1560. );
  1561. -- ----------------------------
  1562. -- Primary Key structure for table act_app_appdef
  1563. -- ----------------------------
  1564. ALTER TABLE "act_app_appdef" ADD CONSTRAINT "act_app_appdef_pkey" PRIMARY KEY ("id_");
  1565. -- ----------------------------
  1566. -- Primary Key structure for table act_app_databasechangeloglock
  1567. -- ----------------------------
  1568. ALTER TABLE "act_app_databasechangeloglock" ADD CONSTRAINT "act_app_databasechangeloglock_pkey" PRIMARY KEY ("id");
  1569. -- ----------------------------
  1570. -- Primary Key structure for table act_app_deployment
  1571. -- ----------------------------
  1572. ALTER TABLE "act_app_deployment" ADD CONSTRAINT "act_app_deployment_pkey" PRIMARY KEY ("id_");
  1573. -- ----------------------------
  1574. -- Indexes structure for table act_app_deployment_resource
  1575. -- ----------------------------
  1576. CREATE INDEX "act_idx_app_rsrc_dpl" ON "act_app_deployment_resource" USING btree (
  1577. "deployment_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1578. );
  1579. -- ----------------------------
  1580. -- Primary Key structure for table act_app_deployment_resource
  1581. -- ----------------------------
  1582. ALTER TABLE "act_app_deployment_resource" ADD CONSTRAINT "pk_app_deployment_resource" PRIMARY KEY ("id_");
  1583. -- ----------------------------
  1584. -- Indexes structure for table act_cmmn_casedef
  1585. -- ----------------------------
  1586. CREATE INDEX "act_idx_case_def_dply" ON "act_cmmn_casedef" USING btree (
  1587. "deployment_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1588. );
  1589. CREATE UNIQUE INDEX "act_idx_case_def_uniq" ON "act_cmmn_casedef" USING btree (
  1590. "key_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1591. "version_" "pg_catalog"."int4_ops" ASC NULLS LAST,
  1592. "tenant_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1593. );
  1594. -- ----------------------------
  1595. -- Primary Key structure for table act_cmmn_casedef
  1596. -- ----------------------------
  1597. ALTER TABLE "act_cmmn_casedef" ADD CONSTRAINT "act_cmmn_casedef_pkey" PRIMARY KEY ("id_");
  1598. -- ----------------------------
  1599. -- Primary Key structure for table act_cmmn_databasechangeloglock
  1600. -- ----------------------------
  1601. ALTER TABLE "act_cmmn_databasechangeloglock" ADD CONSTRAINT "act_cmmn_databasechangeloglock_pkey" PRIMARY KEY ("id");
  1602. -- ----------------------------
  1603. -- Primary Key structure for table act_cmmn_deployment
  1604. -- ----------------------------
  1605. ALTER TABLE "act_cmmn_deployment" ADD CONSTRAINT "act_cmmn_deployment_pkey" PRIMARY KEY ("id_");
  1606. -- ----------------------------
  1607. -- Indexes structure for table act_cmmn_deployment_resource
  1608. -- ----------------------------
  1609. CREATE INDEX "act_idx_cmmn_rsrc_dpl" ON "act_cmmn_deployment_resource" USING btree (
  1610. "deployment_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1611. );
  1612. -- ----------------------------
  1613. -- Primary Key structure for table act_cmmn_deployment_resource
  1614. -- ----------------------------
  1615. ALTER TABLE "act_cmmn_deployment_resource" ADD CONSTRAINT "pk_cmmn_deployment_resource" PRIMARY KEY ("id_");
  1616. -- ----------------------------
  1617. -- Primary Key structure for table act_cmmn_hi_case_inst
  1618. -- ----------------------------
  1619. ALTER TABLE "act_cmmn_hi_case_inst" ADD CONSTRAINT "act_cmmn_hi_case_inst_pkey" PRIMARY KEY ("id_");
  1620. -- ----------------------------
  1621. -- Primary Key structure for table act_cmmn_hi_mil_inst
  1622. -- ----------------------------
  1623. ALTER TABLE "act_cmmn_hi_mil_inst" ADD CONSTRAINT "act_cmmn_hi_mil_inst_pkey" PRIMARY KEY ("id_");
  1624. -- ----------------------------
  1625. -- Primary Key structure for table act_cmmn_hi_plan_item_inst
  1626. -- ----------------------------
  1627. ALTER TABLE "act_cmmn_hi_plan_item_inst" ADD CONSTRAINT "act_cmmn_hi_plan_item_inst_pkey" PRIMARY KEY ("id_");
  1628. -- ----------------------------
  1629. -- Indexes structure for table act_cmmn_ru_case_inst
  1630. -- ----------------------------
  1631. CREATE INDEX "act_idx_case_inst_case_def" ON "act_cmmn_ru_case_inst" USING btree (
  1632. "case_def_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1633. );
  1634. CREATE INDEX "act_idx_case_inst_parent" ON "act_cmmn_ru_case_inst" USING btree (
  1635. "parent_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1636. );
  1637. -- ----------------------------
  1638. -- Primary Key structure for table act_cmmn_ru_case_inst
  1639. -- ----------------------------
  1640. ALTER TABLE "act_cmmn_ru_case_inst" ADD CONSTRAINT "act_cmmn_ru_case_inst_pkey" PRIMARY KEY ("id_");
  1641. -- ----------------------------
  1642. -- Indexes structure for table act_cmmn_ru_mil_inst
  1643. -- ----------------------------
  1644. CREATE INDEX "act_idx_mil_case_def" ON "act_cmmn_ru_mil_inst" USING btree (
  1645. "case_def_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1646. );
  1647. CREATE INDEX "act_idx_mil_case_inst" ON "act_cmmn_ru_mil_inst" USING btree (
  1648. "case_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1649. );
  1650. -- ----------------------------
  1651. -- Primary Key structure for table act_cmmn_ru_mil_inst
  1652. -- ----------------------------
  1653. ALTER TABLE "act_cmmn_ru_mil_inst" ADD CONSTRAINT "act_cmmn_ru_mil_inst_pkey" PRIMARY KEY ("id_");
  1654. -- ----------------------------
  1655. -- Indexes structure for table act_cmmn_ru_plan_item_inst
  1656. -- ----------------------------
  1657. CREATE INDEX "act_idx_plan_item_case_def" ON "act_cmmn_ru_plan_item_inst" USING btree (
  1658. "case_def_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1659. );
  1660. CREATE INDEX "act_idx_plan_item_case_inst" ON "act_cmmn_ru_plan_item_inst" USING btree (
  1661. "case_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1662. );
  1663. CREATE INDEX "act_idx_plan_item_stage_inst" ON "act_cmmn_ru_plan_item_inst" USING btree (
  1664. "stage_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1665. );
  1666. -- ----------------------------
  1667. -- Primary Key structure for table act_cmmn_ru_plan_item_inst
  1668. -- ----------------------------
  1669. ALTER TABLE "act_cmmn_ru_plan_item_inst" ADD CONSTRAINT "pk_cmmn_plan_item_inst" PRIMARY KEY ("id_");
  1670. -- ----------------------------
  1671. -- Indexes structure for table act_cmmn_ru_sentry_part_inst
  1672. -- ----------------------------
  1673. CREATE INDEX "act_idx_sentry_case_def" ON "act_cmmn_ru_sentry_part_inst" USING btree (
  1674. "case_def_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1675. );
  1676. CREATE INDEX "act_idx_sentry_case_inst" ON "act_cmmn_ru_sentry_part_inst" USING btree (
  1677. "case_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1678. );
  1679. CREATE INDEX "act_idx_sentry_plan_item" ON "act_cmmn_ru_sentry_part_inst" USING btree (
  1680. "plan_item_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1681. );
  1682. -- ----------------------------
  1683. -- Primary Key structure for table act_cmmn_ru_sentry_part_inst
  1684. -- ----------------------------
  1685. ALTER TABLE "act_cmmn_ru_sentry_part_inst" ADD CONSTRAINT "pk_cmmn_sentry_part_inst" PRIMARY KEY ("id_");
  1686. -- ----------------------------
  1687. -- Indexes structure for table act_co_content_item
  1688. -- ----------------------------
  1689. CREATE INDEX "idx_contitem_procid" ON "act_co_content_item" USING btree (
  1690. "proc_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1691. );
  1692. CREATE INDEX "idx_contitem_scope" ON "act_co_content_item" USING btree (
  1693. "scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1694. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1695. );
  1696. CREATE INDEX "idx_contitem_taskid" ON "act_co_content_item" USING btree (
  1697. "task_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1698. );
  1699. -- ----------------------------
  1700. -- Primary Key structure for table act_co_content_item
  1701. -- ----------------------------
  1702. ALTER TABLE "act_co_content_item" ADD CONSTRAINT "act_co_content_item_pkey" PRIMARY KEY ("id_");
  1703. -- ----------------------------
  1704. -- Primary Key structure for table act_co_databasechangeloglock
  1705. -- ----------------------------
  1706. ALTER TABLE "act_co_databasechangeloglock" ADD CONSTRAINT "act_co_databasechangeloglock_pkey" PRIMARY KEY ("id");
  1707. -- ----------------------------
  1708. -- Primary Key structure for table act_de_databasechangeloglock
  1709. -- ----------------------------
  1710. ALTER TABLE "act_de_databasechangeloglock" ADD CONSTRAINT "act_de_databasechangeloglock_pkey" PRIMARY KEY ("id");
  1711. -- ----------------------------
  1712. -- Indexes structure for table act_de_model
  1713. -- ----------------------------
  1714. CREATE INDEX "idx_proc_mod_created" ON "act_de_model" USING btree (
  1715. "created_by" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1716. );
  1717. -- ----------------------------
  1718. -- Primary Key structure for table act_de_model
  1719. -- ----------------------------
  1720. ALTER TABLE "act_de_model" ADD CONSTRAINT "act_de_model_pkey" PRIMARY KEY ("id");
  1721. -- ----------------------------
  1722. -- Indexes structure for table act_de_model_history
  1723. -- ----------------------------
  1724. CREATE INDEX "idx_proc_mod_history_proc" ON "act_de_model_history" USING btree (
  1725. "model_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1726. );
  1727. -- ----------------------------
  1728. -- Primary Key structure for table act_de_model_history
  1729. -- ----------------------------
  1730. ALTER TABLE "act_de_model_history" ADD CONSTRAINT "act_de_model_history_pkey" PRIMARY KEY ("id");
  1731. -- ----------------------------
  1732. -- Primary Key structure for table act_de_model_relation
  1733. -- ----------------------------
  1734. ALTER TABLE "act_de_model_relation" ADD CONSTRAINT "act_de_model_relation_pkey" PRIMARY KEY ("id");
  1735. -- ----------------------------
  1736. -- Primary Key structure for table act_dmn_databasechangeloglock
  1737. -- ----------------------------
  1738. ALTER TABLE "act_dmn_databasechangeloglock" ADD CONSTRAINT "act_dmn_databasechangeloglock_pkey" PRIMARY KEY ("id");
  1739. -- ----------------------------
  1740. -- Indexes structure for table act_dmn_decision_table
  1741. -- ----------------------------
  1742. CREATE UNIQUE INDEX "act_idx_dec_tbl_uniq" ON "act_dmn_decision_table" USING btree (
  1743. "key_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1744. "version_" "pg_catalog"."int4_ops" ASC NULLS LAST,
  1745. "tenant_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1746. );
  1747. -- ----------------------------
  1748. -- Primary Key structure for table act_dmn_decision_table
  1749. -- ----------------------------
  1750. ALTER TABLE "act_dmn_decision_table" ADD CONSTRAINT "act_dmn_decision_table_pkey" PRIMARY KEY ("id_");
  1751. -- ----------------------------
  1752. -- Primary Key structure for table act_dmn_deployment
  1753. -- ----------------------------
  1754. ALTER TABLE "act_dmn_deployment" ADD CONSTRAINT "act_dmn_deployment_pkey" PRIMARY KEY ("id_");
  1755. -- ----------------------------
  1756. -- Primary Key structure for table act_dmn_deployment_resource
  1757. -- ----------------------------
  1758. ALTER TABLE "act_dmn_deployment_resource" ADD CONSTRAINT "act_dmn_deployment_resource_pkey" PRIMARY KEY ("id_");
  1759. -- ----------------------------
  1760. -- Primary Key structure for table act_dmn_hi_decision_execution
  1761. -- ----------------------------
  1762. ALTER TABLE "act_dmn_hi_decision_execution" ADD CONSTRAINT "act_dmn_hi_decision_execution_pkey" PRIMARY KEY ("id_");
  1763. -- ----------------------------
  1764. -- Primary Key structure for table act_evt_log
  1765. -- ----------------------------
  1766. ALTER TABLE "act_evt_log" ADD CONSTRAINT "act_evt_log_pkey" PRIMARY KEY ("log_nr_");
  1767. -- ----------------------------
  1768. -- Primary Key structure for table act_fo_databasechangeloglock
  1769. -- ----------------------------
  1770. ALTER TABLE "act_fo_databasechangeloglock" ADD CONSTRAINT "act_fo_databasechangeloglock_pkey" PRIMARY KEY ("id");
  1771. -- ----------------------------
  1772. -- Indexes structure for table act_fo_form_definition
  1773. -- ----------------------------
  1774. CREATE UNIQUE INDEX "act_idx_form_def_uniq" ON "act_fo_form_definition" USING btree (
  1775. "key_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1776. "version_" "pg_catalog"."int4_ops" ASC NULLS LAST,
  1777. "tenant_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1778. );
  1779. -- ----------------------------
  1780. -- Primary Key structure for table act_fo_form_definition
  1781. -- ----------------------------
  1782. ALTER TABLE "act_fo_form_definition" ADD CONSTRAINT "act_fo_form_definition_pkey" PRIMARY KEY ("id_");
  1783. -- ----------------------------
  1784. -- Primary Key structure for table act_fo_form_deployment
  1785. -- ----------------------------
  1786. ALTER TABLE "act_fo_form_deployment" ADD CONSTRAINT "act_fo_form_deployment_pkey" PRIMARY KEY ("id_");
  1787. -- ----------------------------
  1788. -- Primary Key structure for table act_fo_form_instance
  1789. -- ----------------------------
  1790. ALTER TABLE "act_fo_form_instance" ADD CONSTRAINT "act_fo_form_instance_pkey" PRIMARY KEY ("id_");
  1791. -- ----------------------------
  1792. -- Primary Key structure for table act_fo_form_resource
  1793. -- ----------------------------
  1794. ALTER TABLE "act_fo_form_resource" ADD CONSTRAINT "act_fo_form_resource_pkey" PRIMARY KEY ("id_");
  1795. -- ----------------------------
  1796. -- Indexes structure for table act_ge_bytearray
  1797. -- ----------------------------
  1798. CREATE INDEX "act_idx_bytear_depl" ON "act_ge_bytearray" USING btree (
  1799. "deployment_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1800. );
  1801. -- ----------------------------
  1802. -- Primary Key structure for table act_ge_bytearray
  1803. -- ----------------------------
  1804. ALTER TABLE "act_ge_bytearray" ADD CONSTRAINT "act_ge_bytearray_pkey" PRIMARY KEY ("id_");
  1805. -- ----------------------------
  1806. -- Primary Key structure for table act_ge_property
  1807. -- ----------------------------
  1808. ALTER TABLE "act_ge_property" ADD CONSTRAINT "act_ge_property_pkey" PRIMARY KEY ("name_");
  1809. -- ----------------------------
  1810. -- Indexes structure for table act_hi_actinst
  1811. -- ----------------------------
  1812. CREATE INDEX "act_idx_hi_act_inst_end" ON "act_hi_actinst" USING btree (
  1813. "end_time_" "pg_catalog"."timestamp_ops" ASC NULLS LAST
  1814. );
  1815. CREATE INDEX "act_idx_hi_act_inst_exec" ON "act_hi_actinst" USING btree (
  1816. "execution_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1817. "act_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1818. );
  1819. CREATE INDEX "act_idx_hi_act_inst_procinst" ON "act_hi_actinst" USING btree (
  1820. "proc_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1821. "act_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1822. );
  1823. CREATE INDEX "act_idx_hi_act_inst_start" ON "act_hi_actinst" USING btree (
  1824. "start_time_" "pg_catalog"."timestamp_ops" ASC NULLS LAST
  1825. );
  1826. -- ----------------------------
  1827. -- Primary Key structure for table act_hi_actinst
  1828. -- ----------------------------
  1829. ALTER TABLE "act_hi_actinst" ADD CONSTRAINT "act_hi_actinst_pkey" PRIMARY KEY ("id_");
  1830. -- ----------------------------
  1831. -- Primary Key structure for table act_hi_attachment
  1832. -- ----------------------------
  1833. ALTER TABLE "act_hi_attachment" ADD CONSTRAINT "act_hi_attachment_pkey" PRIMARY KEY ("id_");
  1834. -- ----------------------------
  1835. -- Primary Key structure for table act_hi_comment
  1836. -- ----------------------------
  1837. ALTER TABLE "act_hi_comment" ADD CONSTRAINT "act_hi_comment_pkey" PRIMARY KEY ("id_");
  1838. -- ----------------------------
  1839. -- Indexes structure for table act_hi_detail
  1840. -- ----------------------------
  1841. CREATE INDEX "act_idx_hi_detail_act_inst" ON "act_hi_detail" USING btree (
  1842. "act_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1843. );
  1844. CREATE INDEX "act_idx_hi_detail_name" ON "act_hi_detail" USING btree (
  1845. "name_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1846. );
  1847. CREATE INDEX "act_idx_hi_detail_proc_inst" ON "act_hi_detail" USING btree (
  1848. "proc_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1849. );
  1850. CREATE INDEX "act_idx_hi_detail_task_id" ON "act_hi_detail" USING btree (
  1851. "task_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1852. );
  1853. CREATE INDEX "act_idx_hi_detail_time" ON "act_hi_detail" USING btree (
  1854. "time_" "pg_catalog"."timestamp_ops" ASC NULLS LAST
  1855. );
  1856. -- ----------------------------
  1857. -- Primary Key structure for table act_hi_detail
  1858. -- ----------------------------
  1859. ALTER TABLE "act_hi_detail" ADD CONSTRAINT "act_hi_detail_pkey" PRIMARY KEY ("id_");
  1860. -- ----------------------------
  1861. -- Indexes structure for table act_hi_entitylink
  1862. -- ----------------------------
  1863. CREATE INDEX "act_idx_hi_ent_lnk_scope" ON "act_hi_entitylink" USING btree (
  1864. "scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1865. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1866. "link_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1867. );
  1868. CREATE INDEX "act_idx_hi_ent_lnk_scope_def" ON "act_hi_entitylink" USING btree (
  1869. "scope_definition_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1870. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1871. "link_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1872. );
  1873. -- ----------------------------
  1874. -- Primary Key structure for table act_hi_entitylink
  1875. -- ----------------------------
  1876. ALTER TABLE "act_hi_entitylink" ADD CONSTRAINT "act_hi_entitylink_pkey" PRIMARY KEY ("id_");
  1877. -- ----------------------------
  1878. -- Indexes structure for table act_hi_identitylink
  1879. -- ----------------------------
  1880. CREATE INDEX "act_idx_hi_ident_lnk_procinst" ON "act_hi_identitylink" USING btree (
  1881. "proc_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1882. );
  1883. CREATE INDEX "act_idx_hi_ident_lnk_scope" ON "act_hi_identitylink" USING btree (
  1884. "scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1885. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1886. );
  1887. CREATE INDEX "act_idx_hi_ident_lnk_scope_def" ON "act_hi_identitylink" USING btree (
  1888. "scope_definition_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1889. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1890. );
  1891. CREATE INDEX "act_idx_hi_ident_lnk_task" ON "act_hi_identitylink" USING btree (
  1892. "task_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1893. );
  1894. CREATE INDEX "act_idx_hi_ident_lnk_user" ON "act_hi_identitylink" USING btree (
  1895. "user_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1896. );
  1897. -- ----------------------------
  1898. -- Primary Key structure for table act_hi_identitylink
  1899. -- ----------------------------
  1900. ALTER TABLE "act_hi_identitylink" ADD CONSTRAINT "act_hi_identitylink_pkey" PRIMARY KEY ("id_");
  1901. -- ----------------------------
  1902. -- Indexes structure for table act_hi_procinst
  1903. -- ----------------------------
  1904. CREATE INDEX "act_idx_hi_pro_i_buskey" ON "act_hi_procinst" USING btree (
  1905. "business_key_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1906. );
  1907. CREATE INDEX "act_idx_hi_pro_inst_end" ON "act_hi_procinst" USING btree (
  1908. "end_time_" "pg_catalog"."timestamp_ops" ASC NULLS LAST
  1909. );
  1910. -- ----------------------------
  1911. -- Uniques structure for table act_hi_procinst
  1912. -- ----------------------------
  1913. ALTER TABLE "act_hi_procinst" ADD CONSTRAINT "act_hi_procinst_proc_inst_id__key" UNIQUE ("proc_inst_id_");
  1914. -- ----------------------------
  1915. -- Primary Key structure for table act_hi_procinst
  1916. -- ----------------------------
  1917. ALTER TABLE "act_hi_procinst" ADD CONSTRAINT "act_hi_procinst_pkey" PRIMARY KEY ("id_");
  1918. -- ----------------------------
  1919. -- Indexes structure for table act_hi_taskinst
  1920. -- ----------------------------
  1921. CREATE INDEX "act_idx_hi_task_inst_procinst" ON "act_hi_taskinst" USING btree (
  1922. "proc_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1923. );
  1924. CREATE INDEX "act_idx_hi_task_scope" ON "act_hi_taskinst" USING btree (
  1925. "scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1926. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1927. );
  1928. CREATE INDEX "act_idx_hi_task_scope_def" ON "act_hi_taskinst" USING btree (
  1929. "scope_definition_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1930. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1931. );
  1932. CREATE INDEX "act_idx_hi_task_sub_scope" ON "act_hi_taskinst" USING btree (
  1933. "sub_scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1934. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1935. );
  1936. -- ----------------------------
  1937. -- Primary Key structure for table act_hi_taskinst
  1938. -- ----------------------------
  1939. ALTER TABLE "act_hi_taskinst" ADD CONSTRAINT "act_hi_taskinst_pkey" PRIMARY KEY ("id_");
  1940. -- ----------------------------
  1941. -- Primary Key structure for table act_hi_tsk_log
  1942. -- ----------------------------
  1943. ALTER TABLE "act_hi_tsk_log" ADD CONSTRAINT "act_hi_tsk_log_pkey" PRIMARY KEY ("id_");
  1944. -- ----------------------------
  1945. -- Indexes structure for table act_hi_varinst
  1946. -- ----------------------------
  1947. CREATE INDEX "act_idx_hi_procvar_exe" ON "act_hi_varinst" USING btree (
  1948. "execution_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1949. );
  1950. CREATE INDEX "act_idx_hi_procvar_name_type" ON "act_hi_varinst" USING btree (
  1951. "name_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1952. "var_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1953. );
  1954. CREATE INDEX "act_idx_hi_procvar_proc_inst" ON "act_hi_varinst" USING btree (
  1955. "proc_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1956. );
  1957. CREATE INDEX "act_idx_hi_procvar_task_id" ON "act_hi_varinst" USING btree (
  1958. "task_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1959. );
  1960. CREATE INDEX "act_idx_hi_var_scope_id_type" ON "act_hi_varinst" USING btree (
  1961. "scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1962. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1963. );
  1964. CREATE INDEX "act_idx_hi_var_sub_id_type" ON "act_hi_varinst" USING btree (
  1965. "sub_scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  1966. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1967. );
  1968. -- ----------------------------
  1969. -- Primary Key structure for table act_hi_varinst
  1970. -- ----------------------------
  1971. ALTER TABLE "act_hi_varinst" ADD CONSTRAINT "act_hi_varinst_pkey" PRIMARY KEY ("id_");
  1972. -- ----------------------------
  1973. -- Primary Key structure for table act_id_bytearray
  1974. -- ----------------------------
  1975. ALTER TABLE "act_id_bytearray" ADD CONSTRAINT "act_id_bytearray_pkey" PRIMARY KEY ("id_");
  1976. -- ----------------------------
  1977. -- Primary Key structure for table act_id_group
  1978. -- ----------------------------
  1979. ALTER TABLE "act_id_group" ADD CONSTRAINT "act_id_group_pkey" PRIMARY KEY ("id_");
  1980. -- ----------------------------
  1981. -- Primary Key structure for table act_id_info
  1982. -- ----------------------------
  1983. ALTER TABLE "act_id_info" ADD CONSTRAINT "act_id_info_pkey" PRIMARY KEY ("id_");
  1984. -- ----------------------------
  1985. -- Indexes structure for table act_id_membership
  1986. -- ----------------------------
  1987. CREATE INDEX "act_idx_memb_group" ON "act_id_membership" USING btree (
  1988. "group_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1989. );
  1990. CREATE INDEX "act_idx_memb_user" ON "act_id_membership" USING btree (
  1991. "user_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  1992. );
  1993. -- ----------------------------
  1994. -- Primary Key structure for table act_id_membership
  1995. -- ----------------------------
  1996. ALTER TABLE "act_id_membership" ADD CONSTRAINT "act_id_membership_pkey" PRIMARY KEY ("user_id_", "group_id_");
  1997. -- ----------------------------
  1998. -- Uniques structure for table act_id_priv
  1999. -- ----------------------------
  2000. ALTER TABLE "act_id_priv" ADD CONSTRAINT "act_uniq_priv_name" UNIQUE ("name_");
  2001. -- ----------------------------
  2002. -- Primary Key structure for table act_id_priv
  2003. -- ----------------------------
  2004. ALTER TABLE "act_id_priv" ADD CONSTRAINT "act_id_priv_pkey" PRIMARY KEY ("id_");
  2005. -- ----------------------------
  2006. -- Indexes structure for table act_id_priv_mapping
  2007. -- ----------------------------
  2008. CREATE INDEX "act_idx_priv_group" ON "act_id_priv_mapping" USING btree (
  2009. "group_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2010. );
  2011. CREATE INDEX "act_idx_priv_mapping" ON "act_id_priv_mapping" USING btree (
  2012. "priv_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2013. );
  2014. CREATE INDEX "act_idx_priv_user" ON "act_id_priv_mapping" USING btree (
  2015. "user_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2016. );
  2017. -- ----------------------------
  2018. -- Primary Key structure for table act_id_priv_mapping
  2019. -- ----------------------------
  2020. ALTER TABLE "act_id_priv_mapping" ADD CONSTRAINT "act_id_priv_mapping_pkey" PRIMARY KEY ("id_");
  2021. -- ----------------------------
  2022. -- Primary Key structure for table act_id_property
  2023. -- ----------------------------
  2024. ALTER TABLE "act_id_property" ADD CONSTRAINT "act_id_property_pkey" PRIMARY KEY ("name_");
  2025. -- ----------------------------
  2026. -- Primary Key structure for table act_id_token
  2027. -- ----------------------------
  2028. ALTER TABLE "act_id_token" ADD CONSTRAINT "act_id_token_pkey" PRIMARY KEY ("id_");
  2029. -- ----------------------------
  2030. -- Primary Key structure for table act_id_user
  2031. -- ----------------------------
  2032. ALTER TABLE "act_id_user" ADD CONSTRAINT "act_id_user_pkey" PRIMARY KEY ("id_");
  2033. -- ----------------------------
  2034. -- Indexes structure for table act_procdef_info
  2035. -- ----------------------------
  2036. CREATE INDEX "act_idx_procdef_info_json" ON "act_procdef_info" USING btree (
  2037. "info_json_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2038. );
  2039. CREATE INDEX "act_idx_procdef_info_proc" ON "act_procdef_info" USING btree (
  2040. "proc_def_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2041. );
  2042. -- ----------------------------
  2043. -- Uniques structure for table act_procdef_info
  2044. -- ----------------------------
  2045. ALTER TABLE "act_procdef_info" ADD CONSTRAINT "act_uniq_info_procdef" UNIQUE ("proc_def_id_");
  2046. -- ----------------------------
  2047. -- Primary Key structure for table act_procdef_info
  2048. -- ----------------------------
  2049. ALTER TABLE "act_procdef_info" ADD CONSTRAINT "act_procdef_info_pkey" PRIMARY KEY ("id_");
  2050. -- ----------------------------
  2051. -- Primary Key structure for table act_re_deployment
  2052. -- ----------------------------
  2053. ALTER TABLE "act_re_deployment" ADD CONSTRAINT "act_re_deployment_pkey" PRIMARY KEY ("id_");
  2054. -- ----------------------------
  2055. -- Indexes structure for table act_re_model
  2056. -- ----------------------------
  2057. CREATE INDEX "act_idx_model_deployment" ON "act_re_model" USING btree (
  2058. "deployment_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2059. );
  2060. CREATE INDEX "act_idx_model_source" ON "act_re_model" USING btree (
  2061. "editor_source_value_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2062. );
  2063. CREATE INDEX "act_idx_model_source_extra" ON "act_re_model" USING btree (
  2064. "editor_source_extra_value_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2065. );
  2066. -- ----------------------------
  2067. -- Primary Key structure for table act_re_model
  2068. -- ----------------------------
  2069. ALTER TABLE "act_re_model" ADD CONSTRAINT "act_re_model_pkey" PRIMARY KEY ("id_");
  2070. -- ----------------------------
  2071. -- Uniques structure for table act_re_procdef
  2072. -- ----------------------------
  2073. ALTER TABLE "act_re_procdef" ADD CONSTRAINT "act_uniq_procdef" UNIQUE ("key_", "version_", "derived_version_", "tenant_id_");
  2074. -- ----------------------------
  2075. -- Primary Key structure for table act_re_procdef
  2076. -- ----------------------------
  2077. ALTER TABLE "act_re_procdef" ADD CONSTRAINT "act_re_procdef_pkey" PRIMARY KEY ("id_");
  2078. -- ----------------------------
  2079. -- Indexes structure for table act_ru_actinst
  2080. -- ----------------------------
  2081. CREATE INDEX "act_idx_ru_acti_end" ON "act_ru_actinst" USING btree (
  2082. "end_time_" "pg_catalog"."timestamp_ops" ASC NULLS LAST
  2083. );
  2084. CREATE INDEX "act_idx_ru_acti_exec" ON "act_ru_actinst" USING btree (
  2085. "execution_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2086. );
  2087. CREATE INDEX "act_idx_ru_acti_exec_act" ON "act_ru_actinst" USING btree (
  2088. "execution_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2089. "act_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2090. );
  2091. CREATE INDEX "act_idx_ru_acti_proc" ON "act_ru_actinst" USING btree (
  2092. "proc_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2093. );
  2094. CREATE INDEX "act_idx_ru_acti_proc_act" ON "act_ru_actinst" USING btree (
  2095. "proc_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2096. "act_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2097. );
  2098. CREATE INDEX "act_idx_ru_acti_start" ON "act_ru_actinst" USING btree (
  2099. "start_time_" "pg_catalog"."timestamp_ops" ASC NULLS LAST
  2100. );
  2101. -- ----------------------------
  2102. -- Primary Key structure for table act_ru_actinst
  2103. -- ----------------------------
  2104. ALTER TABLE "act_ru_actinst" ADD CONSTRAINT "act_ru_actinst_pkey" PRIMARY KEY ("id_");
  2105. -- ----------------------------
  2106. -- Indexes structure for table act_ru_deadletter_job
  2107. -- ----------------------------
  2108. CREATE INDEX "act_idx_deadletter_job_custom_values_id" ON "act_ru_deadletter_job" USING btree (
  2109. "custom_values_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2110. );
  2111. CREATE INDEX "act_idx_deadletter_job_exception_stack_id" ON "act_ru_deadletter_job" USING btree (
  2112. "exception_stack_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2113. );
  2114. CREATE INDEX "act_idx_deadletter_job_execution_id" ON "act_ru_deadletter_job" USING btree (
  2115. "execution_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2116. );
  2117. CREATE INDEX "act_idx_deadletter_job_proc_def_id" ON "act_ru_deadletter_job" USING btree (
  2118. "proc_def_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2119. );
  2120. CREATE INDEX "act_idx_deadletter_job_process_instance_id" ON "act_ru_deadletter_job" USING btree (
  2121. "process_instance_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2122. );
  2123. CREATE INDEX "act_idx_djob_scope" ON "act_ru_deadletter_job" USING btree (
  2124. "scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2125. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2126. );
  2127. CREATE INDEX "act_idx_djob_scope_def" ON "act_ru_deadletter_job" USING btree (
  2128. "scope_definition_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2129. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2130. );
  2131. CREATE INDEX "act_idx_djob_sub_scope" ON "act_ru_deadletter_job" USING btree (
  2132. "sub_scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2133. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2134. );
  2135. -- ----------------------------
  2136. -- Primary Key structure for table act_ru_deadletter_job
  2137. -- ----------------------------
  2138. ALTER TABLE "act_ru_deadletter_job" ADD CONSTRAINT "act_ru_deadletter_job_pkey" PRIMARY KEY ("id_");
  2139. -- ----------------------------
  2140. -- Indexes structure for table act_ru_entitylink
  2141. -- ----------------------------
  2142. CREATE INDEX "act_idx_ent_lnk_scope" ON "act_ru_entitylink" USING btree (
  2143. "scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2144. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2145. "link_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2146. );
  2147. CREATE INDEX "act_idx_ent_lnk_scope_def" ON "act_ru_entitylink" USING btree (
  2148. "scope_definition_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2149. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2150. "link_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2151. );
  2152. -- ----------------------------
  2153. -- Primary Key structure for table act_ru_entitylink
  2154. -- ----------------------------
  2155. ALTER TABLE "act_ru_entitylink" ADD CONSTRAINT "act_ru_entitylink_pkey" PRIMARY KEY ("id_");
  2156. -- ----------------------------
  2157. -- Indexes structure for table act_ru_event_subscr
  2158. -- ----------------------------
  2159. CREATE INDEX "act_idx_event_subscr" ON "act_ru_event_subscr" USING btree (
  2160. "execution_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2161. );
  2162. CREATE INDEX "act_idx_event_subscr_config_" ON "act_ru_event_subscr" USING btree (
  2163. "configuration_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2164. );
  2165. -- ----------------------------
  2166. -- Primary Key structure for table act_ru_event_subscr
  2167. -- ----------------------------
  2168. ALTER TABLE "act_ru_event_subscr" ADD CONSTRAINT "act_ru_event_subscr_pkey" PRIMARY KEY ("id_");
  2169. -- ----------------------------
  2170. -- Indexes structure for table act_ru_execution
  2171. -- ----------------------------
  2172. CREATE INDEX "act_idx_exe_parent" ON "act_ru_execution" USING btree (
  2173. "parent_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2174. );
  2175. CREATE INDEX "act_idx_exe_procdef" ON "act_ru_execution" USING btree (
  2176. "proc_def_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2177. );
  2178. CREATE INDEX "act_idx_exe_procinst" ON "act_ru_execution" USING btree (
  2179. "proc_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2180. );
  2181. CREATE INDEX "act_idx_exe_root" ON "act_ru_execution" USING btree (
  2182. "root_proc_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2183. );
  2184. CREATE INDEX "act_idx_exe_super" ON "act_ru_execution" USING btree (
  2185. "super_exec_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2186. );
  2187. CREATE INDEX "act_idx_exec_buskey" ON "act_ru_execution" USING btree (
  2188. "business_key_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2189. );
  2190. -- ----------------------------
  2191. -- Primary Key structure for table act_ru_execution
  2192. -- ----------------------------
  2193. ALTER TABLE "act_ru_execution" ADD CONSTRAINT "act_ru_execution_pkey" PRIMARY KEY ("id_");
  2194. -- ----------------------------
  2195. -- Primary Key structure for table act_ru_history_job
  2196. -- ----------------------------
  2197. ALTER TABLE "act_ru_history_job" ADD CONSTRAINT "act_ru_history_job_pkey" PRIMARY KEY ("id_");
  2198. -- ----------------------------
  2199. -- Indexes structure for table act_ru_identitylink
  2200. -- ----------------------------
  2201. CREATE INDEX "act_idx_athrz_procedef" ON "act_ru_identitylink" USING btree (
  2202. "proc_def_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2203. );
  2204. CREATE INDEX "act_idx_ident_lnk_group" ON "act_ru_identitylink" USING btree (
  2205. "group_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2206. );
  2207. CREATE INDEX "act_idx_ident_lnk_scope" ON "act_ru_identitylink" USING btree (
  2208. "scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2209. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2210. );
  2211. CREATE INDEX "act_idx_ident_lnk_scope_def" ON "act_ru_identitylink" USING btree (
  2212. "scope_definition_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2213. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2214. );
  2215. CREATE INDEX "act_idx_ident_lnk_user" ON "act_ru_identitylink" USING btree (
  2216. "user_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2217. );
  2218. CREATE INDEX "act_idx_idl_procinst" ON "act_ru_identitylink" USING btree (
  2219. "proc_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2220. );
  2221. CREATE INDEX "act_idx_tskass_task" ON "act_ru_identitylink" USING btree (
  2222. "task_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2223. );
  2224. -- ----------------------------
  2225. -- Primary Key structure for table act_ru_identitylink
  2226. -- ----------------------------
  2227. ALTER TABLE "act_ru_identitylink" ADD CONSTRAINT "act_ru_identitylink_pkey" PRIMARY KEY ("id_");
  2228. -- ----------------------------
  2229. -- Indexes structure for table act_ru_job
  2230. -- ----------------------------
  2231. CREATE INDEX "act_idx_job_custom_values_id" ON "act_ru_job" USING btree (
  2232. "custom_values_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2233. );
  2234. CREATE INDEX "act_idx_job_exception_stack_id" ON "act_ru_job" USING btree (
  2235. "exception_stack_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2236. );
  2237. CREATE INDEX "act_idx_job_execution_id" ON "act_ru_job" USING btree (
  2238. "execution_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2239. );
  2240. CREATE INDEX "act_idx_job_proc_def_id" ON "act_ru_job" USING btree (
  2241. "proc_def_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2242. );
  2243. CREATE INDEX "act_idx_job_process_instance_id" ON "act_ru_job" USING btree (
  2244. "process_instance_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2245. );
  2246. CREATE INDEX "act_idx_job_scope" ON "act_ru_job" USING btree (
  2247. "scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2248. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2249. );
  2250. CREATE INDEX "act_idx_job_scope_def" ON "act_ru_job" USING btree (
  2251. "scope_definition_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2252. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2253. );
  2254. CREATE INDEX "act_idx_job_sub_scope" ON "act_ru_job" USING btree (
  2255. "sub_scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2256. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2257. );
  2258. -- ----------------------------
  2259. -- Primary Key structure for table act_ru_job
  2260. -- ----------------------------
  2261. ALTER TABLE "act_ru_job" ADD CONSTRAINT "act_ru_job_pkey" PRIMARY KEY ("id_");
  2262. -- ----------------------------
  2263. -- Indexes structure for table act_ru_suspended_job
  2264. -- ----------------------------
  2265. CREATE INDEX "act_idx_sjob_scope" ON "act_ru_suspended_job" USING btree (
  2266. "scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2267. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2268. );
  2269. CREATE INDEX "act_idx_sjob_scope_def" ON "act_ru_suspended_job" USING btree (
  2270. "scope_definition_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2271. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2272. );
  2273. CREATE INDEX "act_idx_sjob_sub_scope" ON "act_ru_suspended_job" USING btree (
  2274. "sub_scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2275. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2276. );
  2277. CREATE INDEX "act_idx_suspended_job_custom_values_id" ON "act_ru_suspended_job" USING btree (
  2278. "custom_values_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2279. );
  2280. CREATE INDEX "act_idx_suspended_job_exception_stack_id" ON "act_ru_suspended_job" USING btree (
  2281. "exception_stack_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2282. );
  2283. CREATE INDEX "act_idx_suspended_job_execution_id" ON "act_ru_suspended_job" USING btree (
  2284. "execution_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2285. );
  2286. CREATE INDEX "act_idx_suspended_job_proc_def_id" ON "act_ru_suspended_job" USING btree (
  2287. "proc_def_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2288. );
  2289. CREATE INDEX "act_idx_suspended_job_process_instance_id" ON "act_ru_suspended_job" USING btree (
  2290. "process_instance_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2291. );
  2292. -- ----------------------------
  2293. -- Primary Key structure for table act_ru_suspended_job
  2294. -- ----------------------------
  2295. ALTER TABLE "act_ru_suspended_job" ADD CONSTRAINT "act_ru_suspended_job_pkey" PRIMARY KEY ("id_");
  2296. -- ----------------------------
  2297. -- Indexes structure for table act_ru_task
  2298. -- ----------------------------
  2299. CREATE INDEX "act_idx_task_create" ON "act_ru_task" USING btree (
  2300. "create_time_" "pg_catalog"."timestamp_ops" ASC NULLS LAST
  2301. );
  2302. CREATE INDEX "act_idx_task_exec" ON "act_ru_task" USING btree (
  2303. "execution_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2304. );
  2305. CREATE INDEX "act_idx_task_procdef" ON "act_ru_task" USING btree (
  2306. "proc_def_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2307. );
  2308. CREATE INDEX "act_idx_task_procinst" ON "act_ru_task" USING btree (
  2309. "proc_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2310. );
  2311. CREATE INDEX "act_idx_task_scope" ON "act_ru_task" USING btree (
  2312. "scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2313. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2314. );
  2315. CREATE INDEX "act_idx_task_scope_def" ON "act_ru_task" USING btree (
  2316. "scope_definition_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2317. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2318. );
  2319. CREATE INDEX "act_idx_task_sub_scope" ON "act_ru_task" USING btree (
  2320. "sub_scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2321. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2322. );
  2323. -- ----------------------------
  2324. -- Primary Key structure for table act_ru_task
  2325. -- ----------------------------
  2326. ALTER TABLE "act_ru_task" ADD CONSTRAINT "act_ru_task_pkey" PRIMARY KEY ("id_");
  2327. -- ----------------------------
  2328. -- Indexes structure for table act_ru_timer_job
  2329. -- ----------------------------
  2330. CREATE INDEX "act_idx_timer_job_custom_values_id" ON "act_ru_timer_job" USING btree (
  2331. "custom_values_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2332. );
  2333. CREATE INDEX "act_idx_timer_job_exception_stack_id" ON "act_ru_timer_job" USING btree (
  2334. "exception_stack_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2335. );
  2336. CREATE INDEX "act_idx_timer_job_execution_id" ON "act_ru_timer_job" USING btree (
  2337. "execution_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2338. );
  2339. CREATE INDEX "act_idx_timer_job_proc_def_id" ON "act_ru_timer_job" USING btree (
  2340. "proc_def_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2341. );
  2342. CREATE INDEX "act_idx_timer_job_process_instance_id" ON "act_ru_timer_job" USING btree (
  2343. "process_instance_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2344. );
  2345. CREATE INDEX "act_idx_tjob_scope" ON "act_ru_timer_job" USING btree (
  2346. "scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2347. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2348. );
  2349. CREATE INDEX "act_idx_tjob_scope_def" ON "act_ru_timer_job" USING btree (
  2350. "scope_definition_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2351. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2352. );
  2353. CREATE INDEX "act_idx_tjob_sub_scope" ON "act_ru_timer_job" USING btree (
  2354. "sub_scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2355. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2356. );
  2357. -- ----------------------------
  2358. -- Primary Key structure for table act_ru_timer_job
  2359. -- ----------------------------
  2360. ALTER TABLE "act_ru_timer_job" ADD CONSTRAINT "act_ru_timer_job_pkey" PRIMARY KEY ("id_");
  2361. -- ----------------------------
  2362. -- Indexes structure for table act_ru_variable
  2363. -- ----------------------------
  2364. CREATE INDEX "act_idx_ru_var_scope_id_type" ON "act_ru_variable" USING btree (
  2365. "scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2366. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2367. );
  2368. CREATE INDEX "act_idx_ru_var_sub_id_type" ON "act_ru_variable" USING btree (
  2369. "sub_scope_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  2370. "scope_type_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2371. );
  2372. CREATE INDEX "act_idx_var_bytearray" ON "act_ru_variable" USING btree (
  2373. "bytearray_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2374. );
  2375. CREATE INDEX "act_idx_var_exe" ON "act_ru_variable" USING btree (
  2376. "execution_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2377. );
  2378. CREATE INDEX "act_idx_var_procinst" ON "act_ru_variable" USING btree (
  2379. "proc_inst_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2380. );
  2381. CREATE INDEX "act_idx_variable_task_id" ON "act_ru_variable" USING btree (
  2382. "task_id_" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  2383. );
  2384. -- ----------------------------
  2385. -- Primary Key structure for table act_ru_variable
  2386. -- ----------------------------
  2387. ALTER TABLE "act_ru_variable" ADD CONSTRAINT "act_ru_variable_pkey" PRIMARY KEY ("id_");
  2388. -- ----------------------------
  2389. -- Foreign Keys structure for table act_app_appdef
  2390. -- ----------------------------
  2391. ALTER TABLE "act_app_appdef" ADD CONSTRAINT "act_fk_app_def_dply" FOREIGN KEY ("deployment_id_") REFERENCES "act_app_deployment" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2392. -- ----------------------------
  2393. -- Foreign Keys structure for table act_app_deployment_resource
  2394. -- ----------------------------
  2395. ALTER TABLE "act_app_deployment_resource" ADD CONSTRAINT "act_fk_app_rsrc_dpl" FOREIGN KEY ("deployment_id_") REFERENCES "act_app_deployment" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2396. -- ----------------------------
  2397. -- Foreign Keys structure for table act_cmmn_casedef
  2398. -- ----------------------------
  2399. ALTER TABLE "act_cmmn_casedef" ADD CONSTRAINT "act_fk_case_def_dply" FOREIGN KEY ("deployment_id_") REFERENCES "act_cmmn_deployment" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2400. -- ----------------------------
  2401. -- Foreign Keys structure for table act_cmmn_deployment_resource
  2402. -- ----------------------------
  2403. ALTER TABLE "act_cmmn_deployment_resource" ADD CONSTRAINT "act_fk_cmmn_rsrc_dpl" FOREIGN KEY ("deployment_id_") REFERENCES "act_cmmn_deployment" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2404. -- ----------------------------
  2405. -- Foreign Keys structure for table act_cmmn_ru_case_inst
  2406. -- ----------------------------
  2407. ALTER TABLE "act_cmmn_ru_case_inst" ADD CONSTRAINT "act_fk_case_inst_case_def" FOREIGN KEY ("case_def_id_") REFERENCES "act_cmmn_casedef" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2408. -- ----------------------------
  2409. -- Foreign Keys structure for table act_cmmn_ru_mil_inst
  2410. -- ----------------------------
  2411. ALTER TABLE "act_cmmn_ru_mil_inst" ADD CONSTRAINT "act_fk_mil_case_def" FOREIGN KEY ("case_def_id_") REFERENCES "act_cmmn_casedef" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2412. ALTER TABLE "act_cmmn_ru_mil_inst" ADD CONSTRAINT "act_fk_mil_case_inst" FOREIGN KEY ("case_inst_id_") REFERENCES "act_cmmn_ru_case_inst" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2413. -- ----------------------------
  2414. -- Foreign Keys structure for table act_cmmn_ru_plan_item_inst
  2415. -- ----------------------------
  2416. ALTER TABLE "act_cmmn_ru_plan_item_inst" ADD CONSTRAINT "act_fk_plan_item_case_def" FOREIGN KEY ("case_def_id_") REFERENCES "act_cmmn_casedef" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2417. ALTER TABLE "act_cmmn_ru_plan_item_inst" ADD CONSTRAINT "act_fk_plan_item_case_inst" FOREIGN KEY ("case_inst_id_") REFERENCES "act_cmmn_ru_case_inst" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2418. -- ----------------------------
  2419. -- Foreign Keys structure for table act_cmmn_ru_sentry_part_inst
  2420. -- ----------------------------
  2421. ALTER TABLE "act_cmmn_ru_sentry_part_inst" ADD CONSTRAINT "act_fk_sentry_case_def" FOREIGN KEY ("case_def_id_") REFERENCES "act_cmmn_casedef" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2422. ALTER TABLE "act_cmmn_ru_sentry_part_inst" ADD CONSTRAINT "act_fk_sentry_case_inst" FOREIGN KEY ("case_inst_id_") REFERENCES "act_cmmn_ru_case_inst" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2423. ALTER TABLE "act_cmmn_ru_sentry_part_inst" ADD CONSTRAINT "act_fk_sentry_plan_item" FOREIGN KEY ("plan_item_inst_id_") REFERENCES "act_cmmn_ru_plan_item_inst" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2424. -- ----------------------------
  2425. -- Foreign Keys structure for table act_de_model_relation
  2426. -- ----------------------------
  2427. ALTER TABLE "act_de_model_relation" ADD CONSTRAINT "fk_relation_child" FOREIGN KEY ("model_id") REFERENCES "act_de_model" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2428. ALTER TABLE "act_de_model_relation" ADD CONSTRAINT "fk_relation_parent" FOREIGN KEY ("parent_model_id") REFERENCES "act_de_model" ("id") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2429. -- ----------------------------
  2430. -- Foreign Keys structure for table act_ge_bytearray
  2431. -- ----------------------------
  2432. ALTER TABLE "act_ge_bytearray" ADD CONSTRAINT "act_fk_bytearr_depl" FOREIGN KEY ("deployment_id_") REFERENCES "act_re_deployment" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2433. -- ----------------------------
  2434. -- Foreign Keys structure for table act_id_membership
  2435. -- ----------------------------
  2436. ALTER TABLE "act_id_membership" ADD CONSTRAINT "act_fk_memb_group" FOREIGN KEY ("group_id_") REFERENCES "act_id_group" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2437. ALTER TABLE "act_id_membership" ADD CONSTRAINT "act_fk_memb_user" FOREIGN KEY ("user_id_") REFERENCES "act_id_user" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2438. -- ----------------------------
  2439. -- Foreign Keys structure for table act_id_priv_mapping
  2440. -- ----------------------------
  2441. ALTER TABLE "act_id_priv_mapping" ADD CONSTRAINT "act_fk_priv_mapping" FOREIGN KEY ("priv_id_") REFERENCES "act_id_priv" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2442. -- ----------------------------
  2443. -- Foreign Keys structure for table act_procdef_info
  2444. -- ----------------------------
  2445. ALTER TABLE "act_procdef_info" ADD CONSTRAINT "act_fk_info_json_ba" FOREIGN KEY ("info_json_id_") REFERENCES "act_ge_bytearray" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2446. ALTER TABLE "act_procdef_info" ADD CONSTRAINT "act_fk_info_procdef" FOREIGN KEY ("proc_def_id_") REFERENCES "act_re_procdef" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2447. -- ----------------------------
  2448. -- Foreign Keys structure for table act_re_model
  2449. -- ----------------------------
  2450. ALTER TABLE "act_re_model" ADD CONSTRAINT "act_fk_model_deployment" FOREIGN KEY ("deployment_id_") REFERENCES "act_re_deployment" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2451. ALTER TABLE "act_re_model" ADD CONSTRAINT "act_fk_model_source" FOREIGN KEY ("editor_source_value_id_") REFERENCES "act_ge_bytearray" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2452. ALTER TABLE "act_re_model" ADD CONSTRAINT "act_fk_model_source_extra" FOREIGN KEY ("editor_source_extra_value_id_") REFERENCES "act_ge_bytearray" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2453. -- ----------------------------
  2454. -- Foreign Keys structure for table act_ru_deadletter_job
  2455. -- ----------------------------
  2456. ALTER TABLE "act_ru_deadletter_job" ADD CONSTRAINT "act_fk_deadletter_job_custom_values" FOREIGN KEY ("custom_values_id_") REFERENCES "act_ge_bytearray" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2457. ALTER TABLE "act_ru_deadletter_job" ADD CONSTRAINT "act_fk_deadletter_job_exception" FOREIGN KEY ("exception_stack_id_") REFERENCES "act_ge_bytearray" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2458. ALTER TABLE "act_ru_deadletter_job" ADD CONSTRAINT "act_fk_deadletter_job_execution" FOREIGN KEY ("execution_id_") REFERENCES "act_ru_execution" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2459. ALTER TABLE "act_ru_deadletter_job" ADD CONSTRAINT "act_fk_deadletter_job_proc_def" FOREIGN KEY ("proc_def_id_") REFERENCES "act_re_procdef" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2460. ALTER TABLE "act_ru_deadletter_job" ADD CONSTRAINT "act_fk_deadletter_job_process_instance" FOREIGN KEY ("process_instance_id_") REFERENCES "act_ru_execution" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2461. -- ----------------------------
  2462. -- Foreign Keys structure for table act_ru_event_subscr
  2463. -- ----------------------------
  2464. ALTER TABLE "act_ru_event_subscr" ADD CONSTRAINT "act_fk_event_exec" FOREIGN KEY ("execution_id_") REFERENCES "act_ru_execution" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2465. -- ----------------------------
  2466. -- Foreign Keys structure for table act_ru_execution
  2467. -- ----------------------------
  2468. ALTER TABLE "act_ru_execution" ADD CONSTRAINT "act_fk_exe_parent" FOREIGN KEY ("parent_id_") REFERENCES "act_ru_execution" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2469. ALTER TABLE "act_ru_execution" ADD CONSTRAINT "act_fk_exe_procdef" FOREIGN KEY ("proc_def_id_") REFERENCES "act_re_procdef" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2470. ALTER TABLE "act_ru_execution" ADD CONSTRAINT "act_fk_exe_procinst" FOREIGN KEY ("proc_inst_id_") REFERENCES "act_ru_execution" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2471. ALTER TABLE "act_ru_execution" ADD CONSTRAINT "act_fk_exe_super" FOREIGN KEY ("super_exec_") REFERENCES "act_ru_execution" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2472. -- ----------------------------
  2473. -- Foreign Keys structure for table act_ru_identitylink
  2474. -- ----------------------------
  2475. ALTER TABLE "act_ru_identitylink" ADD CONSTRAINT "act_fk_athrz_procedef" FOREIGN KEY ("proc_def_id_") REFERENCES "act_re_procdef" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2476. ALTER TABLE "act_ru_identitylink" ADD CONSTRAINT "act_fk_idl_procinst" FOREIGN KEY ("proc_inst_id_") REFERENCES "act_ru_execution" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2477. ALTER TABLE "act_ru_identitylink" ADD CONSTRAINT "act_fk_tskass_task" FOREIGN KEY ("task_id_") REFERENCES "act_ru_task" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2478. -- ----------------------------
  2479. -- Foreign Keys structure for table act_ru_job
  2480. -- ----------------------------
  2481. ALTER TABLE "act_ru_job" ADD CONSTRAINT "act_fk_job_custom_values" FOREIGN KEY ("custom_values_id_") REFERENCES "act_ge_bytearray" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2482. ALTER TABLE "act_ru_job" ADD CONSTRAINT "act_fk_job_exception" FOREIGN KEY ("exception_stack_id_") REFERENCES "act_ge_bytearray" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2483. ALTER TABLE "act_ru_job" ADD CONSTRAINT "act_fk_job_execution" FOREIGN KEY ("execution_id_") REFERENCES "act_ru_execution" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2484. ALTER TABLE "act_ru_job" ADD CONSTRAINT "act_fk_job_proc_def" FOREIGN KEY ("proc_def_id_") REFERENCES "act_re_procdef" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2485. ALTER TABLE "act_ru_job" ADD CONSTRAINT "act_fk_job_process_instance" FOREIGN KEY ("process_instance_id_") REFERENCES "act_ru_execution" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2486. -- ----------------------------
  2487. -- Foreign Keys structure for table act_ru_suspended_job
  2488. -- ----------------------------
  2489. ALTER TABLE "act_ru_suspended_job" ADD CONSTRAINT "act_fk_suspended_job_custom_values" FOREIGN KEY ("custom_values_id_") REFERENCES "act_ge_bytearray" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2490. ALTER TABLE "act_ru_suspended_job" ADD CONSTRAINT "act_fk_suspended_job_exception" FOREIGN KEY ("exception_stack_id_") REFERENCES "act_ge_bytearray" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2491. ALTER TABLE "act_ru_suspended_job" ADD CONSTRAINT "act_fk_suspended_job_execution" FOREIGN KEY ("execution_id_") REFERENCES "act_ru_execution" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2492. ALTER TABLE "act_ru_suspended_job" ADD CONSTRAINT "act_fk_suspended_job_proc_def" FOREIGN KEY ("proc_def_id_") REFERENCES "act_re_procdef" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2493. ALTER TABLE "act_ru_suspended_job" ADD CONSTRAINT "act_fk_suspended_job_process_instance" FOREIGN KEY ("process_instance_id_") REFERENCES "act_ru_execution" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2494. -- ----------------------------
  2495. -- Foreign Keys structure for table act_ru_task
  2496. -- ----------------------------
  2497. ALTER TABLE "act_ru_task" ADD CONSTRAINT "act_fk_task_exe" FOREIGN KEY ("execution_id_") REFERENCES "act_ru_execution" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2498. ALTER TABLE "act_ru_task" ADD CONSTRAINT "act_fk_task_procdef" FOREIGN KEY ("proc_def_id_") REFERENCES "act_re_procdef" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2499. ALTER TABLE "act_ru_task" ADD CONSTRAINT "act_fk_task_procinst" FOREIGN KEY ("proc_inst_id_") REFERENCES "act_ru_execution" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2500. -- ----------------------------
  2501. -- Foreign Keys structure for table act_ru_timer_job
  2502. -- ----------------------------
  2503. ALTER TABLE "act_ru_timer_job" ADD CONSTRAINT "act_fk_timer_job_custom_values" FOREIGN KEY ("custom_values_id_") REFERENCES "act_ge_bytearray" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2504. ALTER TABLE "act_ru_timer_job" ADD CONSTRAINT "act_fk_timer_job_exception" FOREIGN KEY ("exception_stack_id_") REFERENCES "act_ge_bytearray" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2505. ALTER TABLE "act_ru_timer_job" ADD CONSTRAINT "act_fk_timer_job_execution" FOREIGN KEY ("execution_id_") REFERENCES "act_ru_execution" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2506. ALTER TABLE "act_ru_timer_job" ADD CONSTRAINT "act_fk_timer_job_proc_def" FOREIGN KEY ("proc_def_id_") REFERENCES "act_re_procdef" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2507. ALTER TABLE "act_ru_timer_job" ADD CONSTRAINT "act_fk_timer_job_process_instance" FOREIGN KEY ("process_instance_id_") REFERENCES "act_ru_execution" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2508. -- ----------------------------
  2509. -- Foreign Keys structure for table act_ru_variable
  2510. -- ----------------------------
  2511. ALTER TABLE "act_ru_variable" ADD CONSTRAINT "act_fk_var_bytearray" FOREIGN KEY ("bytearray_id_") REFERENCES "act_ge_bytearray" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2512. ALTER TABLE "act_ru_variable" ADD CONSTRAINT "act_fk_var_exe" FOREIGN KEY ("execution_id_") REFERENCES "act_ru_execution" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;
  2513. ALTER TABLE "act_ru_variable" ADD CONSTRAINT "act_fk_var_procinst" FOREIGN KEY ("proc_inst_id_") REFERENCES "act_ru_execution" ("id_") ON DELETE NO ACTION ON UPDATE NO ACTION;