bladex-flowable-postgresql.sql 129 KB

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