bladex-flowable-sqlserver.sql 146 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : sqlserver_remote
  4. Source Server Type : SQL Server
  5. Source Server Version : 10501600
  6. Source Host : 127.0.0.1:1433
  7. Source Catalog : bladex
  8. Source Schema : dbo
  9. Target Server Type : SQL Server
  10. Target Server Version : 10501600
  11. File Encoding : 65001
  12. Date: 20/03/2022 21:27:18
  13. */
  14. -- ----------------------------
  15. -- Table structure for ACT_APP_APPDEF
  16. -- ----------------------------
  17. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_APP_APPDEF]') AND type IN ('U'))
  18. DROP TABLE [dbo].[ACT_APP_APPDEF]
  19. GO
  20. CREATE TABLE [dbo].[ACT_APP_APPDEF] (
  21. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  22. [REV_] int NOT NULL,
  23. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  24. [KEY_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  25. [VERSION_] int NOT NULL,
  26. [CATEGORY_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  27. [DEPLOYMENT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  28. [RESOURCE_NAME_] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  29. [DESCRIPTION_] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  30. [TENANT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  31. )
  32. GO
  33. ALTER TABLE [dbo].[ACT_APP_APPDEF] SET (LOCK_ESCALATION = TABLE)
  34. GO
  35. -- ----------------------------
  36. -- Table structure for ACT_APP_DATABASECHANGELOG
  37. -- ----------------------------
  38. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_APP_DATABASECHANGELOG]') AND type IN ('U'))
  39. DROP TABLE [dbo].[ACT_APP_DATABASECHANGELOG]
  40. GO
  41. CREATE TABLE [dbo].[ACT_APP_DATABASECHANGELOG] (
  42. [ID] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  43. [AUTHOR] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  44. [FILENAME] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  45. [DATEEXECUTED] datetime2(3) NOT NULL,
  46. [ORDEREXECUTED] int NOT NULL,
  47. [EXECTYPE] nvarchar(10) COLLATE Chinese_PRC_CI_AS NOT NULL,
  48. [MD5SUM] nvarchar(35) COLLATE Chinese_PRC_CI_AS NULL,
  49. [DESCRIPTION] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  50. [COMMENTS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  51. [TAG] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  52. [LIQUIBASE] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL,
  53. [CONTEXTS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  54. [LABELS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  55. [DEPLOYMENT_ID] nvarchar(10) COLLATE Chinese_PRC_CI_AS NULL
  56. )
  57. GO
  58. ALTER TABLE [dbo].[ACT_APP_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  59. GO
  60. -- ----------------------------
  61. -- Records of ACT_APP_DATABASECHANGELOG
  62. -- ----------------------------
  63. BEGIN TRANSACTION
  64. GO
  65. INSERT INTO [dbo].[ACT_APP_DATABASECHANGELOG] VALUES (N'1', N'flowable', N'org/flowable/app/db/liquibase/flowable-app-db-changelog.xml', N'2020-07-22 17:51:40.847', N'1', N'EXECUTED', N'8:496fc778bdf2ab13f2e1926d0e63e0a2', N'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...', N'', NULL, N'3.6.3', NULL, NULL, N'5411555815')
  66. GO
  67. INSERT INTO [dbo].[ACT_APP_DATABASECHANGELOG] VALUES (N'3', N'flowable', N'org/flowable/app/db/liquibase/flowable-app-db-changelog.xml', N'2020-07-22 17:51:40.940', N'2', N'EXECUTED', N'8:f1f8aff320aade831944ebad24355f3d', N'createIndex indexName=ACT_IDX_APP_DEF_UNIQ, tableName=ACT_APP_APPDEF', N'', NULL, N'3.6.3', NULL, NULL, N'5411555815')
  68. GO
  69. COMMIT
  70. GO
  71. -- ----------------------------
  72. -- Table structure for ACT_APP_DATABASECHANGELOGLOCK
  73. -- ----------------------------
  74. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_APP_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  75. DROP TABLE [dbo].[ACT_APP_DATABASECHANGELOGLOCK]
  76. GO
  77. CREATE TABLE [dbo].[ACT_APP_DATABASECHANGELOGLOCK] (
  78. [ID] int NOT NULL,
  79. [LOCKED] bit NOT NULL,
  80. [LOCKGRANTED] datetime2(3) NULL,
  81. [LOCKEDBY] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL
  82. )
  83. GO
  84. ALTER TABLE [dbo].[ACT_APP_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  85. GO
  86. -- ----------------------------
  87. -- Records of ACT_APP_DATABASECHANGELOGLOCK
  88. -- ----------------------------
  89. BEGIN TRANSACTION
  90. GO
  91. INSERT INTO [dbo].[ACT_APP_DATABASECHANGELOGLOCK] VALUES (N'1', N'0', NULL, NULL)
  92. GO
  93. COMMIT
  94. GO
  95. -- ----------------------------
  96. -- Table structure for ACT_APP_DEPLOYMENT
  97. -- ----------------------------
  98. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_APP_DEPLOYMENT]') AND type IN ('U'))
  99. DROP TABLE [dbo].[ACT_APP_DEPLOYMENT]
  100. GO
  101. CREATE TABLE [dbo].[ACT_APP_DEPLOYMENT] (
  102. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  103. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  104. [CATEGORY_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  105. [KEY_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  106. [DEPLOY_TIME_] datetime NULL,
  107. [TENANT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  108. )
  109. GO
  110. ALTER TABLE [dbo].[ACT_APP_DEPLOYMENT] SET (LOCK_ESCALATION = TABLE)
  111. GO
  112. -- ----------------------------
  113. -- Table structure for ACT_APP_DEPLOYMENT_RESOURCE
  114. -- ----------------------------
  115. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_APP_DEPLOYMENT_RESOURCE]') AND type IN ('U'))
  116. DROP TABLE [dbo].[ACT_APP_DEPLOYMENT_RESOURCE]
  117. GO
  118. CREATE TABLE [dbo].[ACT_APP_DEPLOYMENT_RESOURCE] (
  119. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  120. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  121. [DEPLOYMENT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  122. [RESOURCE_BYTES_] varbinary(max) NULL
  123. )
  124. GO
  125. ALTER TABLE [dbo].[ACT_APP_DEPLOYMENT_RESOURCE] SET (LOCK_ESCALATION = TABLE)
  126. GO
  127. -- ----------------------------
  128. -- Table structure for ACT_CMMN_CASEDEF
  129. -- ----------------------------
  130. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_CASEDEF]') AND type IN ('U'))
  131. DROP TABLE [dbo].[ACT_CMMN_CASEDEF]
  132. GO
  133. CREATE TABLE [dbo].[ACT_CMMN_CASEDEF] (
  134. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  135. [REV_] int NOT NULL,
  136. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  137. [KEY_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  138. [VERSION_] int NOT NULL,
  139. [CATEGORY_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  140. [DEPLOYMENT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  141. [RESOURCE_NAME_] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  142. [DESCRIPTION_] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  143. [HAS_GRAPHICAL_NOTATION_] bit NULL,
  144. [TENANT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  145. [DGRM_RESOURCE_NAME_] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  146. [HAS_START_FORM_KEY_] bit NULL
  147. )
  148. GO
  149. ALTER TABLE [dbo].[ACT_CMMN_CASEDEF] SET (LOCK_ESCALATION = TABLE)
  150. GO
  151. -- ----------------------------
  152. -- Table structure for ACT_CMMN_DATABASECHANGELOG
  153. -- ----------------------------
  154. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_DATABASECHANGELOG]') AND type IN ('U'))
  155. DROP TABLE [dbo].[ACT_CMMN_DATABASECHANGELOG]
  156. GO
  157. CREATE TABLE [dbo].[ACT_CMMN_DATABASECHANGELOG] (
  158. [ID] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  159. [AUTHOR] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  160. [FILENAME] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  161. [DATEEXECUTED] datetime2(3) NOT NULL,
  162. [ORDEREXECUTED] int NOT NULL,
  163. [EXECTYPE] nvarchar(10) COLLATE Chinese_PRC_CI_AS NOT NULL,
  164. [MD5SUM] nvarchar(35) COLLATE Chinese_PRC_CI_AS NULL,
  165. [DESCRIPTION] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  166. [COMMENTS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  167. [TAG] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  168. [LIQUIBASE] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL,
  169. [CONTEXTS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  170. [LABELS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  171. [DEPLOYMENT_ID] nvarchar(10) COLLATE Chinese_PRC_CI_AS NULL
  172. )
  173. GO
  174. ALTER TABLE [dbo].[ACT_CMMN_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  175. GO
  176. -- ----------------------------
  177. -- Records of ACT_CMMN_DATABASECHANGELOG
  178. -- ----------------------------
  179. BEGIN TRANSACTION
  180. GO
  181. INSERT INTO [dbo].[ACT_CMMN_DATABASECHANGELOG] VALUES (N'1', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2020-07-22 17:51:37.387', N'1', N'EXECUTED', N'8:8b4b922d90b05ff27483abefc9597aa6', N'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...', N'', NULL, N'3.6.3', NULL, NULL, N'5411550973')
  182. GO
  183. INSERT INTO [dbo].[ACT_CMMN_DATABASECHANGELOG] VALUES (N'2', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2020-07-22 17:51:37.650', N'2', N'EXECUTED', N'8:65e39b3d385706bb261cbeffe7533cbe', N'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', N'', NULL, N'3.6.3', NULL, NULL, N'5411550973')
  184. GO
  185. INSERT INTO [dbo].[ACT_CMMN_DATABASECHANGELOG] VALUES (N'3', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2020-07-22 17:51:37.907', N'3', N'EXECUTED', N'8:c01f6e802b49436b4489040da3012359', N'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...', N'', NULL, N'3.6.3', NULL, NULL, N'5411550973')
  186. GO
  187. INSERT INTO [dbo].[ACT_CMMN_DATABASECHANGELOG] VALUES (N'4', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2020-07-22 17:51:38.077', N'4', N'EXECUTED', N'8:e40d29cb79345b7fb5afd38a7f0ba8fc', N'createTable tableName=ACT_CMMN_HI_PLAN_ITEM_INST; addColumn tableName=ACT_CMMN_RU_MIL_INST; addColumn tableName=ACT_CMMN_HI_MIL_INST', N'', NULL, N'3.6.3', NULL, NULL, N'5411550973')
  188. GO
  189. INSERT INTO [dbo].[ACT_CMMN_DATABASECHANGELOG] VALUES (N'6', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2020-07-22 17:51:38.190', N'5', N'EXECUTED', N'8:10e82e26a7fee94c32a92099c059c18c', N'createIndex indexName=ACT_IDX_CASE_DEF_UNIQ, tableName=ACT_CMMN_CASEDEF', N'', NULL, N'3.6.3', NULL, NULL, N'5411550973')
  190. GO
  191. INSERT INTO [dbo].[ACT_CMMN_DATABASECHANGELOG] VALUES (N'7', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2020-07-22 17:51:39.060', N'6', N'EXECUTED', N'8:530bc81a1e30618ccf4a2da1f7c6c043', N'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...', N'', NULL, N'3.6.3', NULL, NULL, N'5411550973')
  192. GO
  193. COMMIT
  194. GO
  195. -- ----------------------------
  196. -- Table structure for ACT_CMMN_DATABASECHANGELOGLOCK
  197. -- ----------------------------
  198. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  199. DROP TABLE [dbo].[ACT_CMMN_DATABASECHANGELOGLOCK]
  200. GO
  201. CREATE TABLE [dbo].[ACT_CMMN_DATABASECHANGELOGLOCK] (
  202. [ID] int NOT NULL,
  203. [LOCKED] bit NOT NULL,
  204. [LOCKGRANTED] datetime2(3) NULL,
  205. [LOCKEDBY] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL
  206. )
  207. GO
  208. ALTER TABLE [dbo].[ACT_CMMN_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  209. GO
  210. -- ----------------------------
  211. -- Records of ACT_CMMN_DATABASECHANGELOGLOCK
  212. -- ----------------------------
  213. BEGIN TRANSACTION
  214. GO
  215. INSERT INTO [dbo].[ACT_CMMN_DATABASECHANGELOGLOCK] VALUES (N'1', N'0', NULL, NULL)
  216. GO
  217. COMMIT
  218. GO
  219. -- ----------------------------
  220. -- Table structure for ACT_CMMN_DEPLOYMENT
  221. -- ----------------------------
  222. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_DEPLOYMENT]') AND type IN ('U'))
  223. DROP TABLE [dbo].[ACT_CMMN_DEPLOYMENT]
  224. GO
  225. CREATE TABLE [dbo].[ACT_CMMN_DEPLOYMENT] (
  226. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  227. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  228. [CATEGORY_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  229. [KEY_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  230. [DEPLOY_TIME_] datetime NULL,
  231. [PARENT_DEPLOYMENT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  232. [TENANT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  233. )
  234. GO
  235. ALTER TABLE [dbo].[ACT_CMMN_DEPLOYMENT] SET (LOCK_ESCALATION = TABLE)
  236. GO
  237. -- ----------------------------
  238. -- Table structure for ACT_CMMN_DEPLOYMENT_RESOURCE
  239. -- ----------------------------
  240. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE]') AND type IN ('U'))
  241. DROP TABLE [dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE]
  242. GO
  243. CREATE TABLE [dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE] (
  244. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  245. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  246. [DEPLOYMENT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  247. [RESOURCE_BYTES_] varbinary(max) NULL,
  248. [GENERATED_] bit NULL
  249. )
  250. GO
  251. ALTER TABLE [dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE] SET (LOCK_ESCALATION = TABLE)
  252. GO
  253. -- ----------------------------
  254. -- Table structure for ACT_CMMN_HI_CASE_INST
  255. -- ----------------------------
  256. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_HI_CASE_INST]') AND type IN ('U'))
  257. DROP TABLE [dbo].[ACT_CMMN_HI_CASE_INST]
  258. GO
  259. CREATE TABLE [dbo].[ACT_CMMN_HI_CASE_INST] (
  260. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  261. [REV_] int NOT NULL,
  262. [BUSINESS_KEY_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  263. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  264. [PARENT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  265. [CASE_DEF_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  266. [STATE_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  267. [START_TIME_] datetime NULL,
  268. [END_TIME_] datetime NULL,
  269. [START_USER_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  270. [CALLBACK_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  271. [CALLBACK_TYPE_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  272. [TENANT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  273. )
  274. GO
  275. ALTER TABLE [dbo].[ACT_CMMN_HI_CASE_INST] SET (LOCK_ESCALATION = TABLE)
  276. GO
  277. -- ----------------------------
  278. -- Table structure for ACT_CMMN_HI_MIL_INST
  279. -- ----------------------------
  280. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_HI_MIL_INST]') AND type IN ('U'))
  281. DROP TABLE [dbo].[ACT_CMMN_HI_MIL_INST]
  282. GO
  283. CREATE TABLE [dbo].[ACT_CMMN_HI_MIL_INST] (
  284. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  285. [REV_] int NOT NULL,
  286. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  287. [TIME_STAMP_] datetime NOT NULL,
  288. [CASE_INST_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  289. [CASE_DEF_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  290. [ELEMENT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  291. [TENANT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  292. )
  293. GO
  294. ALTER TABLE [dbo].[ACT_CMMN_HI_MIL_INST] SET (LOCK_ESCALATION = TABLE)
  295. GO
  296. -- ----------------------------
  297. -- Table structure for ACT_CMMN_HI_PLAN_ITEM_INST
  298. -- ----------------------------
  299. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_HI_PLAN_ITEM_INST]') AND type IN ('U'))
  300. DROP TABLE [dbo].[ACT_CMMN_HI_PLAN_ITEM_INST]
  301. GO
  302. CREATE TABLE [dbo].[ACT_CMMN_HI_PLAN_ITEM_INST] (
  303. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  304. [REV_] int NOT NULL,
  305. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  306. [STATE_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  307. [CASE_DEF_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  308. [CASE_INST_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  309. [STAGE_INST_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  310. [IS_STAGE_] bit NULL,
  311. [ELEMENT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  312. [ITEM_DEFINITION_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  313. [ITEM_DEFINITION_TYPE_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  314. [CREATE_TIME_] datetime NULL,
  315. [LAST_AVAILABLE_TIME_] datetime NULL,
  316. [LAST_ENABLED_TIME_] datetime NULL,
  317. [LAST_DISABLED_TIME_] datetime NULL,
  318. [LAST_STARTED_TIME_] datetime NULL,
  319. [LAST_SUSPENDED_TIME_] datetime NULL,
  320. [COMPLETED_TIME_] datetime NULL,
  321. [OCCURRED_TIME_] datetime NULL,
  322. [TERMINATED_TIME_] datetime NULL,
  323. [EXIT_TIME_] datetime NULL,
  324. [ENDED_TIME_] datetime NULL,
  325. [LAST_UPDATED_TIME_] datetime NULL,
  326. [START_USER_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  327. [REFERENCE_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  328. [REFERENCE_TYPE_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  329. [TENANT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  330. [ENTRY_CRITERION_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  331. [EXIT_CRITERION_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL
  332. )
  333. GO
  334. ALTER TABLE [dbo].[ACT_CMMN_HI_PLAN_ITEM_INST] SET (LOCK_ESCALATION = TABLE)
  335. GO
  336. -- ----------------------------
  337. -- Table structure for ACT_CMMN_RU_CASE_INST
  338. -- ----------------------------
  339. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_RU_CASE_INST]') AND type IN ('U'))
  340. DROP TABLE [dbo].[ACT_CMMN_RU_CASE_INST]
  341. GO
  342. CREATE TABLE [dbo].[ACT_CMMN_RU_CASE_INST] (
  343. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  344. [REV_] int NOT NULL,
  345. [BUSINESS_KEY_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  346. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  347. [PARENT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  348. [CASE_DEF_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  349. [STATE_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  350. [START_TIME_] datetime NULL,
  351. [START_USER_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  352. [CALLBACK_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  353. [CALLBACK_TYPE_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  354. [TENANT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  355. [LOCK_TIME_] datetime NULL,
  356. [IS_COMPLETEABLE_] bit NULL
  357. )
  358. GO
  359. ALTER TABLE [dbo].[ACT_CMMN_RU_CASE_INST] SET (LOCK_ESCALATION = TABLE)
  360. GO
  361. -- ----------------------------
  362. -- Table structure for ACT_CMMN_RU_MIL_INST
  363. -- ----------------------------
  364. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_RU_MIL_INST]') AND type IN ('U'))
  365. DROP TABLE [dbo].[ACT_CMMN_RU_MIL_INST]
  366. GO
  367. CREATE TABLE [dbo].[ACT_CMMN_RU_MIL_INST] (
  368. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  369. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  370. [TIME_STAMP_] datetime NOT NULL,
  371. [CASE_INST_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  372. [CASE_DEF_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  373. [ELEMENT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  374. [TENANT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  375. )
  376. GO
  377. ALTER TABLE [dbo].[ACT_CMMN_RU_MIL_INST] SET (LOCK_ESCALATION = TABLE)
  378. GO
  379. -- ----------------------------
  380. -- Table structure for ACT_CMMN_RU_PLAN_ITEM_INST
  381. -- ----------------------------
  382. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_RU_PLAN_ITEM_INST]') AND type IN ('U'))
  383. DROP TABLE [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST]
  384. GO
  385. CREATE TABLE [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] (
  386. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  387. [REV_] int NOT NULL,
  388. [CASE_DEF_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  389. [CASE_INST_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  390. [STAGE_INST_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  391. [IS_STAGE_] bit NULL,
  392. [ELEMENT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  393. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  394. [STATE_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  395. [CREATE_TIME_] datetime NULL,
  396. [START_USER_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  397. [REFERENCE_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  398. [REFERENCE_TYPE_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  399. [TENANT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  400. [ITEM_DEFINITION_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  401. [ITEM_DEFINITION_TYPE_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  402. [IS_COMPLETEABLE_] bit NULL,
  403. [IS_COUNT_ENABLED_] bit NULL,
  404. [VAR_COUNT_] int NULL,
  405. [SENTRY_PART_INST_COUNT_] int NULL,
  406. [LAST_AVAILABLE_TIME_] datetime NULL,
  407. [LAST_ENABLED_TIME_] datetime NULL,
  408. [LAST_DISABLED_TIME_] datetime NULL,
  409. [LAST_STARTED_TIME_] datetime NULL,
  410. [LAST_SUSPENDED_TIME_] datetime NULL,
  411. [COMPLETED_TIME_] datetime NULL,
  412. [OCCURRED_TIME_] datetime NULL,
  413. [TERMINATED_TIME_] datetime NULL,
  414. [EXIT_TIME_] datetime NULL,
  415. [ENDED_TIME_] datetime NULL,
  416. [ENTRY_CRITERION_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  417. [EXIT_CRITERION_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL
  418. )
  419. GO
  420. ALTER TABLE [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] SET (LOCK_ESCALATION = TABLE)
  421. GO
  422. -- ----------------------------
  423. -- Table structure for ACT_CMMN_RU_SENTRY_PART_INST
  424. -- ----------------------------
  425. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_RU_SENTRY_PART_INST]') AND type IN ('U'))
  426. DROP TABLE [dbo].[ACT_CMMN_RU_SENTRY_PART_INST]
  427. GO
  428. CREATE TABLE [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] (
  429. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  430. [REV_] int NOT NULL,
  431. [CASE_DEF_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  432. [CASE_INST_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  433. [PLAN_ITEM_INST_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  434. [ON_PART_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  435. [IF_PART_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  436. [TIME_STAMP_] datetime NULL
  437. )
  438. GO
  439. ALTER TABLE [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] SET (LOCK_ESCALATION = TABLE)
  440. GO
  441. -- ----------------------------
  442. -- Table structure for ACT_CO_CONTENT_ITEM
  443. -- ----------------------------
  444. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CO_CONTENT_ITEM]') AND type IN ('U'))
  445. DROP TABLE [dbo].[ACT_CO_CONTENT_ITEM]
  446. GO
  447. CREATE TABLE [dbo].[ACT_CO_CONTENT_ITEM] (
  448. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  449. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  450. [MIME_TYPE_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  451. [TASK_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  452. [PROC_INST_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  453. [CONTENT_STORE_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  454. [CONTENT_STORE_NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  455. [FIELD_] varchar(400) COLLATE Chinese_PRC_CI_AS NULL,
  456. [CONTENT_AVAILABLE_] bit DEFAULT ((0)) NULL,
  457. [CREATED_] datetime NULL,
  458. [CREATED_BY_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  459. [LAST_MODIFIED_] datetime NULL,
  460. [LAST_MODIFIED_BY_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  461. [CONTENT_SIZE_] bigint DEFAULT ((0)) NULL,
  462. [TENANT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  463. [SCOPE_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  464. [SCOPE_TYPE_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL
  465. )
  466. GO
  467. ALTER TABLE [dbo].[ACT_CO_CONTENT_ITEM] SET (LOCK_ESCALATION = TABLE)
  468. GO
  469. -- ----------------------------
  470. -- Table structure for ACT_CO_DATABASECHANGELOG
  471. -- ----------------------------
  472. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CO_DATABASECHANGELOG]') AND type IN ('U'))
  473. DROP TABLE [dbo].[ACT_CO_DATABASECHANGELOG]
  474. GO
  475. CREATE TABLE [dbo].[ACT_CO_DATABASECHANGELOG] (
  476. [ID] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  477. [AUTHOR] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  478. [FILENAME] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  479. [DATEEXECUTED] datetime2(3) NOT NULL,
  480. [ORDEREXECUTED] int NOT NULL,
  481. [EXECTYPE] nvarchar(10) COLLATE Chinese_PRC_CI_AS NOT NULL,
  482. [MD5SUM] nvarchar(35) COLLATE Chinese_PRC_CI_AS NULL,
  483. [DESCRIPTION] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  484. [COMMENTS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  485. [TAG] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  486. [LIQUIBASE] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL,
  487. [CONTEXTS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  488. [LABELS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  489. [DEPLOYMENT_ID] nvarchar(10) COLLATE Chinese_PRC_CI_AS NULL
  490. )
  491. GO
  492. ALTER TABLE [dbo].[ACT_CO_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  493. GO
  494. -- ----------------------------
  495. -- Records of ACT_CO_DATABASECHANGELOG
  496. -- ----------------------------
  497. BEGIN TRANSACTION
  498. GO
  499. INSERT INTO [dbo].[ACT_CO_DATABASECHANGELOG] VALUES (N'1', N'activiti', N'org/flowable/content/db/liquibase/flowable-content-db-changelog.xml', N'2020-07-22 17:51:32.973', N'1', N'EXECUTED', N'8:7644d7165cfe799200a2abdd3419e8b6', N'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', N'', NULL, N'3.6.3', NULL, NULL, N'5411548080')
  500. GO
  501. INSERT INTO [dbo].[ACT_CO_DATABASECHANGELOG] VALUES (N'2', N'flowable', N'org/flowable/content/db/liquibase/flowable-content-db-changelog.xml', N'2020-07-22 17:51:33.143', N'2', N'EXECUTED', N'8:fe7b11ac7dbbf9c43006b23bbab60bab', N'addColumn tableName=ACT_CO_CONTENT_ITEM; createIndex indexName=idx_contitem_scope, tableName=ACT_CO_CONTENT_ITEM', N'', NULL, N'3.6.3', NULL, NULL, N'5411548080')
  502. GO
  503. COMMIT
  504. GO
  505. -- ----------------------------
  506. -- Table structure for ACT_CO_DATABASECHANGELOGLOCK
  507. -- ----------------------------
  508. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CO_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  509. DROP TABLE [dbo].[ACT_CO_DATABASECHANGELOGLOCK]
  510. GO
  511. CREATE TABLE [dbo].[ACT_CO_DATABASECHANGELOGLOCK] (
  512. [ID] int NOT NULL,
  513. [LOCKED] bit NOT NULL,
  514. [LOCKGRANTED] datetime2(3) NULL,
  515. [LOCKEDBY] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL
  516. )
  517. GO
  518. ALTER TABLE [dbo].[ACT_CO_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  519. GO
  520. -- ----------------------------
  521. -- Records of ACT_CO_DATABASECHANGELOGLOCK
  522. -- ----------------------------
  523. BEGIN TRANSACTION
  524. GO
  525. INSERT INTO [dbo].[ACT_CO_DATABASECHANGELOGLOCK] VALUES (N'1', N'0', NULL, NULL)
  526. GO
  527. COMMIT
  528. GO
  529. -- ----------------------------
  530. -- Table structure for ACT_DE_DATABASECHANGELOG
  531. -- ----------------------------
  532. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DE_DATABASECHANGELOG]') AND type IN ('U'))
  533. DROP TABLE [dbo].[ACT_DE_DATABASECHANGELOG]
  534. GO
  535. CREATE TABLE [dbo].[ACT_DE_DATABASECHANGELOG] (
  536. [ID] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  537. [AUTHOR] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  538. [FILENAME] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  539. [DATEEXECUTED] datetime2(3) NOT NULL,
  540. [ORDEREXECUTED] int NOT NULL,
  541. [EXECTYPE] nvarchar(10) COLLATE Chinese_PRC_CI_AS NOT NULL,
  542. [MD5SUM] nvarchar(35) COLLATE Chinese_PRC_CI_AS NULL,
  543. [DESCRIPTION] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  544. [COMMENTS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  545. [TAG] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  546. [LIQUIBASE] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL,
  547. [CONTEXTS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  548. [LABELS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  549. [DEPLOYMENT_ID] nvarchar(10) COLLATE Chinese_PRC_CI_AS NULL
  550. )
  551. GO
  552. ALTER TABLE [dbo].[ACT_DE_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  553. GO
  554. -- ----------------------------
  555. -- Records of ACT_DE_DATABASECHANGELOG
  556. -- ----------------------------
  557. BEGIN TRANSACTION
  558. GO
  559. INSERT INTO [dbo].[ACT_DE_DATABASECHANGELOG] VALUES (N'1', N'flowable', N'META-INF/liquibase/flowable-modeler-app-db-changelog.xml', N'2020-07-22 21:25:47.840', N'1', N'EXECUTED', N'8:e70d1d9d3899a734296b2514ccc71501', N'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...', N'', NULL, N'3.6.3', NULL, NULL, N'5424402462')
  560. GO
  561. INSERT INTO [dbo].[ACT_DE_DATABASECHANGELOG] VALUES (N'2', N'flowable', N'META-INF/liquibase/flowable-modeler-app-db-changelog.xml', N'2020-07-22 21:25:48.050', N'2', N'EXECUTED', N'8:f08070bcdfbc61d089df76c8f2327d50', N'modifyDataType columnName=created, tableName=ACT_DE_MODEL; modifyDataType columnName=last_updated, tableName=ACT_DE_MODEL; modifyDataType columnName=created, tableName=ACT_DE_MODEL_HISTORY; modifyDataType columnName=last_updated, tableName=ACT_DE_...', N'', NULL, N'3.6.3', NULL, NULL, N'5424402462')
  562. GO
  563. INSERT INTO [dbo].[ACT_DE_DATABASECHANGELOG] VALUES (N'3', N'flowable', N'META-INF/liquibase/flowable-modeler-app-db-changelog.xml', N'2020-07-22 21:25:48.170', N'3', N'EXECUTED', N'8:3a9143bef2e45f2316231cc1369138b6', N'addColumn tableName=ACT_DE_MODEL; addColumn tableName=ACT_DE_MODEL_HISTORY', N'', NULL, N'3.6.3', NULL, NULL, N'5424402462')
  564. GO
  565. COMMIT
  566. GO
  567. -- ----------------------------
  568. -- Table structure for ACT_DE_DATABASECHANGELOGLOCK
  569. -- ----------------------------
  570. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DE_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  571. DROP TABLE [dbo].[ACT_DE_DATABASECHANGELOGLOCK]
  572. GO
  573. CREATE TABLE [dbo].[ACT_DE_DATABASECHANGELOGLOCK] (
  574. [ID] int NOT NULL,
  575. [LOCKED] bit NOT NULL,
  576. [LOCKGRANTED] datetime2(3) NULL,
  577. [LOCKEDBY] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL
  578. )
  579. GO
  580. ALTER TABLE [dbo].[ACT_DE_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  581. GO
  582. -- ----------------------------
  583. -- Records of ACT_DE_DATABASECHANGELOGLOCK
  584. -- ----------------------------
  585. BEGIN TRANSACTION
  586. GO
  587. INSERT INTO [dbo].[ACT_DE_DATABASECHANGELOGLOCK] VALUES (N'1', N'0', NULL, NULL)
  588. GO
  589. COMMIT
  590. GO
  591. -- ----------------------------
  592. -- Table structure for ACT_DE_MODEL
  593. -- ----------------------------
  594. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DE_MODEL]') AND type IN ('U'))
  595. DROP TABLE [dbo].[ACT_DE_MODEL]
  596. GO
  597. CREATE TABLE [dbo].[ACT_DE_MODEL] (
  598. [id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  599. [name] varchar(400) COLLATE Chinese_PRC_CI_AS NOT NULL,
  600. [model_key] varchar(400) COLLATE Chinese_PRC_CI_AS NOT NULL,
  601. [description] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  602. [model_comment] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  603. [created] datetime2(7) NULL,
  604. [created_by] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  605. [last_updated] datetime2(7) NULL,
  606. [last_updated_by] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  607. [version] int NULL,
  608. [model_editor_json] varchar(max) COLLATE Chinese_PRC_CI_AS NULL,
  609. [model_editor_xml] varchar(max) COLLATE Chinese_PRC_CI_AS NULL,
  610. [thumbnail] varbinary(max) NULL,
  611. [model_type] int NULL,
  612. [tenant_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL
  613. )
  614. GO
  615. ALTER TABLE [dbo].[ACT_DE_MODEL] SET (LOCK_ESCALATION = TABLE)
  616. GO
  617. -- ----------------------------
  618. -- Table structure for ACT_DE_MODEL_HISTORY
  619. -- ----------------------------
  620. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DE_MODEL_HISTORY]') AND type IN ('U'))
  621. DROP TABLE [dbo].[ACT_DE_MODEL_HISTORY]
  622. GO
  623. CREATE TABLE [dbo].[ACT_DE_MODEL_HISTORY] (
  624. [id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  625. [name] varchar(400) COLLATE Chinese_PRC_CI_AS NOT NULL,
  626. [model_key] varchar(400) COLLATE Chinese_PRC_CI_AS NOT NULL,
  627. [description] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  628. [model_comment] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  629. [created] datetime2(7) NULL,
  630. [created_by] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  631. [last_updated] datetime2(7) NULL,
  632. [last_updated_by] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  633. [removal_date] datetime2(7) NULL,
  634. [version] int NULL,
  635. [model_editor_json] varchar(max) COLLATE Chinese_PRC_CI_AS NULL,
  636. [model_id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  637. [model_type] int NULL,
  638. [tenant_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL
  639. )
  640. GO
  641. ALTER TABLE [dbo].[ACT_DE_MODEL_HISTORY] SET (LOCK_ESCALATION = TABLE)
  642. GO
  643. -- ----------------------------
  644. -- Table structure for ACT_DE_MODEL_RELATION
  645. -- ----------------------------
  646. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DE_MODEL_RELATION]') AND type IN ('U'))
  647. DROP TABLE [dbo].[ACT_DE_MODEL_RELATION]
  648. GO
  649. CREATE TABLE [dbo].[ACT_DE_MODEL_RELATION] (
  650. [id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  651. [parent_model_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  652. [model_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  653. [relation_type] varchar(255) COLLATE Chinese_PRC_CI_AS NULL
  654. )
  655. GO
  656. ALTER TABLE [dbo].[ACT_DE_MODEL_RELATION] SET (LOCK_ESCALATION = TABLE)
  657. GO
  658. -- ----------------------------
  659. -- Table structure for ACT_DMN_DATABASECHANGELOG
  660. -- ----------------------------
  661. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DMN_DATABASECHANGELOG]') AND type IN ('U'))
  662. DROP TABLE [dbo].[ACT_DMN_DATABASECHANGELOG]
  663. GO
  664. CREATE TABLE [dbo].[ACT_DMN_DATABASECHANGELOG] (
  665. [ID] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  666. [AUTHOR] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  667. [FILENAME] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  668. [DATEEXECUTED] datetime2(3) NOT NULL,
  669. [ORDEREXECUTED] int NOT NULL,
  670. [EXECTYPE] nvarchar(10) COLLATE Chinese_PRC_CI_AS NOT NULL,
  671. [MD5SUM] nvarchar(35) COLLATE Chinese_PRC_CI_AS NULL,
  672. [DESCRIPTION] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  673. [COMMENTS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  674. [TAG] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  675. [LIQUIBASE] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL,
  676. [CONTEXTS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  677. [LABELS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  678. [DEPLOYMENT_ID] nvarchar(10) COLLATE Chinese_PRC_CI_AS NULL
  679. )
  680. GO
  681. ALTER TABLE [dbo].[ACT_DMN_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  682. GO
  683. -- ----------------------------
  684. -- Records of ACT_DMN_DATABASECHANGELOG
  685. -- ----------------------------
  686. BEGIN TRANSACTION
  687. GO
  688. INSERT INTO [dbo].[ACT_DMN_DATABASECHANGELOG] VALUES (N'1', N'activiti', N'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', N'2020-07-22 17:51:29.020', N'1', N'EXECUTED', N'8:c8701f1c71018b55029f450b2e9a10a1', N'createTable tableName=ACT_DMN_DEPLOYMENT; createTable tableName=ACT_DMN_DEPLOYMENT_RESOURCE; createTable tableName=ACT_DMN_DECISION_TABLE', N'', NULL, N'3.6.3', NULL, NULL, N'5411544106')
  689. GO
  690. INSERT INTO [dbo].[ACT_DMN_DATABASECHANGELOG] VALUES (N'2', N'flowable', N'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', N'2020-07-22 17:51:29.383', N'2', N'EXECUTED', N'8:47f94b27feb7df8a30d4e338c7bd5fb8', N'createTable tableName=ACT_DMN_HI_DECISION_EXECUTION', N'', NULL, N'3.6.3', NULL, NULL, N'5411544106')
  691. GO
  692. INSERT INTO [dbo].[ACT_DMN_DATABASECHANGELOG] VALUES (N'3', N'flowable', N'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', N'2020-07-22 17:51:29.513', N'3', N'EXECUTED', N'8:ac17eae89fbdccb6e08daf3c7797b579', N'addColumn tableName=ACT_DMN_HI_DECISION_EXECUTION', N'', NULL, N'3.6.3', NULL, NULL, N'5411544106')
  693. GO
  694. INSERT INTO [dbo].[ACT_DMN_DATABASECHANGELOG] VALUES (N'4', N'flowable', N'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', N'2020-07-22 17:51:29.620', N'4', N'EXECUTED', N'8:f73aabc4529e7292c2942073d1cff6f9', N'dropColumn columnName=PARENT_DEPLOYMENT_ID_, tableName=ACT_DMN_DECISION_TABLE', N'', NULL, N'3.6.3', NULL, NULL, N'5411544106')
  695. GO
  696. INSERT INTO [dbo].[ACT_DMN_DATABASECHANGELOG] VALUES (N'6', N'flowable', N'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', N'2020-07-22 17:51:29.727', N'5', N'EXECUTED', N'8:646c6a061e0b6e8a62e69844ff96abb0', N'createIndex indexName=ACT_IDX_DEC_TBL_UNIQ, tableName=ACT_DMN_DECISION_TABLE', N'', NULL, N'3.6.3', NULL, NULL, N'5411544106')
  697. GO
  698. COMMIT
  699. GO
  700. -- ----------------------------
  701. -- Table structure for ACT_DMN_DATABASECHANGELOGLOCK
  702. -- ----------------------------
  703. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DMN_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  704. DROP TABLE [dbo].[ACT_DMN_DATABASECHANGELOGLOCK]
  705. GO
  706. CREATE TABLE [dbo].[ACT_DMN_DATABASECHANGELOGLOCK] (
  707. [ID] int NOT NULL,
  708. [LOCKED] bit NOT NULL,
  709. [LOCKGRANTED] datetime2(3) NULL,
  710. [LOCKEDBY] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL
  711. )
  712. GO
  713. ALTER TABLE [dbo].[ACT_DMN_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  714. GO
  715. -- ----------------------------
  716. -- Records of ACT_DMN_DATABASECHANGELOGLOCK
  717. -- ----------------------------
  718. BEGIN TRANSACTION
  719. GO
  720. INSERT INTO [dbo].[ACT_DMN_DATABASECHANGELOGLOCK] VALUES (N'1', N'0', NULL, NULL)
  721. GO
  722. COMMIT
  723. GO
  724. -- ----------------------------
  725. -- Table structure for ACT_DMN_DECISION_TABLE
  726. -- ----------------------------
  727. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DMN_DECISION_TABLE]') AND type IN ('U'))
  728. DROP TABLE [dbo].[ACT_DMN_DECISION_TABLE]
  729. GO
  730. CREATE TABLE [dbo].[ACT_DMN_DECISION_TABLE] (
  731. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  732. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  733. [VERSION_] int NULL,
  734. [KEY_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  735. [CATEGORY_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  736. [DEPLOYMENT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  737. [TENANT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  738. [RESOURCE_NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  739. [DESCRIPTION_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL
  740. )
  741. GO
  742. ALTER TABLE [dbo].[ACT_DMN_DECISION_TABLE] SET (LOCK_ESCALATION = TABLE)
  743. GO
  744. -- ----------------------------
  745. -- Table structure for ACT_DMN_DEPLOYMENT
  746. -- ----------------------------
  747. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DMN_DEPLOYMENT]') AND type IN ('U'))
  748. DROP TABLE [dbo].[ACT_DMN_DEPLOYMENT]
  749. GO
  750. CREATE TABLE [dbo].[ACT_DMN_DEPLOYMENT] (
  751. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  752. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  753. [CATEGORY_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  754. [DEPLOY_TIME_] datetime NULL,
  755. [TENANT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  756. [PARENT_DEPLOYMENT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL
  757. )
  758. GO
  759. ALTER TABLE [dbo].[ACT_DMN_DEPLOYMENT] SET (LOCK_ESCALATION = TABLE)
  760. GO
  761. -- ----------------------------
  762. -- Table structure for ACT_DMN_DEPLOYMENT_RESOURCE
  763. -- ----------------------------
  764. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DMN_DEPLOYMENT_RESOURCE]') AND type IN ('U'))
  765. DROP TABLE [dbo].[ACT_DMN_DEPLOYMENT_RESOURCE]
  766. GO
  767. CREATE TABLE [dbo].[ACT_DMN_DEPLOYMENT_RESOURCE] (
  768. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  769. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  770. [DEPLOYMENT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  771. [RESOURCE_BYTES_] varbinary(max) NULL
  772. )
  773. GO
  774. ALTER TABLE [dbo].[ACT_DMN_DEPLOYMENT_RESOURCE] SET (LOCK_ESCALATION = TABLE)
  775. GO
  776. -- ----------------------------
  777. -- Table structure for ACT_DMN_HI_DECISION_EXECUTION
  778. -- ----------------------------
  779. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DMN_HI_DECISION_EXECUTION]') AND type IN ('U'))
  780. DROP TABLE [dbo].[ACT_DMN_HI_DECISION_EXECUTION]
  781. GO
  782. CREATE TABLE [dbo].[ACT_DMN_HI_DECISION_EXECUTION] (
  783. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  784. [DECISION_DEFINITION_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  785. [DEPLOYMENT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  786. [START_TIME_] datetime NULL,
  787. [END_TIME_] datetime NULL,
  788. [INSTANCE_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  789. [EXECUTION_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  790. [ACTIVITY_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  791. [FAILED_] bit DEFAULT ((0)) NULL,
  792. [TENANT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  793. [EXECUTION_JSON_] varchar(max) COLLATE Chinese_PRC_CI_AS NULL,
  794. [SCOPE_TYPE_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL
  795. )
  796. GO
  797. ALTER TABLE [dbo].[ACT_DMN_HI_DECISION_EXECUTION] SET (LOCK_ESCALATION = TABLE)
  798. GO
  799. -- ----------------------------
  800. -- Table structure for ACT_EVT_LOG
  801. -- ----------------------------
  802. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_EVT_LOG]') AND type IN ('U'))
  803. DROP TABLE [dbo].[ACT_EVT_LOG]
  804. GO
  805. CREATE TABLE [dbo].[ACT_EVT_LOG] (
  806. [LOG_NR_] numeric(19) IDENTITY(1,1) NOT NULL,
  807. [TYPE_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  808. [PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  809. [PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  810. [EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  811. [TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  812. [TIME_STAMP_] datetime NOT NULL,
  813. [USER_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  814. [DATA_] varbinary(max) NULL,
  815. [LOCK_OWNER_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  816. [LOCK_TIME_] datetime NULL,
  817. [IS_PROCESSED_] tinyint DEFAULT ((0)) NULL
  818. )
  819. GO
  820. ALTER TABLE [dbo].[ACT_EVT_LOG] SET (LOCK_ESCALATION = TABLE)
  821. GO
  822. -- ----------------------------
  823. -- Table structure for ACT_FO_DATABASECHANGELOG
  824. -- ----------------------------
  825. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_FO_DATABASECHANGELOG]') AND type IN ('U'))
  826. DROP TABLE [dbo].[ACT_FO_DATABASECHANGELOG]
  827. GO
  828. CREATE TABLE [dbo].[ACT_FO_DATABASECHANGELOG] (
  829. [ID] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  830. [AUTHOR] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  831. [FILENAME] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  832. [DATEEXECUTED] datetime2(3) NOT NULL,
  833. [ORDEREXECUTED] int NOT NULL,
  834. [EXECTYPE] nvarchar(10) COLLATE Chinese_PRC_CI_AS NOT NULL,
  835. [MD5SUM] nvarchar(35) COLLATE Chinese_PRC_CI_AS NULL,
  836. [DESCRIPTION] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  837. [COMMENTS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  838. [TAG] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  839. [LIQUIBASE] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL,
  840. [CONTEXTS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  841. [LABELS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  842. [DEPLOYMENT_ID] nvarchar(10) COLLATE Chinese_PRC_CI_AS NULL
  843. )
  844. GO
  845. ALTER TABLE [dbo].[ACT_FO_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  846. GO
  847. -- ----------------------------
  848. -- Records of ACT_FO_DATABASECHANGELOG
  849. -- ----------------------------
  850. BEGIN TRANSACTION
  851. GO
  852. INSERT INTO [dbo].[ACT_FO_DATABASECHANGELOG] VALUES (N'1', N'activiti', N'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', N'2020-07-22 17:51:31.023', N'1', N'EXECUTED', N'8:033ebf9380889aed7c453927ecc3250d', N'createTable tableName=ACT_FO_FORM_DEPLOYMENT; createTable tableName=ACT_FO_FORM_RESOURCE; createTable tableName=ACT_FO_FORM_DEFINITION; createTable tableName=ACT_FO_FORM_INSTANCE', N'', NULL, N'3.6.3', NULL, NULL, N'5411546094')
  853. GO
  854. INSERT INTO [dbo].[ACT_FO_DATABASECHANGELOG] VALUES (N'2', N'flowable', N'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', N'2020-07-22 17:51:31.383', N'2', N'EXECUTED', N'8:986365ceb40445ce3b27a8e6b40f159b', N'addColumn tableName=ACT_FO_FORM_INSTANCE', N'', NULL, N'3.6.3', NULL, NULL, N'5411546094')
  855. GO
  856. INSERT INTO [dbo].[ACT_FO_DATABASECHANGELOG] VALUES (N'3', N'flowable', N'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', N'2020-07-22 17:51:31.517', N'3', N'EXECUTED', N'8:abf482518ceb09830ef674e52c06bf15', N'dropColumn columnName=PARENT_DEPLOYMENT_ID_, tableName=ACT_FO_FORM_DEFINITION', N'', NULL, N'3.6.3', NULL, NULL, N'5411546094')
  857. GO
  858. INSERT INTO [dbo].[ACT_FO_DATABASECHANGELOG] VALUES (N'5', N'flowable', N'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', N'2020-07-22 17:51:31.627', N'4', N'EXECUTED', N'8:b4be732b89e5ca028bdd520c6ad4d446', N'createIndex indexName=ACT_IDX_FORM_DEF_UNIQ, tableName=ACT_FO_FORM_DEFINITION', N'', NULL, N'3.6.3', NULL, NULL, N'5411546094')
  859. GO
  860. COMMIT
  861. GO
  862. -- ----------------------------
  863. -- Table structure for ACT_FO_DATABASECHANGELOGLOCK
  864. -- ----------------------------
  865. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_FO_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  866. DROP TABLE [dbo].[ACT_FO_DATABASECHANGELOGLOCK]
  867. GO
  868. CREATE TABLE [dbo].[ACT_FO_DATABASECHANGELOGLOCK] (
  869. [ID] int NOT NULL,
  870. [LOCKED] bit NOT NULL,
  871. [LOCKGRANTED] datetime2(3) NULL,
  872. [LOCKEDBY] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL
  873. )
  874. GO
  875. ALTER TABLE [dbo].[ACT_FO_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  876. GO
  877. -- ----------------------------
  878. -- Records of ACT_FO_DATABASECHANGELOGLOCK
  879. -- ----------------------------
  880. BEGIN TRANSACTION
  881. GO
  882. INSERT INTO [dbo].[ACT_FO_DATABASECHANGELOGLOCK] VALUES (N'1', N'0', NULL, NULL)
  883. GO
  884. COMMIT
  885. GO
  886. -- ----------------------------
  887. -- Table structure for ACT_FO_FORM_DEFINITION
  888. -- ----------------------------
  889. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_FO_FORM_DEFINITION]') AND type IN ('U'))
  890. DROP TABLE [dbo].[ACT_FO_FORM_DEFINITION]
  891. GO
  892. CREATE TABLE [dbo].[ACT_FO_FORM_DEFINITION] (
  893. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  894. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  895. [VERSION_] int NULL,
  896. [KEY_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  897. [CATEGORY_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  898. [DEPLOYMENT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  899. [TENANT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  900. [RESOURCE_NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  901. [DESCRIPTION_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL
  902. )
  903. GO
  904. ALTER TABLE [dbo].[ACT_FO_FORM_DEFINITION] SET (LOCK_ESCALATION = TABLE)
  905. GO
  906. -- ----------------------------
  907. -- Table structure for ACT_FO_FORM_DEPLOYMENT
  908. -- ----------------------------
  909. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_FO_FORM_DEPLOYMENT]') AND type IN ('U'))
  910. DROP TABLE [dbo].[ACT_FO_FORM_DEPLOYMENT]
  911. GO
  912. CREATE TABLE [dbo].[ACT_FO_FORM_DEPLOYMENT] (
  913. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  914. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  915. [CATEGORY_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  916. [DEPLOY_TIME_] datetime NULL,
  917. [TENANT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  918. [PARENT_DEPLOYMENT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL
  919. )
  920. GO
  921. ALTER TABLE [dbo].[ACT_FO_FORM_DEPLOYMENT] SET (LOCK_ESCALATION = TABLE)
  922. GO
  923. -- ----------------------------
  924. -- Table structure for ACT_FO_FORM_INSTANCE
  925. -- ----------------------------
  926. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_FO_FORM_INSTANCE]') AND type IN ('U'))
  927. DROP TABLE [dbo].[ACT_FO_FORM_INSTANCE]
  928. GO
  929. CREATE TABLE [dbo].[ACT_FO_FORM_INSTANCE] (
  930. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  931. [FORM_DEFINITION_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  932. [TASK_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  933. [PROC_INST_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  934. [PROC_DEF_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  935. [SUBMITTED_DATE_] datetime NULL,
  936. [SUBMITTED_BY_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  937. [FORM_VALUES_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  938. [TENANT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  939. [SCOPE_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  940. [SCOPE_TYPE_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  941. [SCOPE_DEFINITION_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL
  942. )
  943. GO
  944. ALTER TABLE [dbo].[ACT_FO_FORM_INSTANCE] SET (LOCK_ESCALATION = TABLE)
  945. GO
  946. -- ----------------------------
  947. -- Table structure for ACT_FO_FORM_RESOURCE
  948. -- ----------------------------
  949. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_FO_FORM_RESOURCE]') AND type IN ('U'))
  950. DROP TABLE [dbo].[ACT_FO_FORM_RESOURCE]
  951. GO
  952. CREATE TABLE [dbo].[ACT_FO_FORM_RESOURCE] (
  953. [ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  954. [NAME_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  955. [DEPLOYMENT_ID_] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  956. [RESOURCE_BYTES_] varbinary(max) NULL
  957. )
  958. GO
  959. ALTER TABLE [dbo].[ACT_FO_FORM_RESOURCE] SET (LOCK_ESCALATION = TABLE)
  960. GO
  961. -- ----------------------------
  962. -- Table structure for ACT_GE_BYTEARRAY
  963. -- ----------------------------
  964. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_GE_BYTEARRAY]') AND type IN ('U'))
  965. DROP TABLE [dbo].[ACT_GE_BYTEARRAY]
  966. GO
  967. CREATE TABLE [dbo].[ACT_GE_BYTEARRAY] (
  968. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  969. [REV_] int NULL,
  970. [NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  971. [DEPLOYMENT_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  972. [BYTES_] varbinary(max) NULL,
  973. [GENERATED_] tinyint NULL
  974. )
  975. GO
  976. ALTER TABLE [dbo].[ACT_GE_BYTEARRAY] SET (LOCK_ESCALATION = TABLE)
  977. GO
  978. -- ----------------------------
  979. -- Table structure for ACT_GE_PROPERTY
  980. -- ----------------------------
  981. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_GE_PROPERTY]') AND type IN ('U'))
  982. DROP TABLE [dbo].[ACT_GE_PROPERTY]
  983. GO
  984. CREATE TABLE [dbo].[ACT_GE_PROPERTY] (
  985. [NAME_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  986. [VALUE_] nvarchar(300) COLLATE Chinese_PRC_CI_AS NULL,
  987. [REV_] int NULL
  988. )
  989. GO
  990. ALTER TABLE [dbo].[ACT_GE_PROPERTY] SET (LOCK_ESCALATION = TABLE)
  991. GO
  992. -- ----------------------------
  993. -- Records of ACT_GE_PROPERTY
  994. -- ----------------------------
  995. BEGIN TRANSACTION
  996. GO
  997. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'cfg.execution-related-entities-count', N'true', N'1')
  998. GO
  999. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'cfg.task-related-entities-count', N'true', N'1')
  1000. GO
  1001. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'common.schema.version', N'6.5.0.1', N'1')
  1002. GO
  1003. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'entitylink.schema.version', N'6.5.0.1', N'1')
  1004. GO
  1005. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'eventsubscription.schema.version', N'6.5.0.1', N'1')
  1006. GO
  1007. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'identitylink.schema.version', N'6.5.0.1', N'1')
  1008. GO
  1009. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'job.schema.version', N'6.5.0.1', N'1')
  1010. GO
  1011. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'next.dbid', N'1', N'1')
  1012. GO
  1013. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'schema.history', N'create(6.5.0.1)', N'1')
  1014. GO
  1015. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'schema.version', N'6.5.0.1', N'1')
  1016. GO
  1017. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'task.schema.version', N'6.5.0.1', N'1')
  1018. GO
  1019. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'variable.schema.version', N'6.5.0.1', N'1')
  1020. GO
  1021. COMMIT
  1022. GO
  1023. -- ----------------------------
  1024. -- Table structure for ACT_HI_ACTINST
  1025. -- ----------------------------
  1026. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_ACTINST]') AND type IN ('U'))
  1027. DROP TABLE [dbo].[ACT_HI_ACTINST]
  1028. GO
  1029. CREATE TABLE [dbo].[ACT_HI_ACTINST] (
  1030. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1031. [REV_] int DEFAULT ((1)) NULL,
  1032. [PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1033. [PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1034. [EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1035. [ACT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1036. [TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1037. [CALL_PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1038. [ACT_NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1039. [ACT_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1040. [ASSIGNEE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1041. [START_TIME_] datetime NOT NULL,
  1042. [END_TIME_] datetime NULL,
  1043. [DURATION_] numeric(19) NULL,
  1044. [DELETE_REASON_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1045. [TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  1046. )
  1047. GO
  1048. ALTER TABLE [dbo].[ACT_HI_ACTINST] SET (LOCK_ESCALATION = TABLE)
  1049. GO
  1050. -- ----------------------------
  1051. -- Table structure for ACT_HI_ATTACHMENT
  1052. -- ----------------------------
  1053. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_ATTACHMENT]') AND type IN ('U'))
  1054. DROP TABLE [dbo].[ACT_HI_ATTACHMENT]
  1055. GO
  1056. CREATE TABLE [dbo].[ACT_HI_ATTACHMENT] (
  1057. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1058. [REV_] int NULL,
  1059. [USER_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1060. [NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1061. [DESCRIPTION_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1062. [TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1063. [TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1064. [PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1065. [URL_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1066. [CONTENT_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1067. [TIME_] datetime NULL
  1068. )
  1069. GO
  1070. ALTER TABLE [dbo].[ACT_HI_ATTACHMENT] SET (LOCK_ESCALATION = TABLE)
  1071. GO
  1072. -- ----------------------------
  1073. -- Table structure for ACT_HI_COMMENT
  1074. -- ----------------------------
  1075. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_COMMENT]') AND type IN ('U'))
  1076. DROP TABLE [dbo].[ACT_HI_COMMENT]
  1077. GO
  1078. CREATE TABLE [dbo].[ACT_HI_COMMENT] (
  1079. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1080. [TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1081. [TIME_] datetime NOT NULL,
  1082. [USER_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1083. [TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1084. [PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1085. [ACTION_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1086. [MESSAGE_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1087. [FULL_MSG_] varbinary(max) NULL
  1088. )
  1089. GO
  1090. ALTER TABLE [dbo].[ACT_HI_COMMENT] SET (LOCK_ESCALATION = TABLE)
  1091. GO
  1092. -- ----------------------------
  1093. -- Table structure for ACT_HI_DETAIL
  1094. -- ----------------------------
  1095. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_DETAIL]') AND type IN ('U'))
  1096. DROP TABLE [dbo].[ACT_HI_DETAIL]
  1097. GO
  1098. CREATE TABLE [dbo].[ACT_HI_DETAIL] (
  1099. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1100. [TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1101. [PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1102. [EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1103. [TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1104. [ACT_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1105. [NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1106. [VAR_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1107. [REV_] int NULL,
  1108. [TIME_] datetime NOT NULL,
  1109. [BYTEARRAY_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1110. [DOUBLE_] float(53) NULL,
  1111. [LONG_] numeric(19) NULL,
  1112. [TEXT_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1113. [TEXT2_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL
  1114. )
  1115. GO
  1116. ALTER TABLE [dbo].[ACT_HI_DETAIL] SET (LOCK_ESCALATION = TABLE)
  1117. GO
  1118. -- ----------------------------
  1119. -- Table structure for ACT_HI_ENTITYLINK
  1120. -- ----------------------------
  1121. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_ENTITYLINK]') AND type IN ('U'))
  1122. DROP TABLE [dbo].[ACT_HI_ENTITYLINK]
  1123. GO
  1124. CREATE TABLE [dbo].[ACT_HI_ENTITYLINK] (
  1125. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1126. [LINK_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1127. [CREATE_TIME_] datetime NULL,
  1128. [SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1129. [SCOPE_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1130. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1131. [REF_SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1132. [REF_SCOPE_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1133. [REF_SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1134. [HIERARCHY_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL
  1135. )
  1136. GO
  1137. ALTER TABLE [dbo].[ACT_HI_ENTITYLINK] SET (LOCK_ESCALATION = TABLE)
  1138. GO
  1139. -- ----------------------------
  1140. -- Table structure for ACT_HI_IDENTITYLINK
  1141. -- ----------------------------
  1142. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_IDENTITYLINK]') AND type IN ('U'))
  1143. DROP TABLE [dbo].[ACT_HI_IDENTITYLINK]
  1144. GO
  1145. CREATE TABLE [dbo].[ACT_HI_IDENTITYLINK] (
  1146. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1147. [GROUP_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1148. [TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1149. [USER_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1150. [TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1151. [CREATE_TIME_] datetime NULL,
  1152. [PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1153. [SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1154. [SCOPE_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1155. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL
  1156. )
  1157. GO
  1158. ALTER TABLE [dbo].[ACT_HI_IDENTITYLINK] SET (LOCK_ESCALATION = TABLE)
  1159. GO
  1160. -- ----------------------------
  1161. -- Table structure for ACT_HI_PROCINST
  1162. -- ----------------------------
  1163. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_PROCINST]') AND type IN ('U'))
  1164. DROP TABLE [dbo].[ACT_HI_PROCINST]
  1165. GO
  1166. CREATE TABLE [dbo].[ACT_HI_PROCINST] (
  1167. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1168. [REV_] int DEFAULT ((1)) NULL,
  1169. [PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1170. [BUSINESS_KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1171. [PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1172. [START_TIME_] datetime NOT NULL,
  1173. [END_TIME_] datetime NULL,
  1174. [DURATION_] numeric(19) NULL,
  1175. [START_USER_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1176. [START_ACT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1177. [END_ACT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1178. [SUPER_PROCESS_INSTANCE_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1179. [DELETE_REASON_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1180. [TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  1181. [NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1182. [CALLBACK_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1183. [CALLBACK_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL
  1184. )
  1185. GO
  1186. ALTER TABLE [dbo].[ACT_HI_PROCINST] SET (LOCK_ESCALATION = TABLE)
  1187. GO
  1188. -- ----------------------------
  1189. -- Table structure for ACT_HI_TASKINST
  1190. -- ----------------------------
  1191. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_TASKINST]') AND type IN ('U'))
  1192. DROP TABLE [dbo].[ACT_HI_TASKINST]
  1193. GO
  1194. CREATE TABLE [dbo].[ACT_HI_TASKINST] (
  1195. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1196. [REV_] int DEFAULT ((1)) NULL,
  1197. [PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1198. [TASK_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1199. [TASK_DEF_KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1200. [PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1201. [EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1202. [SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1203. [SUB_SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1204. [SCOPE_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1205. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1206. [NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1207. [PARENT_TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1208. [DESCRIPTION_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1209. [OWNER_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1210. [ASSIGNEE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1211. [START_TIME_] datetime NOT NULL,
  1212. [CLAIM_TIME_] datetime NULL,
  1213. [END_TIME_] datetime NULL,
  1214. [DURATION_] numeric(19) NULL,
  1215. [DELETE_REASON_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1216. [PRIORITY_] int NULL,
  1217. [DUE_DATE_] datetime NULL,
  1218. [FORM_KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1219. [CATEGORY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1220. [TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  1221. [LAST_UPDATED_TIME_] datetime2(7) NULL
  1222. )
  1223. GO
  1224. ALTER TABLE [dbo].[ACT_HI_TASKINST] SET (LOCK_ESCALATION = TABLE)
  1225. GO
  1226. -- ----------------------------
  1227. -- Table structure for ACT_HI_TSK_LOG
  1228. -- ----------------------------
  1229. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_TSK_LOG]') AND type IN ('U'))
  1230. DROP TABLE [dbo].[ACT_HI_TSK_LOG]
  1231. GO
  1232. CREATE TABLE [dbo].[ACT_HI_TSK_LOG] (
  1233. [ID_] numeric(19) IDENTITY(1,1) NOT NULL,
  1234. [TYPE_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1235. [TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1236. [TIME_STAMP_] datetime NOT NULL,
  1237. [USER_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1238. [DATA_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1239. [EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1240. [PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1241. [PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1242. [SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1243. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1244. [SUB_SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1245. [SCOPE_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1246. [TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  1247. )
  1248. GO
  1249. ALTER TABLE [dbo].[ACT_HI_TSK_LOG] SET (LOCK_ESCALATION = TABLE)
  1250. GO
  1251. -- ----------------------------
  1252. -- Table structure for ACT_HI_VARINST
  1253. -- ----------------------------
  1254. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_VARINST]') AND type IN ('U'))
  1255. DROP TABLE [dbo].[ACT_HI_VARINST]
  1256. GO
  1257. CREATE TABLE [dbo].[ACT_HI_VARINST] (
  1258. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1259. [REV_] int DEFAULT ((1)) NULL,
  1260. [PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1261. [EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1262. [TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1263. [NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1264. [VAR_TYPE_] nvarchar(100) COLLATE Chinese_PRC_CI_AS NULL,
  1265. [SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1266. [SUB_SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1267. [SCOPE_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1268. [BYTEARRAY_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1269. [DOUBLE_] float(53) NULL,
  1270. [LONG_] numeric(19) NULL,
  1271. [TEXT_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1272. [TEXT2_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1273. [CREATE_TIME_] datetime NULL,
  1274. [LAST_UPDATED_TIME_] datetime2(7) NULL
  1275. )
  1276. GO
  1277. ALTER TABLE [dbo].[ACT_HI_VARINST] SET (LOCK_ESCALATION = TABLE)
  1278. GO
  1279. -- ----------------------------
  1280. -- Table structure for ACT_ID_BYTEARRAY
  1281. -- ----------------------------
  1282. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_BYTEARRAY]') AND type IN ('U'))
  1283. DROP TABLE [dbo].[ACT_ID_BYTEARRAY]
  1284. GO
  1285. CREATE TABLE [dbo].[ACT_ID_BYTEARRAY] (
  1286. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1287. [REV_] int NULL,
  1288. [NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1289. [BYTES_] varbinary(max) NULL
  1290. )
  1291. GO
  1292. ALTER TABLE [dbo].[ACT_ID_BYTEARRAY] SET (LOCK_ESCALATION = TABLE)
  1293. GO
  1294. -- ----------------------------
  1295. -- Table structure for ACT_ID_GROUP
  1296. -- ----------------------------
  1297. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_GROUP]') AND type IN ('U'))
  1298. DROP TABLE [dbo].[ACT_ID_GROUP]
  1299. GO
  1300. CREATE TABLE [dbo].[ACT_ID_GROUP] (
  1301. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1302. [REV_] int NULL,
  1303. [NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1304. [TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL
  1305. )
  1306. GO
  1307. ALTER TABLE [dbo].[ACT_ID_GROUP] SET (LOCK_ESCALATION = TABLE)
  1308. GO
  1309. -- ----------------------------
  1310. -- Table structure for ACT_ID_INFO
  1311. -- ----------------------------
  1312. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_INFO]') AND type IN ('U'))
  1313. DROP TABLE [dbo].[ACT_ID_INFO]
  1314. GO
  1315. CREATE TABLE [dbo].[ACT_ID_INFO] (
  1316. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1317. [REV_] int NULL,
  1318. [USER_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1319. [TYPE_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1320. [KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1321. [VALUE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1322. [PASSWORD_] varbinary(max) NULL,
  1323. [PARENT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL
  1324. )
  1325. GO
  1326. ALTER TABLE [dbo].[ACT_ID_INFO] SET (LOCK_ESCALATION = TABLE)
  1327. GO
  1328. -- ----------------------------
  1329. -- Table structure for ACT_ID_MEMBERSHIP
  1330. -- ----------------------------
  1331. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_MEMBERSHIP]') AND type IN ('U'))
  1332. DROP TABLE [dbo].[ACT_ID_MEMBERSHIP]
  1333. GO
  1334. CREATE TABLE [dbo].[ACT_ID_MEMBERSHIP] (
  1335. [USER_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1336. [GROUP_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL
  1337. )
  1338. GO
  1339. ALTER TABLE [dbo].[ACT_ID_MEMBERSHIP] SET (LOCK_ESCALATION = TABLE)
  1340. GO
  1341. -- ----------------------------
  1342. -- Table structure for ACT_ID_PRIV
  1343. -- ----------------------------
  1344. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_PRIV]') AND type IN ('U'))
  1345. DROP TABLE [dbo].[ACT_ID_PRIV]
  1346. GO
  1347. CREATE TABLE [dbo].[ACT_ID_PRIV] (
  1348. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1349. [NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL
  1350. )
  1351. GO
  1352. ALTER TABLE [dbo].[ACT_ID_PRIV] SET (LOCK_ESCALATION = TABLE)
  1353. GO
  1354. -- ----------------------------
  1355. -- Table structure for ACT_ID_PRIV_MAPPING
  1356. -- ----------------------------
  1357. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_PRIV_MAPPING]') AND type IN ('U'))
  1358. DROP TABLE [dbo].[ACT_ID_PRIV_MAPPING]
  1359. GO
  1360. CREATE TABLE [dbo].[ACT_ID_PRIV_MAPPING] (
  1361. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1362. [PRIV_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1363. [USER_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1364. [GROUP_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL
  1365. )
  1366. GO
  1367. ALTER TABLE [dbo].[ACT_ID_PRIV_MAPPING] SET (LOCK_ESCALATION = TABLE)
  1368. GO
  1369. -- ----------------------------
  1370. -- Table structure for ACT_ID_PROPERTY
  1371. -- ----------------------------
  1372. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_PROPERTY]') AND type IN ('U'))
  1373. DROP TABLE [dbo].[ACT_ID_PROPERTY]
  1374. GO
  1375. CREATE TABLE [dbo].[ACT_ID_PROPERTY] (
  1376. [NAME_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1377. [VALUE_] nvarchar(300) COLLATE Chinese_PRC_CI_AS NULL,
  1378. [REV_] int NULL
  1379. )
  1380. GO
  1381. ALTER TABLE [dbo].[ACT_ID_PROPERTY] SET (LOCK_ESCALATION = TABLE)
  1382. GO
  1383. -- ----------------------------
  1384. -- Records of ACT_ID_PROPERTY
  1385. -- ----------------------------
  1386. BEGIN TRANSACTION
  1387. GO
  1388. INSERT INTO [dbo].[ACT_ID_PROPERTY] VALUES (N'schema.version', N'6.5.0.1', N'1')
  1389. GO
  1390. COMMIT
  1391. GO
  1392. -- ----------------------------
  1393. -- Table structure for ACT_ID_TOKEN
  1394. -- ----------------------------
  1395. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_TOKEN]') AND type IN ('U'))
  1396. DROP TABLE [dbo].[ACT_ID_TOKEN]
  1397. GO
  1398. CREATE TABLE [dbo].[ACT_ID_TOKEN] (
  1399. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1400. [REV_] int NULL,
  1401. [TOKEN_VALUE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1402. [TOKEN_DATE_] datetime NULL,
  1403. [IP_ADDRESS_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1404. [USER_AGENT_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1405. [USER_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1406. [TOKEN_DATA_] nvarchar(2000) COLLATE Chinese_PRC_CI_AS NULL
  1407. )
  1408. GO
  1409. ALTER TABLE [dbo].[ACT_ID_TOKEN] SET (LOCK_ESCALATION = TABLE)
  1410. GO
  1411. -- ----------------------------
  1412. -- Table structure for ACT_ID_USER
  1413. -- ----------------------------
  1414. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_USER]') AND type IN ('U'))
  1415. DROP TABLE [dbo].[ACT_ID_USER]
  1416. GO
  1417. CREATE TABLE [dbo].[ACT_ID_USER] (
  1418. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1419. [REV_] int NULL,
  1420. [FIRST_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1421. [LAST_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1422. [DISPLAY_NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1423. [EMAIL_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1424. [PWD_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1425. [PICTURE_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1426. [TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  1427. )
  1428. GO
  1429. ALTER TABLE [dbo].[ACT_ID_USER] SET (LOCK_ESCALATION = TABLE)
  1430. GO
  1431. -- ----------------------------
  1432. -- Table structure for ACT_PROCDEF_INFO
  1433. -- ----------------------------
  1434. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_PROCDEF_INFO]') AND type IN ('U'))
  1435. DROP TABLE [dbo].[ACT_PROCDEF_INFO]
  1436. GO
  1437. CREATE TABLE [dbo].[ACT_PROCDEF_INFO] (
  1438. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1439. [PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1440. [REV_] int NULL,
  1441. [INFO_JSON_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL
  1442. )
  1443. GO
  1444. ALTER TABLE [dbo].[ACT_PROCDEF_INFO] SET (LOCK_ESCALATION = TABLE)
  1445. GO
  1446. -- ----------------------------
  1447. -- Table structure for ACT_RE_DEPLOYMENT
  1448. -- ----------------------------
  1449. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RE_DEPLOYMENT]') AND type IN ('U'))
  1450. DROP TABLE [dbo].[ACT_RE_DEPLOYMENT]
  1451. GO
  1452. CREATE TABLE [dbo].[ACT_RE_DEPLOYMENT] (
  1453. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1454. [NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1455. [CATEGORY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1456. [KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1457. [TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  1458. [DEPLOY_TIME_] datetime NULL,
  1459. [DERIVED_FROM_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1460. [DERIVED_FROM_ROOT_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1461. [PARENT_DEPLOYMENT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1462. [ENGINE_VERSION_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL
  1463. )
  1464. GO
  1465. ALTER TABLE [dbo].[ACT_RE_DEPLOYMENT] SET (LOCK_ESCALATION = TABLE)
  1466. GO
  1467. -- ----------------------------
  1468. -- Table structure for ACT_RE_MODEL
  1469. -- ----------------------------
  1470. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RE_MODEL]') AND type IN ('U'))
  1471. DROP TABLE [dbo].[ACT_RE_MODEL]
  1472. GO
  1473. CREATE TABLE [dbo].[ACT_RE_MODEL] (
  1474. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1475. [REV_] int NULL,
  1476. [NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1477. [KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1478. [CATEGORY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1479. [CREATE_TIME_] datetime NULL,
  1480. [LAST_UPDATE_TIME_] datetime NULL,
  1481. [VERSION_] int NULL,
  1482. [META_INFO_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1483. [DEPLOYMENT_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1484. [EDITOR_SOURCE_VALUE_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1485. [EDITOR_SOURCE_EXTRA_VALUE_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1486. [TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  1487. )
  1488. GO
  1489. ALTER TABLE [dbo].[ACT_RE_MODEL] SET (LOCK_ESCALATION = TABLE)
  1490. GO
  1491. -- ----------------------------
  1492. -- Table structure for ACT_RE_PROCDEF
  1493. -- ----------------------------
  1494. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RE_PROCDEF]') AND type IN ('U'))
  1495. DROP TABLE [dbo].[ACT_RE_PROCDEF]
  1496. GO
  1497. CREATE TABLE [dbo].[ACT_RE_PROCDEF] (
  1498. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1499. [REV_] int NULL,
  1500. [CATEGORY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1501. [NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1502. [KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1503. [VERSION_] int NOT NULL,
  1504. [DEPLOYMENT_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1505. [RESOURCE_NAME_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1506. [DGRM_RESOURCE_NAME_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1507. [DESCRIPTION_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1508. [HAS_START_FORM_KEY_] tinyint NULL,
  1509. [HAS_GRAPHICAL_NOTATION_] tinyint NULL,
  1510. [SUSPENSION_STATE_] tinyint NULL,
  1511. [TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  1512. [DERIVED_FROM_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1513. [DERIVED_FROM_ROOT_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1514. [DERIVED_VERSION_] int DEFAULT ((0)) NOT NULL,
  1515. [ENGINE_VERSION_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL
  1516. )
  1517. GO
  1518. ALTER TABLE [dbo].[ACT_RE_PROCDEF] SET (LOCK_ESCALATION = TABLE)
  1519. GO
  1520. -- ----------------------------
  1521. -- Table structure for ACT_RU_ACTINST
  1522. -- ----------------------------
  1523. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_ACTINST]') AND type IN ('U'))
  1524. DROP TABLE [dbo].[ACT_RU_ACTINST]
  1525. GO
  1526. CREATE TABLE [dbo].[ACT_RU_ACTINST] (
  1527. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1528. [REV_] int DEFAULT ((1)) NULL,
  1529. [PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1530. [PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1531. [EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1532. [ACT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1533. [TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1534. [CALL_PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1535. [ACT_NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1536. [ACT_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1537. [ASSIGNEE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1538. [START_TIME_] datetime NOT NULL,
  1539. [END_TIME_] datetime NULL,
  1540. [DURATION_] numeric(19) NULL,
  1541. [DELETE_REASON_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1542. [TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  1543. )
  1544. GO
  1545. ALTER TABLE [dbo].[ACT_RU_ACTINST] SET (LOCK_ESCALATION = TABLE)
  1546. GO
  1547. -- ----------------------------
  1548. -- Table structure for ACT_RU_DEADLETTER_JOB
  1549. -- ----------------------------
  1550. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_DEADLETTER_JOB]') AND type IN ('U'))
  1551. DROP TABLE [dbo].[ACT_RU_DEADLETTER_JOB]
  1552. GO
  1553. CREATE TABLE [dbo].[ACT_RU_DEADLETTER_JOB] (
  1554. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1555. [REV_] int NULL,
  1556. [TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1557. [EXCLUSIVE_] bit NULL,
  1558. [EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1559. [PROCESS_INSTANCE_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1560. [PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1561. [ELEMENT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1562. [ELEMENT_NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1563. [SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1564. [SUB_SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1565. [SCOPE_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1566. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1567. [EXCEPTION_STACK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1568. [EXCEPTION_MSG_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1569. [DUEDATE_] datetime NULL,
  1570. [REPEAT_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1571. [HANDLER_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1572. [HANDLER_CFG_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1573. [CUSTOM_VALUES_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1574. [CREATE_TIME_] datetime2(7) NULL,
  1575. [TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  1576. )
  1577. GO
  1578. ALTER TABLE [dbo].[ACT_RU_DEADLETTER_JOB] SET (LOCK_ESCALATION = TABLE)
  1579. GO
  1580. -- ----------------------------
  1581. -- Table structure for ACT_RU_ENTITYLINK
  1582. -- ----------------------------
  1583. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_ENTITYLINK]') AND type IN ('U'))
  1584. DROP TABLE [dbo].[ACT_RU_ENTITYLINK]
  1585. GO
  1586. CREATE TABLE [dbo].[ACT_RU_ENTITYLINK] (
  1587. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1588. [REV_] int NULL,
  1589. [CREATE_TIME_] datetime NULL,
  1590. [LINK_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1591. [SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1592. [SCOPE_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1593. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1594. [REF_SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1595. [REF_SCOPE_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1596. [REF_SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1597. [HIERARCHY_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL
  1598. )
  1599. GO
  1600. ALTER TABLE [dbo].[ACT_RU_ENTITYLINK] SET (LOCK_ESCALATION = TABLE)
  1601. GO
  1602. -- ----------------------------
  1603. -- Table structure for ACT_RU_EVENT_SUBSCR
  1604. -- ----------------------------
  1605. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_EVENT_SUBSCR]') AND type IN ('U'))
  1606. DROP TABLE [dbo].[ACT_RU_EVENT_SUBSCR]
  1607. GO
  1608. CREATE TABLE [dbo].[ACT_RU_EVENT_SUBSCR] (
  1609. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1610. [REV_] int NULL,
  1611. [EVENT_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1612. [EVENT_NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1613. [EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1614. [PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1615. [ACTIVITY_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1616. [CONFIGURATION_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1617. [CREATED_] datetime NOT NULL,
  1618. [PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1619. [SUB_SCOPE_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1620. [SCOPE_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1621. [SCOPE_DEFINITION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1622. [SCOPE_TYPE_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1623. [TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  1624. )
  1625. GO
  1626. ALTER TABLE [dbo].[ACT_RU_EVENT_SUBSCR] SET (LOCK_ESCALATION = TABLE)
  1627. GO
  1628. -- ----------------------------
  1629. -- Table structure for ACT_RU_EXECUTION
  1630. -- ----------------------------
  1631. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_EXECUTION]') AND type IN ('U'))
  1632. DROP TABLE [dbo].[ACT_RU_EXECUTION]
  1633. GO
  1634. CREATE TABLE [dbo].[ACT_RU_EXECUTION] (
  1635. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1636. [REV_] int NULL,
  1637. [PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1638. [BUSINESS_KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1639. [PARENT_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1640. [PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1641. [SUPER_EXEC_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1642. [ROOT_PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1643. [ACT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1644. [IS_ACTIVE_] tinyint NULL,
  1645. [IS_CONCURRENT_] tinyint NULL,
  1646. [IS_SCOPE_] tinyint NULL,
  1647. [IS_EVENT_SCOPE_] tinyint NULL,
  1648. [IS_MI_ROOT_] tinyint NULL,
  1649. [SUSPENSION_STATE_] tinyint NULL,
  1650. [CACHED_ENT_STATE_] int NULL,
  1651. [TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  1652. [NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1653. [START_ACT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1654. [START_TIME_] datetime NULL,
  1655. [START_USER_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1656. [LOCK_TIME_] datetime NULL,
  1657. [IS_COUNT_ENABLED_] tinyint NULL,
  1658. [EVT_SUBSCR_COUNT_] int NULL,
  1659. [TASK_COUNT_] int NULL,
  1660. [JOB_COUNT_] int NULL,
  1661. [TIMER_JOB_COUNT_] int NULL,
  1662. [SUSP_JOB_COUNT_] int NULL,
  1663. [DEADLETTER_JOB_COUNT_] int NULL,
  1664. [VAR_COUNT_] int NULL,
  1665. [ID_LINK_COUNT_] int NULL,
  1666. [CALLBACK_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1667. [CALLBACK_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL
  1668. )
  1669. GO
  1670. ALTER TABLE [dbo].[ACT_RU_EXECUTION] SET (LOCK_ESCALATION = TABLE)
  1671. GO
  1672. -- ----------------------------
  1673. -- Table structure for ACT_RU_HISTORY_JOB
  1674. -- ----------------------------
  1675. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_HISTORY_JOB]') AND type IN ('U'))
  1676. DROP TABLE [dbo].[ACT_RU_HISTORY_JOB]
  1677. GO
  1678. CREATE TABLE [dbo].[ACT_RU_HISTORY_JOB] (
  1679. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1680. [REV_] int NULL,
  1681. [LOCK_EXP_TIME_] datetime NULL,
  1682. [LOCK_OWNER_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1683. [RETRIES_] int NULL,
  1684. [EXCEPTION_STACK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1685. [EXCEPTION_MSG_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1686. [HANDLER_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1687. [HANDLER_CFG_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1688. [CUSTOM_VALUES_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1689. [ADV_HANDLER_CFG_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1690. [CREATE_TIME_] datetime2(7) NULL,
  1691. [SCOPE_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1692. [TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  1693. )
  1694. GO
  1695. ALTER TABLE [dbo].[ACT_RU_HISTORY_JOB] SET (LOCK_ESCALATION = TABLE)
  1696. GO
  1697. -- ----------------------------
  1698. -- Table structure for ACT_RU_IDENTITYLINK
  1699. -- ----------------------------
  1700. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_IDENTITYLINK]') AND type IN ('U'))
  1701. DROP TABLE [dbo].[ACT_RU_IDENTITYLINK]
  1702. GO
  1703. CREATE TABLE [dbo].[ACT_RU_IDENTITYLINK] (
  1704. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1705. [REV_] int NULL,
  1706. [GROUP_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1707. [TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1708. [USER_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1709. [TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1710. [PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1711. [PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1712. [SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1713. [SCOPE_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1714. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL
  1715. )
  1716. GO
  1717. ALTER TABLE [dbo].[ACT_RU_IDENTITYLINK] SET (LOCK_ESCALATION = TABLE)
  1718. GO
  1719. -- ----------------------------
  1720. -- Table structure for ACT_RU_JOB
  1721. -- ----------------------------
  1722. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_JOB]') AND type IN ('U'))
  1723. DROP TABLE [dbo].[ACT_RU_JOB]
  1724. GO
  1725. CREATE TABLE [dbo].[ACT_RU_JOB] (
  1726. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1727. [REV_] int NULL,
  1728. [TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1729. [LOCK_EXP_TIME_] datetime NULL,
  1730. [LOCK_OWNER_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1731. [EXCLUSIVE_] bit NULL,
  1732. [EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1733. [PROCESS_INSTANCE_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1734. [PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1735. [ELEMENT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1736. [ELEMENT_NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1737. [SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1738. [SUB_SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1739. [SCOPE_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1740. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1741. [RETRIES_] int NULL,
  1742. [EXCEPTION_STACK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1743. [EXCEPTION_MSG_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1744. [DUEDATE_] datetime NULL,
  1745. [REPEAT_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1746. [HANDLER_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1747. [HANDLER_CFG_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1748. [CUSTOM_VALUES_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1749. [CREATE_TIME_] datetime2(7) NULL,
  1750. [TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  1751. )
  1752. GO
  1753. ALTER TABLE [dbo].[ACT_RU_JOB] SET (LOCK_ESCALATION = TABLE)
  1754. GO
  1755. -- ----------------------------
  1756. -- Table structure for ACT_RU_SUSPENDED_JOB
  1757. -- ----------------------------
  1758. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_SUSPENDED_JOB]') AND type IN ('U'))
  1759. DROP TABLE [dbo].[ACT_RU_SUSPENDED_JOB]
  1760. GO
  1761. CREATE TABLE [dbo].[ACT_RU_SUSPENDED_JOB] (
  1762. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1763. [REV_] int NULL,
  1764. [TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1765. [EXCLUSIVE_] bit NULL,
  1766. [EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1767. [PROCESS_INSTANCE_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1768. [PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1769. [ELEMENT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1770. [ELEMENT_NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1771. [SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1772. [SUB_SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1773. [SCOPE_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1774. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1775. [RETRIES_] int NULL,
  1776. [EXCEPTION_STACK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1777. [EXCEPTION_MSG_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1778. [DUEDATE_] datetime NULL,
  1779. [REPEAT_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1780. [HANDLER_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1781. [HANDLER_CFG_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1782. [CUSTOM_VALUES_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1783. [CREATE_TIME_] datetime2(7) NULL,
  1784. [TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  1785. )
  1786. GO
  1787. ALTER TABLE [dbo].[ACT_RU_SUSPENDED_JOB] SET (LOCK_ESCALATION = TABLE)
  1788. GO
  1789. -- ----------------------------
  1790. -- Table structure for ACT_RU_TASK
  1791. -- ----------------------------
  1792. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_TASK]') AND type IN ('U'))
  1793. DROP TABLE [dbo].[ACT_RU_TASK]
  1794. GO
  1795. CREATE TABLE [dbo].[ACT_RU_TASK] (
  1796. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1797. [REV_] int NULL,
  1798. [EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1799. [PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1800. [PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1801. [TASK_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1802. [SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1803. [SUB_SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1804. [SCOPE_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1805. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1806. [NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1807. [PARENT_TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1808. [DESCRIPTION_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1809. [TASK_DEF_KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1810. [OWNER_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1811. [ASSIGNEE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1812. [DELEGATION_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1813. [PRIORITY_] int NULL,
  1814. [CREATE_TIME_] datetime NULL,
  1815. [DUE_DATE_] datetime NULL,
  1816. [CATEGORY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1817. [SUSPENSION_STATE_] int NULL,
  1818. [TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  1819. [FORM_KEY_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1820. [CLAIM_TIME_] datetime NULL,
  1821. [IS_COUNT_ENABLED_] tinyint NULL,
  1822. [VAR_COUNT_] int NULL,
  1823. [ID_LINK_COUNT_] int NULL,
  1824. [SUB_TASK_COUNT_] int NULL
  1825. )
  1826. GO
  1827. ALTER TABLE [dbo].[ACT_RU_TASK] SET (LOCK_ESCALATION = TABLE)
  1828. GO
  1829. -- ----------------------------
  1830. -- Table structure for ACT_RU_TIMER_JOB
  1831. -- ----------------------------
  1832. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_TIMER_JOB]') AND type IN ('U'))
  1833. DROP TABLE [dbo].[ACT_RU_TIMER_JOB]
  1834. GO
  1835. CREATE TABLE [dbo].[ACT_RU_TIMER_JOB] (
  1836. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1837. [REV_] int NULL,
  1838. [TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1839. [LOCK_EXP_TIME_] datetime NULL,
  1840. [LOCK_OWNER_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1841. [EXCLUSIVE_] bit NULL,
  1842. [EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1843. [PROCESS_INSTANCE_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1844. [PROC_DEF_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1845. [ELEMENT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1846. [ELEMENT_NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1847. [SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1848. [SUB_SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1849. [SCOPE_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1850. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1851. [RETRIES_] int NULL,
  1852. [EXCEPTION_STACK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1853. [EXCEPTION_MSG_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1854. [DUEDATE_] datetime NULL,
  1855. [REPEAT_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1856. [HANDLER_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1857. [HANDLER_CFG_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1858. [CUSTOM_VALUES_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1859. [CREATE_TIME_] datetime2(7) NULL,
  1860. [TENANT_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  1861. )
  1862. GO
  1863. ALTER TABLE [dbo].[ACT_RU_TIMER_JOB] SET (LOCK_ESCALATION = TABLE)
  1864. GO
  1865. -- ----------------------------
  1866. -- Table structure for ACT_RU_VARIABLE
  1867. -- ----------------------------
  1868. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_VARIABLE]') AND type IN ('U'))
  1869. DROP TABLE [dbo].[ACT_RU_VARIABLE]
  1870. GO
  1871. CREATE TABLE [dbo].[ACT_RU_VARIABLE] (
  1872. [ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1873. [REV_] int NULL,
  1874. [TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1875. [NAME_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1876. [EXECUTION_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1877. [PROC_INST_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1878. [TASK_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1879. [SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1880. [SUB_SCOPE_ID_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1881. [SCOPE_TYPE_] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  1882. [BYTEARRAY_ID_] nvarchar(64) COLLATE Chinese_PRC_CI_AS NULL,
  1883. [DOUBLE_] float(53) NULL,
  1884. [LONG_] numeric(19) NULL,
  1885. [TEXT_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  1886. [TEXT2_] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL
  1887. )
  1888. GO
  1889. ALTER TABLE [dbo].[ACT_RU_VARIABLE] SET (LOCK_ESCALATION = TABLE)
  1890. GO
  1891. -- ----------------------------
  1892. -- Indexes structure for table ACT_APP_APPDEF
  1893. -- ----------------------------
  1894. CREATE NONCLUSTERED INDEX [ACT_IDX_APP_DEF_DPLY]
  1895. ON [dbo].[ACT_APP_APPDEF] (
  1896. [DEPLOYMENT_ID_] ASC
  1897. )
  1898. GO
  1899. CREATE UNIQUE NONCLUSTERED INDEX [ACT_IDX_APP_DEF_UNIQ]
  1900. ON [dbo].[ACT_APP_APPDEF] (
  1901. [KEY_] ASC,
  1902. [VERSION_] ASC,
  1903. [TENANT_ID_] ASC
  1904. )
  1905. GO
  1906. -- ----------------------------
  1907. -- Primary Key structure for table ACT_APP_APPDEF
  1908. -- ----------------------------
  1909. ALTER TABLE [dbo].[ACT_APP_APPDEF] ADD CONSTRAINT [PK_ACT_APP_APPDEF] PRIMARY KEY CLUSTERED ([ID_])
  1910. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  1911. ON [PRIMARY]
  1912. GO
  1913. -- ----------------------------
  1914. -- Primary Key structure for table ACT_APP_DATABASECHANGELOGLOCK
  1915. -- ----------------------------
  1916. ALTER TABLE [dbo].[ACT_APP_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_ACT_APP_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  1917. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  1918. ON [PRIMARY]
  1919. GO
  1920. -- ----------------------------
  1921. -- Primary Key structure for table ACT_APP_DEPLOYMENT
  1922. -- ----------------------------
  1923. ALTER TABLE [dbo].[ACT_APP_DEPLOYMENT] ADD CONSTRAINT [PK_ACT_APP_DEPLOYMENT] PRIMARY KEY CLUSTERED ([ID_])
  1924. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  1925. ON [PRIMARY]
  1926. GO
  1927. -- ----------------------------
  1928. -- Indexes structure for table ACT_APP_DEPLOYMENT_RESOURCE
  1929. -- ----------------------------
  1930. CREATE NONCLUSTERED INDEX [ACT_IDX_APP_RSRC_DPL]
  1931. ON [dbo].[ACT_APP_DEPLOYMENT_RESOURCE] (
  1932. [DEPLOYMENT_ID_] ASC
  1933. )
  1934. GO
  1935. -- ----------------------------
  1936. -- Primary Key structure for table ACT_APP_DEPLOYMENT_RESOURCE
  1937. -- ----------------------------
  1938. ALTER TABLE [dbo].[ACT_APP_DEPLOYMENT_RESOURCE] ADD CONSTRAINT [PK_APP_DEPLOYMENT_RESOURCE] PRIMARY KEY CLUSTERED ([ID_])
  1939. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  1940. ON [PRIMARY]
  1941. GO
  1942. -- ----------------------------
  1943. -- Indexes structure for table ACT_CMMN_CASEDEF
  1944. -- ----------------------------
  1945. CREATE NONCLUSTERED INDEX [ACT_IDX_CASE_DEF_DPLY]
  1946. ON [dbo].[ACT_CMMN_CASEDEF] (
  1947. [DEPLOYMENT_ID_] ASC
  1948. )
  1949. GO
  1950. CREATE UNIQUE NONCLUSTERED INDEX [ACT_IDX_CASE_DEF_UNIQ]
  1951. ON [dbo].[ACT_CMMN_CASEDEF] (
  1952. [KEY_] ASC,
  1953. [VERSION_] ASC,
  1954. [TENANT_ID_] ASC
  1955. )
  1956. GO
  1957. -- ----------------------------
  1958. -- Primary Key structure for table ACT_CMMN_CASEDEF
  1959. -- ----------------------------
  1960. ALTER TABLE [dbo].[ACT_CMMN_CASEDEF] ADD CONSTRAINT [PK_ACT_CMMN_CASEDEF] PRIMARY KEY CLUSTERED ([ID_])
  1961. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  1962. ON [PRIMARY]
  1963. GO
  1964. -- ----------------------------
  1965. -- Primary Key structure for table ACT_CMMN_DATABASECHANGELOGLOCK
  1966. -- ----------------------------
  1967. ALTER TABLE [dbo].[ACT_CMMN_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_ACT_CMMN_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  1968. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  1969. ON [PRIMARY]
  1970. GO
  1971. -- ----------------------------
  1972. -- Primary Key structure for table ACT_CMMN_DEPLOYMENT
  1973. -- ----------------------------
  1974. ALTER TABLE [dbo].[ACT_CMMN_DEPLOYMENT] ADD CONSTRAINT [PK_ACT_CMMN_DEPLOYMENT] PRIMARY KEY CLUSTERED ([ID_])
  1975. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  1976. ON [PRIMARY]
  1977. GO
  1978. -- ----------------------------
  1979. -- Indexes structure for table ACT_CMMN_DEPLOYMENT_RESOURCE
  1980. -- ----------------------------
  1981. CREATE NONCLUSTERED INDEX [ACT_IDX_CMMN_RSRC_DPL]
  1982. ON [dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE] (
  1983. [DEPLOYMENT_ID_] ASC
  1984. )
  1985. GO
  1986. -- ----------------------------
  1987. -- Primary Key structure for table ACT_CMMN_DEPLOYMENT_RESOURCE
  1988. -- ----------------------------
  1989. ALTER TABLE [dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE] ADD CONSTRAINT [PK_CMMN_DEPLOYMENT_RESOURCE] PRIMARY KEY CLUSTERED ([ID_])
  1990. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  1991. ON [PRIMARY]
  1992. GO
  1993. -- ----------------------------
  1994. -- Primary Key structure for table ACT_CMMN_HI_CASE_INST
  1995. -- ----------------------------
  1996. ALTER TABLE [dbo].[ACT_CMMN_HI_CASE_INST] ADD CONSTRAINT [PK_ACT_CMMN_HI_CASE_INST] PRIMARY KEY CLUSTERED ([ID_])
  1997. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  1998. ON [PRIMARY]
  1999. GO
  2000. -- ----------------------------
  2001. -- Primary Key structure for table ACT_CMMN_HI_MIL_INST
  2002. -- ----------------------------
  2003. ALTER TABLE [dbo].[ACT_CMMN_HI_MIL_INST] ADD CONSTRAINT [PK_ACT_CMMN_HI_MIL_INST] PRIMARY KEY CLUSTERED ([ID_])
  2004. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2005. ON [PRIMARY]
  2006. GO
  2007. -- ----------------------------
  2008. -- Primary Key structure for table ACT_CMMN_HI_PLAN_ITEM_INST
  2009. -- ----------------------------
  2010. ALTER TABLE [dbo].[ACT_CMMN_HI_PLAN_ITEM_INST] ADD CONSTRAINT [PK_ACT_CMMN_HI_PLAN_ITEM_INST] PRIMARY KEY CLUSTERED ([ID_])
  2011. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2012. ON [PRIMARY]
  2013. GO
  2014. -- ----------------------------
  2015. -- Indexes structure for table ACT_CMMN_RU_CASE_INST
  2016. -- ----------------------------
  2017. CREATE NONCLUSTERED INDEX [ACT_IDX_CASE_INST_CASE_DEF]
  2018. ON [dbo].[ACT_CMMN_RU_CASE_INST] (
  2019. [CASE_DEF_ID_] ASC
  2020. )
  2021. GO
  2022. CREATE NONCLUSTERED INDEX [ACT_IDX_CASE_INST_PARENT]
  2023. ON [dbo].[ACT_CMMN_RU_CASE_INST] (
  2024. [PARENT_ID_] ASC
  2025. )
  2026. GO
  2027. -- ----------------------------
  2028. -- Primary Key structure for table ACT_CMMN_RU_CASE_INST
  2029. -- ----------------------------
  2030. ALTER TABLE [dbo].[ACT_CMMN_RU_CASE_INST] ADD CONSTRAINT [PK_ACT_CMMN_RU_CASE_INST] PRIMARY KEY CLUSTERED ([ID_])
  2031. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2032. ON [PRIMARY]
  2033. GO
  2034. -- ----------------------------
  2035. -- Indexes structure for table ACT_CMMN_RU_MIL_INST
  2036. -- ----------------------------
  2037. CREATE NONCLUSTERED INDEX [ACT_IDX_MIL_CASE_DEF]
  2038. ON [dbo].[ACT_CMMN_RU_MIL_INST] (
  2039. [CASE_DEF_ID_] ASC
  2040. )
  2041. GO
  2042. CREATE NONCLUSTERED INDEX [ACT_IDX_MIL_CASE_INST]
  2043. ON [dbo].[ACT_CMMN_RU_MIL_INST] (
  2044. [CASE_INST_ID_] ASC
  2045. )
  2046. GO
  2047. -- ----------------------------
  2048. -- Primary Key structure for table ACT_CMMN_RU_MIL_INST
  2049. -- ----------------------------
  2050. ALTER TABLE [dbo].[ACT_CMMN_RU_MIL_INST] ADD CONSTRAINT [PK_ACT_CMMN_RU_MIL_INST] PRIMARY KEY CLUSTERED ([ID_])
  2051. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2052. ON [PRIMARY]
  2053. GO
  2054. -- ----------------------------
  2055. -- Indexes structure for table ACT_CMMN_RU_PLAN_ITEM_INST
  2056. -- ----------------------------
  2057. CREATE NONCLUSTERED INDEX [ACT_IDX_PLAN_ITEM_CASE_DEF]
  2058. ON [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] (
  2059. [CASE_DEF_ID_] ASC
  2060. )
  2061. GO
  2062. CREATE NONCLUSTERED INDEX [ACT_IDX_PLAN_ITEM_CASE_INST]
  2063. ON [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] (
  2064. [CASE_INST_ID_] ASC
  2065. )
  2066. GO
  2067. CREATE NONCLUSTERED INDEX [ACT_IDX_PLAN_ITEM_STAGE_INST]
  2068. ON [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] (
  2069. [STAGE_INST_ID_] ASC
  2070. )
  2071. GO
  2072. -- ----------------------------
  2073. -- Primary Key structure for table ACT_CMMN_RU_PLAN_ITEM_INST
  2074. -- ----------------------------
  2075. ALTER TABLE [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] ADD CONSTRAINT [PK_CMMN_PLAN_ITEM_INST] PRIMARY KEY CLUSTERED ([ID_])
  2076. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2077. ON [PRIMARY]
  2078. GO
  2079. -- ----------------------------
  2080. -- Indexes structure for table ACT_CMMN_RU_SENTRY_PART_INST
  2081. -- ----------------------------
  2082. CREATE NONCLUSTERED INDEX [ACT_IDX_SENTRY_CASE_DEF]
  2083. ON [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] (
  2084. [CASE_DEF_ID_] ASC
  2085. )
  2086. GO
  2087. CREATE NONCLUSTERED INDEX [ACT_IDX_SENTRY_CASE_INST]
  2088. ON [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] (
  2089. [CASE_INST_ID_] ASC
  2090. )
  2091. GO
  2092. CREATE NONCLUSTERED INDEX [ACT_IDX_SENTRY_PLAN_ITEM]
  2093. ON [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] (
  2094. [PLAN_ITEM_INST_ID_] ASC
  2095. )
  2096. GO
  2097. -- ----------------------------
  2098. -- Primary Key structure for table ACT_CMMN_RU_SENTRY_PART_INST
  2099. -- ----------------------------
  2100. ALTER TABLE [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] ADD CONSTRAINT [PK_CMMN_SENTRY_PART_INST] PRIMARY KEY CLUSTERED ([ID_])
  2101. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2102. ON [PRIMARY]
  2103. GO
  2104. -- ----------------------------
  2105. -- Indexes structure for table ACT_CO_CONTENT_ITEM
  2106. -- ----------------------------
  2107. CREATE NONCLUSTERED INDEX [idx_contitem_taskid]
  2108. ON [dbo].[ACT_CO_CONTENT_ITEM] (
  2109. [TASK_ID_] ASC
  2110. )
  2111. GO
  2112. CREATE NONCLUSTERED INDEX [idx_contitem_procid]
  2113. ON [dbo].[ACT_CO_CONTENT_ITEM] (
  2114. [PROC_INST_ID_] ASC
  2115. )
  2116. GO
  2117. CREATE NONCLUSTERED INDEX [idx_contitem_scope]
  2118. ON [dbo].[ACT_CO_CONTENT_ITEM] (
  2119. [SCOPE_ID_] ASC,
  2120. [SCOPE_TYPE_] ASC
  2121. )
  2122. GO
  2123. -- ----------------------------
  2124. -- Primary Key structure for table ACT_CO_CONTENT_ITEM
  2125. -- ----------------------------
  2126. ALTER TABLE [dbo].[ACT_CO_CONTENT_ITEM] ADD CONSTRAINT [PK_ACT_CO_CONTENT_ITEM] PRIMARY KEY CLUSTERED ([ID_])
  2127. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2128. ON [PRIMARY]
  2129. GO
  2130. -- ----------------------------
  2131. -- Primary Key structure for table ACT_CO_DATABASECHANGELOGLOCK
  2132. -- ----------------------------
  2133. ALTER TABLE [dbo].[ACT_CO_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_ACT_CO_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  2134. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2135. ON [PRIMARY]
  2136. GO
  2137. -- ----------------------------
  2138. -- Primary Key structure for table ACT_DE_DATABASECHANGELOGLOCK
  2139. -- ----------------------------
  2140. ALTER TABLE [dbo].[ACT_DE_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_ACT_DE_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  2141. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2142. ON [PRIMARY]
  2143. GO
  2144. -- ----------------------------
  2145. -- Indexes structure for table ACT_DE_MODEL
  2146. -- ----------------------------
  2147. CREATE NONCLUSTERED INDEX [idx_proc_mod_created]
  2148. ON [dbo].[ACT_DE_MODEL] (
  2149. [created_by] ASC
  2150. )
  2151. GO
  2152. -- ----------------------------
  2153. -- Primary Key structure for table ACT_DE_MODEL
  2154. -- ----------------------------
  2155. ALTER TABLE [dbo].[ACT_DE_MODEL] ADD CONSTRAINT [PK_ACT_DE_MODEL] PRIMARY KEY CLUSTERED ([id])
  2156. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2157. ON [PRIMARY]
  2158. GO
  2159. -- ----------------------------
  2160. -- Indexes structure for table ACT_DE_MODEL_HISTORY
  2161. -- ----------------------------
  2162. CREATE NONCLUSTERED INDEX [idx_proc_mod_history_proc]
  2163. ON [dbo].[ACT_DE_MODEL_HISTORY] (
  2164. [model_id] ASC
  2165. )
  2166. GO
  2167. -- ----------------------------
  2168. -- Primary Key structure for table ACT_DE_MODEL_HISTORY
  2169. -- ----------------------------
  2170. ALTER TABLE [dbo].[ACT_DE_MODEL_HISTORY] ADD CONSTRAINT [PK_ACT_DE_MODEL_HISTORY] PRIMARY KEY CLUSTERED ([id])
  2171. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2172. ON [PRIMARY]
  2173. GO
  2174. -- ----------------------------
  2175. -- Primary Key structure for table ACT_DE_MODEL_RELATION
  2176. -- ----------------------------
  2177. ALTER TABLE [dbo].[ACT_DE_MODEL_RELATION] ADD CONSTRAINT [PK_ACT_DE_MODEL_RELATION] PRIMARY KEY CLUSTERED ([id])
  2178. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2179. ON [PRIMARY]
  2180. GO
  2181. -- ----------------------------
  2182. -- Primary Key structure for table ACT_DMN_DATABASECHANGELOGLOCK
  2183. -- ----------------------------
  2184. ALTER TABLE [dbo].[ACT_DMN_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_ACT_DMN_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  2185. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2186. ON [PRIMARY]
  2187. GO
  2188. -- ----------------------------
  2189. -- Indexes structure for table ACT_DMN_DECISION_TABLE
  2190. -- ----------------------------
  2191. CREATE UNIQUE NONCLUSTERED INDEX [ACT_IDX_DEC_TBL_UNIQ]
  2192. ON [dbo].[ACT_DMN_DECISION_TABLE] (
  2193. [KEY_] ASC,
  2194. [VERSION_] ASC,
  2195. [TENANT_ID_] ASC
  2196. )
  2197. GO
  2198. -- ----------------------------
  2199. -- Primary Key structure for table ACT_DMN_DECISION_TABLE
  2200. -- ----------------------------
  2201. ALTER TABLE [dbo].[ACT_DMN_DECISION_TABLE] ADD CONSTRAINT [PK_ACT_DMN_DECISION_TABLE] PRIMARY KEY CLUSTERED ([ID_])
  2202. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2203. ON [PRIMARY]
  2204. GO
  2205. -- ----------------------------
  2206. -- Primary Key structure for table ACT_DMN_DEPLOYMENT
  2207. -- ----------------------------
  2208. ALTER TABLE [dbo].[ACT_DMN_DEPLOYMENT] ADD CONSTRAINT [PK_ACT_DMN_DEPLOYMENT] PRIMARY KEY CLUSTERED ([ID_])
  2209. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2210. ON [PRIMARY]
  2211. GO
  2212. -- ----------------------------
  2213. -- Primary Key structure for table ACT_DMN_DEPLOYMENT_RESOURCE
  2214. -- ----------------------------
  2215. ALTER TABLE [dbo].[ACT_DMN_DEPLOYMENT_RESOURCE] ADD CONSTRAINT [PK_ACT_DMN_DEPLOYMENT_RESOURCE] PRIMARY KEY CLUSTERED ([ID_])
  2216. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2217. ON [PRIMARY]
  2218. GO
  2219. -- ----------------------------
  2220. -- Primary Key structure for table ACT_DMN_HI_DECISION_EXECUTION
  2221. -- ----------------------------
  2222. ALTER TABLE [dbo].[ACT_DMN_HI_DECISION_EXECUTION] ADD CONSTRAINT [PK_ACT_DMN_HI_DECISION_EXECUTION] PRIMARY KEY CLUSTERED ([ID_])
  2223. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2224. ON [PRIMARY]
  2225. GO
  2226. -- ----------------------------
  2227. -- Primary Key structure for table ACT_EVT_LOG
  2228. -- ----------------------------
  2229. ALTER TABLE [dbo].[ACT_EVT_LOG] ADD CONSTRAINT [PK__ACT_EVT___DE8852D855F4C372] PRIMARY KEY CLUSTERED ([LOG_NR_])
  2230. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2231. ON [PRIMARY]
  2232. GO
  2233. -- ----------------------------
  2234. -- Primary Key structure for table ACT_FO_DATABASECHANGELOGLOCK
  2235. -- ----------------------------
  2236. ALTER TABLE [dbo].[ACT_FO_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_ACT_FO_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  2237. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2238. ON [PRIMARY]
  2239. GO
  2240. -- ----------------------------
  2241. -- Indexes structure for table ACT_FO_FORM_DEFINITION
  2242. -- ----------------------------
  2243. CREATE UNIQUE NONCLUSTERED INDEX [ACT_IDX_FORM_DEF_UNIQ]
  2244. ON [dbo].[ACT_FO_FORM_DEFINITION] (
  2245. [KEY_] ASC,
  2246. [VERSION_] ASC,
  2247. [TENANT_ID_] ASC
  2248. )
  2249. GO
  2250. -- ----------------------------
  2251. -- Primary Key structure for table ACT_FO_FORM_DEFINITION
  2252. -- ----------------------------
  2253. ALTER TABLE [dbo].[ACT_FO_FORM_DEFINITION] ADD CONSTRAINT [PK_ACT_FO_FORM_DEFINITION] PRIMARY KEY CLUSTERED ([ID_])
  2254. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2255. ON [PRIMARY]
  2256. GO
  2257. -- ----------------------------
  2258. -- Primary Key structure for table ACT_FO_FORM_DEPLOYMENT
  2259. -- ----------------------------
  2260. ALTER TABLE [dbo].[ACT_FO_FORM_DEPLOYMENT] ADD CONSTRAINT [PK_ACT_FO_FORM_DEPLOYMENT] PRIMARY KEY CLUSTERED ([ID_])
  2261. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2262. ON [PRIMARY]
  2263. GO
  2264. -- ----------------------------
  2265. -- Primary Key structure for table ACT_FO_FORM_INSTANCE
  2266. -- ----------------------------
  2267. ALTER TABLE [dbo].[ACT_FO_FORM_INSTANCE] ADD CONSTRAINT [PK_ACT_FO_FORM_INSTANCE] PRIMARY KEY CLUSTERED ([ID_])
  2268. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2269. ON [PRIMARY]
  2270. GO
  2271. -- ----------------------------
  2272. -- Primary Key structure for table ACT_FO_FORM_RESOURCE
  2273. -- ----------------------------
  2274. ALTER TABLE [dbo].[ACT_FO_FORM_RESOURCE] ADD CONSTRAINT [PK_ACT_FO_FORM_RESOURCE] PRIMARY KEY CLUSTERED ([ID_])
  2275. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2276. ON [PRIMARY]
  2277. GO
  2278. -- ----------------------------
  2279. -- Primary Key structure for table ACT_GE_BYTEARRAY
  2280. -- ----------------------------
  2281. ALTER TABLE [dbo].[ACT_GE_BYTEARRAY] ADD CONSTRAINT [PK__ACT_GE_B__C4971C0F71D1E811] PRIMARY KEY CLUSTERED ([ID_])
  2282. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2283. ON [PRIMARY]
  2284. GO
  2285. -- ----------------------------
  2286. -- Primary Key structure for table ACT_GE_PROPERTY
  2287. -- ----------------------------
  2288. ALTER TABLE [dbo].[ACT_GE_PROPERTY] ADD CONSTRAINT [PK__ACT_GE_P__A7BE44DE6E01572D] PRIMARY KEY CLUSTERED ([NAME_])
  2289. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2290. ON [PRIMARY]
  2291. GO
  2292. -- ----------------------------
  2293. -- Indexes structure for table ACT_HI_ACTINST
  2294. -- ----------------------------
  2295. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_ACT_INST_START]
  2296. ON [dbo].[ACT_HI_ACTINST] (
  2297. [START_TIME_] ASC
  2298. )
  2299. GO
  2300. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_ACT_INST_END]
  2301. ON [dbo].[ACT_HI_ACTINST] (
  2302. [END_TIME_] ASC
  2303. )
  2304. GO
  2305. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_ACT_INST_PROCINST]
  2306. ON [dbo].[ACT_HI_ACTINST] (
  2307. [PROC_INST_ID_] ASC,
  2308. [ACT_ID_] ASC
  2309. )
  2310. GO
  2311. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_ACT_INST_EXEC]
  2312. ON [dbo].[ACT_HI_ACTINST] (
  2313. [EXECUTION_ID_] ASC,
  2314. [ACT_ID_] ASC
  2315. )
  2316. GO
  2317. -- ----------------------------
  2318. -- Primary Key structure for table ACT_HI_ACTINST
  2319. -- ----------------------------
  2320. ALTER TABLE [dbo].[ACT_HI_ACTINST] ADD CONSTRAINT [PK__ACT_HI_A__C4971C0F0B5CAFEA] PRIMARY KEY CLUSTERED ([ID_])
  2321. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2322. ON [PRIMARY]
  2323. GO
  2324. -- ----------------------------
  2325. -- Primary Key structure for table ACT_HI_ATTACHMENT
  2326. -- ----------------------------
  2327. ALTER TABLE [dbo].[ACT_HI_ATTACHMENT] ADD CONSTRAINT [PK__ACT_HI_A__C4971C0F18B6AB08] PRIMARY KEY CLUSTERED ([ID_])
  2328. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2329. ON [PRIMARY]
  2330. GO
  2331. -- ----------------------------
  2332. -- Primary Key structure for table ACT_HI_COMMENT
  2333. -- ----------------------------
  2334. ALTER TABLE [dbo].[ACT_HI_COMMENT] ADD CONSTRAINT [PK__ACT_HI_C__C4971C0F14E61A24] PRIMARY KEY CLUSTERED ([ID_])
  2335. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2336. ON [PRIMARY]
  2337. GO
  2338. -- ----------------------------
  2339. -- Indexes structure for table ACT_HI_DETAIL
  2340. -- ----------------------------
  2341. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_DETAIL_PROC_INST]
  2342. ON [dbo].[ACT_HI_DETAIL] (
  2343. [PROC_INST_ID_] ASC
  2344. )
  2345. GO
  2346. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_DETAIL_ACT_INST]
  2347. ON [dbo].[ACT_HI_DETAIL] (
  2348. [ACT_INST_ID_] ASC
  2349. )
  2350. GO
  2351. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_DETAIL_TIME]
  2352. ON [dbo].[ACT_HI_DETAIL] (
  2353. [TIME_] ASC
  2354. )
  2355. GO
  2356. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_DETAIL_NAME]
  2357. ON [dbo].[ACT_HI_DETAIL] (
  2358. [NAME_] ASC
  2359. )
  2360. GO
  2361. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_DETAIL_TASK_ID]
  2362. ON [dbo].[ACT_HI_DETAIL] (
  2363. [TASK_ID_] ASC
  2364. )
  2365. GO
  2366. -- ----------------------------
  2367. -- Primary Key structure for table ACT_HI_DETAIL
  2368. -- ----------------------------
  2369. ALTER TABLE [dbo].[ACT_HI_DETAIL] ADD CONSTRAINT [PK__ACT_HI_D__C4971C0F11158940] PRIMARY KEY CLUSTERED ([ID_])
  2370. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2371. ON [PRIMARY]
  2372. GO
  2373. -- ----------------------------
  2374. -- Indexes structure for table ACT_HI_ENTITYLINK
  2375. -- ----------------------------
  2376. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_ENT_LNK_SCOPE]
  2377. ON [dbo].[ACT_HI_ENTITYLINK] (
  2378. [SCOPE_ID_] ASC,
  2379. [SCOPE_TYPE_] ASC,
  2380. [LINK_TYPE_] ASC
  2381. )
  2382. GO
  2383. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_ENT_LNK_SCOPE_DEF]
  2384. ON [dbo].[ACT_HI_ENTITYLINK] (
  2385. [SCOPE_DEFINITION_ID_] ASC,
  2386. [SCOPE_TYPE_] ASC,
  2387. [LINK_TYPE_] ASC
  2388. )
  2389. GO
  2390. -- ----------------------------
  2391. -- Primary Key structure for table ACT_HI_ENTITYLINK
  2392. -- ----------------------------
  2393. ALTER TABLE [dbo].[ACT_HI_ENTITYLINK] ADD CONSTRAINT [PK__ACT_HI_E__C4971C0F01142BA1] PRIMARY KEY CLUSTERED ([ID_])
  2394. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2395. ON [PRIMARY]
  2396. GO
  2397. -- ----------------------------
  2398. -- Indexes structure for table ACT_HI_IDENTITYLINK
  2399. -- ----------------------------
  2400. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_IDENT_LNK_USER]
  2401. ON [dbo].[ACT_HI_IDENTITYLINK] (
  2402. [USER_ID_] ASC
  2403. )
  2404. GO
  2405. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_IDENT_LNK_SCOPE]
  2406. ON [dbo].[ACT_HI_IDENTITYLINK] (
  2407. [SCOPE_ID_] ASC,
  2408. [SCOPE_TYPE_] ASC
  2409. )
  2410. GO
  2411. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_IDENT_LNK_SCOPE_DEF]
  2412. ON [dbo].[ACT_HI_IDENTITYLINK] (
  2413. [SCOPE_DEFINITION_ID_] ASC,
  2414. [SCOPE_TYPE_] ASC
  2415. )
  2416. GO
  2417. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_IDENT_LNK_TASK]
  2418. ON [dbo].[ACT_HI_IDENTITYLINK] (
  2419. [TASK_ID_] ASC
  2420. )
  2421. GO
  2422. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_IDENT_LNK_PROCINST]
  2423. ON [dbo].[ACT_HI_IDENTITYLINK] (
  2424. [PROC_INST_ID_] ASC
  2425. )
  2426. GO
  2427. -- ----------------------------
  2428. -- Primary Key structure for table ACT_HI_IDENTITYLINK
  2429. -- ----------------------------
  2430. ALTER TABLE [dbo].[ACT_HI_IDENTITYLINK] ADD CONSTRAINT [PK__ACT_HI_I__C4971C0F797309D9] PRIMARY KEY CLUSTERED ([ID_])
  2431. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2432. ON [PRIMARY]
  2433. GO
  2434. -- ----------------------------
  2435. -- Indexes structure for table ACT_HI_PROCINST
  2436. -- ----------------------------
  2437. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_PRO_INST_END]
  2438. ON [dbo].[ACT_HI_PROCINST] (
  2439. [END_TIME_] ASC
  2440. )
  2441. GO
  2442. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_PRO_I_BUSKEY]
  2443. ON [dbo].[ACT_HI_PROCINST] (
  2444. [BUSINESS_KEY_] ASC
  2445. )
  2446. GO
  2447. -- ----------------------------
  2448. -- Uniques structure for table ACT_HI_PROCINST
  2449. -- ----------------------------
  2450. ALTER TABLE [dbo].[ACT_HI_PROCINST] ADD CONSTRAINT [UQ__ACT_HI_P__C034157205A3D694] UNIQUE NONCLUSTERED ([PROC_INST_ID_] ASC)
  2451. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2452. ON [PRIMARY]
  2453. GO
  2454. -- ----------------------------
  2455. -- Primary Key structure for table ACT_HI_PROCINST
  2456. -- ----------------------------
  2457. ALTER TABLE [dbo].[ACT_HI_PROCINST] ADD CONSTRAINT [PK__ACT_HI_P__C4971C0F02C769E9] PRIMARY KEY CLUSTERED ([ID_])
  2458. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2459. ON [PRIMARY]
  2460. GO
  2461. -- ----------------------------
  2462. -- Indexes structure for table ACT_HI_TASKINST
  2463. -- ----------------------------
  2464. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_TASK_SCOPE]
  2465. ON [dbo].[ACT_HI_TASKINST] (
  2466. [SCOPE_ID_] ASC,
  2467. [SCOPE_TYPE_] ASC
  2468. )
  2469. GO
  2470. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_TASK_SUB_SCOPE]
  2471. ON [dbo].[ACT_HI_TASKINST] (
  2472. [SUB_SCOPE_ID_] ASC,
  2473. [SCOPE_TYPE_] ASC
  2474. )
  2475. GO
  2476. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_TASK_SCOPE_DEF]
  2477. ON [dbo].[ACT_HI_TASKINST] (
  2478. [SCOPE_DEFINITION_ID_] ASC,
  2479. [SCOPE_TYPE_] ASC
  2480. )
  2481. GO
  2482. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_TASK_INST_PROCINST]
  2483. ON [dbo].[ACT_HI_TASKINST] (
  2484. [PROC_INST_ID_] ASC
  2485. )
  2486. GO
  2487. -- ----------------------------
  2488. -- Primary Key structure for table ACT_HI_TASKINST
  2489. -- ----------------------------
  2490. ALTER TABLE [dbo].[ACT_HI_TASKINST] ADD CONSTRAINT [PK__ACT_HI_T__C4971C0F0E6E26BF] PRIMARY KEY CLUSTERED ([ID_])
  2491. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2492. ON [PRIMARY]
  2493. GO
  2494. -- ----------------------------
  2495. -- Primary Key structure for table ACT_HI_TSK_LOG
  2496. -- ----------------------------
  2497. ALTER TABLE [dbo].[ACT_HI_TSK_LOG] ADD CONSTRAINT [PK__ACT_HI_T__C4971C0F14270015] PRIMARY KEY CLUSTERED ([ID_])
  2498. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2499. ON [PRIMARY]
  2500. GO
  2501. -- ----------------------------
  2502. -- Indexes structure for table ACT_HI_VARINST
  2503. -- ----------------------------
  2504. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_PROCVAR_NAME_TYPE]
  2505. ON [dbo].[ACT_HI_VARINST] (
  2506. [NAME_] ASC,
  2507. [VAR_TYPE_] ASC
  2508. )
  2509. GO
  2510. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_VAR_SCOPE_ID_TYPE]
  2511. ON [dbo].[ACT_HI_VARINST] (
  2512. [SCOPE_ID_] ASC,
  2513. [SCOPE_TYPE_] ASC
  2514. )
  2515. GO
  2516. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_VAR_SUB_ID_TYPE]
  2517. ON [dbo].[ACT_HI_VARINST] (
  2518. [SUB_SCOPE_ID_] ASC,
  2519. [SCOPE_TYPE_] ASC
  2520. )
  2521. GO
  2522. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_PROCVAR_PROC_INST]
  2523. ON [dbo].[ACT_HI_VARINST] (
  2524. [PROC_INST_ID_] ASC
  2525. )
  2526. GO
  2527. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_PROCVAR_TASK_ID]
  2528. ON [dbo].[ACT_HI_VARINST] (
  2529. [TASK_ID_] ASC
  2530. )
  2531. GO
  2532. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_PROCVAR_EXE]
  2533. ON [dbo].[ACT_HI_VARINST] (
  2534. [EXECUTION_ID_] ASC
  2535. )
  2536. GO
  2537. -- ----------------------------
  2538. -- Primary Key structure for table ACT_HI_VARINST
  2539. -- ----------------------------
  2540. ALTER TABLE [dbo].[ACT_HI_VARINST] ADD CONSTRAINT [PK__ACT_HI_V__C4971C0F1DB06A4F] PRIMARY KEY CLUSTERED ([ID_])
  2541. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2542. ON [PRIMARY]
  2543. GO
  2544. -- ----------------------------
  2545. -- Primary Key structure for table ACT_ID_BYTEARRAY
  2546. -- ----------------------------
  2547. ALTER TABLE [dbo].[ACT_ID_BYTEARRAY] ADD CONSTRAINT [PK__ACT_ID_B__C4971C0F2057CCD0] PRIMARY KEY CLUSTERED ([ID_])
  2548. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2549. ON [PRIMARY]
  2550. GO
  2551. -- ----------------------------
  2552. -- Primary Key structure for table ACT_ID_GROUP
  2553. -- ----------------------------
  2554. ALTER TABLE [dbo].[ACT_ID_GROUP] ADD CONSTRAINT [PK__ACT_ID_G__C4971C0F24285DB4] PRIMARY KEY CLUSTERED ([ID_])
  2555. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2556. ON [PRIMARY]
  2557. GO
  2558. -- ----------------------------
  2559. -- Primary Key structure for table ACT_ID_INFO
  2560. -- ----------------------------
  2561. ALTER TABLE [dbo].[ACT_ID_INFO] ADD CONSTRAINT [PK__ACT_ID_I__C4971C0F308E3499] PRIMARY KEY CLUSTERED ([ID_])
  2562. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2563. ON [PRIMARY]
  2564. GO
  2565. -- ----------------------------
  2566. -- Primary Key structure for table ACT_ID_MEMBERSHIP
  2567. -- ----------------------------
  2568. ALTER TABLE [dbo].[ACT_ID_MEMBERSHIP] ADD CONSTRAINT [PK__ACT_ID_M__C2371B0F27F8EE98] PRIMARY KEY CLUSTERED ([USER_ID_], [GROUP_ID_])
  2569. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2570. ON [PRIMARY]
  2571. GO
  2572. -- ----------------------------
  2573. -- Uniques structure for table ACT_ID_PRIV
  2574. -- ----------------------------
  2575. ALTER TABLE [dbo].[ACT_ID_PRIV] ADD CONSTRAINT [ACT_UNIQ_PRIV_NAME] UNIQUE NONCLUSTERED ([NAME_] ASC)
  2576. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2577. ON [PRIMARY]
  2578. GO
  2579. -- ----------------------------
  2580. -- Primary Key structure for table ACT_ID_PRIV
  2581. -- ----------------------------
  2582. ALTER TABLE [dbo].[ACT_ID_PRIV] ADD CONSTRAINT [PK__ACT_ID_P__C4971C0F382F5661] PRIMARY KEY CLUSTERED ([ID_])
  2583. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2584. ON [PRIMARY]
  2585. GO
  2586. -- ----------------------------
  2587. -- Indexes structure for table ACT_ID_PRIV_MAPPING
  2588. -- ----------------------------
  2589. CREATE NONCLUSTERED INDEX [ACT_IDX_PRIV_USER]
  2590. ON [dbo].[ACT_ID_PRIV_MAPPING] (
  2591. [USER_ID_] ASC
  2592. )
  2593. GO
  2594. CREATE NONCLUSTERED INDEX [ACT_IDX_PRIV_GROUP]
  2595. ON [dbo].[ACT_ID_PRIV_MAPPING] (
  2596. [GROUP_ID_] ASC
  2597. )
  2598. GO
  2599. -- ----------------------------
  2600. -- Primary Key structure for table ACT_ID_PRIV_MAPPING
  2601. -- ----------------------------
  2602. ALTER TABLE [dbo].[ACT_ID_PRIV_MAPPING] ADD CONSTRAINT [PK__ACT_ID_P__C4971C0F3BFFE745] PRIMARY KEY CLUSTERED ([ID_])
  2603. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2604. ON [PRIMARY]
  2605. GO
  2606. -- ----------------------------
  2607. -- Primary Key structure for table ACT_ID_PROPERTY
  2608. -- ----------------------------
  2609. ALTER TABLE [dbo].[ACT_ID_PROPERTY] ADD CONSTRAINT [PK__ACT_ID_P__A7BE44DE1C873BEC] PRIMARY KEY CLUSTERED ([NAME_])
  2610. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2611. ON [PRIMARY]
  2612. GO
  2613. -- ----------------------------
  2614. -- Primary Key structure for table ACT_ID_TOKEN
  2615. -- ----------------------------
  2616. ALTER TABLE [dbo].[ACT_ID_TOKEN] ADD CONSTRAINT [PK__ACT_ID_T__C4971C0F345EC57D] PRIMARY KEY CLUSTERED ([ID_])
  2617. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2618. ON [PRIMARY]
  2619. GO
  2620. -- ----------------------------
  2621. -- Primary Key structure for table ACT_ID_USER
  2622. -- ----------------------------
  2623. ALTER TABLE [dbo].[ACT_ID_USER] ADD CONSTRAINT [PK__ACT_ID_U__C4971C0F2BC97F7C] PRIMARY KEY CLUSTERED ([ID_])
  2624. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2625. ON [PRIMARY]
  2626. GO
  2627. -- ----------------------------
  2628. -- Indexes structure for table ACT_PROCDEF_INFO
  2629. -- ----------------------------
  2630. CREATE NONCLUSTERED INDEX [ACT_IDX_INFO_PROCDEF]
  2631. ON [dbo].[ACT_PROCDEF_INFO] (
  2632. [PROC_DEF_ID_] ASC
  2633. )
  2634. GO
  2635. -- ----------------------------
  2636. -- Uniques structure for table ACT_PROCDEF_INFO
  2637. -- ----------------------------
  2638. ALTER TABLE [dbo].[ACT_PROCDEF_INFO] ADD CONSTRAINT [ACT_UNIQ_INFO_PROCDEF] UNIQUE NONCLUSTERED ([PROC_DEF_ID_] ASC)
  2639. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2640. ON [PRIMARY]
  2641. GO
  2642. -- ----------------------------
  2643. -- Primary Key structure for table ACT_PROCDEF_INFO
  2644. -- ----------------------------
  2645. ALTER TABLE [dbo].[ACT_PROCDEF_INFO] ADD CONSTRAINT [PK__ACT_PROC__C4971C0F5AB9788F] PRIMARY KEY CLUSTERED ([ID_])
  2646. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2647. ON [PRIMARY]
  2648. GO
  2649. -- ----------------------------
  2650. -- Primary Key structure for table ACT_RE_DEPLOYMENT
  2651. -- ----------------------------
  2652. ALTER TABLE [dbo].[ACT_RE_DEPLOYMENT] ADD CONSTRAINT [PK__ACT_RE_D__C4971C0F41EDCAC5] PRIMARY KEY CLUSTERED ([ID_])
  2653. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2654. ON [PRIMARY]
  2655. GO
  2656. -- ----------------------------
  2657. -- Primary Key structure for table ACT_RE_MODEL
  2658. -- ----------------------------
  2659. ALTER TABLE [dbo].[ACT_RE_MODEL] ADD CONSTRAINT [PK__ACT_RE_M__C4971C0F46B27FE2] PRIMARY KEY CLUSTERED ([ID_])
  2660. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2661. ON [PRIMARY]
  2662. GO
  2663. -- ----------------------------
  2664. -- Uniques structure for table ACT_RE_PROCDEF
  2665. -- ----------------------------
  2666. ALTER TABLE [dbo].[ACT_RE_PROCDEF] ADD CONSTRAINT [ACT_UNIQ_PROCDEF] UNIQUE NONCLUSTERED ([KEY_] ASC, [VERSION_] ASC, [DERIVED_VERSION_] ASC, [TENANT_ID_] ASC)
  2667. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2668. ON [PRIMARY]
  2669. GO
  2670. -- ----------------------------
  2671. -- Primary Key structure for table ACT_RE_PROCDEF
  2672. -- ----------------------------
  2673. ALTER TABLE [dbo].[ACT_RE_PROCDEF] ADD CONSTRAINT [PK__ACT_RE_P__C4971C0F503BEA1C] PRIMARY KEY CLUSTERED ([ID_])
  2674. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2675. ON [PRIMARY]
  2676. GO
  2677. -- ----------------------------
  2678. -- Indexes structure for table ACT_RU_ACTINST
  2679. -- ----------------------------
  2680. CREATE NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_START]
  2681. ON [dbo].[ACT_RU_ACTINST] (
  2682. [START_TIME_] ASC
  2683. )
  2684. GO
  2685. CREATE NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_END]
  2686. ON [dbo].[ACT_RU_ACTINST] (
  2687. [END_TIME_] ASC
  2688. )
  2689. GO
  2690. CREATE NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_PROC]
  2691. ON [dbo].[ACT_RU_ACTINST] (
  2692. [PROC_INST_ID_] ASC
  2693. )
  2694. GO
  2695. CREATE NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_PROC_ACT]
  2696. ON [dbo].[ACT_RU_ACTINST] (
  2697. [PROC_INST_ID_] ASC,
  2698. [ACT_ID_] ASC
  2699. )
  2700. GO
  2701. CREATE NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_EXEC]
  2702. ON [dbo].[ACT_RU_ACTINST] (
  2703. [EXECUTION_ID_] ASC
  2704. )
  2705. GO
  2706. CREATE NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_EXEC_ACT]
  2707. ON [dbo].[ACT_RU_ACTINST] (
  2708. [EXECUTION_ID_] ASC,
  2709. [ACT_ID_] ASC
  2710. )
  2711. GO
  2712. -- ----------------------------
  2713. -- Primary Key structure for table ACT_RU_ACTINST
  2714. -- ----------------------------
  2715. ALTER TABLE [dbo].[ACT_RU_ACTINST] ADD CONSTRAINT [PK__ACT_RU_A__C4971C0F5E8A0973] PRIMARY KEY CLUSTERED ([ID_])
  2716. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2717. ON [PRIMARY]
  2718. GO
  2719. -- ----------------------------
  2720. -- Indexes structure for table ACT_RU_DEADLETTER_JOB
  2721. -- ----------------------------
  2722. CREATE NONCLUSTERED INDEX [ACT_IDX_DEADLETTER_JOB_EXCEPTION_STACK_ID]
  2723. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  2724. [EXCEPTION_STACK_ID_] ASC
  2725. )
  2726. GO
  2727. CREATE NONCLUSTERED INDEX [ACT_IDX_DEADLETTER_JOB_CUSTOM_VALUES_ID]
  2728. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  2729. [CUSTOM_VALUES_ID_] ASC
  2730. )
  2731. GO
  2732. CREATE NONCLUSTERED INDEX [ACT_IDX_DJOB_SCOPE]
  2733. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  2734. [SCOPE_ID_] ASC,
  2735. [SCOPE_TYPE_] ASC
  2736. )
  2737. GO
  2738. CREATE NONCLUSTERED INDEX [ACT_IDX_DJOB_SUB_SCOPE]
  2739. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  2740. [SUB_SCOPE_ID_] ASC,
  2741. [SCOPE_TYPE_] ASC
  2742. )
  2743. GO
  2744. CREATE NONCLUSTERED INDEX [ACT_IDX_DJOB_SCOPE_DEF]
  2745. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  2746. [SCOPE_DEFINITION_ID_] ASC,
  2747. [SCOPE_TYPE_] ASC
  2748. )
  2749. GO
  2750. CREATE NONCLUSTERED INDEX [ACT_IDX_DEADLETTER_JOB_EXECUTION_ID]
  2751. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  2752. [EXECUTION_ID_] ASC
  2753. )
  2754. GO
  2755. CREATE NONCLUSTERED INDEX [ACT_IDX_DEADLETTER_JOB_PROCESS_INSTANCE_ID]
  2756. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  2757. [PROCESS_INSTANCE_ID_] ASC
  2758. )
  2759. GO
  2760. CREATE NONCLUSTERED INDEX [ACT_IDX_DEADLETTER_JOB_PROC_DEF_ID]
  2761. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  2762. [PROC_DEF_ID_] ASC
  2763. )
  2764. GO
  2765. -- ----------------------------
  2766. -- Primary Key structure for table ACT_RU_DEADLETTER_JOB
  2767. -- ----------------------------
  2768. ALTER TABLE [dbo].[ACT_RU_DEADLETTER_JOB] ADD CONSTRAINT [PK__ACT_RU_D__C4971C0F30C33EC3] PRIMARY KEY CLUSTERED ([ID_])
  2769. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2770. ON [PRIMARY]
  2771. GO
  2772. -- ----------------------------
  2773. -- Indexes structure for table ACT_RU_ENTITYLINK
  2774. -- ----------------------------
  2775. CREATE NONCLUSTERED INDEX [ACT_IDX_ENT_LNK_SCOPE]
  2776. ON [dbo].[ACT_RU_ENTITYLINK] (
  2777. [SCOPE_ID_] ASC,
  2778. [SCOPE_TYPE_] ASC,
  2779. [LINK_TYPE_] ASC
  2780. )
  2781. GO
  2782. CREATE NONCLUSTERED INDEX [ACT_IDX_ENT_LNK_SCOPE_DEF]
  2783. ON [dbo].[ACT_RU_ENTITYLINK] (
  2784. [SCOPE_DEFINITION_ID_] ASC,
  2785. [SCOPE_TYPE_] ASC,
  2786. [LINK_TYPE_] ASC
  2787. )
  2788. GO
  2789. -- ----------------------------
  2790. -- Primary Key structure for table ACT_RU_ENTITYLINK
  2791. -- ----------------------------
  2792. ALTER TABLE [dbo].[ACT_RU_ENTITYLINK] ADD CONSTRAINT [PK__ACT_RU_E__C4971C0F7D439ABD] PRIMARY KEY CLUSTERED ([ID_])
  2793. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2794. ON [PRIMARY]
  2795. GO
  2796. -- ----------------------------
  2797. -- Indexes structure for table ACT_RU_EVENT_SUBSCR
  2798. -- ----------------------------
  2799. CREATE NONCLUSTERED INDEX [ACT_IDX_EVENT_SUBSCR_CONFIG_]
  2800. ON [dbo].[ACT_RU_EVENT_SUBSCR] (
  2801. [CONFIGURATION_] ASC
  2802. )
  2803. GO
  2804. CREATE NONCLUSTERED INDEX [ACT_IDX_EVENT_SUBSCR_EXEC_ID]
  2805. ON [dbo].[ACT_RU_EVENT_SUBSCR] (
  2806. [EXECUTION_ID_] ASC
  2807. )
  2808. GO
  2809. -- ----------------------------
  2810. -- Primary Key structure for table ACT_RU_EVENT_SUBSCR
  2811. -- ----------------------------
  2812. ALTER TABLE [dbo].[ACT_RU_EVENT_SUBSCR] ADD CONSTRAINT [PK__ACT_RU_E__C4971C0F04E4BC85] PRIMARY KEY CLUSTERED ([ID_])
  2813. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2814. ON [PRIMARY]
  2815. GO
  2816. -- ----------------------------
  2817. -- Indexes structure for table ACT_RU_EXECUTION
  2818. -- ----------------------------
  2819. CREATE NONCLUSTERED INDEX [ACT_IDX_EXEC_BUSKEY]
  2820. ON [dbo].[ACT_RU_EXECUTION] (
  2821. [BUSINESS_KEY_] ASC
  2822. )
  2823. GO
  2824. CREATE NONCLUSTERED INDEX [ACT_IDX_EXEC_ROOT]
  2825. ON [dbo].[ACT_RU_EXECUTION] (
  2826. [ROOT_PROC_INST_ID_] ASC
  2827. )
  2828. GO
  2829. CREATE NONCLUSTERED INDEX [ACT_IDX_EXECUTION_PROC]
  2830. ON [dbo].[ACT_RU_EXECUTION] (
  2831. [PROC_DEF_ID_] ASC
  2832. )
  2833. GO
  2834. CREATE NONCLUSTERED INDEX [ACT_IDX_EXECUTION_PARENT]
  2835. ON [dbo].[ACT_RU_EXECUTION] (
  2836. [PARENT_ID_] ASC
  2837. )
  2838. GO
  2839. CREATE NONCLUSTERED INDEX [ACT_IDX_EXECUTION_SUPER]
  2840. ON [dbo].[ACT_RU_EXECUTION] (
  2841. [SUPER_EXEC_] ASC
  2842. )
  2843. GO
  2844. CREATE NONCLUSTERED INDEX [ACT_IDX_EXECUTION_IDANDREV]
  2845. ON [dbo].[ACT_RU_EXECUTION] (
  2846. [ID_] ASC,
  2847. [REV_] ASC
  2848. )
  2849. GO
  2850. CREATE NONCLUSTERED INDEX [ACT_IDX_EXEC_PROC_INST_ID]
  2851. ON [dbo].[ACT_RU_EXECUTION] (
  2852. [PROC_INST_ID_] ASC
  2853. )
  2854. GO
  2855. -- ----------------------------
  2856. -- Primary Key structure for table ACT_RU_EXECUTION
  2857. -- ----------------------------
  2858. ALTER TABLE [dbo].[ACT_RU_EXECUTION] ADD CONSTRAINT [PK__ACT_RU_E__C4971C0F4B7734FF] PRIMARY KEY CLUSTERED ([ID_])
  2859. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2860. ON [PRIMARY]
  2861. GO
  2862. -- ----------------------------
  2863. -- Primary Key structure for table ACT_RU_HISTORY_JOB
  2864. -- ----------------------------
  2865. ALTER TABLE [dbo].[ACT_RU_HISTORY_JOB] ADD CONSTRAINT [PK__ACT_RU_H__C4971C0F3587F3E0] PRIMARY KEY CLUSTERED ([ID_])
  2866. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2867. ON [PRIMARY]
  2868. GO
  2869. -- ----------------------------
  2870. -- Indexes structure for table ACT_RU_IDENTITYLINK
  2871. -- ----------------------------
  2872. CREATE NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_USER]
  2873. ON [dbo].[ACT_RU_IDENTITYLINK] (
  2874. [USER_ID_] ASC
  2875. )
  2876. GO
  2877. CREATE NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_GROUP]
  2878. ON [dbo].[ACT_RU_IDENTITYLINK] (
  2879. [GROUP_ID_] ASC
  2880. )
  2881. GO
  2882. CREATE NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_SCOPE]
  2883. ON [dbo].[ACT_RU_IDENTITYLINK] (
  2884. [SCOPE_ID_] ASC,
  2885. [SCOPE_TYPE_] ASC
  2886. )
  2887. GO
  2888. CREATE NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_SCOPE_DEF]
  2889. ON [dbo].[ACT_RU_IDENTITYLINK] (
  2890. [SCOPE_DEFINITION_ID_] ASC,
  2891. [SCOPE_TYPE_] ASC
  2892. )
  2893. GO
  2894. CREATE NONCLUSTERED INDEX [ACT_IDX_ATHRZ_PROCEDEF]
  2895. ON [dbo].[ACT_RU_IDENTITYLINK] (
  2896. [PROC_DEF_ID_] ASC
  2897. )
  2898. GO
  2899. CREATE NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_TASK]
  2900. ON [dbo].[ACT_RU_IDENTITYLINK] (
  2901. [TASK_ID_] ASC
  2902. )
  2903. GO
  2904. CREATE NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_PROCINST]
  2905. ON [dbo].[ACT_RU_IDENTITYLINK] (
  2906. [PROC_INST_ID_] ASC
  2907. )
  2908. GO
  2909. -- ----------------------------
  2910. -- Primary Key structure for table ACT_RU_IDENTITYLINK
  2911. -- ----------------------------
  2912. ALTER TABLE [dbo].[ACT_RU_IDENTITYLINK] ADD CONSTRAINT [PK__ACT_RU_I__C4971C0F75A278F5] PRIMARY KEY CLUSTERED ([ID_])
  2913. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2914. ON [PRIMARY]
  2915. GO
  2916. -- ----------------------------
  2917. -- Indexes structure for table ACT_RU_JOB
  2918. -- ----------------------------
  2919. CREATE NONCLUSTERED INDEX [ACT_IDX_JOB_EXCEPTION_STACK_ID]
  2920. ON [dbo].[ACT_RU_JOB] (
  2921. [EXCEPTION_STACK_ID_] ASC
  2922. )
  2923. GO
  2924. CREATE NONCLUSTERED INDEX [ACT_IDX_JOB_CUSTOM_VALUES_ID]
  2925. ON [dbo].[ACT_RU_JOB] (
  2926. [CUSTOM_VALUES_ID_] ASC
  2927. )
  2928. GO
  2929. CREATE NONCLUSTERED INDEX [ACT_IDX_JOB_SCOPE]
  2930. ON [dbo].[ACT_RU_JOB] (
  2931. [SCOPE_ID_] ASC,
  2932. [SCOPE_TYPE_] ASC
  2933. )
  2934. GO
  2935. CREATE NONCLUSTERED INDEX [ACT_IDX_JOB_SUB_SCOPE]
  2936. ON [dbo].[ACT_RU_JOB] (
  2937. [SUB_SCOPE_ID_] ASC,
  2938. [SCOPE_TYPE_] ASC
  2939. )
  2940. GO
  2941. CREATE NONCLUSTERED INDEX [ACT_IDX_JOB_SCOPE_DEF]
  2942. ON [dbo].[ACT_RU_JOB] (
  2943. [SCOPE_DEFINITION_ID_] ASC,
  2944. [SCOPE_TYPE_] ASC
  2945. )
  2946. GO
  2947. CREATE NONCLUSTERED INDEX [ACT_IDX_JOB_EXECUTION_ID]
  2948. ON [dbo].[ACT_RU_JOB] (
  2949. [EXECUTION_ID_] ASC
  2950. )
  2951. GO
  2952. CREATE NONCLUSTERED INDEX [ACT_IDX_JOB_PROCESS_INSTANCE_ID]
  2953. ON [dbo].[ACT_RU_JOB] (
  2954. [PROCESS_INSTANCE_ID_] ASC
  2955. )
  2956. GO
  2957. CREATE NONCLUSTERED INDEX [ACT_IDX_JOB_PROC_DEF_ID]
  2958. ON [dbo].[ACT_RU_JOB] (
  2959. [PROC_DEF_ID_] ASC
  2960. )
  2961. GO
  2962. -- ----------------------------
  2963. -- Primary Key structure for table ACT_RU_JOB
  2964. -- ----------------------------
  2965. ALTER TABLE [dbo].[ACT_RU_JOB] ADD CONSTRAINT [PK__ACT_RU_J__C4971C0F22751F6C] PRIMARY KEY CLUSTERED ([ID_])
  2966. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2967. ON [PRIMARY]
  2968. GO
  2969. -- ----------------------------
  2970. -- Indexes structure for table ACT_RU_SUSPENDED_JOB
  2971. -- ----------------------------
  2972. CREATE NONCLUSTERED INDEX [ACT_IDX_SUSPENDED_JOB_EXCEPTION_STACK_ID]
  2973. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  2974. [EXCEPTION_STACK_ID_] ASC
  2975. )
  2976. GO
  2977. CREATE NONCLUSTERED INDEX [ACT_IDX_SUSPENDED_JOB_CUSTOM_VALUES_ID]
  2978. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  2979. [CUSTOM_VALUES_ID_] ASC
  2980. )
  2981. GO
  2982. CREATE NONCLUSTERED INDEX [ACT_IDX_SJOB_SCOPE]
  2983. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  2984. [SCOPE_ID_] ASC,
  2985. [SCOPE_TYPE_] ASC
  2986. )
  2987. GO
  2988. CREATE NONCLUSTERED INDEX [ACT_IDX_SJOB_SUB_SCOPE]
  2989. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  2990. [SUB_SCOPE_ID_] ASC,
  2991. [SCOPE_TYPE_] ASC
  2992. )
  2993. GO
  2994. CREATE NONCLUSTERED INDEX [ACT_IDX_SJOB_SCOPE_DEF]
  2995. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  2996. [SCOPE_DEFINITION_ID_] ASC,
  2997. [SCOPE_TYPE_] ASC
  2998. )
  2999. GO
  3000. CREATE NONCLUSTERED INDEX [ACT_IDX_SUSPENDED_JOB_EXECUTION_ID]
  3001. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  3002. [EXECUTION_ID_] ASC
  3003. )
  3004. GO
  3005. CREATE NONCLUSTERED INDEX [ACT_IDX_SUSPENDED_JOB_PROCESS_INSTANCE_ID]
  3006. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  3007. [PROCESS_INSTANCE_ID_] ASC
  3008. )
  3009. GO
  3010. CREATE NONCLUSTERED INDEX [ACT_IDX_SUSPENDED_JOB_PROC_DEF_ID]
  3011. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  3012. [PROC_DEF_ID_] ASC
  3013. )
  3014. GO
  3015. -- ----------------------------
  3016. -- Primary Key structure for table ACT_RU_SUSPENDED_JOB
  3017. -- ----------------------------
  3018. ALTER TABLE [dbo].[ACT_RU_SUSPENDED_JOB] ADD CONSTRAINT [PK__ACT_RU_S__C4971C0F2BFE89A6] PRIMARY KEY CLUSTERED ([ID_])
  3019. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3020. ON [PRIMARY]
  3021. GO
  3022. -- ----------------------------
  3023. -- Indexes structure for table ACT_RU_TASK
  3024. -- ----------------------------
  3025. CREATE NONCLUSTERED INDEX [ACT_IDX_TASK_CREATE]
  3026. ON [dbo].[ACT_RU_TASK] (
  3027. [CREATE_TIME_] ASC
  3028. )
  3029. GO
  3030. CREATE NONCLUSTERED INDEX [ACT_IDX_TASK_SCOPE]
  3031. ON [dbo].[ACT_RU_TASK] (
  3032. [SCOPE_ID_] ASC,
  3033. [SCOPE_TYPE_] ASC
  3034. )
  3035. GO
  3036. CREATE NONCLUSTERED INDEX [ACT_IDX_TASK_SUB_SCOPE]
  3037. ON [dbo].[ACT_RU_TASK] (
  3038. [SUB_SCOPE_ID_] ASC,
  3039. [SCOPE_TYPE_] ASC
  3040. )
  3041. GO
  3042. CREATE NONCLUSTERED INDEX [ACT_IDX_TASK_SCOPE_DEF]
  3043. ON [dbo].[ACT_RU_TASK] (
  3044. [SCOPE_DEFINITION_ID_] ASC,
  3045. [SCOPE_TYPE_] ASC
  3046. )
  3047. GO
  3048. CREATE NONCLUSTERED INDEX [ACT_IDX_TASK_EXEC]
  3049. ON [dbo].[ACT_RU_TASK] (
  3050. [EXECUTION_ID_] ASC
  3051. )
  3052. GO
  3053. CREATE NONCLUSTERED INDEX [ACT_IDX_TASK_PROCINST]
  3054. ON [dbo].[ACT_RU_TASK] (
  3055. [PROC_INST_ID_] ASC
  3056. )
  3057. GO
  3058. CREATE NONCLUSTERED INDEX [ACT_IDX_TASK_PROC_DEF_ID]
  3059. ON [dbo].[ACT_RU_TASK] (
  3060. [PROC_DEF_ID_] ASC
  3061. )
  3062. GO
  3063. -- ----------------------------
  3064. -- Primary Key structure for table ACT_RU_TASK
  3065. -- ----------------------------
  3066. ALTER TABLE [dbo].[ACT_RU_TASK] ADD CONSTRAINT [PK__ACT_RU_T__C4971C0F09A971A2] PRIMARY KEY CLUSTERED ([ID_])
  3067. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3068. ON [PRIMARY]
  3069. GO
  3070. -- ----------------------------
  3071. -- Indexes structure for table ACT_RU_TIMER_JOB
  3072. -- ----------------------------
  3073. CREATE NONCLUSTERED INDEX [ACT_IDX_TIMER_JOB_EXCEPTION_STACK_ID]
  3074. ON [dbo].[ACT_RU_TIMER_JOB] (
  3075. [EXCEPTION_STACK_ID_] ASC
  3076. )
  3077. GO
  3078. CREATE NONCLUSTERED INDEX [ACT_IDX_TIMER_JOB_CUSTOM_VALUES_ID]
  3079. ON [dbo].[ACT_RU_TIMER_JOB] (
  3080. [CUSTOM_VALUES_ID_] ASC
  3081. )
  3082. GO
  3083. CREATE NONCLUSTERED INDEX [ACT_IDX_TJOB_SCOPE]
  3084. ON [dbo].[ACT_RU_TIMER_JOB] (
  3085. [SCOPE_ID_] ASC,
  3086. [SCOPE_TYPE_] ASC
  3087. )
  3088. GO
  3089. CREATE NONCLUSTERED INDEX [ACT_IDX_TJOB_SUB_SCOPE]
  3090. ON [dbo].[ACT_RU_TIMER_JOB] (
  3091. [SUB_SCOPE_ID_] ASC,
  3092. [SCOPE_TYPE_] ASC
  3093. )
  3094. GO
  3095. CREATE NONCLUSTERED INDEX [ACT_IDX_TJOB_SCOPE_DEF]
  3096. ON [dbo].[ACT_RU_TIMER_JOB] (
  3097. [SCOPE_DEFINITION_ID_] ASC,
  3098. [SCOPE_TYPE_] ASC
  3099. )
  3100. GO
  3101. CREATE NONCLUSTERED INDEX [ACT_IDX_TIMER_JOB_EXECUTION_ID]
  3102. ON [dbo].[ACT_RU_TIMER_JOB] (
  3103. [EXECUTION_ID_] ASC
  3104. )
  3105. GO
  3106. CREATE NONCLUSTERED INDEX [ACT_IDX_TIMER_JOB_PROCESS_INSTANCE_ID]
  3107. ON [dbo].[ACT_RU_TIMER_JOB] (
  3108. [PROCESS_INSTANCE_ID_] ASC
  3109. )
  3110. GO
  3111. CREATE NONCLUSTERED INDEX [ACT_IDX_TIMER_JOB_PROC_DEF_ID]
  3112. ON [dbo].[ACT_RU_TIMER_JOB] (
  3113. [PROC_DEF_ID_] ASC
  3114. )
  3115. GO
  3116. -- ----------------------------
  3117. -- Primary Key structure for table ACT_RU_TIMER_JOB
  3118. -- ----------------------------
  3119. ALTER TABLE [dbo].[ACT_RU_TIMER_JOB] ADD CONSTRAINT [PK__ACT_RU_T__C4971C0F2739D489] PRIMARY KEY CLUSTERED ([ID_])
  3120. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3121. ON [PRIMARY]
  3122. GO
  3123. -- ----------------------------
  3124. -- Indexes structure for table ACT_RU_VARIABLE
  3125. -- ----------------------------
  3126. CREATE NONCLUSTERED INDEX [ACT_IDX_RU_VAR_SCOPE_ID_TYPE]
  3127. ON [dbo].[ACT_RU_VARIABLE] (
  3128. [SCOPE_ID_] ASC,
  3129. [SCOPE_TYPE_] ASC
  3130. )
  3131. GO
  3132. CREATE NONCLUSTERED INDEX [ACT_IDX_RU_VAR_SUB_ID_TYPE]
  3133. ON [dbo].[ACT_RU_VARIABLE] (
  3134. [SUB_SCOPE_ID_] ASC,
  3135. [SCOPE_TYPE_] ASC
  3136. )
  3137. GO
  3138. CREATE NONCLUSTERED INDEX [ACT_IDX_VARIABLE_BA]
  3139. ON [dbo].[ACT_RU_VARIABLE] (
  3140. [BYTEARRAY_ID_] ASC
  3141. )
  3142. GO
  3143. CREATE NONCLUSTERED INDEX [ACT_IDX_VARIABLE_TASK_ID]
  3144. ON [dbo].[ACT_RU_VARIABLE] (
  3145. [TASK_ID_] ASC
  3146. )
  3147. GO
  3148. CREATE NONCLUSTERED INDEX [ACT_IDX_VARIABLE_EXEC]
  3149. ON [dbo].[ACT_RU_VARIABLE] (
  3150. [EXECUTION_ID_] ASC
  3151. )
  3152. GO
  3153. CREATE NONCLUSTERED INDEX [ACT_IDX_VARIABLE_PROCINST]
  3154. ON [dbo].[ACT_RU_VARIABLE] (
  3155. [PROC_INST_ID_] ASC
  3156. )
  3157. GO
  3158. -- ----------------------------
  3159. -- Primary Key structure for table ACT_RU_VARIABLE
  3160. -- ----------------------------
  3161. ALTER TABLE [dbo].[ACT_RU_VARIABLE] ADD CONSTRAINT [PK__ACT_RU_V__C4971C0F18EBB532] PRIMARY KEY CLUSTERED ([ID_])
  3162. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3163. ON [PRIMARY]
  3164. GO
  3165. -- ----------------------------
  3166. -- Foreign Keys structure for table ACT_APP_APPDEF
  3167. -- ----------------------------
  3168. ALTER TABLE [dbo].[ACT_APP_APPDEF] ADD CONSTRAINT [ACT_FK_APP_DEF_DPLY] FOREIGN KEY ([DEPLOYMENT_ID_]) REFERENCES [dbo].[ACT_APP_DEPLOYMENT] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3169. GO
  3170. -- ----------------------------
  3171. -- Foreign Keys structure for table ACT_APP_DEPLOYMENT_RESOURCE
  3172. -- ----------------------------
  3173. ALTER TABLE [dbo].[ACT_APP_DEPLOYMENT_RESOURCE] ADD CONSTRAINT [ACT_FK_APP_RSRC_DPL] FOREIGN KEY ([DEPLOYMENT_ID_]) REFERENCES [dbo].[ACT_APP_DEPLOYMENT] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3174. GO
  3175. -- ----------------------------
  3176. -- Foreign Keys structure for table ACT_CMMN_CASEDEF
  3177. -- ----------------------------
  3178. ALTER TABLE [dbo].[ACT_CMMN_CASEDEF] ADD CONSTRAINT [ACT_FK_CASE_DEF_DPLY] FOREIGN KEY ([DEPLOYMENT_ID_]) REFERENCES [dbo].[ACT_CMMN_DEPLOYMENT] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3179. GO
  3180. -- ----------------------------
  3181. -- Foreign Keys structure for table ACT_CMMN_DEPLOYMENT_RESOURCE
  3182. -- ----------------------------
  3183. ALTER TABLE [dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE] ADD CONSTRAINT [ACT_FK_CMMN_RSRC_DPL] FOREIGN KEY ([DEPLOYMENT_ID_]) REFERENCES [dbo].[ACT_CMMN_DEPLOYMENT] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3184. GO
  3185. -- ----------------------------
  3186. -- Foreign Keys structure for table ACT_CMMN_RU_CASE_INST
  3187. -- ----------------------------
  3188. ALTER TABLE [dbo].[ACT_CMMN_RU_CASE_INST] ADD CONSTRAINT [ACT_FK_CASE_INST_CASE_DEF] FOREIGN KEY ([CASE_DEF_ID_]) REFERENCES [dbo].[ACT_CMMN_CASEDEF] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3189. GO
  3190. -- ----------------------------
  3191. -- Foreign Keys structure for table ACT_CMMN_RU_MIL_INST
  3192. -- ----------------------------
  3193. ALTER TABLE [dbo].[ACT_CMMN_RU_MIL_INST] ADD CONSTRAINT [ACT_FK_MIL_CASE_DEF] FOREIGN KEY ([CASE_DEF_ID_]) REFERENCES [dbo].[ACT_CMMN_CASEDEF] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3194. GO
  3195. ALTER TABLE [dbo].[ACT_CMMN_RU_MIL_INST] ADD CONSTRAINT [ACT_FK_MIL_CASE_INST] FOREIGN KEY ([CASE_INST_ID_]) REFERENCES [dbo].[ACT_CMMN_RU_CASE_INST] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3196. GO
  3197. -- ----------------------------
  3198. -- Foreign Keys structure for table ACT_CMMN_RU_PLAN_ITEM_INST
  3199. -- ----------------------------
  3200. ALTER TABLE [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] ADD CONSTRAINT [ACT_FK_PLAN_ITEM_CASE_DEF] FOREIGN KEY ([CASE_DEF_ID_]) REFERENCES [dbo].[ACT_CMMN_CASEDEF] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3201. GO
  3202. ALTER TABLE [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] ADD CONSTRAINT [ACT_FK_PLAN_ITEM_CASE_INST] FOREIGN KEY ([CASE_INST_ID_]) REFERENCES [dbo].[ACT_CMMN_RU_CASE_INST] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3203. GO
  3204. -- ----------------------------
  3205. -- Foreign Keys structure for table ACT_CMMN_RU_SENTRY_PART_INST
  3206. -- ----------------------------
  3207. ALTER TABLE [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] ADD CONSTRAINT [ACT_FK_SENTRY_CASE_DEF] FOREIGN KEY ([CASE_DEF_ID_]) REFERENCES [dbo].[ACT_CMMN_CASEDEF] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3208. GO
  3209. ALTER TABLE [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] ADD CONSTRAINT [ACT_FK_SENTRY_CASE_INST] FOREIGN KEY ([CASE_INST_ID_]) REFERENCES [dbo].[ACT_CMMN_RU_CASE_INST] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3210. GO
  3211. ALTER TABLE [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] ADD CONSTRAINT [ACT_FK_SENTRY_PLAN_ITEM] FOREIGN KEY ([PLAN_ITEM_INST_ID_]) REFERENCES [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3212. GO
  3213. -- ----------------------------
  3214. -- Foreign Keys structure for table ACT_DE_MODEL_RELATION
  3215. -- ----------------------------
  3216. ALTER TABLE [dbo].[ACT_DE_MODEL_RELATION] ADD CONSTRAINT [fk_relation_parent] FOREIGN KEY ([parent_model_id]) REFERENCES [dbo].[ACT_DE_MODEL] ([id]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3217. GO
  3218. ALTER TABLE [dbo].[ACT_DE_MODEL_RELATION] ADD CONSTRAINT [fk_relation_child] FOREIGN KEY ([model_id]) REFERENCES [dbo].[ACT_DE_MODEL] ([id]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3219. GO
  3220. -- ----------------------------
  3221. -- Foreign Keys structure for table ACT_GE_BYTEARRAY
  3222. -- ----------------------------
  3223. ALTER TABLE [dbo].[ACT_GE_BYTEARRAY] ADD CONSTRAINT [ACT_FK_BYTEARR_DEPL] FOREIGN KEY ([DEPLOYMENT_ID_]) REFERENCES [dbo].[ACT_RE_DEPLOYMENT] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3224. GO
  3225. -- ----------------------------
  3226. -- Foreign Keys structure for table ACT_ID_MEMBERSHIP
  3227. -- ----------------------------
  3228. ALTER TABLE [dbo].[ACT_ID_MEMBERSHIP] ADD CONSTRAINT [ACT_FK_MEMB_GROUP] FOREIGN KEY ([GROUP_ID_]) REFERENCES [dbo].[ACT_ID_GROUP] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3229. GO
  3230. ALTER TABLE [dbo].[ACT_ID_MEMBERSHIP] ADD CONSTRAINT [ACT_FK_MEMB_USER] FOREIGN KEY ([USER_ID_]) REFERENCES [dbo].[ACT_ID_USER] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3231. GO
  3232. -- ----------------------------
  3233. -- Foreign Keys structure for table ACT_ID_PRIV_MAPPING
  3234. -- ----------------------------
  3235. ALTER TABLE [dbo].[ACT_ID_PRIV_MAPPING] ADD CONSTRAINT [ACT_FK_PRIV_MAPPING] FOREIGN KEY ([PRIV_ID_]) REFERENCES [dbo].[ACT_ID_PRIV] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3236. GO
  3237. -- ----------------------------
  3238. -- Foreign Keys structure for table ACT_PROCDEF_INFO
  3239. -- ----------------------------
  3240. ALTER TABLE [dbo].[ACT_PROCDEF_INFO] ADD CONSTRAINT [ACT_FK_INFO_JSON_BA] FOREIGN KEY ([INFO_JSON_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3241. GO
  3242. ALTER TABLE [dbo].[ACT_PROCDEF_INFO] ADD CONSTRAINT [ACT_FK_INFO_PROCDEF] FOREIGN KEY ([PROC_DEF_ID_]) REFERENCES [dbo].[ACT_RE_PROCDEF] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3243. GO
  3244. -- ----------------------------
  3245. -- Foreign Keys structure for table ACT_RE_MODEL
  3246. -- ----------------------------
  3247. ALTER TABLE [dbo].[ACT_RE_MODEL] ADD CONSTRAINT [ACT_FK_MODEL_SOURCE] FOREIGN KEY ([EDITOR_SOURCE_VALUE_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3248. GO
  3249. ALTER TABLE [dbo].[ACT_RE_MODEL] ADD CONSTRAINT [ACT_FK_MODEL_SOURCE_EXTRA] FOREIGN KEY ([EDITOR_SOURCE_EXTRA_VALUE_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3250. GO
  3251. ALTER TABLE [dbo].[ACT_RE_MODEL] ADD CONSTRAINT [ACT_FK_MODEL_DEPLOYMENT] FOREIGN KEY ([DEPLOYMENT_ID_]) REFERENCES [dbo].[ACT_RE_DEPLOYMENT] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3252. GO
  3253. -- ----------------------------
  3254. -- Foreign Keys structure for table ACT_RU_DEADLETTER_JOB
  3255. -- ----------------------------
  3256. ALTER TABLE [dbo].[ACT_RU_DEADLETTER_JOB] ADD CONSTRAINT [ACT_FK_DEADLETTER_JOB_EXCEPTION] FOREIGN KEY ([EXCEPTION_STACK_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3257. GO
  3258. ALTER TABLE [dbo].[ACT_RU_DEADLETTER_JOB] ADD CONSTRAINT [ACT_FK_DEADLETTER_JOB_CUSTOM_VALUES] FOREIGN KEY ([CUSTOM_VALUES_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3259. GO
  3260. ALTER TABLE [dbo].[ACT_RU_DEADLETTER_JOB] ADD CONSTRAINT [ACT_FK_DEADLETTER_JOB_EXECUTION] FOREIGN KEY ([EXECUTION_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3261. GO
  3262. ALTER TABLE [dbo].[ACT_RU_DEADLETTER_JOB] ADD CONSTRAINT [ACT_FK_DEADLETTER_JOB_PROCESS_INSTANCE] FOREIGN KEY ([PROCESS_INSTANCE_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3263. GO
  3264. ALTER TABLE [dbo].[ACT_RU_DEADLETTER_JOB] ADD CONSTRAINT [ACT_FK_DEADLETTER_JOB_PROC_DEF] FOREIGN KEY ([PROC_DEF_ID_]) REFERENCES [dbo].[ACT_RE_PROCDEF] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3265. GO
  3266. -- ----------------------------
  3267. -- Foreign Keys structure for table ACT_RU_EVENT_SUBSCR
  3268. -- ----------------------------
  3269. ALTER TABLE [dbo].[ACT_RU_EVENT_SUBSCR] ADD CONSTRAINT [ACT_FK_EVENT_EXEC] FOREIGN KEY ([EXECUTION_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3270. GO
  3271. -- ----------------------------
  3272. -- Foreign Keys structure for table ACT_RU_EXECUTION
  3273. -- ----------------------------
  3274. ALTER TABLE [dbo].[ACT_RU_EXECUTION] ADD CONSTRAINT [ACT_FK_EXE_PARENT] FOREIGN KEY ([PARENT_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3275. GO
  3276. ALTER TABLE [dbo].[ACT_RU_EXECUTION] ADD CONSTRAINT [ACT_FK_EXE_SUPER] FOREIGN KEY ([SUPER_EXEC_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3277. GO
  3278. ALTER TABLE [dbo].[ACT_RU_EXECUTION] ADD CONSTRAINT [ACT_FK_EXE_PROCDEF] FOREIGN KEY ([PROC_DEF_ID_]) REFERENCES [dbo].[ACT_RE_PROCDEF] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3279. GO
  3280. -- ----------------------------
  3281. -- Foreign Keys structure for table ACT_RU_IDENTITYLINK
  3282. -- ----------------------------
  3283. ALTER TABLE [dbo].[ACT_RU_IDENTITYLINK] ADD CONSTRAINT [ACT_FK_TSKASS_TASK] FOREIGN KEY ([TASK_ID_]) REFERENCES [dbo].[ACT_RU_TASK] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3284. GO
  3285. ALTER TABLE [dbo].[ACT_RU_IDENTITYLINK] ADD CONSTRAINT [ACT_FK_ATHRZ_PROCEDEF] FOREIGN KEY ([PROC_DEF_ID_]) REFERENCES [dbo].[ACT_RE_PROCDEF] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3286. GO
  3287. ALTER TABLE [dbo].[ACT_RU_IDENTITYLINK] ADD CONSTRAINT [ACT_FK_IDL_PROCINST] FOREIGN KEY ([PROC_INST_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3288. GO
  3289. -- ----------------------------
  3290. -- Foreign Keys structure for table ACT_RU_JOB
  3291. -- ----------------------------
  3292. ALTER TABLE [dbo].[ACT_RU_JOB] ADD CONSTRAINT [ACT_FK_JOB_EXCEPTION] FOREIGN KEY ([EXCEPTION_STACK_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3293. GO
  3294. ALTER TABLE [dbo].[ACT_RU_JOB] ADD CONSTRAINT [ACT_FK_JOB_CUSTOM_VALUES] FOREIGN KEY ([CUSTOM_VALUES_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3295. GO
  3296. ALTER TABLE [dbo].[ACT_RU_JOB] ADD CONSTRAINT [ACT_FK_JOB_EXECUTION] FOREIGN KEY ([EXECUTION_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3297. GO
  3298. ALTER TABLE [dbo].[ACT_RU_JOB] ADD CONSTRAINT [ACT_FK_JOB_PROCESS_INSTANCE] FOREIGN KEY ([PROCESS_INSTANCE_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3299. GO
  3300. ALTER TABLE [dbo].[ACT_RU_JOB] ADD CONSTRAINT [ACT_FK_JOB_PROC_DEF] FOREIGN KEY ([PROC_DEF_ID_]) REFERENCES [dbo].[ACT_RE_PROCDEF] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3301. GO
  3302. -- ----------------------------
  3303. -- Foreign Keys structure for table ACT_RU_SUSPENDED_JOB
  3304. -- ----------------------------
  3305. ALTER TABLE [dbo].[ACT_RU_SUSPENDED_JOB] ADD CONSTRAINT [ACT_FK_SUSPENDED_JOB_EXCEPTION] FOREIGN KEY ([EXCEPTION_STACK_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3306. GO
  3307. ALTER TABLE [dbo].[ACT_RU_SUSPENDED_JOB] ADD CONSTRAINT [ACT_FK_SUSPENDED_JOB_CUSTOM_VALUES] FOREIGN KEY ([CUSTOM_VALUES_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3308. GO
  3309. ALTER TABLE [dbo].[ACT_RU_SUSPENDED_JOB] ADD CONSTRAINT [ACT_FK_SUSPENDED_JOB_EXECUTION] FOREIGN KEY ([EXECUTION_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3310. GO
  3311. ALTER TABLE [dbo].[ACT_RU_SUSPENDED_JOB] ADD CONSTRAINT [ACT_FK_SUSPENDED_JOB_PROCESS_INSTANCE] FOREIGN KEY ([PROCESS_INSTANCE_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3312. GO
  3313. ALTER TABLE [dbo].[ACT_RU_SUSPENDED_JOB] ADD CONSTRAINT [ACT_FK_SUSPENDED_JOB_PROC_DEF] FOREIGN KEY ([PROC_DEF_ID_]) REFERENCES [dbo].[ACT_RE_PROCDEF] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3314. GO
  3315. -- ----------------------------
  3316. -- Foreign Keys structure for table ACT_RU_TASK
  3317. -- ----------------------------
  3318. ALTER TABLE [dbo].[ACT_RU_TASK] ADD CONSTRAINT [ACT_FK_TASK_EXE] FOREIGN KEY ([EXECUTION_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3319. GO
  3320. ALTER TABLE [dbo].[ACT_RU_TASK] ADD CONSTRAINT [ACT_FK_TASK_PROCINST] FOREIGN KEY ([PROC_INST_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3321. GO
  3322. ALTER TABLE [dbo].[ACT_RU_TASK] ADD CONSTRAINT [ACT_FK_TASK_PROCDEF] FOREIGN KEY ([PROC_DEF_ID_]) REFERENCES [dbo].[ACT_RE_PROCDEF] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3323. GO
  3324. -- ----------------------------
  3325. -- Foreign Keys structure for table ACT_RU_TIMER_JOB
  3326. -- ----------------------------
  3327. ALTER TABLE [dbo].[ACT_RU_TIMER_JOB] ADD CONSTRAINT [ACT_FK_TIMER_JOB_EXCEPTION] FOREIGN KEY ([EXCEPTION_STACK_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3328. GO
  3329. ALTER TABLE [dbo].[ACT_RU_TIMER_JOB] ADD CONSTRAINT [ACT_FK_TIMER_JOB_CUSTOM_VALUES] FOREIGN KEY ([CUSTOM_VALUES_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3330. GO
  3331. ALTER TABLE [dbo].[ACT_RU_TIMER_JOB] ADD CONSTRAINT [ACT_FK_TIMER_JOB_EXECUTION] FOREIGN KEY ([EXECUTION_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3332. GO
  3333. ALTER TABLE [dbo].[ACT_RU_TIMER_JOB] ADD CONSTRAINT [ACT_FK_TIMER_JOB_PROCESS_INSTANCE] FOREIGN KEY ([PROCESS_INSTANCE_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3334. GO
  3335. ALTER TABLE [dbo].[ACT_RU_TIMER_JOB] ADD CONSTRAINT [ACT_FK_TIMER_JOB_PROC_DEF] FOREIGN KEY ([PROC_DEF_ID_]) REFERENCES [dbo].[ACT_RE_PROCDEF] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3336. GO
  3337. -- ----------------------------
  3338. -- Foreign Keys structure for table ACT_RU_VARIABLE
  3339. -- ----------------------------
  3340. ALTER TABLE [dbo].[ACT_RU_VARIABLE] ADD CONSTRAINT [ACT_FK_VAR_BYTEARRAY] FOREIGN KEY ([BYTEARRAY_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3341. GO
  3342. ALTER TABLE [dbo].[ACT_RU_VARIABLE] ADD CONSTRAINT [ACT_FK_VAR_EXE] FOREIGN KEY ([EXECUTION_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3343. GO
  3344. ALTER TABLE [dbo].[ACT_RU_VARIABLE] ADD CONSTRAINT [ACT_FK_VAR_PROCINST] FOREIGN KEY ([PROC_INST_ID_]) REFERENCES [dbo].[ACT_RU_EXECUTION] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  3345. GO