flowable.postgres.all.create.sql 163 KB

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