bladex-flowable-sqlserver.sql 146 KB

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