bladex-flowable-postgresql.sql 141 KB

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