flowable.sqlserver.all.create.sql 191 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : sqlserver_localhost
  4. Source Server Type : SQL Server
  5. Source Server Version : 15004355 (15.00.4355)
  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 : 15004355 (15.00.4355)
  11. File Encoding : 65001
  12. Date: 14/03/2024 23:56:25
  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 SQL_Latin1_General_CP1_CI_AS NOT NULL,
  22. [REV_] int NOT NULL,
  23. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  24. [KEY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  25. [VERSION_] int NOT NULL,
  26. [CATEGORY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  27. [DEPLOYMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  28. [RESOURCE_NAME_] varchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  29. [DESCRIPTION_] varchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  30. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL
  31. )
  32. GO
  33. ALTER TABLE [dbo].[ACT_APP_APPDEF] SET (LOCK_ESCALATION = TABLE)
  34. GO
  35. -- ----------------------------
  36. -- Records of ACT_APP_APPDEF
  37. -- ----------------------------
  38. BEGIN TRANSACTION
  39. GO
  40. COMMIT
  41. GO
  42. -- ----------------------------
  43. -- Table structure for ACT_APP_DATABASECHANGELOG
  44. -- ----------------------------
  45. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_APP_DATABASECHANGELOG]') AND type IN ('U'))
  46. DROP TABLE [dbo].[ACT_APP_DATABASECHANGELOG]
  47. GO
  48. CREATE TABLE [dbo].[ACT_APP_DATABASECHANGELOG] (
  49. [ID] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  50. [AUTHOR] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  51. [FILENAME] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  52. [DATEEXECUTED] datetime2(3) NOT NULL,
  53. [ORDEREXECUTED] int NOT NULL,
  54. [EXECTYPE] nvarchar(10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  55. [MD5SUM] nvarchar(35) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  56. [DESCRIPTION] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  57. [COMMENTS] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  58. [TAG] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  59. [LIQUIBASE] nvarchar(20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  60. [CONTEXTS] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  61. [LABELS] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  62. [DEPLOYMENT_ID] nvarchar(10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  63. )
  64. GO
  65. ALTER TABLE [dbo].[ACT_APP_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  66. GO
  67. -- ----------------------------
  68. -- Records of ACT_APP_DATABASECHANGELOG
  69. -- ----------------------------
  70. BEGIN TRANSACTION
  71. GO
  72. INSERT INTO [dbo].[ACT_APP_DATABASECHANGELOG] ([ID], [AUTHOR], [FILENAME], [DATEEXECUTED], [ORDEREXECUTED], [EXECTYPE], [MD5SUM], [DESCRIPTION], [COMMENTS], [TAG], [LIQUIBASE], [CONTEXTS], [LABELS], [DEPLOYMENT_ID]) VALUES (N'1', N'flowable', N'org/flowable/app/db/liquibase/flowable-app-db-changelog.xml', N'2024-03-14 15:52:53.623', N'1', N'EXECUTED', N'9:959783069c0c7ce80320a0617aa48969', 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'4.3.5', NULL, NULL, N'1644004287'), (N'3', N'flowable', N'org/flowable/app/db/liquibase/flowable-app-db-changelog.xml', N'2024-03-14 15:52:53.627', N'2', N'EXECUTED', N'9:c05b79a3b00e95136533085718361208', N'createIndex indexName=ACT_IDX_APP_DEF_UNIQ, tableName=ACT_APP_APPDEF', N'', NULL, N'4.3.5', NULL, NULL, N'1644004287')
  73. GO
  74. COMMIT
  75. GO
  76. -- ----------------------------
  77. -- Table structure for ACT_APP_DATABASECHANGELOGLOCK
  78. -- ----------------------------
  79. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_APP_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  80. DROP TABLE [dbo].[ACT_APP_DATABASECHANGELOGLOCK]
  81. GO
  82. CREATE TABLE [dbo].[ACT_APP_DATABASECHANGELOGLOCK] (
  83. [ID] int NOT NULL,
  84. [LOCKED] bit NOT NULL,
  85. [LOCKGRANTED] datetime2(3) NULL,
  86. [LOCKEDBY] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  87. )
  88. GO
  89. ALTER TABLE [dbo].[ACT_APP_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  90. GO
  91. -- ----------------------------
  92. -- Records of ACT_APP_DATABASECHANGELOGLOCK
  93. -- ----------------------------
  94. BEGIN TRANSACTION
  95. GO
  96. INSERT INTO [dbo].[ACT_APP_DATABASECHANGELOGLOCK] ([ID], [LOCKED], [LOCKGRANTED], [LOCKEDBY]) VALUES (N'1', N'0', NULL, NULL)
  97. GO
  98. COMMIT
  99. GO
  100. -- ----------------------------
  101. -- Table structure for ACT_APP_DEPLOYMENT
  102. -- ----------------------------
  103. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_APP_DEPLOYMENT]') AND type IN ('U'))
  104. DROP TABLE [dbo].[ACT_APP_DEPLOYMENT]
  105. GO
  106. CREATE TABLE [dbo].[ACT_APP_DEPLOYMENT] (
  107. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  108. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  109. [CATEGORY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  110. [KEY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  111. [DEPLOY_TIME_] datetime NULL,
  112. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL
  113. )
  114. GO
  115. ALTER TABLE [dbo].[ACT_APP_DEPLOYMENT] SET (LOCK_ESCALATION = TABLE)
  116. GO
  117. -- ----------------------------
  118. -- Records of ACT_APP_DEPLOYMENT
  119. -- ----------------------------
  120. BEGIN TRANSACTION
  121. GO
  122. COMMIT
  123. GO
  124. -- ----------------------------
  125. -- Table structure for ACT_APP_DEPLOYMENT_RESOURCE
  126. -- ----------------------------
  127. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_APP_DEPLOYMENT_RESOURCE]') AND type IN ('U'))
  128. DROP TABLE [dbo].[ACT_APP_DEPLOYMENT_RESOURCE]
  129. GO
  130. CREATE TABLE [dbo].[ACT_APP_DEPLOYMENT_RESOURCE] (
  131. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  132. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  133. [DEPLOYMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  134. [RESOURCE_BYTES_] varbinary(max) NULL
  135. )
  136. GO
  137. ALTER TABLE [dbo].[ACT_APP_DEPLOYMENT_RESOURCE] SET (LOCK_ESCALATION = TABLE)
  138. GO
  139. -- ----------------------------
  140. -- Records of ACT_APP_DEPLOYMENT_RESOURCE
  141. -- ----------------------------
  142. BEGIN TRANSACTION
  143. GO
  144. COMMIT
  145. GO
  146. -- ----------------------------
  147. -- Table structure for ACT_CMMN_CASEDEF
  148. -- ----------------------------
  149. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_CASEDEF]') AND type IN ('U'))
  150. DROP TABLE [dbo].[ACT_CMMN_CASEDEF]
  151. GO
  152. CREATE TABLE [dbo].[ACT_CMMN_CASEDEF] (
  153. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  154. [REV_] int NOT NULL,
  155. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  156. [KEY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  157. [VERSION_] int NOT NULL,
  158. [CATEGORY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  159. [DEPLOYMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  160. [RESOURCE_NAME_] varchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  161. [DESCRIPTION_] varchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  162. [HAS_GRAPHICAL_NOTATION_] bit NULL,
  163. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL,
  164. [DGRM_RESOURCE_NAME_] varchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  165. [HAS_START_FORM_KEY_] bit NULL
  166. )
  167. GO
  168. ALTER TABLE [dbo].[ACT_CMMN_CASEDEF] SET (LOCK_ESCALATION = TABLE)
  169. GO
  170. -- ----------------------------
  171. -- Records of ACT_CMMN_CASEDEF
  172. -- ----------------------------
  173. BEGIN TRANSACTION
  174. GO
  175. COMMIT
  176. GO
  177. -- ----------------------------
  178. -- Table structure for ACT_CMMN_DATABASECHANGELOG
  179. -- ----------------------------
  180. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_DATABASECHANGELOG]') AND type IN ('U'))
  181. DROP TABLE [dbo].[ACT_CMMN_DATABASECHANGELOG]
  182. GO
  183. CREATE TABLE [dbo].[ACT_CMMN_DATABASECHANGELOG] (
  184. [ID] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  185. [AUTHOR] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  186. [FILENAME] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  187. [DATEEXECUTED] datetime2(3) NOT NULL,
  188. [ORDEREXECUTED] int NOT NULL,
  189. [EXECTYPE] nvarchar(10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  190. [MD5SUM] nvarchar(35) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  191. [DESCRIPTION] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  192. [COMMENTS] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  193. [TAG] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  194. [LIQUIBASE] nvarchar(20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  195. [CONTEXTS] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  196. [LABELS] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  197. [DEPLOYMENT_ID] nvarchar(10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  198. )
  199. GO
  200. ALTER TABLE [dbo].[ACT_CMMN_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  201. GO
  202. -- ----------------------------
  203. -- Records of ACT_CMMN_DATABASECHANGELOG
  204. -- ----------------------------
  205. BEGIN TRANSACTION
  206. GO
  207. INSERT INTO [dbo].[ACT_CMMN_DATABASECHANGELOG] ([ID], [AUTHOR], [FILENAME], [DATEEXECUTED], [ORDEREXECUTED], [EXECTYPE], [MD5SUM], [DESCRIPTION], [COMMENTS], [TAG], [LIQUIBASE], [CONTEXTS], [LABELS], [DEPLOYMENT_ID]) VALUES (N'1', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2024-03-14 15:52:53.693', N'1', N'EXECUTED', N'9:d0cc0aaadf0e4ef70c5b412cd05fadc4', 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'4.3.5', NULL, NULL, N'1644004724'), (N'2', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2024-03-14 15:52:53.707', N'2', N'EXECUTED', N'9:8095a5a8a222a100c2d0310cacbda5e7', 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'4.3.5', NULL, NULL, N'1644004724'), (N'3', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2024-03-14 15:52:53.717', N'3', N'EXECUTED', N'9:f031b4f0ae67bc5a640736b379049b12', 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'4.3.5', NULL, NULL, N'1644004724'), (N'4', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2024-03-14 15:52:53.727', N'4', N'EXECUTED', N'9:c484ecfb08719feccac2f80fc962dda9', 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'4.3.5', NULL, NULL, N'1644004724'), (N'6', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2024-03-14 15:52:53.727', N'5', N'EXECUTED', N'9:7343ab247d959e5add9278b5386de833', N'createIndex indexName=ACT_IDX_CASE_DEF_UNIQ, tableName=ACT_CMMN_CASEDEF', N'', NULL, N'4.3.5', NULL, NULL, N'1644004724'), (N'7', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2024-03-14 15:52:53.830', N'6', N'EXECUTED', N'9:d73200db684b6cdb748cc03570d5d2e9', 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'4.3.5', NULL, NULL, N'1644004724'), (N'8', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2024-03-14 15:52:53.830', N'7', N'EXECUTED', N'9:eda5e43816221f2d8554bfcc90f1c37e', N'addColumn tableName=ACT_CMMN_HI_PLAN_ITEM_INST', N'', NULL, N'4.3.5', NULL, NULL, N'1644004724'), (N'9', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2024-03-14 15:52:53.837', N'8', N'EXECUTED', N'9:c34685611779075a73caf8c380f078ea', N'addColumn tableName=ACT_CMMN_RU_PLAN_ITEM_INST; addColumn tableName=ACT_CMMN_HI_PLAN_ITEM_INST', N'', NULL, N'4.3.5', NULL, NULL, N'1644004724'), (N'10', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2024-03-14 15:52:53.847', N'9', N'EXECUTED', N'9:368e9472ad2348206205170d6c52d58e', N'addColumn tableName=ACT_CMMN_RU_CASE_INST; addColumn tableName=ACT_CMMN_RU_CASE_INST; createIndex indexName=ACT_IDX_CASE_INST_REF_ID_, tableName=ACT_CMMN_RU_CASE_INST; addColumn tableName=ACT_CMMN_HI_CASE_INST; addColumn tableName=ACT_CMMN_HI_CASE...', N'', NULL, N'4.3.5', NULL, NULL, N'1644004724'), (N'11', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2024-03-14 15:52:53.850', N'10', N'EXECUTED', N'9:e54b50ceb2bcd5355ae4dfb56d9ff3ad', N'addColumn tableName=ACT_CMMN_RU_PLAN_ITEM_INST; addColumn tableName=ACT_CMMN_HI_PLAN_ITEM_INST', N'', NULL, N'4.3.5', NULL, NULL, N'1644004724'), (N'12', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2024-03-14 15:52:53.853', N'11', N'EXECUTED', N'9:f53f262768d04e74529f43fcd93429b0', N'addColumn tableName=ACT_CMMN_RU_CASE_INST', N'', NULL, N'4.3.5', NULL, NULL, N'1644004724'), (N'13', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2024-03-14 15:52:53.857', N'12', N'EXECUTED', N'9:64e7eafbe97997094654e83caea99895', N'addColumn tableName=ACT_CMMN_RU_PLAN_ITEM_INST; addColumn tableName=ACT_CMMN_HI_PLAN_ITEM_INST', N'', NULL, N'4.3.5', NULL, NULL, N'1644004724'), (N'14', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2024-03-14 15:52:53.867', N'13', N'EXECUTED', N'9:ab7d934abde497eac034701542e0a281', N'addColumn tableName=ACT_CMMN_RU_CASE_INST; addColumn tableName=ACT_CMMN_HI_CASE_INST', N'', NULL, N'4.3.5', NULL, NULL, N'1644004724'), (N'16', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2024-03-14 15:52:53.870', N'14', N'EXECUTED', N'9:03928d422e510959770e7a9daa5a993f', N'addColumn tableName=ACT_CMMN_RU_CASE_INST; addColumn tableName=ACT_CMMN_HI_CASE_INST', N'', NULL, N'4.3.5', NULL, NULL, N'1644004724'), (N'17', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2024-03-14 15:52:53.873', N'15', N'EXECUTED', N'9:f30304cf001d6eac78c793ea88cd5781', N'createIndex indexName=ACT_IDX_HI_CASE_INST_END, tableName=ACT_CMMN_HI_CASE_INST', N'', NULL, N'4.3.5', NULL, NULL, N'1644004724'), (N'18', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2024-03-14 15:54:50.283', N'16', N'EXECUTED', N'9:d782865087d6c0c3dc033ac20e783008', N'createIndex indexName=ACT_IDX_HI_PLAN_ITEM_INST_CASE, tableName=ACT_CMMN_HI_PLAN_ITEM_INST', N'', NULL, N'4.24.0', NULL, NULL, N'0431690008')
  208. GO
  209. COMMIT
  210. GO
  211. -- ----------------------------
  212. -- Table structure for ACT_CMMN_DATABASECHANGELOGLOCK
  213. -- ----------------------------
  214. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  215. DROP TABLE [dbo].[ACT_CMMN_DATABASECHANGELOGLOCK]
  216. GO
  217. CREATE TABLE [dbo].[ACT_CMMN_DATABASECHANGELOGLOCK] (
  218. [ID] int NOT NULL,
  219. [LOCKED] bit NOT NULL,
  220. [LOCKGRANTED] datetime2(3) NULL,
  221. [LOCKEDBY] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  222. )
  223. GO
  224. ALTER TABLE [dbo].[ACT_CMMN_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  225. GO
  226. -- ----------------------------
  227. -- Records of ACT_CMMN_DATABASECHANGELOGLOCK
  228. -- ----------------------------
  229. BEGIN TRANSACTION
  230. GO
  231. INSERT INTO [dbo].[ACT_CMMN_DATABASECHANGELOGLOCK] ([ID], [LOCKED], [LOCKGRANTED], [LOCKEDBY]) VALUES (N'1', N'0', NULL, NULL)
  232. GO
  233. COMMIT
  234. GO
  235. -- ----------------------------
  236. -- Table structure for ACT_CMMN_DEPLOYMENT
  237. -- ----------------------------
  238. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_DEPLOYMENT]') AND type IN ('U'))
  239. DROP TABLE [dbo].[ACT_CMMN_DEPLOYMENT]
  240. GO
  241. CREATE TABLE [dbo].[ACT_CMMN_DEPLOYMENT] (
  242. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  243. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  244. [CATEGORY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  245. [KEY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  246. [DEPLOY_TIME_] datetime NULL,
  247. [PARENT_DEPLOYMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  248. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL
  249. )
  250. GO
  251. ALTER TABLE [dbo].[ACT_CMMN_DEPLOYMENT] SET (LOCK_ESCALATION = TABLE)
  252. GO
  253. -- ----------------------------
  254. -- Records of ACT_CMMN_DEPLOYMENT
  255. -- ----------------------------
  256. BEGIN TRANSACTION
  257. GO
  258. COMMIT
  259. GO
  260. -- ----------------------------
  261. -- Table structure for ACT_CMMN_DEPLOYMENT_RESOURCE
  262. -- ----------------------------
  263. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE]') AND type IN ('U'))
  264. DROP TABLE [dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE]
  265. GO
  266. CREATE TABLE [dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE] (
  267. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  268. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  269. [DEPLOYMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  270. [RESOURCE_BYTES_] varbinary(max) NULL,
  271. [GENERATED_] bit NULL
  272. )
  273. GO
  274. ALTER TABLE [dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE] SET (LOCK_ESCALATION = TABLE)
  275. GO
  276. -- ----------------------------
  277. -- Records of ACT_CMMN_DEPLOYMENT_RESOURCE
  278. -- ----------------------------
  279. BEGIN TRANSACTION
  280. GO
  281. COMMIT
  282. GO
  283. -- ----------------------------
  284. -- Table structure for ACT_CMMN_HI_CASE_INST
  285. -- ----------------------------
  286. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_HI_CASE_INST]') AND type IN ('U'))
  287. DROP TABLE [dbo].[ACT_CMMN_HI_CASE_INST]
  288. GO
  289. CREATE TABLE [dbo].[ACT_CMMN_HI_CASE_INST] (
  290. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  291. [REV_] int NOT NULL,
  292. [BUSINESS_KEY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  293. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  294. [PARENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  295. [CASE_DEF_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  296. [STATE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  297. [START_TIME_] datetime NULL,
  298. [END_TIME_] datetime NULL,
  299. [START_USER_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  300. [CALLBACK_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  301. [CALLBACK_TYPE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  302. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL,
  303. [REFERENCE_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  304. [REFERENCE_TYPE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  305. [LAST_REACTIVATION_TIME_] datetime NULL,
  306. [LAST_REACTIVATION_USER_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  307. [BUSINESS_STATUS_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  308. )
  309. GO
  310. ALTER TABLE [dbo].[ACT_CMMN_HI_CASE_INST] SET (LOCK_ESCALATION = TABLE)
  311. GO
  312. -- ----------------------------
  313. -- Records of ACT_CMMN_HI_CASE_INST
  314. -- ----------------------------
  315. BEGIN TRANSACTION
  316. GO
  317. COMMIT
  318. GO
  319. -- ----------------------------
  320. -- Table structure for ACT_CMMN_HI_MIL_INST
  321. -- ----------------------------
  322. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_HI_MIL_INST]') AND type IN ('U'))
  323. DROP TABLE [dbo].[ACT_CMMN_HI_MIL_INST]
  324. GO
  325. CREATE TABLE [dbo].[ACT_CMMN_HI_MIL_INST] (
  326. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  327. [REV_] int NOT NULL,
  328. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  329. [TIME_STAMP_] datetime NOT NULL,
  330. [CASE_INST_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  331. [CASE_DEF_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  332. [ELEMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  333. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL
  334. )
  335. GO
  336. ALTER TABLE [dbo].[ACT_CMMN_HI_MIL_INST] SET (LOCK_ESCALATION = TABLE)
  337. GO
  338. -- ----------------------------
  339. -- Records of ACT_CMMN_HI_MIL_INST
  340. -- ----------------------------
  341. BEGIN TRANSACTION
  342. GO
  343. COMMIT
  344. GO
  345. -- ----------------------------
  346. -- Table structure for ACT_CMMN_HI_PLAN_ITEM_INST
  347. -- ----------------------------
  348. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_HI_PLAN_ITEM_INST]') AND type IN ('U'))
  349. DROP TABLE [dbo].[ACT_CMMN_HI_PLAN_ITEM_INST]
  350. GO
  351. CREATE TABLE [dbo].[ACT_CMMN_HI_PLAN_ITEM_INST] (
  352. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  353. [REV_] int NOT NULL,
  354. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  355. [STATE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  356. [CASE_DEF_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  357. [CASE_INST_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  358. [STAGE_INST_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  359. [IS_STAGE_] bit NULL,
  360. [ELEMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  361. [ITEM_DEFINITION_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  362. [ITEM_DEFINITION_TYPE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  363. [CREATE_TIME_] datetime NULL,
  364. [LAST_AVAILABLE_TIME_] datetime NULL,
  365. [LAST_ENABLED_TIME_] datetime NULL,
  366. [LAST_DISABLED_TIME_] datetime NULL,
  367. [LAST_STARTED_TIME_] datetime NULL,
  368. [LAST_SUSPENDED_TIME_] datetime NULL,
  369. [COMPLETED_TIME_] datetime NULL,
  370. [OCCURRED_TIME_] datetime NULL,
  371. [TERMINATED_TIME_] datetime NULL,
  372. [EXIT_TIME_] datetime NULL,
  373. [ENDED_TIME_] datetime NULL,
  374. [LAST_UPDATED_TIME_] datetime NULL,
  375. [START_USER_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  376. [REFERENCE_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  377. [REFERENCE_TYPE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  378. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL,
  379. [ENTRY_CRITERION_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  380. [EXIT_CRITERION_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  381. [SHOW_IN_OVERVIEW_] bit NULL,
  382. [EXTRA_VALUE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  383. [DERIVED_CASE_DEF_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  384. [LAST_UNAVAILABLE_TIME_] datetime NULL
  385. )
  386. GO
  387. ALTER TABLE [dbo].[ACT_CMMN_HI_PLAN_ITEM_INST] SET (LOCK_ESCALATION = TABLE)
  388. GO
  389. -- ----------------------------
  390. -- Records of ACT_CMMN_HI_PLAN_ITEM_INST
  391. -- ----------------------------
  392. BEGIN TRANSACTION
  393. GO
  394. COMMIT
  395. GO
  396. -- ----------------------------
  397. -- Table structure for ACT_CMMN_RU_CASE_INST
  398. -- ----------------------------
  399. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_RU_CASE_INST]') AND type IN ('U'))
  400. DROP TABLE [dbo].[ACT_CMMN_RU_CASE_INST]
  401. GO
  402. CREATE TABLE [dbo].[ACT_CMMN_RU_CASE_INST] (
  403. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  404. [REV_] int NOT NULL,
  405. [BUSINESS_KEY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  406. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  407. [PARENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  408. [CASE_DEF_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  409. [STATE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  410. [START_TIME_] datetime NULL,
  411. [START_USER_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  412. [CALLBACK_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  413. [CALLBACK_TYPE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  414. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL,
  415. [LOCK_TIME_] datetime NULL,
  416. [IS_COMPLETEABLE_] bit NULL,
  417. [REFERENCE_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  418. [REFERENCE_TYPE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  419. [LOCK_OWNER_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  420. [LAST_REACTIVATION_TIME_] datetime NULL,
  421. [LAST_REACTIVATION_USER_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  422. [BUSINESS_STATUS_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  423. )
  424. GO
  425. ALTER TABLE [dbo].[ACT_CMMN_RU_CASE_INST] SET (LOCK_ESCALATION = TABLE)
  426. GO
  427. -- ----------------------------
  428. -- Records of ACT_CMMN_RU_CASE_INST
  429. -- ----------------------------
  430. BEGIN TRANSACTION
  431. GO
  432. COMMIT
  433. GO
  434. -- ----------------------------
  435. -- Table structure for ACT_CMMN_RU_MIL_INST
  436. -- ----------------------------
  437. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_RU_MIL_INST]') AND type IN ('U'))
  438. DROP TABLE [dbo].[ACT_CMMN_RU_MIL_INST]
  439. GO
  440. CREATE TABLE [dbo].[ACT_CMMN_RU_MIL_INST] (
  441. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  442. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  443. [TIME_STAMP_] datetime NOT NULL,
  444. [CASE_INST_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  445. [CASE_DEF_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  446. [ELEMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  447. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL
  448. )
  449. GO
  450. ALTER TABLE [dbo].[ACT_CMMN_RU_MIL_INST] SET (LOCK_ESCALATION = TABLE)
  451. GO
  452. -- ----------------------------
  453. -- Records of ACT_CMMN_RU_MIL_INST
  454. -- ----------------------------
  455. BEGIN TRANSACTION
  456. GO
  457. COMMIT
  458. GO
  459. -- ----------------------------
  460. -- Table structure for ACT_CMMN_RU_PLAN_ITEM_INST
  461. -- ----------------------------
  462. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_RU_PLAN_ITEM_INST]') AND type IN ('U'))
  463. DROP TABLE [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST]
  464. GO
  465. CREATE TABLE [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] (
  466. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  467. [REV_] int NOT NULL,
  468. [CASE_DEF_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  469. [CASE_INST_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  470. [STAGE_INST_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  471. [IS_STAGE_] bit NULL,
  472. [ELEMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  473. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  474. [STATE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  475. [CREATE_TIME_] datetime NULL,
  476. [START_USER_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  477. [REFERENCE_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  478. [REFERENCE_TYPE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  479. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL,
  480. [ITEM_DEFINITION_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  481. [ITEM_DEFINITION_TYPE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  482. [IS_COMPLETEABLE_] bit NULL,
  483. [IS_COUNT_ENABLED_] bit NULL,
  484. [VAR_COUNT_] int NULL,
  485. [SENTRY_PART_INST_COUNT_] int NULL,
  486. [LAST_AVAILABLE_TIME_] datetime NULL,
  487. [LAST_ENABLED_TIME_] datetime NULL,
  488. [LAST_DISABLED_TIME_] datetime NULL,
  489. [LAST_STARTED_TIME_] datetime NULL,
  490. [LAST_SUSPENDED_TIME_] datetime NULL,
  491. [COMPLETED_TIME_] datetime NULL,
  492. [OCCURRED_TIME_] datetime NULL,
  493. [TERMINATED_TIME_] datetime NULL,
  494. [EXIT_TIME_] datetime NULL,
  495. [ENDED_TIME_] datetime NULL,
  496. [ENTRY_CRITERION_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  497. [EXIT_CRITERION_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  498. [EXTRA_VALUE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  499. [DERIVED_CASE_DEF_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  500. [LAST_UNAVAILABLE_TIME_] datetime NULL
  501. )
  502. GO
  503. ALTER TABLE [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] SET (LOCK_ESCALATION = TABLE)
  504. GO
  505. -- ----------------------------
  506. -- Records of ACT_CMMN_RU_PLAN_ITEM_INST
  507. -- ----------------------------
  508. BEGIN TRANSACTION
  509. GO
  510. COMMIT
  511. GO
  512. -- ----------------------------
  513. -- Table structure for ACT_CMMN_RU_SENTRY_PART_INST
  514. -- ----------------------------
  515. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_RU_SENTRY_PART_INST]') AND type IN ('U'))
  516. DROP TABLE [dbo].[ACT_CMMN_RU_SENTRY_PART_INST]
  517. GO
  518. CREATE TABLE [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] (
  519. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  520. [REV_] int NOT NULL,
  521. [CASE_DEF_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  522. [CASE_INST_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  523. [PLAN_ITEM_INST_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  524. [ON_PART_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  525. [IF_PART_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  526. [TIME_STAMP_] datetime NULL
  527. )
  528. GO
  529. ALTER TABLE [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] SET (LOCK_ESCALATION = TABLE)
  530. GO
  531. -- ----------------------------
  532. -- Records of ACT_CMMN_RU_SENTRY_PART_INST
  533. -- ----------------------------
  534. BEGIN TRANSACTION
  535. GO
  536. COMMIT
  537. GO
  538. -- ----------------------------
  539. -- Table structure for ACT_CO_CONTENT_ITEM
  540. -- ----------------------------
  541. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CO_CONTENT_ITEM]') AND type IN ('U'))
  542. DROP TABLE [dbo].[ACT_CO_CONTENT_ITEM]
  543. GO
  544. CREATE TABLE [dbo].[ACT_CO_CONTENT_ITEM] (
  545. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  546. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  547. [MIME_TYPE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  548. [TASK_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  549. [PROC_INST_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  550. [CONTENT_STORE_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  551. [CONTENT_STORE_NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  552. [FIELD_] varchar(400) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  553. [CONTENT_AVAILABLE_] bit DEFAULT 0 NULL,
  554. [CREATED_] datetime NULL,
  555. [CREATED_BY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  556. [LAST_MODIFIED_] datetime NULL,
  557. [LAST_MODIFIED_BY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  558. [CONTENT_SIZE_] bigint DEFAULT 0 NULL,
  559. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  560. [SCOPE_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  561. [SCOPE_TYPE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  562. )
  563. GO
  564. ALTER TABLE [dbo].[ACT_CO_CONTENT_ITEM] SET (LOCK_ESCALATION = TABLE)
  565. GO
  566. -- ----------------------------
  567. -- Records of ACT_CO_CONTENT_ITEM
  568. -- ----------------------------
  569. BEGIN TRANSACTION
  570. GO
  571. COMMIT
  572. GO
  573. -- ----------------------------
  574. -- Table structure for ACT_CO_DATABASECHANGELOG
  575. -- ----------------------------
  576. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CO_DATABASECHANGELOG]') AND type IN ('U'))
  577. DROP TABLE [dbo].[ACT_CO_DATABASECHANGELOG]
  578. GO
  579. CREATE TABLE [dbo].[ACT_CO_DATABASECHANGELOG] (
  580. [ID] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  581. [AUTHOR] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  582. [FILENAME] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  583. [DATEEXECUTED] datetime2(3) NOT NULL,
  584. [ORDEREXECUTED] int NOT NULL,
  585. [EXECTYPE] nvarchar(10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  586. [MD5SUM] nvarchar(35) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  587. [DESCRIPTION] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  588. [COMMENTS] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  589. [TAG] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  590. [LIQUIBASE] nvarchar(20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  591. [CONTEXTS] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  592. [LABELS] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  593. [DEPLOYMENT_ID] nvarchar(10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  594. )
  595. GO
  596. ALTER TABLE [dbo].[ACT_CO_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  597. GO
  598. -- ----------------------------
  599. -- Records of ACT_CO_DATABASECHANGELOG
  600. -- ----------------------------
  601. BEGIN TRANSACTION
  602. GO
  603. INSERT INTO [dbo].[ACT_CO_DATABASECHANGELOG] ([ID], [AUTHOR], [FILENAME], [DATEEXECUTED], [ORDEREXECUTED], [EXECTYPE], [MD5SUM], [DESCRIPTION], [COMMENTS], [TAG], [LIQUIBASE], [CONTEXTS], [LABELS], [DEPLOYMENT_ID]) VALUES (N'1', N'activiti', N'org/flowable/content/db/liquibase/flowable-content-db-changelog.xml', N'2024-03-14 15:52:54.050', 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'4.3.5', NULL, NULL, N'1644006759'), (N'2', N'flowable', N'org/flowable/content/db/liquibase/flowable-content-db-changelog.xml', N'2024-03-14 15:52:54.057', 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'4.3.5', NULL, NULL, N'1644006759')
  604. GO
  605. COMMIT
  606. GO
  607. -- ----------------------------
  608. -- Table structure for ACT_CO_DATABASECHANGELOGLOCK
  609. -- ----------------------------
  610. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CO_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  611. DROP TABLE [dbo].[ACT_CO_DATABASECHANGELOGLOCK]
  612. GO
  613. CREATE TABLE [dbo].[ACT_CO_DATABASECHANGELOGLOCK] (
  614. [ID] int NOT NULL,
  615. [LOCKED] bit NOT NULL,
  616. [LOCKGRANTED] datetime2(3) NULL,
  617. [LOCKEDBY] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  618. )
  619. GO
  620. ALTER TABLE [dbo].[ACT_CO_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  621. GO
  622. -- ----------------------------
  623. -- Records of ACT_CO_DATABASECHANGELOGLOCK
  624. -- ----------------------------
  625. BEGIN TRANSACTION
  626. GO
  627. INSERT INTO [dbo].[ACT_CO_DATABASECHANGELOGLOCK] ([ID], [LOCKED], [LOCKGRANTED], [LOCKEDBY]) VALUES (N'1', N'0', NULL, NULL)
  628. GO
  629. COMMIT
  630. GO
  631. -- ----------------------------
  632. -- Table structure for ACT_DE_DATABASECHANGELOG
  633. -- ----------------------------
  634. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DE_DATABASECHANGELOG]') AND type IN ('U'))
  635. DROP TABLE [dbo].[ACT_DE_DATABASECHANGELOG]
  636. GO
  637. CREATE TABLE [dbo].[ACT_DE_DATABASECHANGELOG] (
  638. [ID] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  639. [AUTHOR] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  640. [FILENAME] nvarchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  641. [DATEEXECUTED] datetime2(3) NOT NULL,
  642. [ORDEREXECUTED] int NOT NULL,
  643. [EXECTYPE] nvarchar(10) COLLATE Chinese_PRC_CI_AS NOT NULL,
  644. [MD5SUM] nvarchar(35) COLLATE Chinese_PRC_CI_AS NULL,
  645. [DESCRIPTION] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  646. [COMMENTS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  647. [TAG] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  648. [LIQUIBASE] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL,
  649. [CONTEXTS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  650. [LABELS] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  651. [DEPLOYMENT_ID] nvarchar(10) COLLATE Chinese_PRC_CI_AS NULL
  652. )
  653. GO
  654. ALTER TABLE [dbo].[ACT_DE_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  655. GO
  656. -- ----------------------------
  657. -- Records of ACT_DE_DATABASECHANGELOG
  658. -- ----------------------------
  659. BEGIN TRANSACTION
  660. GO
  661. INSERT INTO [dbo].[ACT_DE_DATABASECHANGELOG] ([ID], [AUTHOR], [FILENAME], [DATEEXECUTED], [ORDEREXECUTED], [EXECTYPE], [MD5SUM], [DESCRIPTION], [COMMENTS], [TAG], [LIQUIBASE], [CONTEXTS], [LABELS], [DEPLOYMENT_ID]) 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'), (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'), (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')
  662. GO
  663. COMMIT
  664. GO
  665. -- ----------------------------
  666. -- Table structure for ACT_DE_DATABASECHANGELOGLOCK
  667. -- ----------------------------
  668. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DE_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  669. DROP TABLE [dbo].[ACT_DE_DATABASECHANGELOGLOCK]
  670. GO
  671. CREATE TABLE [dbo].[ACT_DE_DATABASECHANGELOGLOCK] (
  672. [ID] int NOT NULL,
  673. [LOCKED] bit NOT NULL,
  674. [LOCKGRANTED] datetime2(3) NULL,
  675. [LOCKEDBY] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL
  676. )
  677. GO
  678. ALTER TABLE [dbo].[ACT_DE_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  679. GO
  680. -- ----------------------------
  681. -- Records of ACT_DE_DATABASECHANGELOGLOCK
  682. -- ----------------------------
  683. BEGIN TRANSACTION
  684. GO
  685. INSERT INTO [dbo].[ACT_DE_DATABASECHANGELOGLOCK] ([ID], [LOCKED], [LOCKGRANTED], [LOCKEDBY]) VALUES (N'1', N'0', NULL, NULL)
  686. GO
  687. COMMIT
  688. GO
  689. -- ----------------------------
  690. -- Table structure for ACT_DE_MODEL
  691. -- ----------------------------
  692. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DE_MODEL]') AND type IN ('U'))
  693. DROP TABLE [dbo].[ACT_DE_MODEL]
  694. GO
  695. CREATE TABLE [dbo].[ACT_DE_MODEL] (
  696. [id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  697. [name] varchar(400) COLLATE Chinese_PRC_CI_AS NOT NULL,
  698. [model_key] varchar(400) COLLATE Chinese_PRC_CI_AS NOT NULL,
  699. [description] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  700. [model_comment] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  701. [created] datetime2(7) NULL,
  702. [created_by] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  703. [last_updated] datetime2(7) NULL,
  704. [last_updated_by] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  705. [version] int NULL,
  706. [model_editor_json] varchar(max) COLLATE Chinese_PRC_CI_AS NULL,
  707. [model_editor_xml] varchar(max) COLLATE Chinese_PRC_CI_AS NULL,
  708. [thumbnail] varbinary(max) NULL,
  709. [model_type] int NULL,
  710. [tenant_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL
  711. )
  712. GO
  713. ALTER TABLE [dbo].[ACT_DE_MODEL] SET (LOCK_ESCALATION = TABLE)
  714. GO
  715. -- ----------------------------
  716. -- Records of ACT_DE_MODEL
  717. -- ----------------------------
  718. BEGIN TRANSACTION
  719. GO
  720. COMMIT
  721. GO
  722. -- ----------------------------
  723. -- Table structure for ACT_DE_MODEL_HISTORY
  724. -- ----------------------------
  725. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DE_MODEL_HISTORY]') AND type IN ('U'))
  726. DROP TABLE [dbo].[ACT_DE_MODEL_HISTORY]
  727. GO
  728. CREATE TABLE [dbo].[ACT_DE_MODEL_HISTORY] (
  729. [id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  730. [name] varchar(400) COLLATE Chinese_PRC_CI_AS NOT NULL,
  731. [model_key] varchar(400) COLLATE Chinese_PRC_CI_AS NOT NULL,
  732. [description] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  733. [model_comment] varchar(4000) COLLATE Chinese_PRC_CI_AS NULL,
  734. [created] datetime2(7) NULL,
  735. [created_by] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  736. [last_updated] datetime2(7) NULL,
  737. [last_updated_by] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  738. [removal_date] datetime2(7) NULL,
  739. [version] int NULL,
  740. [model_editor_json] varchar(max) COLLATE Chinese_PRC_CI_AS NULL,
  741. [model_id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  742. [model_type] int NULL,
  743. [tenant_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL
  744. )
  745. GO
  746. ALTER TABLE [dbo].[ACT_DE_MODEL_HISTORY] SET (LOCK_ESCALATION = TABLE)
  747. GO
  748. -- ----------------------------
  749. -- Records of ACT_DE_MODEL_HISTORY
  750. -- ----------------------------
  751. BEGIN TRANSACTION
  752. GO
  753. COMMIT
  754. GO
  755. -- ----------------------------
  756. -- Table structure for ACT_DE_MODEL_RELATION
  757. -- ----------------------------
  758. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DE_MODEL_RELATION]') AND type IN ('U'))
  759. DROP TABLE [dbo].[ACT_DE_MODEL_RELATION]
  760. GO
  761. CREATE TABLE [dbo].[ACT_DE_MODEL_RELATION] (
  762. [id] varchar(255) COLLATE Chinese_PRC_CI_AS NOT NULL,
  763. [parent_model_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  764. [model_id] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  765. [relation_type] varchar(255) COLLATE Chinese_PRC_CI_AS NULL
  766. )
  767. GO
  768. ALTER TABLE [dbo].[ACT_DE_MODEL_RELATION] SET (LOCK_ESCALATION = TABLE)
  769. GO
  770. -- ----------------------------
  771. -- Records of ACT_DE_MODEL_RELATION
  772. -- ----------------------------
  773. BEGIN TRANSACTION
  774. GO
  775. COMMIT
  776. GO
  777. -- ----------------------------
  778. -- Table structure for ACT_DMN_DATABASECHANGELOG
  779. -- ----------------------------
  780. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DMN_DATABASECHANGELOG]') AND type IN ('U'))
  781. DROP TABLE [dbo].[ACT_DMN_DATABASECHANGELOG]
  782. GO
  783. CREATE TABLE [dbo].[ACT_DMN_DATABASECHANGELOG] (
  784. [ID] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  785. [AUTHOR] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  786. [FILENAME] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  787. [DATEEXECUTED] datetime2(3) NOT NULL,
  788. [ORDEREXECUTED] int NOT NULL,
  789. [EXECTYPE] nvarchar(10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  790. [MD5SUM] nvarchar(35) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  791. [DESCRIPTION] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  792. [COMMENTS] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  793. [TAG] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  794. [LIQUIBASE] nvarchar(20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  795. [CONTEXTS] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  796. [LABELS] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  797. [DEPLOYMENT_ID] nvarchar(10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  798. )
  799. GO
  800. ALTER TABLE [dbo].[ACT_DMN_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  801. GO
  802. -- ----------------------------
  803. -- Records of ACT_DMN_DATABASECHANGELOG
  804. -- ----------------------------
  805. BEGIN TRANSACTION
  806. GO
  807. INSERT INTO [dbo].[ACT_DMN_DATABASECHANGELOG] ([ID], [AUTHOR], [FILENAME], [DATEEXECUTED], [ORDEREXECUTED], [EXECTYPE], [MD5SUM], [DESCRIPTION], [COMMENTS], [TAG], [LIQUIBASE], [CONTEXTS], [LABELS], [DEPLOYMENT_ID]) VALUES (N'1', N'activiti', N'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', N'2024-03-14 15:52:53.923', N'1', N'EXECUTED', N'9:5b36e70aee5a2e42f6e7a62ea5fa681b', N'createTable tableName=ACT_DMN_DEPLOYMENT; createTable tableName=ACT_DMN_DEPLOYMENT_RESOURCE; createTable tableName=ACT_DMN_DECISION_TABLE', N'', NULL, N'4.3.5', NULL, NULL, N'1644005973'), (N'2', N'flowable', N'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', N'2024-03-14 15:52:53.930', N'2', N'EXECUTED', N'9:fd13fa3f7af55d2b72f763fc261da30d', N'createTable tableName=ACT_DMN_HI_DECISION_EXECUTION', N'', NULL, N'4.3.5', NULL, NULL, N'1644005973'), (N'3', N'flowable', N'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', N'2024-03-14 15:52:53.930', N'3', N'EXECUTED', N'9:9f30e6a3557d4b4c713dbb2dcc141782', N'addColumn tableName=ACT_DMN_HI_DECISION_EXECUTION', N'', NULL, N'4.3.5', NULL, NULL, N'1644005973'), (N'4', N'flowable', N'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', N'2024-03-14 15:52:53.953', N'4', N'EXECUTED', N'9:41085fbde807dba96104ee75a2fcc4cc', N'dropColumn columnName=PARENT_DEPLOYMENT_ID_, tableName=ACT_DMN_DECISION_TABLE', N'', NULL, N'4.3.5', NULL, NULL, N'1644005973'), (N'6', N'flowable', N'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', N'2024-03-14 15:52:53.957', N'5', N'EXECUTED', N'9:f00f92f3ef1af3fc1604f0323630f9b1', N'createIndex indexName=ACT_IDX_DEC_TBL_UNIQ, tableName=ACT_DMN_DECISION_TABLE', N'', NULL, N'4.3.5', NULL, NULL, N'1644005973'), (N'7', N'flowable', N'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', N'2024-03-14 15:52:53.973', N'6', N'EXECUTED', N'9:d24d4c5f44083b4edf1231a7a682a2cd', N'dropIndex indexName=ACT_IDX_DEC_TBL_UNIQ, tableName=ACT_DMN_DECISION_TABLE; renameTable newTableName=ACT_DMN_DECISION, oldTableName=ACT_DMN_DECISION_TABLE; createIndex indexName=ACT_IDX_DMN_DEC_UNIQ, tableName=ACT_DMN_DECISION', N'', NULL, N'4.3.5', NULL, NULL, N'1644005973'), (N'8', N'flowable', N'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', N'2024-03-14 15:52:53.977', N'7', N'EXECUTED', N'9:3998ef0958b46fe9c19458183952d2a0', N'addColumn tableName=ACT_DMN_DECISION', N'', NULL, N'4.3.5', NULL, NULL, N'1644005973'), (N'9', N'flowable', N'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', N'2024-03-14 15:52:53.980', N'8', N'EXECUTED', N'9:5c9dc65601456faa1aa12f8d3afe0e9e', N'createIndex indexName=ACT_IDX_DMN_INSTANCE_ID, tableName=ACT_DMN_HI_DECISION_EXECUTION', N'', NULL, N'4.3.5', NULL, NULL, N'1644005973')
  808. GO
  809. COMMIT
  810. GO
  811. -- ----------------------------
  812. -- Table structure for ACT_DMN_DATABASECHANGELOGLOCK
  813. -- ----------------------------
  814. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DMN_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  815. DROP TABLE [dbo].[ACT_DMN_DATABASECHANGELOGLOCK]
  816. GO
  817. CREATE TABLE [dbo].[ACT_DMN_DATABASECHANGELOGLOCK] (
  818. [ID] int NOT NULL,
  819. [LOCKED] bit NOT NULL,
  820. [LOCKGRANTED] datetime2(3) NULL,
  821. [LOCKEDBY] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  822. )
  823. GO
  824. ALTER TABLE [dbo].[ACT_DMN_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  825. GO
  826. -- ----------------------------
  827. -- Records of ACT_DMN_DATABASECHANGELOGLOCK
  828. -- ----------------------------
  829. BEGIN TRANSACTION
  830. GO
  831. INSERT INTO [dbo].[ACT_DMN_DATABASECHANGELOGLOCK] ([ID], [LOCKED], [LOCKGRANTED], [LOCKEDBY]) VALUES (N'1', N'0', NULL, NULL)
  832. GO
  833. COMMIT
  834. GO
  835. -- ----------------------------
  836. -- Table structure for ACT_DMN_DECISION
  837. -- ----------------------------
  838. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DMN_DECISION]') AND type IN ('U'))
  839. DROP TABLE [dbo].[ACT_DMN_DECISION]
  840. GO
  841. CREATE TABLE [dbo].[ACT_DMN_DECISION] (
  842. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  843. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  844. [VERSION_] int NULL,
  845. [KEY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  846. [CATEGORY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  847. [DEPLOYMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  848. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  849. [RESOURCE_NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  850. [DESCRIPTION_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  851. [DECISION_TYPE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  852. )
  853. GO
  854. ALTER TABLE [dbo].[ACT_DMN_DECISION] SET (LOCK_ESCALATION = TABLE)
  855. GO
  856. -- ----------------------------
  857. -- Records of ACT_DMN_DECISION
  858. -- ----------------------------
  859. BEGIN TRANSACTION
  860. GO
  861. COMMIT
  862. GO
  863. -- ----------------------------
  864. -- Table structure for ACT_DMN_DEPLOYMENT
  865. -- ----------------------------
  866. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DMN_DEPLOYMENT]') AND type IN ('U'))
  867. DROP TABLE [dbo].[ACT_DMN_DEPLOYMENT]
  868. GO
  869. CREATE TABLE [dbo].[ACT_DMN_DEPLOYMENT] (
  870. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  871. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  872. [CATEGORY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  873. [DEPLOY_TIME_] datetime NULL,
  874. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  875. [PARENT_DEPLOYMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  876. )
  877. GO
  878. ALTER TABLE [dbo].[ACT_DMN_DEPLOYMENT] SET (LOCK_ESCALATION = TABLE)
  879. GO
  880. -- ----------------------------
  881. -- Records of ACT_DMN_DEPLOYMENT
  882. -- ----------------------------
  883. BEGIN TRANSACTION
  884. GO
  885. COMMIT
  886. GO
  887. -- ----------------------------
  888. -- Table structure for ACT_DMN_DEPLOYMENT_RESOURCE
  889. -- ----------------------------
  890. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DMN_DEPLOYMENT_RESOURCE]') AND type IN ('U'))
  891. DROP TABLE [dbo].[ACT_DMN_DEPLOYMENT_RESOURCE]
  892. GO
  893. CREATE TABLE [dbo].[ACT_DMN_DEPLOYMENT_RESOURCE] (
  894. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  895. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  896. [DEPLOYMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  897. [RESOURCE_BYTES_] varbinary(max) NULL
  898. )
  899. GO
  900. ALTER TABLE [dbo].[ACT_DMN_DEPLOYMENT_RESOURCE] SET (LOCK_ESCALATION = TABLE)
  901. GO
  902. -- ----------------------------
  903. -- Records of ACT_DMN_DEPLOYMENT_RESOURCE
  904. -- ----------------------------
  905. BEGIN TRANSACTION
  906. GO
  907. COMMIT
  908. GO
  909. -- ----------------------------
  910. -- Table structure for ACT_DMN_HI_DECISION_EXECUTION
  911. -- ----------------------------
  912. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DMN_HI_DECISION_EXECUTION]') AND type IN ('U'))
  913. DROP TABLE [dbo].[ACT_DMN_HI_DECISION_EXECUTION]
  914. GO
  915. CREATE TABLE [dbo].[ACT_DMN_HI_DECISION_EXECUTION] (
  916. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  917. [DECISION_DEFINITION_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  918. [DEPLOYMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  919. [START_TIME_] datetime NULL,
  920. [END_TIME_] datetime NULL,
  921. [INSTANCE_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  922. [EXECUTION_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  923. [ACTIVITY_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  924. [FAILED_] bit DEFAULT 0 NULL,
  925. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  926. [EXECUTION_JSON_] varchar(max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  927. [SCOPE_TYPE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  928. )
  929. GO
  930. ALTER TABLE [dbo].[ACT_DMN_HI_DECISION_EXECUTION] SET (LOCK_ESCALATION = TABLE)
  931. GO
  932. -- ----------------------------
  933. -- Records of ACT_DMN_HI_DECISION_EXECUTION
  934. -- ----------------------------
  935. BEGIN TRANSACTION
  936. GO
  937. COMMIT
  938. GO
  939. -- ----------------------------
  940. -- Table structure for ACT_EVT_LOG
  941. -- ----------------------------
  942. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_EVT_LOG]') AND type IN ('U'))
  943. DROP TABLE [dbo].[ACT_EVT_LOG]
  944. GO
  945. CREATE TABLE [dbo].[ACT_EVT_LOG] (
  946. [LOG_NR_] numeric(19) IDENTITY(1,1) NOT NULL,
  947. [TYPE_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  948. [PROC_DEF_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  949. [PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  950. [EXECUTION_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  951. [TASK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  952. [TIME_STAMP_] datetime NOT NULL,
  953. [USER_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  954. [DATA_] varbinary(max) NULL,
  955. [LOCK_OWNER_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  956. [LOCK_TIME_] datetime NULL,
  957. [IS_PROCESSED_] tinyint DEFAULT 0 NULL
  958. )
  959. GO
  960. ALTER TABLE [dbo].[ACT_EVT_LOG] SET (LOCK_ESCALATION = TABLE)
  961. GO
  962. -- ----------------------------
  963. -- Records of ACT_EVT_LOG
  964. -- ----------------------------
  965. BEGIN TRANSACTION
  966. GO
  967. SET IDENTITY_INSERT [dbo].[ACT_EVT_LOG] ON
  968. GO
  969. SET IDENTITY_INSERT [dbo].[ACT_EVT_LOG] OFF
  970. GO
  971. COMMIT
  972. GO
  973. -- ----------------------------
  974. -- Table structure for ACT_FO_DATABASECHANGELOG
  975. -- ----------------------------
  976. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_FO_DATABASECHANGELOG]') AND type IN ('U'))
  977. DROP TABLE [dbo].[ACT_FO_DATABASECHANGELOG]
  978. GO
  979. CREATE TABLE [dbo].[ACT_FO_DATABASECHANGELOG] (
  980. [ID] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  981. [AUTHOR] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  982. [FILENAME] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  983. [DATEEXECUTED] datetime2(3) NOT NULL,
  984. [ORDEREXECUTED] int NOT NULL,
  985. [EXECTYPE] nvarchar(10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  986. [MD5SUM] nvarchar(35) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  987. [DESCRIPTION] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  988. [COMMENTS] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  989. [TAG] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  990. [LIQUIBASE] nvarchar(20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  991. [CONTEXTS] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  992. [LABELS] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  993. [DEPLOYMENT_ID] nvarchar(10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  994. )
  995. GO
  996. ALTER TABLE [dbo].[ACT_FO_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  997. GO
  998. -- ----------------------------
  999. -- Records of ACT_FO_DATABASECHANGELOG
  1000. -- ----------------------------
  1001. BEGIN TRANSACTION
  1002. GO
  1003. INSERT INTO [dbo].[ACT_FO_DATABASECHANGELOG] ([ID], [AUTHOR], [FILENAME], [DATEEXECUTED], [ORDEREXECUTED], [EXECTYPE], [MD5SUM], [DESCRIPTION], [COMMENTS], [TAG], [LIQUIBASE], [CONTEXTS], [LABELS], [DEPLOYMENT_ID]) VALUES (N'1', N'activiti', N'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', N'2024-03-14 15:52:54.000', 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'4.3.5', NULL, NULL, N'1644006420'), (N'2', N'flowable', N'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', N'2024-03-14 15:52:54.007', N'2', N'EXECUTED', N'8:986365ceb40445ce3b27a8e6b40f159b', N'addColumn tableName=ACT_FO_FORM_INSTANCE', N'', NULL, N'4.3.5', NULL, NULL, N'1644006420'), (N'3', N'flowable', N'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', N'2024-03-14 15:52:54.020', N'3', N'EXECUTED', N'8:abf482518ceb09830ef674e52c06bf15', N'dropColumn columnName=PARENT_DEPLOYMENT_ID_, tableName=ACT_FO_FORM_DEFINITION', N'', NULL, N'4.3.5', NULL, NULL, N'1644006420'), (N'5', N'flowable', N'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', N'2024-03-14 15:52:54.023', N'4', N'EXECUTED', N'8:b4be732b89e5ca028bdd520c6ad4d446', N'createIndex indexName=ACT_IDX_FORM_DEF_UNIQ, tableName=ACT_FO_FORM_DEFINITION', N'', NULL, N'4.3.5', NULL, NULL, N'1644006420'), (N'6', N'flowable', N'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', N'2024-03-14 15:52:54.030', N'5', N'EXECUTED', N'8:384bbd364a649b67c3ca1bcb72fe537f', N'createIndex indexName=ACT_IDX_FORM_TASK, tableName=ACT_FO_FORM_INSTANCE; createIndex indexName=ACT_IDX_FORM_PROC, tableName=ACT_FO_FORM_INSTANCE; createIndex indexName=ACT_IDX_FORM_SCOPE, tableName=ACT_FO_FORM_INSTANCE', N'', NULL, N'4.3.5', NULL, NULL, N'1644006420')
  1004. GO
  1005. COMMIT
  1006. GO
  1007. -- ----------------------------
  1008. -- Table structure for ACT_FO_DATABASECHANGELOGLOCK
  1009. -- ----------------------------
  1010. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_FO_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  1011. DROP TABLE [dbo].[ACT_FO_DATABASECHANGELOGLOCK]
  1012. GO
  1013. CREATE TABLE [dbo].[ACT_FO_DATABASECHANGELOGLOCK] (
  1014. [ID] int NOT NULL,
  1015. [LOCKED] bit NOT NULL,
  1016. [LOCKGRANTED] datetime2(3) NULL,
  1017. [LOCKEDBY] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  1018. )
  1019. GO
  1020. ALTER TABLE [dbo].[ACT_FO_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  1021. GO
  1022. -- ----------------------------
  1023. -- Records of ACT_FO_DATABASECHANGELOGLOCK
  1024. -- ----------------------------
  1025. BEGIN TRANSACTION
  1026. GO
  1027. INSERT INTO [dbo].[ACT_FO_DATABASECHANGELOGLOCK] ([ID], [LOCKED], [LOCKGRANTED], [LOCKEDBY]) VALUES (N'1', N'0', NULL, NULL)
  1028. GO
  1029. COMMIT
  1030. GO
  1031. -- ----------------------------
  1032. -- Table structure for ACT_FO_FORM_DEFINITION
  1033. -- ----------------------------
  1034. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_FO_FORM_DEFINITION]') AND type IN ('U'))
  1035. DROP TABLE [dbo].[ACT_FO_FORM_DEFINITION]
  1036. GO
  1037. CREATE TABLE [dbo].[ACT_FO_FORM_DEFINITION] (
  1038. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1039. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1040. [VERSION_] int NULL,
  1041. [KEY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1042. [CATEGORY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1043. [DEPLOYMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1044. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1045. [RESOURCE_NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1046. [DESCRIPTION_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  1047. )
  1048. GO
  1049. ALTER TABLE [dbo].[ACT_FO_FORM_DEFINITION] SET (LOCK_ESCALATION = TABLE)
  1050. GO
  1051. -- ----------------------------
  1052. -- Records of ACT_FO_FORM_DEFINITION
  1053. -- ----------------------------
  1054. BEGIN TRANSACTION
  1055. GO
  1056. COMMIT
  1057. GO
  1058. -- ----------------------------
  1059. -- Table structure for ACT_FO_FORM_DEPLOYMENT
  1060. -- ----------------------------
  1061. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_FO_FORM_DEPLOYMENT]') AND type IN ('U'))
  1062. DROP TABLE [dbo].[ACT_FO_FORM_DEPLOYMENT]
  1063. GO
  1064. CREATE TABLE [dbo].[ACT_FO_FORM_DEPLOYMENT] (
  1065. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1066. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1067. [CATEGORY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1068. [DEPLOY_TIME_] datetime NULL,
  1069. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1070. [PARENT_DEPLOYMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  1071. )
  1072. GO
  1073. ALTER TABLE [dbo].[ACT_FO_FORM_DEPLOYMENT] SET (LOCK_ESCALATION = TABLE)
  1074. GO
  1075. -- ----------------------------
  1076. -- Records of ACT_FO_FORM_DEPLOYMENT
  1077. -- ----------------------------
  1078. BEGIN TRANSACTION
  1079. GO
  1080. COMMIT
  1081. GO
  1082. -- ----------------------------
  1083. -- Table structure for ACT_FO_FORM_INSTANCE
  1084. -- ----------------------------
  1085. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_FO_FORM_INSTANCE]') AND type IN ('U'))
  1086. DROP TABLE [dbo].[ACT_FO_FORM_INSTANCE]
  1087. GO
  1088. CREATE TABLE [dbo].[ACT_FO_FORM_INSTANCE] (
  1089. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1090. [FORM_DEFINITION_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1091. [TASK_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1092. [PROC_INST_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1093. [PROC_DEF_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1094. [SUBMITTED_DATE_] datetime NULL,
  1095. [SUBMITTED_BY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1096. [FORM_VALUES_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1097. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1098. [SCOPE_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1099. [SCOPE_TYPE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1100. [SCOPE_DEFINITION_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  1101. )
  1102. GO
  1103. ALTER TABLE [dbo].[ACT_FO_FORM_INSTANCE] SET (LOCK_ESCALATION = TABLE)
  1104. GO
  1105. -- ----------------------------
  1106. -- Records of ACT_FO_FORM_INSTANCE
  1107. -- ----------------------------
  1108. BEGIN TRANSACTION
  1109. GO
  1110. COMMIT
  1111. GO
  1112. -- ----------------------------
  1113. -- Table structure for ACT_FO_FORM_RESOURCE
  1114. -- ----------------------------
  1115. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_FO_FORM_RESOURCE]') AND type IN ('U'))
  1116. DROP TABLE [dbo].[ACT_FO_FORM_RESOURCE]
  1117. GO
  1118. CREATE TABLE [dbo].[ACT_FO_FORM_RESOURCE] (
  1119. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1120. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1121. [DEPLOYMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1122. [RESOURCE_BYTES_] varbinary(max) NULL
  1123. )
  1124. GO
  1125. ALTER TABLE [dbo].[ACT_FO_FORM_RESOURCE] SET (LOCK_ESCALATION = TABLE)
  1126. GO
  1127. -- ----------------------------
  1128. -- Records of ACT_FO_FORM_RESOURCE
  1129. -- ----------------------------
  1130. BEGIN TRANSACTION
  1131. GO
  1132. COMMIT
  1133. GO
  1134. -- ----------------------------
  1135. -- Table structure for ACT_GE_BYTEARRAY
  1136. -- ----------------------------
  1137. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_GE_BYTEARRAY]') AND type IN ('U'))
  1138. DROP TABLE [dbo].[ACT_GE_BYTEARRAY]
  1139. GO
  1140. CREATE TABLE [dbo].[ACT_GE_BYTEARRAY] (
  1141. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1142. [REV_] int NULL,
  1143. [NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1144. [DEPLOYMENT_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1145. [BYTES_] varbinary(max) NULL,
  1146. [GENERATED_] tinyint NULL
  1147. )
  1148. GO
  1149. ALTER TABLE [dbo].[ACT_GE_BYTEARRAY] SET (LOCK_ESCALATION = TABLE)
  1150. GO
  1151. -- ----------------------------
  1152. -- Records of ACT_GE_BYTEARRAY
  1153. -- ----------------------------
  1154. BEGIN TRANSACTION
  1155. GO
  1156. COMMIT
  1157. GO
  1158. -- ----------------------------
  1159. -- Table structure for ACT_GE_PROPERTY
  1160. -- ----------------------------
  1161. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_GE_PROPERTY]') AND type IN ('U'))
  1162. DROP TABLE [dbo].[ACT_GE_PROPERTY]
  1163. GO
  1164. CREATE TABLE [dbo].[ACT_GE_PROPERTY] (
  1165. [NAME_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1166. [VALUE_] nvarchar(300) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1167. [REV_] int NULL
  1168. )
  1169. GO
  1170. ALTER TABLE [dbo].[ACT_GE_PROPERTY] SET (LOCK_ESCALATION = TABLE)
  1171. GO
  1172. -- ----------------------------
  1173. -- Records of ACT_GE_PROPERTY
  1174. -- ----------------------------
  1175. BEGIN TRANSACTION
  1176. GO
  1177. INSERT INTO [dbo].[ACT_GE_PROPERTY] ([NAME_], [VALUE_], [REV_]) VALUES (N'batch.schema.version', N'7.0.1.1', N'1'), (N'cfg.execution-related-entities-count', N'true', N'1'), (N'cfg.task-related-entities-count', N'true', N'1'), (N'common.schema.version', N'7.0.1.1', N'1'), (N'entitylink.schema.version', N'7.0.1.1', N'1'), (N'eventsubscription.schema.version', N'7.0.1.1', N'1'), (N'identitylink.schema.version', N'7.0.1.1', N'1'), (N'job.schema.version', N'7.0.1.1', N'1'), (N'next.dbid', N'1', N'1'), (N'schema.history', N'upgrade(7.0.0.0->7.0.1.1)', N'2'), (N'schema.version', N'7.0.1.1', N'2'), (N'task.schema.version', N'7.0.1.1', N'1'), (N'variable.schema.version', N'7.0.1.1', N'1')
  1178. GO
  1179. COMMIT
  1180. GO
  1181. -- ----------------------------
  1182. -- Table structure for ACT_HI_ACTINST
  1183. -- ----------------------------
  1184. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_ACTINST]') AND type IN ('U'))
  1185. DROP TABLE [dbo].[ACT_HI_ACTINST]
  1186. GO
  1187. CREATE TABLE [dbo].[ACT_HI_ACTINST] (
  1188. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1189. [REV_] int DEFAULT 1 NULL,
  1190. [PROC_DEF_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1191. [PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1192. [EXECUTION_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1193. [ACT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1194. [TASK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1195. [CALL_PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1196. [ACT_NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1197. [ACT_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1198. [ASSIGNEE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1199. [START_TIME_] datetime NOT NULL,
  1200. [END_TIME_] datetime NULL,
  1201. [TRANSACTION_ORDER_] int NULL,
  1202. [DURATION_] numeric(19) NULL,
  1203. [DELETE_REASON_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1204. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL
  1205. )
  1206. GO
  1207. ALTER TABLE [dbo].[ACT_HI_ACTINST] SET (LOCK_ESCALATION = TABLE)
  1208. GO
  1209. -- ----------------------------
  1210. -- Records of ACT_HI_ACTINST
  1211. -- ----------------------------
  1212. BEGIN TRANSACTION
  1213. GO
  1214. COMMIT
  1215. GO
  1216. -- ----------------------------
  1217. -- Table structure for ACT_HI_ATTACHMENT
  1218. -- ----------------------------
  1219. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_ATTACHMENT]') AND type IN ('U'))
  1220. DROP TABLE [dbo].[ACT_HI_ATTACHMENT]
  1221. GO
  1222. CREATE TABLE [dbo].[ACT_HI_ATTACHMENT] (
  1223. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1224. [REV_] int NULL,
  1225. [USER_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1226. [NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1227. [DESCRIPTION_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1228. [TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1229. [TASK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1230. [PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1231. [URL_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1232. [CONTENT_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1233. [TIME_] datetime NULL
  1234. )
  1235. GO
  1236. ALTER TABLE [dbo].[ACT_HI_ATTACHMENT] SET (LOCK_ESCALATION = TABLE)
  1237. GO
  1238. -- ----------------------------
  1239. -- Records of ACT_HI_ATTACHMENT
  1240. -- ----------------------------
  1241. BEGIN TRANSACTION
  1242. GO
  1243. COMMIT
  1244. GO
  1245. -- ----------------------------
  1246. -- Table structure for ACT_HI_COMMENT
  1247. -- ----------------------------
  1248. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_COMMENT]') AND type IN ('U'))
  1249. DROP TABLE [dbo].[ACT_HI_COMMENT]
  1250. GO
  1251. CREATE TABLE [dbo].[ACT_HI_COMMENT] (
  1252. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1253. [TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1254. [TIME_] datetime NOT NULL,
  1255. [USER_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1256. [TASK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1257. [PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1258. [ACTION_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1259. [MESSAGE_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1260. [FULL_MSG_] varbinary(max) NULL
  1261. )
  1262. GO
  1263. ALTER TABLE [dbo].[ACT_HI_COMMENT] SET (LOCK_ESCALATION = TABLE)
  1264. GO
  1265. -- ----------------------------
  1266. -- Records of ACT_HI_COMMENT
  1267. -- ----------------------------
  1268. BEGIN TRANSACTION
  1269. GO
  1270. COMMIT
  1271. GO
  1272. -- ----------------------------
  1273. -- Table structure for ACT_HI_DETAIL
  1274. -- ----------------------------
  1275. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_DETAIL]') AND type IN ('U'))
  1276. DROP TABLE [dbo].[ACT_HI_DETAIL]
  1277. GO
  1278. CREATE TABLE [dbo].[ACT_HI_DETAIL] (
  1279. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1280. [TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1281. [PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1282. [EXECUTION_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1283. [TASK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1284. [ACT_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1285. [NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1286. [VAR_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1287. [REV_] int NULL,
  1288. [TIME_] datetime NOT NULL,
  1289. [BYTEARRAY_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1290. [DOUBLE_] float(53) NULL,
  1291. [LONG_] numeric(19) NULL,
  1292. [TEXT_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1293. [TEXT2_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  1294. )
  1295. GO
  1296. ALTER TABLE [dbo].[ACT_HI_DETAIL] SET (LOCK_ESCALATION = TABLE)
  1297. GO
  1298. -- ----------------------------
  1299. -- Records of ACT_HI_DETAIL
  1300. -- ----------------------------
  1301. BEGIN TRANSACTION
  1302. GO
  1303. COMMIT
  1304. GO
  1305. -- ----------------------------
  1306. -- Table structure for ACT_HI_ENTITYLINK
  1307. -- ----------------------------
  1308. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_ENTITYLINK]') AND type IN ('U'))
  1309. DROP TABLE [dbo].[ACT_HI_ENTITYLINK]
  1310. GO
  1311. CREATE TABLE [dbo].[ACT_HI_ENTITYLINK] (
  1312. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1313. [LINK_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1314. [CREATE_TIME_] datetime NULL,
  1315. [SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1316. [SUB_SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1317. [SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1318. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1319. [PARENT_ELEMENT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1320. [REF_SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1321. [REF_SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1322. [REF_SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1323. [ROOT_SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1324. [ROOT_SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1325. [HIERARCHY_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  1326. )
  1327. GO
  1328. ALTER TABLE [dbo].[ACT_HI_ENTITYLINK] SET (LOCK_ESCALATION = TABLE)
  1329. GO
  1330. -- ----------------------------
  1331. -- Records of ACT_HI_ENTITYLINK
  1332. -- ----------------------------
  1333. BEGIN TRANSACTION
  1334. GO
  1335. COMMIT
  1336. GO
  1337. -- ----------------------------
  1338. -- Table structure for ACT_HI_IDENTITYLINK
  1339. -- ----------------------------
  1340. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_IDENTITYLINK]') AND type IN ('U'))
  1341. DROP TABLE [dbo].[ACT_HI_IDENTITYLINK]
  1342. GO
  1343. CREATE TABLE [dbo].[ACT_HI_IDENTITYLINK] (
  1344. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1345. [GROUP_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1346. [TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1347. [USER_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1348. [TASK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1349. [CREATE_TIME_] datetime NULL,
  1350. [PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1351. [SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1352. [SUB_SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1353. [SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1354. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  1355. )
  1356. GO
  1357. ALTER TABLE [dbo].[ACT_HI_IDENTITYLINK] SET (LOCK_ESCALATION = TABLE)
  1358. GO
  1359. -- ----------------------------
  1360. -- Records of ACT_HI_IDENTITYLINK
  1361. -- ----------------------------
  1362. BEGIN TRANSACTION
  1363. GO
  1364. COMMIT
  1365. GO
  1366. -- ----------------------------
  1367. -- Table structure for ACT_HI_PROCINST
  1368. -- ----------------------------
  1369. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_PROCINST]') AND type IN ('U'))
  1370. DROP TABLE [dbo].[ACT_HI_PROCINST]
  1371. GO
  1372. CREATE TABLE [dbo].[ACT_HI_PROCINST] (
  1373. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1374. [REV_] int DEFAULT 1 NULL,
  1375. [PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1376. [BUSINESS_KEY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1377. [PROC_DEF_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1378. [START_TIME_] datetime NOT NULL,
  1379. [END_TIME_] datetime NULL,
  1380. [DURATION_] numeric(19) NULL,
  1381. [START_USER_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1382. [START_ACT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1383. [END_ACT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1384. [SUPER_PROCESS_INSTANCE_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1385. [DELETE_REASON_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1386. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL,
  1387. [NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1388. [CALLBACK_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1389. [CALLBACK_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1390. [REFERENCE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1391. [REFERENCE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1392. [PROPAGATED_STAGE_INST_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1393. [BUSINESS_STATUS_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  1394. )
  1395. GO
  1396. ALTER TABLE [dbo].[ACT_HI_PROCINST] SET (LOCK_ESCALATION = TABLE)
  1397. GO
  1398. -- ----------------------------
  1399. -- Records of ACT_HI_PROCINST
  1400. -- ----------------------------
  1401. BEGIN TRANSACTION
  1402. GO
  1403. COMMIT
  1404. GO
  1405. -- ----------------------------
  1406. -- Table structure for ACT_HI_TASKINST
  1407. -- ----------------------------
  1408. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_TASKINST]') AND type IN ('U'))
  1409. DROP TABLE [dbo].[ACT_HI_TASKINST]
  1410. GO
  1411. CREATE TABLE [dbo].[ACT_HI_TASKINST] (
  1412. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1413. [REV_] int DEFAULT 1 NULL,
  1414. [PROC_DEF_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1415. [TASK_DEF_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1416. [TASK_DEF_KEY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1417. [PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1418. [EXECUTION_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1419. [SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1420. [SUB_SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1421. [SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1422. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1423. [PROPAGATED_STAGE_INST_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1424. [NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1425. [PARENT_TASK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1426. [DESCRIPTION_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1427. [OWNER_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1428. [ASSIGNEE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1429. [START_TIME_] datetime NOT NULL,
  1430. [CLAIM_TIME_] datetime NULL,
  1431. [END_TIME_] datetime NULL,
  1432. [DURATION_] numeric(19) NULL,
  1433. [DELETE_REASON_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1434. [PRIORITY_] int NULL,
  1435. [DUE_DATE_] datetime NULL,
  1436. [FORM_KEY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1437. [CATEGORY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1438. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL,
  1439. [LAST_UPDATED_TIME_] datetime2(7) NULL,
  1440. [STATE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1441. [IN_PROGRESS_TIME_] datetime NULL,
  1442. [IN_PROGRESS_STARTED_BY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1443. [CLAIMED_BY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1444. [SUSPENDED_TIME_] datetime NULL,
  1445. [SUSPENDED_BY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1446. [COMPLETED_BY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1447. [IN_PROGRESS_DUE_DATE_] datetime NULL
  1448. )
  1449. GO
  1450. ALTER TABLE [dbo].[ACT_HI_TASKINST] SET (LOCK_ESCALATION = TABLE)
  1451. GO
  1452. -- ----------------------------
  1453. -- Records of ACT_HI_TASKINST
  1454. -- ----------------------------
  1455. BEGIN TRANSACTION
  1456. GO
  1457. COMMIT
  1458. GO
  1459. -- ----------------------------
  1460. -- Table structure for ACT_HI_TSK_LOG
  1461. -- ----------------------------
  1462. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_TSK_LOG]') AND type IN ('U'))
  1463. DROP TABLE [dbo].[ACT_HI_TSK_LOG]
  1464. GO
  1465. CREATE TABLE [dbo].[ACT_HI_TSK_LOG] (
  1466. [ID_] numeric(19) IDENTITY(1,1) NOT NULL,
  1467. [TYPE_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1468. [TASK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1469. [TIME_STAMP_] datetime NOT NULL,
  1470. [USER_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1471. [DATA_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1472. [EXECUTION_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1473. [PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1474. [PROC_DEF_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1475. [SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1476. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1477. [SUB_SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1478. [SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1479. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL
  1480. )
  1481. GO
  1482. ALTER TABLE [dbo].[ACT_HI_TSK_LOG] SET (LOCK_ESCALATION = TABLE)
  1483. GO
  1484. -- ----------------------------
  1485. -- Records of ACT_HI_TSK_LOG
  1486. -- ----------------------------
  1487. BEGIN TRANSACTION
  1488. GO
  1489. SET IDENTITY_INSERT [dbo].[ACT_HI_TSK_LOG] ON
  1490. GO
  1491. SET IDENTITY_INSERT [dbo].[ACT_HI_TSK_LOG] OFF
  1492. GO
  1493. COMMIT
  1494. GO
  1495. -- ----------------------------
  1496. -- Table structure for ACT_HI_VARINST
  1497. -- ----------------------------
  1498. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_VARINST]') AND type IN ('U'))
  1499. DROP TABLE [dbo].[ACT_HI_VARINST]
  1500. GO
  1501. CREATE TABLE [dbo].[ACT_HI_VARINST] (
  1502. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1503. [REV_] int DEFAULT 1 NULL,
  1504. [PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1505. [EXECUTION_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1506. [TASK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1507. [NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1508. [VAR_TYPE_] nvarchar(100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1509. [SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1510. [SUB_SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1511. [SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1512. [BYTEARRAY_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1513. [DOUBLE_] float(53) NULL,
  1514. [LONG_] numeric(19) NULL,
  1515. [TEXT_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1516. [TEXT2_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1517. [CREATE_TIME_] datetime NULL,
  1518. [LAST_UPDATED_TIME_] datetime2(7) NULL,
  1519. [META_INFO_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  1520. )
  1521. GO
  1522. ALTER TABLE [dbo].[ACT_HI_VARINST] SET (LOCK_ESCALATION = TABLE)
  1523. GO
  1524. -- ----------------------------
  1525. -- Records of ACT_HI_VARINST
  1526. -- ----------------------------
  1527. BEGIN TRANSACTION
  1528. GO
  1529. COMMIT
  1530. GO
  1531. -- ----------------------------
  1532. -- Table structure for ACT_ID_BYTEARRAY
  1533. -- ----------------------------
  1534. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_BYTEARRAY]') AND type IN ('U'))
  1535. DROP TABLE [dbo].[ACT_ID_BYTEARRAY]
  1536. GO
  1537. CREATE TABLE [dbo].[ACT_ID_BYTEARRAY] (
  1538. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1539. [REV_] int NULL,
  1540. [NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1541. [BYTES_] varbinary(max) NULL
  1542. )
  1543. GO
  1544. ALTER TABLE [dbo].[ACT_ID_BYTEARRAY] SET (LOCK_ESCALATION = TABLE)
  1545. GO
  1546. -- ----------------------------
  1547. -- Records of ACT_ID_BYTEARRAY
  1548. -- ----------------------------
  1549. BEGIN TRANSACTION
  1550. GO
  1551. COMMIT
  1552. GO
  1553. -- ----------------------------
  1554. -- Table structure for ACT_ID_GROUP
  1555. -- ----------------------------
  1556. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_GROUP]') AND type IN ('U'))
  1557. DROP TABLE [dbo].[ACT_ID_GROUP]
  1558. GO
  1559. CREATE TABLE [dbo].[ACT_ID_GROUP] (
  1560. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1561. [REV_] int NULL,
  1562. [NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1563. [TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  1564. )
  1565. GO
  1566. ALTER TABLE [dbo].[ACT_ID_GROUP] SET (LOCK_ESCALATION = TABLE)
  1567. GO
  1568. -- ----------------------------
  1569. -- Records of ACT_ID_GROUP
  1570. -- ----------------------------
  1571. BEGIN TRANSACTION
  1572. GO
  1573. COMMIT
  1574. GO
  1575. -- ----------------------------
  1576. -- Table structure for ACT_ID_INFO
  1577. -- ----------------------------
  1578. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_INFO]') AND type IN ('U'))
  1579. DROP TABLE [dbo].[ACT_ID_INFO]
  1580. GO
  1581. CREATE TABLE [dbo].[ACT_ID_INFO] (
  1582. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1583. [REV_] int NULL,
  1584. [USER_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1585. [TYPE_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1586. [KEY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1587. [VALUE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1588. [PASSWORD_] varbinary(max) NULL,
  1589. [PARENT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  1590. )
  1591. GO
  1592. ALTER TABLE [dbo].[ACT_ID_INFO] SET (LOCK_ESCALATION = TABLE)
  1593. GO
  1594. -- ----------------------------
  1595. -- Records of ACT_ID_INFO
  1596. -- ----------------------------
  1597. BEGIN TRANSACTION
  1598. GO
  1599. COMMIT
  1600. GO
  1601. -- ----------------------------
  1602. -- Table structure for ACT_ID_MEMBERSHIP
  1603. -- ----------------------------
  1604. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_MEMBERSHIP]') AND type IN ('U'))
  1605. DROP TABLE [dbo].[ACT_ID_MEMBERSHIP]
  1606. GO
  1607. CREATE TABLE [dbo].[ACT_ID_MEMBERSHIP] (
  1608. [USER_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1609. [GROUP_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
  1610. )
  1611. GO
  1612. ALTER TABLE [dbo].[ACT_ID_MEMBERSHIP] SET (LOCK_ESCALATION = TABLE)
  1613. GO
  1614. -- ----------------------------
  1615. -- Records of ACT_ID_MEMBERSHIP
  1616. -- ----------------------------
  1617. BEGIN TRANSACTION
  1618. GO
  1619. COMMIT
  1620. GO
  1621. -- ----------------------------
  1622. -- Table structure for ACT_ID_PRIV
  1623. -- ----------------------------
  1624. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_PRIV]') AND type IN ('U'))
  1625. DROP TABLE [dbo].[ACT_ID_PRIV]
  1626. GO
  1627. CREATE TABLE [dbo].[ACT_ID_PRIV] (
  1628. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1629. [NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
  1630. )
  1631. GO
  1632. ALTER TABLE [dbo].[ACT_ID_PRIV] SET (LOCK_ESCALATION = TABLE)
  1633. GO
  1634. -- ----------------------------
  1635. -- Records of ACT_ID_PRIV
  1636. -- ----------------------------
  1637. BEGIN TRANSACTION
  1638. GO
  1639. COMMIT
  1640. GO
  1641. -- ----------------------------
  1642. -- Table structure for ACT_ID_PRIV_MAPPING
  1643. -- ----------------------------
  1644. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_PRIV_MAPPING]') AND type IN ('U'))
  1645. DROP TABLE [dbo].[ACT_ID_PRIV_MAPPING]
  1646. GO
  1647. CREATE TABLE [dbo].[ACT_ID_PRIV_MAPPING] (
  1648. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1649. [PRIV_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1650. [USER_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1651. [GROUP_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  1652. )
  1653. GO
  1654. ALTER TABLE [dbo].[ACT_ID_PRIV_MAPPING] SET (LOCK_ESCALATION = TABLE)
  1655. GO
  1656. -- ----------------------------
  1657. -- Records of ACT_ID_PRIV_MAPPING
  1658. -- ----------------------------
  1659. BEGIN TRANSACTION
  1660. GO
  1661. COMMIT
  1662. GO
  1663. -- ----------------------------
  1664. -- Table structure for ACT_ID_PROPERTY
  1665. -- ----------------------------
  1666. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_PROPERTY]') AND type IN ('U'))
  1667. DROP TABLE [dbo].[ACT_ID_PROPERTY]
  1668. GO
  1669. CREATE TABLE [dbo].[ACT_ID_PROPERTY] (
  1670. [NAME_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1671. [VALUE_] nvarchar(300) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1672. [REV_] int NULL
  1673. )
  1674. GO
  1675. ALTER TABLE [dbo].[ACT_ID_PROPERTY] SET (LOCK_ESCALATION = TABLE)
  1676. GO
  1677. -- ----------------------------
  1678. -- Records of ACT_ID_PROPERTY
  1679. -- ----------------------------
  1680. BEGIN TRANSACTION
  1681. GO
  1682. INSERT INTO [dbo].[ACT_ID_PROPERTY] ([NAME_], [VALUE_], [REV_]) VALUES (N'schema.version', N'7.0.1.1', N'1')
  1683. GO
  1684. COMMIT
  1685. GO
  1686. -- ----------------------------
  1687. -- Table structure for ACT_ID_TOKEN
  1688. -- ----------------------------
  1689. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_TOKEN]') AND type IN ('U'))
  1690. DROP TABLE [dbo].[ACT_ID_TOKEN]
  1691. GO
  1692. CREATE TABLE [dbo].[ACT_ID_TOKEN] (
  1693. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1694. [REV_] int NULL,
  1695. [TOKEN_VALUE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1696. [TOKEN_DATE_] datetime NULL,
  1697. [IP_ADDRESS_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1698. [USER_AGENT_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1699. [USER_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1700. [TOKEN_DATA_] nvarchar(2000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  1701. )
  1702. GO
  1703. ALTER TABLE [dbo].[ACT_ID_TOKEN] SET (LOCK_ESCALATION = TABLE)
  1704. GO
  1705. -- ----------------------------
  1706. -- Records of ACT_ID_TOKEN
  1707. -- ----------------------------
  1708. BEGIN TRANSACTION
  1709. GO
  1710. COMMIT
  1711. GO
  1712. -- ----------------------------
  1713. -- Table structure for ACT_ID_USER
  1714. -- ----------------------------
  1715. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_USER]') AND type IN ('U'))
  1716. DROP TABLE [dbo].[ACT_ID_USER]
  1717. GO
  1718. CREATE TABLE [dbo].[ACT_ID_USER] (
  1719. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1720. [REV_] int NULL,
  1721. [FIRST_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1722. [LAST_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1723. [DISPLAY_NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1724. [EMAIL_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1725. [PWD_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1726. [PICTURE_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1727. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL
  1728. )
  1729. GO
  1730. ALTER TABLE [dbo].[ACT_ID_USER] SET (LOCK_ESCALATION = TABLE)
  1731. GO
  1732. -- ----------------------------
  1733. -- Records of ACT_ID_USER
  1734. -- ----------------------------
  1735. BEGIN TRANSACTION
  1736. GO
  1737. COMMIT
  1738. GO
  1739. -- ----------------------------
  1740. -- Table structure for ACT_PROCDEF_INFO
  1741. -- ----------------------------
  1742. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_PROCDEF_INFO]') AND type IN ('U'))
  1743. DROP TABLE [dbo].[ACT_PROCDEF_INFO]
  1744. GO
  1745. CREATE TABLE [dbo].[ACT_PROCDEF_INFO] (
  1746. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1747. [PROC_DEF_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1748. [REV_] int NULL,
  1749. [INFO_JSON_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  1750. )
  1751. GO
  1752. ALTER TABLE [dbo].[ACT_PROCDEF_INFO] SET (LOCK_ESCALATION = TABLE)
  1753. GO
  1754. -- ----------------------------
  1755. -- Records of ACT_PROCDEF_INFO
  1756. -- ----------------------------
  1757. BEGIN TRANSACTION
  1758. GO
  1759. COMMIT
  1760. GO
  1761. -- ----------------------------
  1762. -- Table structure for ACT_RE_DEPLOYMENT
  1763. -- ----------------------------
  1764. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RE_DEPLOYMENT]') AND type IN ('U'))
  1765. DROP TABLE [dbo].[ACT_RE_DEPLOYMENT]
  1766. GO
  1767. CREATE TABLE [dbo].[ACT_RE_DEPLOYMENT] (
  1768. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1769. [NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1770. [CATEGORY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1771. [KEY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1772. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL,
  1773. [DEPLOY_TIME_] datetime NULL,
  1774. [DERIVED_FROM_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1775. [DERIVED_FROM_ROOT_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1776. [PARENT_DEPLOYMENT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1777. [ENGINE_VERSION_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  1778. )
  1779. GO
  1780. ALTER TABLE [dbo].[ACT_RE_DEPLOYMENT] SET (LOCK_ESCALATION = TABLE)
  1781. GO
  1782. -- ----------------------------
  1783. -- Records of ACT_RE_DEPLOYMENT
  1784. -- ----------------------------
  1785. BEGIN TRANSACTION
  1786. GO
  1787. COMMIT
  1788. GO
  1789. -- ----------------------------
  1790. -- Table structure for ACT_RE_MODEL
  1791. -- ----------------------------
  1792. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RE_MODEL]') AND type IN ('U'))
  1793. DROP TABLE [dbo].[ACT_RE_MODEL]
  1794. GO
  1795. CREATE TABLE [dbo].[ACT_RE_MODEL] (
  1796. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1797. [REV_] int NULL,
  1798. [NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1799. [KEY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1800. [CATEGORY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1801. [CREATE_TIME_] datetime NULL,
  1802. [LAST_UPDATE_TIME_] datetime NULL,
  1803. [VERSION_] int NULL,
  1804. [META_INFO_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1805. [DEPLOYMENT_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1806. [EDITOR_SOURCE_VALUE_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1807. [EDITOR_SOURCE_EXTRA_VALUE_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1808. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL
  1809. )
  1810. GO
  1811. ALTER TABLE [dbo].[ACT_RE_MODEL] SET (LOCK_ESCALATION = TABLE)
  1812. GO
  1813. -- ----------------------------
  1814. -- Records of ACT_RE_MODEL
  1815. -- ----------------------------
  1816. BEGIN TRANSACTION
  1817. GO
  1818. COMMIT
  1819. GO
  1820. -- ----------------------------
  1821. -- Table structure for ACT_RE_PROCDEF
  1822. -- ----------------------------
  1823. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RE_PROCDEF]') AND type IN ('U'))
  1824. DROP TABLE [dbo].[ACT_RE_PROCDEF]
  1825. GO
  1826. CREATE TABLE [dbo].[ACT_RE_PROCDEF] (
  1827. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1828. [REV_] int NULL,
  1829. [CATEGORY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1830. [NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1831. [KEY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1832. [VERSION_] int NOT NULL,
  1833. [DEPLOYMENT_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1834. [RESOURCE_NAME_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1835. [DGRM_RESOURCE_NAME_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1836. [DESCRIPTION_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1837. [HAS_START_FORM_KEY_] tinyint NULL,
  1838. [HAS_GRAPHICAL_NOTATION_] tinyint NULL,
  1839. [SUSPENSION_STATE_] tinyint NULL,
  1840. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL,
  1841. [DERIVED_FROM_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1842. [DERIVED_FROM_ROOT_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1843. [DERIVED_VERSION_] int DEFAULT 0 NOT NULL,
  1844. [ENGINE_VERSION_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  1845. )
  1846. GO
  1847. ALTER TABLE [dbo].[ACT_RE_PROCDEF] SET (LOCK_ESCALATION = TABLE)
  1848. GO
  1849. -- ----------------------------
  1850. -- Records of ACT_RE_PROCDEF
  1851. -- ----------------------------
  1852. BEGIN TRANSACTION
  1853. GO
  1854. COMMIT
  1855. GO
  1856. -- ----------------------------
  1857. -- Table structure for ACT_RU_ACTINST
  1858. -- ----------------------------
  1859. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_ACTINST]') AND type IN ('U'))
  1860. DROP TABLE [dbo].[ACT_RU_ACTINST]
  1861. GO
  1862. CREATE TABLE [dbo].[ACT_RU_ACTINST] (
  1863. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1864. [REV_] int DEFAULT 1 NULL,
  1865. [PROC_DEF_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1866. [PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1867. [EXECUTION_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1868. [ACT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1869. [TASK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1870. [CALL_PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1871. [ACT_NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1872. [ACT_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1873. [ASSIGNEE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1874. [START_TIME_] datetime NOT NULL,
  1875. [END_TIME_] datetime NULL,
  1876. [DURATION_] numeric(19) NULL,
  1877. [TRANSACTION_ORDER_] int NULL,
  1878. [DELETE_REASON_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1879. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL
  1880. )
  1881. GO
  1882. ALTER TABLE [dbo].[ACT_RU_ACTINST] SET (LOCK_ESCALATION = TABLE)
  1883. GO
  1884. -- ----------------------------
  1885. -- Records of ACT_RU_ACTINST
  1886. -- ----------------------------
  1887. BEGIN TRANSACTION
  1888. GO
  1889. COMMIT
  1890. GO
  1891. -- ----------------------------
  1892. -- Table structure for ACT_RU_DEADLETTER_JOB
  1893. -- ----------------------------
  1894. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_DEADLETTER_JOB]') AND type IN ('U'))
  1895. DROP TABLE [dbo].[ACT_RU_DEADLETTER_JOB]
  1896. GO
  1897. CREATE TABLE [dbo].[ACT_RU_DEADLETTER_JOB] (
  1898. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1899. [REV_] int NULL,
  1900. [CATEGORY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1901. [TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1902. [EXCLUSIVE_] bit NULL,
  1903. [EXECUTION_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1904. [PROCESS_INSTANCE_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1905. [PROC_DEF_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1906. [ELEMENT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1907. [ELEMENT_NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1908. [SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1909. [SUB_SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1910. [SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1911. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1912. [CORRELATION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1913. [EXCEPTION_STACK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1914. [EXCEPTION_MSG_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1915. [DUEDATE_] datetime NULL,
  1916. [REPEAT_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1917. [HANDLER_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1918. [HANDLER_CFG_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1919. [CUSTOM_VALUES_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1920. [CREATE_TIME_] datetime2(7) NULL,
  1921. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL
  1922. )
  1923. GO
  1924. ALTER TABLE [dbo].[ACT_RU_DEADLETTER_JOB] SET (LOCK_ESCALATION = TABLE)
  1925. GO
  1926. -- ----------------------------
  1927. -- Records of ACT_RU_DEADLETTER_JOB
  1928. -- ----------------------------
  1929. BEGIN TRANSACTION
  1930. GO
  1931. COMMIT
  1932. GO
  1933. -- ----------------------------
  1934. -- Table structure for ACT_RU_ENTITYLINK
  1935. -- ----------------------------
  1936. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_ENTITYLINK]') AND type IN ('U'))
  1937. DROP TABLE [dbo].[ACT_RU_ENTITYLINK]
  1938. GO
  1939. CREATE TABLE [dbo].[ACT_RU_ENTITYLINK] (
  1940. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1941. [REV_] int NULL,
  1942. [CREATE_TIME_] datetime NULL,
  1943. [LINK_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1944. [SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1945. [SUB_SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1946. [SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1947. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1948. [PARENT_ELEMENT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1949. [REF_SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1950. [REF_SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1951. [REF_SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1952. [ROOT_SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1953. [ROOT_SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1954. [HIERARCHY_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  1955. )
  1956. GO
  1957. ALTER TABLE [dbo].[ACT_RU_ENTITYLINK] SET (LOCK_ESCALATION = TABLE)
  1958. GO
  1959. -- ----------------------------
  1960. -- Records of ACT_RU_ENTITYLINK
  1961. -- ----------------------------
  1962. BEGIN TRANSACTION
  1963. GO
  1964. COMMIT
  1965. GO
  1966. -- ----------------------------
  1967. -- Table structure for ACT_RU_EVENT_SUBSCR
  1968. -- ----------------------------
  1969. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_EVENT_SUBSCR]') AND type IN ('U'))
  1970. DROP TABLE [dbo].[ACT_RU_EVENT_SUBSCR]
  1971. GO
  1972. CREATE TABLE [dbo].[ACT_RU_EVENT_SUBSCR] (
  1973. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1974. [REV_] int NULL,
  1975. [EVENT_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  1976. [EVENT_NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1977. [EXECUTION_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1978. [PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1979. [ACTIVITY_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1980. [CONFIGURATION_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1981. [CREATED_] datetime NOT NULL,
  1982. [PROC_DEF_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1983. [SUB_SCOPE_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1984. [SCOPE_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1985. [SCOPE_DEFINITION_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1986. [SCOPE_TYPE_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1987. [LOCK_TIME_] datetime NULL,
  1988. [LOCK_OWNER_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  1989. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL,
  1990. [SCOPE_DEFINITION_KEY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  1991. )
  1992. GO
  1993. ALTER TABLE [dbo].[ACT_RU_EVENT_SUBSCR] SET (LOCK_ESCALATION = TABLE)
  1994. GO
  1995. -- ----------------------------
  1996. -- Records of ACT_RU_EVENT_SUBSCR
  1997. -- ----------------------------
  1998. BEGIN TRANSACTION
  1999. GO
  2000. COMMIT
  2001. GO
  2002. -- ----------------------------
  2003. -- Table structure for ACT_RU_EXECUTION
  2004. -- ----------------------------
  2005. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_EXECUTION]') AND type IN ('U'))
  2006. DROP TABLE [dbo].[ACT_RU_EXECUTION]
  2007. GO
  2008. CREATE TABLE [dbo].[ACT_RU_EXECUTION] (
  2009. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2010. [REV_] int NULL,
  2011. [PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2012. [BUSINESS_KEY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2013. [PARENT_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2014. [PROC_DEF_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2015. [SUPER_EXEC_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2016. [ROOT_PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2017. [ACT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2018. [IS_ACTIVE_] tinyint NULL,
  2019. [IS_CONCURRENT_] tinyint NULL,
  2020. [IS_SCOPE_] tinyint NULL,
  2021. [IS_EVENT_SCOPE_] tinyint NULL,
  2022. [IS_MI_ROOT_] tinyint NULL,
  2023. [SUSPENSION_STATE_] tinyint NULL,
  2024. [CACHED_ENT_STATE_] int NULL,
  2025. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL,
  2026. [NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2027. [START_ACT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2028. [START_TIME_] datetime NULL,
  2029. [START_USER_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2030. [LOCK_TIME_] datetime NULL,
  2031. [LOCK_OWNER_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2032. [IS_COUNT_ENABLED_] tinyint NULL,
  2033. [EVT_SUBSCR_COUNT_] int NULL,
  2034. [TASK_COUNT_] int NULL,
  2035. [JOB_COUNT_] int NULL,
  2036. [TIMER_JOB_COUNT_] int NULL,
  2037. [SUSP_JOB_COUNT_] int NULL,
  2038. [DEADLETTER_JOB_COUNT_] int NULL,
  2039. [EXTERNAL_WORKER_JOB_COUNT_] int NULL,
  2040. [VAR_COUNT_] int NULL,
  2041. [ID_LINK_COUNT_] int NULL,
  2042. [CALLBACK_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2043. [CALLBACK_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2044. [REFERENCE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2045. [REFERENCE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2046. [PROPAGATED_STAGE_INST_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2047. [BUSINESS_STATUS_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  2048. )
  2049. GO
  2050. ALTER TABLE [dbo].[ACT_RU_EXECUTION] SET (LOCK_ESCALATION = TABLE)
  2051. GO
  2052. -- ----------------------------
  2053. -- Records of ACT_RU_EXECUTION
  2054. -- ----------------------------
  2055. BEGIN TRANSACTION
  2056. GO
  2057. COMMIT
  2058. GO
  2059. -- ----------------------------
  2060. -- Table structure for ACT_RU_EXTERNAL_JOB
  2061. -- ----------------------------
  2062. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_EXTERNAL_JOB]') AND type IN ('U'))
  2063. DROP TABLE [dbo].[ACT_RU_EXTERNAL_JOB]
  2064. GO
  2065. CREATE TABLE [dbo].[ACT_RU_EXTERNAL_JOB] (
  2066. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2067. [REV_] int NULL,
  2068. [CATEGORY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2069. [TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2070. [LOCK_EXP_TIME_] datetime NULL,
  2071. [LOCK_OWNER_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2072. [EXCLUSIVE_] bit NULL,
  2073. [EXECUTION_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2074. [PROCESS_INSTANCE_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2075. [PROC_DEF_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2076. [ELEMENT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2077. [ELEMENT_NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2078. [SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2079. [SUB_SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2080. [SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2081. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2082. [CORRELATION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2083. [RETRIES_] int NULL,
  2084. [EXCEPTION_STACK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2085. [EXCEPTION_MSG_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2086. [DUEDATE_] datetime NULL,
  2087. [REPEAT_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2088. [HANDLER_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2089. [HANDLER_CFG_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2090. [CUSTOM_VALUES_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2091. [CREATE_TIME_] datetime2(7) NULL,
  2092. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL
  2093. )
  2094. GO
  2095. ALTER TABLE [dbo].[ACT_RU_EXTERNAL_JOB] SET (LOCK_ESCALATION = TABLE)
  2096. GO
  2097. -- ----------------------------
  2098. -- Records of ACT_RU_EXTERNAL_JOB
  2099. -- ----------------------------
  2100. BEGIN TRANSACTION
  2101. GO
  2102. COMMIT
  2103. GO
  2104. -- ----------------------------
  2105. -- Table structure for ACT_RU_HISTORY_JOB
  2106. -- ----------------------------
  2107. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_HISTORY_JOB]') AND type IN ('U'))
  2108. DROP TABLE [dbo].[ACT_RU_HISTORY_JOB]
  2109. GO
  2110. CREATE TABLE [dbo].[ACT_RU_HISTORY_JOB] (
  2111. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2112. [REV_] int NULL,
  2113. [LOCK_EXP_TIME_] datetime NULL,
  2114. [LOCK_OWNER_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2115. [RETRIES_] int NULL,
  2116. [EXCEPTION_STACK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2117. [EXCEPTION_MSG_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2118. [HANDLER_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2119. [HANDLER_CFG_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2120. [CUSTOM_VALUES_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2121. [ADV_HANDLER_CFG_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2122. [CREATE_TIME_] datetime2(7) NULL,
  2123. [SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2124. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL
  2125. )
  2126. GO
  2127. ALTER TABLE [dbo].[ACT_RU_HISTORY_JOB] SET (LOCK_ESCALATION = TABLE)
  2128. GO
  2129. -- ----------------------------
  2130. -- Records of ACT_RU_HISTORY_JOB
  2131. -- ----------------------------
  2132. BEGIN TRANSACTION
  2133. GO
  2134. COMMIT
  2135. GO
  2136. -- ----------------------------
  2137. -- Table structure for ACT_RU_IDENTITYLINK
  2138. -- ----------------------------
  2139. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_IDENTITYLINK]') AND type IN ('U'))
  2140. DROP TABLE [dbo].[ACT_RU_IDENTITYLINK]
  2141. GO
  2142. CREATE TABLE [dbo].[ACT_RU_IDENTITYLINK] (
  2143. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2144. [REV_] int NULL,
  2145. [GROUP_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2146. [TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2147. [USER_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2148. [TASK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2149. [PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2150. [PROC_DEF_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2151. [SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2152. [SUB_SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2153. [SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2154. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  2155. )
  2156. GO
  2157. ALTER TABLE [dbo].[ACT_RU_IDENTITYLINK] SET (LOCK_ESCALATION = TABLE)
  2158. GO
  2159. -- ----------------------------
  2160. -- Records of ACT_RU_IDENTITYLINK
  2161. -- ----------------------------
  2162. BEGIN TRANSACTION
  2163. GO
  2164. COMMIT
  2165. GO
  2166. -- ----------------------------
  2167. -- Table structure for ACT_RU_JOB
  2168. -- ----------------------------
  2169. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_JOB]') AND type IN ('U'))
  2170. DROP TABLE [dbo].[ACT_RU_JOB]
  2171. GO
  2172. CREATE TABLE [dbo].[ACT_RU_JOB] (
  2173. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2174. [REV_] int NULL,
  2175. [CATEGORY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2176. [TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2177. [LOCK_EXP_TIME_] datetime NULL,
  2178. [LOCK_OWNER_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2179. [EXCLUSIVE_] bit NULL,
  2180. [EXECUTION_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2181. [PROCESS_INSTANCE_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2182. [PROC_DEF_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2183. [ELEMENT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2184. [ELEMENT_NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2185. [SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2186. [SUB_SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2187. [SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2188. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2189. [CORRELATION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2190. [RETRIES_] int NULL,
  2191. [EXCEPTION_STACK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2192. [EXCEPTION_MSG_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2193. [DUEDATE_] datetime NULL,
  2194. [REPEAT_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2195. [HANDLER_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2196. [HANDLER_CFG_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2197. [CUSTOM_VALUES_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2198. [CREATE_TIME_] datetime2(7) NULL,
  2199. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL
  2200. )
  2201. GO
  2202. ALTER TABLE [dbo].[ACT_RU_JOB] SET (LOCK_ESCALATION = TABLE)
  2203. GO
  2204. -- ----------------------------
  2205. -- Records of ACT_RU_JOB
  2206. -- ----------------------------
  2207. BEGIN TRANSACTION
  2208. GO
  2209. COMMIT
  2210. GO
  2211. -- ----------------------------
  2212. -- Table structure for ACT_RU_SUSPENDED_JOB
  2213. -- ----------------------------
  2214. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_SUSPENDED_JOB]') AND type IN ('U'))
  2215. DROP TABLE [dbo].[ACT_RU_SUSPENDED_JOB]
  2216. GO
  2217. CREATE TABLE [dbo].[ACT_RU_SUSPENDED_JOB] (
  2218. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2219. [REV_] int NULL,
  2220. [CATEGORY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2221. [TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2222. [EXCLUSIVE_] bit NULL,
  2223. [EXECUTION_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2224. [PROCESS_INSTANCE_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2225. [PROC_DEF_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2226. [ELEMENT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2227. [ELEMENT_NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2228. [SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2229. [SUB_SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2230. [SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2231. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2232. [CORRELATION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2233. [RETRIES_] int NULL,
  2234. [EXCEPTION_STACK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2235. [EXCEPTION_MSG_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2236. [DUEDATE_] datetime NULL,
  2237. [REPEAT_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2238. [HANDLER_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2239. [HANDLER_CFG_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2240. [CUSTOM_VALUES_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2241. [CREATE_TIME_] datetime2(7) NULL,
  2242. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL
  2243. )
  2244. GO
  2245. ALTER TABLE [dbo].[ACT_RU_SUSPENDED_JOB] SET (LOCK_ESCALATION = TABLE)
  2246. GO
  2247. -- ----------------------------
  2248. -- Records of ACT_RU_SUSPENDED_JOB
  2249. -- ----------------------------
  2250. BEGIN TRANSACTION
  2251. GO
  2252. COMMIT
  2253. GO
  2254. -- ----------------------------
  2255. -- Table structure for ACT_RU_TASK
  2256. -- ----------------------------
  2257. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_TASK]') AND type IN ('U'))
  2258. DROP TABLE [dbo].[ACT_RU_TASK]
  2259. GO
  2260. CREATE TABLE [dbo].[ACT_RU_TASK] (
  2261. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2262. [REV_] int NULL,
  2263. [EXECUTION_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2264. [PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2265. [PROC_DEF_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2266. [TASK_DEF_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2267. [SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2268. [SUB_SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2269. [SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2270. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2271. [PROPAGATED_STAGE_INST_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2272. [NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2273. [PARENT_TASK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2274. [DESCRIPTION_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2275. [TASK_DEF_KEY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2276. [OWNER_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2277. [ASSIGNEE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2278. [DELEGATION_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2279. [PRIORITY_] int NULL,
  2280. [CREATE_TIME_] datetime NULL,
  2281. [DUE_DATE_] datetime NULL,
  2282. [CATEGORY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2283. [SUSPENSION_STATE_] int NULL,
  2284. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL,
  2285. [FORM_KEY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2286. [CLAIM_TIME_] datetime NULL,
  2287. [IS_COUNT_ENABLED_] tinyint NULL,
  2288. [VAR_COUNT_] int NULL,
  2289. [ID_LINK_COUNT_] int NULL,
  2290. [SUB_TASK_COUNT_] int NULL,
  2291. [STATE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2292. [IN_PROGRESS_TIME_] datetime NULL,
  2293. [IN_PROGRESS_STARTED_BY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2294. [CLAIMED_BY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2295. [SUSPENDED_TIME_] datetime NULL,
  2296. [SUSPENDED_BY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2297. [IN_PROGRESS_DUE_DATE_] datetime NULL
  2298. )
  2299. GO
  2300. ALTER TABLE [dbo].[ACT_RU_TASK] SET (LOCK_ESCALATION = TABLE)
  2301. GO
  2302. -- ----------------------------
  2303. -- Records of ACT_RU_TASK
  2304. -- ----------------------------
  2305. BEGIN TRANSACTION
  2306. GO
  2307. COMMIT
  2308. GO
  2309. -- ----------------------------
  2310. -- Table structure for ACT_RU_TIMER_JOB
  2311. -- ----------------------------
  2312. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_TIMER_JOB]') AND type IN ('U'))
  2313. DROP TABLE [dbo].[ACT_RU_TIMER_JOB]
  2314. GO
  2315. CREATE TABLE [dbo].[ACT_RU_TIMER_JOB] (
  2316. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2317. [REV_] int NULL,
  2318. [CATEGORY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2319. [TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2320. [LOCK_EXP_TIME_] datetime NULL,
  2321. [LOCK_OWNER_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2322. [EXCLUSIVE_] bit NULL,
  2323. [EXECUTION_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2324. [PROCESS_INSTANCE_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2325. [PROC_DEF_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2326. [ELEMENT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2327. [ELEMENT_NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2328. [SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2329. [SUB_SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2330. [SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2331. [SCOPE_DEFINITION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2332. [CORRELATION_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2333. [RETRIES_] int NULL,
  2334. [EXCEPTION_STACK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2335. [EXCEPTION_MSG_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2336. [DUEDATE_] datetime NULL,
  2337. [REPEAT_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2338. [HANDLER_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2339. [HANDLER_CFG_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2340. [CUSTOM_VALUES_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2341. [CREATE_TIME_] datetime2(7) NULL,
  2342. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL
  2343. )
  2344. GO
  2345. ALTER TABLE [dbo].[ACT_RU_TIMER_JOB] SET (LOCK_ESCALATION = TABLE)
  2346. GO
  2347. -- ----------------------------
  2348. -- Records of ACT_RU_TIMER_JOB
  2349. -- ----------------------------
  2350. BEGIN TRANSACTION
  2351. GO
  2352. COMMIT
  2353. GO
  2354. -- ----------------------------
  2355. -- Table structure for ACT_RU_VARIABLE
  2356. -- ----------------------------
  2357. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_VARIABLE]') AND type IN ('U'))
  2358. DROP TABLE [dbo].[ACT_RU_VARIABLE]
  2359. GO
  2360. CREATE TABLE [dbo].[ACT_RU_VARIABLE] (
  2361. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2362. [REV_] int NULL,
  2363. [TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2364. [NAME_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2365. [EXECUTION_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2366. [PROC_INST_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2367. [TASK_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2368. [SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2369. [SUB_SCOPE_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2370. [SCOPE_TYPE_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2371. [BYTEARRAY_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2372. [DOUBLE_] float(53) NULL,
  2373. [LONG_] numeric(19) NULL,
  2374. [TEXT_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2375. [TEXT2_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2376. [META_INFO_] nvarchar(4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  2377. )
  2378. GO
  2379. ALTER TABLE [dbo].[ACT_RU_VARIABLE] SET (LOCK_ESCALATION = TABLE)
  2380. GO
  2381. -- ----------------------------
  2382. -- Records of ACT_RU_VARIABLE
  2383. -- ----------------------------
  2384. BEGIN TRANSACTION
  2385. GO
  2386. COMMIT
  2387. GO
  2388. -- ----------------------------
  2389. -- Table structure for FLW_CHANNEL_DEFINITION
  2390. -- ----------------------------
  2391. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[FLW_CHANNEL_DEFINITION]') AND type IN ('U'))
  2392. DROP TABLE [dbo].[FLW_CHANNEL_DEFINITION]
  2393. GO
  2394. CREATE TABLE [dbo].[FLW_CHANNEL_DEFINITION] (
  2395. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2396. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2397. [VERSION_] int NULL,
  2398. [KEY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2399. [CATEGORY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2400. [DEPLOYMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2401. [CREATE_TIME_] datetime NULL,
  2402. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2403. [RESOURCE_NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2404. [DESCRIPTION_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2405. [TYPE_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2406. [IMPLEMENTATION_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  2407. )
  2408. GO
  2409. ALTER TABLE [dbo].[FLW_CHANNEL_DEFINITION] SET (LOCK_ESCALATION = TABLE)
  2410. GO
  2411. -- ----------------------------
  2412. -- Records of FLW_CHANNEL_DEFINITION
  2413. -- ----------------------------
  2414. BEGIN TRANSACTION
  2415. GO
  2416. COMMIT
  2417. GO
  2418. -- ----------------------------
  2419. -- Table structure for FLW_EVENT_DEFINITION
  2420. -- ----------------------------
  2421. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[FLW_EVENT_DEFINITION]') AND type IN ('U'))
  2422. DROP TABLE [dbo].[FLW_EVENT_DEFINITION]
  2423. GO
  2424. CREATE TABLE [dbo].[FLW_EVENT_DEFINITION] (
  2425. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2426. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2427. [VERSION_] int NULL,
  2428. [KEY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2429. [CATEGORY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2430. [DEPLOYMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2431. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2432. [RESOURCE_NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2433. [DESCRIPTION_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  2434. )
  2435. GO
  2436. ALTER TABLE [dbo].[FLW_EVENT_DEFINITION] SET (LOCK_ESCALATION = TABLE)
  2437. GO
  2438. -- ----------------------------
  2439. -- Records of FLW_EVENT_DEFINITION
  2440. -- ----------------------------
  2441. BEGIN TRANSACTION
  2442. GO
  2443. COMMIT
  2444. GO
  2445. -- ----------------------------
  2446. -- Table structure for FLW_EVENT_DEPLOYMENT
  2447. -- ----------------------------
  2448. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[FLW_EVENT_DEPLOYMENT]') AND type IN ('U'))
  2449. DROP TABLE [dbo].[FLW_EVENT_DEPLOYMENT]
  2450. GO
  2451. CREATE TABLE [dbo].[FLW_EVENT_DEPLOYMENT] (
  2452. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2453. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2454. [CATEGORY_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2455. [DEPLOY_TIME_] datetime NULL,
  2456. [TENANT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2457. [PARENT_DEPLOYMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  2458. )
  2459. GO
  2460. ALTER TABLE [dbo].[FLW_EVENT_DEPLOYMENT] SET (LOCK_ESCALATION = TABLE)
  2461. GO
  2462. -- ----------------------------
  2463. -- Records of FLW_EVENT_DEPLOYMENT
  2464. -- ----------------------------
  2465. BEGIN TRANSACTION
  2466. GO
  2467. COMMIT
  2468. GO
  2469. -- ----------------------------
  2470. -- Table structure for FLW_EVENT_RESOURCE
  2471. -- ----------------------------
  2472. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[FLW_EVENT_RESOURCE]') AND type IN ('U'))
  2473. DROP TABLE [dbo].[FLW_EVENT_RESOURCE]
  2474. GO
  2475. CREATE TABLE [dbo].[FLW_EVENT_RESOURCE] (
  2476. [ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2477. [NAME_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2478. [DEPLOYMENT_ID_] varchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2479. [RESOURCE_BYTES_] varbinary(max) NULL
  2480. )
  2481. GO
  2482. ALTER TABLE [dbo].[FLW_EVENT_RESOURCE] SET (LOCK_ESCALATION = TABLE)
  2483. GO
  2484. -- ----------------------------
  2485. -- Records of FLW_EVENT_RESOURCE
  2486. -- ----------------------------
  2487. BEGIN TRANSACTION
  2488. GO
  2489. COMMIT
  2490. GO
  2491. -- ----------------------------
  2492. -- Table structure for FLW_EV_DATABASECHANGELOG
  2493. -- ----------------------------
  2494. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[FLW_EV_DATABASECHANGELOG]') AND type IN ('U'))
  2495. DROP TABLE [dbo].[FLW_EV_DATABASECHANGELOG]
  2496. GO
  2497. CREATE TABLE [dbo].[FLW_EV_DATABASECHANGELOG] (
  2498. [ID] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2499. [AUTHOR] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2500. [FILENAME] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2501. [DATEEXECUTED] datetime2(3) NOT NULL,
  2502. [ORDEREXECUTED] int NOT NULL,
  2503. [EXECTYPE] nvarchar(10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2504. [MD5SUM] nvarchar(35) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2505. [DESCRIPTION] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2506. [COMMENTS] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2507. [TAG] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2508. [LIQUIBASE] nvarchar(20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2509. [CONTEXTS] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2510. [LABELS] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2511. [DEPLOYMENT_ID] nvarchar(10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  2512. )
  2513. GO
  2514. ALTER TABLE [dbo].[FLW_EV_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  2515. GO
  2516. -- ----------------------------
  2517. -- Records of FLW_EV_DATABASECHANGELOG
  2518. -- ----------------------------
  2519. BEGIN TRANSACTION
  2520. GO
  2521. INSERT INTO [dbo].[FLW_EV_DATABASECHANGELOG] ([ID], [AUTHOR], [FILENAME], [DATEEXECUTED], [ORDEREXECUTED], [EXECTYPE], [MD5SUM], [DESCRIPTION], [COMMENTS], [TAG], [LIQUIBASE], [CONTEXTS], [LABELS], [DEPLOYMENT_ID]) VALUES (N'1', N'flowable', N'org/flowable/eventregistry/db/liquibase/flowable-eventregistry-db-changelog.xml', N'2024-03-14 15:52:53.897', N'1', N'EXECUTED', N'9:63268f536c469325acef35970312551b', N'createTable tableName=FLW_EVENT_DEPLOYMENT; createTable tableName=FLW_EVENT_RESOURCE; createTable tableName=FLW_EVENT_DEFINITION; createIndex indexName=ACT_IDX_EVENT_DEF_UNIQ, tableName=FLW_EVENT_DEFINITION; createTable tableName=FLW_CHANNEL_DEFIN...', N'', NULL, N'4.3.5', NULL, NULL, N'1644005653'), (N'2', N'flowable', N'org/flowable/eventregistry/db/liquibase/flowable-eventregistry-db-changelog.xml', N'2024-03-14 15:52:53.900', N'2', N'EXECUTED', N'9:dcb58b7dfd6dbda66939123a96985536', N'addColumn tableName=FLW_CHANNEL_DEFINITION; addColumn tableName=FLW_CHANNEL_DEFINITION', N'', NULL, N'4.3.5', NULL, NULL, N'1644005653'), (N'3', N'flowable', N'org/flowable/eventregistry/db/liquibase/flowable-eventregistry-db-changelog.xml', N'2024-03-14 15:52:53.903', N'3', N'EXECUTED', N'9:d0c05678d57af23ad93699991e3bf4f6', N'customChange', N'', NULL, N'4.3.5', NULL, NULL, N'1644005653')
  2522. GO
  2523. COMMIT
  2524. GO
  2525. -- ----------------------------
  2526. -- Table structure for FLW_EV_DATABASECHANGELOGLOCK
  2527. -- ----------------------------
  2528. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[FLW_EV_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  2529. DROP TABLE [dbo].[FLW_EV_DATABASECHANGELOGLOCK]
  2530. GO
  2531. CREATE TABLE [dbo].[FLW_EV_DATABASECHANGELOGLOCK] (
  2532. [ID] int NOT NULL,
  2533. [LOCKED] bit NOT NULL,
  2534. [LOCKGRANTED] datetime2(3) NULL,
  2535. [LOCKEDBY] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
  2536. )
  2537. GO
  2538. ALTER TABLE [dbo].[FLW_EV_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  2539. GO
  2540. -- ----------------------------
  2541. -- Records of FLW_EV_DATABASECHANGELOGLOCK
  2542. -- ----------------------------
  2543. BEGIN TRANSACTION
  2544. GO
  2545. INSERT INTO [dbo].[FLW_EV_DATABASECHANGELOGLOCK] ([ID], [LOCKED], [LOCKGRANTED], [LOCKEDBY]) VALUES (N'1', N'0', NULL, NULL)
  2546. GO
  2547. COMMIT
  2548. GO
  2549. -- ----------------------------
  2550. -- Table structure for FLW_RU_BATCH
  2551. -- ----------------------------
  2552. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[FLW_RU_BATCH]') AND type IN ('U'))
  2553. DROP TABLE [dbo].[FLW_RU_BATCH]
  2554. GO
  2555. CREATE TABLE [dbo].[FLW_RU_BATCH] (
  2556. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2557. [REV_] int NULL,
  2558. [TYPE_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2559. [SEARCH_KEY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2560. [SEARCH_KEY2_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2561. [CREATE_TIME_] datetime NOT NULL,
  2562. [COMPLETE_TIME_] datetime NULL,
  2563. [STATUS_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2564. [BATCH_DOC_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2565. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL
  2566. )
  2567. GO
  2568. ALTER TABLE [dbo].[FLW_RU_BATCH] SET (LOCK_ESCALATION = TABLE)
  2569. GO
  2570. -- ----------------------------
  2571. -- Records of FLW_RU_BATCH
  2572. -- ----------------------------
  2573. BEGIN TRANSACTION
  2574. GO
  2575. COMMIT
  2576. GO
  2577. -- ----------------------------
  2578. -- Table structure for FLW_RU_BATCH_PART
  2579. -- ----------------------------
  2580. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[FLW_RU_BATCH_PART]') AND type IN ('U'))
  2581. DROP TABLE [dbo].[FLW_RU_BATCH_PART]
  2582. GO
  2583. CREATE TABLE [dbo].[FLW_RU_BATCH_PART] (
  2584. [ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2585. [REV_] int NULL,
  2586. [BATCH_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2587. [TYPE_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  2588. [SCOPE_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2589. [SUB_SCOPE_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2590. [SCOPE_TYPE_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2591. [SEARCH_KEY_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2592. [SEARCH_KEY2_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2593. [CREATE_TIME_] datetime NOT NULL,
  2594. [COMPLETE_TIME_] datetime NULL,
  2595. [STATUS_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2596. [RESULT_DOC_ID_] nvarchar(64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
  2597. [TENANT_ID_] nvarchar(255) COLLATE SQL_Latin1_General_CP1_CI_AS DEFAULT '' NULL
  2598. )
  2599. GO
  2600. ALTER TABLE [dbo].[FLW_RU_BATCH_PART] SET (LOCK_ESCALATION = TABLE)
  2601. GO
  2602. -- ----------------------------
  2603. -- Records of FLW_RU_BATCH_PART
  2604. -- ----------------------------
  2605. BEGIN TRANSACTION
  2606. GO
  2607. COMMIT
  2608. GO
  2609. -- ----------------------------
  2610. -- Indexes structure for table ACT_APP_APPDEF
  2611. -- ----------------------------
  2612. CREATE NONCLUSTERED INDEX [ACT_IDX_APP_DEF_DPLY]
  2613. ON [dbo].[ACT_APP_APPDEF] (
  2614. [DEPLOYMENT_ID_] ASC
  2615. )
  2616. GO
  2617. CREATE UNIQUE NONCLUSTERED INDEX [ACT_IDX_APP_DEF_UNIQ]
  2618. ON [dbo].[ACT_APP_APPDEF] (
  2619. [KEY_] ASC,
  2620. [VERSION_] ASC,
  2621. [TENANT_ID_] ASC
  2622. )
  2623. GO
  2624. -- ----------------------------
  2625. -- Primary Key structure for table ACT_APP_APPDEF
  2626. -- ----------------------------
  2627. ALTER TABLE [dbo].[ACT_APP_APPDEF] ADD CONSTRAINT [PK_ACT_APP_APPDEF] PRIMARY KEY CLUSTERED ([ID_])
  2628. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2629. ON [PRIMARY]
  2630. GO
  2631. -- ----------------------------
  2632. -- Primary Key structure for table ACT_APP_DATABASECHANGELOGLOCK
  2633. -- ----------------------------
  2634. ALTER TABLE [dbo].[ACT_APP_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_ACT_APP_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  2635. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2636. ON [PRIMARY]
  2637. GO
  2638. -- ----------------------------
  2639. -- Primary Key structure for table ACT_APP_DEPLOYMENT
  2640. -- ----------------------------
  2641. ALTER TABLE [dbo].[ACT_APP_DEPLOYMENT] ADD CONSTRAINT [PK_ACT_APP_DEPLOYMENT] PRIMARY KEY CLUSTERED ([ID_])
  2642. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2643. ON [PRIMARY]
  2644. GO
  2645. -- ----------------------------
  2646. -- Indexes structure for table ACT_APP_DEPLOYMENT_RESOURCE
  2647. -- ----------------------------
  2648. CREATE NONCLUSTERED INDEX [ACT_IDX_APP_RSRC_DPL]
  2649. ON [dbo].[ACT_APP_DEPLOYMENT_RESOURCE] (
  2650. [DEPLOYMENT_ID_] ASC
  2651. )
  2652. GO
  2653. -- ----------------------------
  2654. -- Primary Key structure for table ACT_APP_DEPLOYMENT_RESOURCE
  2655. -- ----------------------------
  2656. ALTER TABLE [dbo].[ACT_APP_DEPLOYMENT_RESOURCE] ADD CONSTRAINT [PK_APP_DEPLOYMENT_RESOURCE] PRIMARY KEY CLUSTERED ([ID_])
  2657. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2658. ON [PRIMARY]
  2659. GO
  2660. -- ----------------------------
  2661. -- Indexes structure for table ACT_CMMN_CASEDEF
  2662. -- ----------------------------
  2663. CREATE NONCLUSTERED INDEX [ACT_IDX_CASE_DEF_DPLY]
  2664. ON [dbo].[ACT_CMMN_CASEDEF] (
  2665. [DEPLOYMENT_ID_] ASC
  2666. )
  2667. GO
  2668. CREATE UNIQUE NONCLUSTERED INDEX [ACT_IDX_CASE_DEF_UNIQ]
  2669. ON [dbo].[ACT_CMMN_CASEDEF] (
  2670. [KEY_] ASC,
  2671. [VERSION_] ASC,
  2672. [TENANT_ID_] ASC
  2673. )
  2674. GO
  2675. -- ----------------------------
  2676. -- Primary Key structure for table ACT_CMMN_CASEDEF
  2677. -- ----------------------------
  2678. ALTER TABLE [dbo].[ACT_CMMN_CASEDEF] ADD CONSTRAINT [PK_ACT_CMMN_CASEDEF] PRIMARY KEY CLUSTERED ([ID_])
  2679. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2680. ON [PRIMARY]
  2681. GO
  2682. -- ----------------------------
  2683. -- Primary Key structure for table ACT_CMMN_DATABASECHANGELOGLOCK
  2684. -- ----------------------------
  2685. ALTER TABLE [dbo].[ACT_CMMN_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_ACT_CMMN_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  2686. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2687. ON [PRIMARY]
  2688. GO
  2689. -- ----------------------------
  2690. -- Primary Key structure for table ACT_CMMN_DEPLOYMENT
  2691. -- ----------------------------
  2692. ALTER TABLE [dbo].[ACT_CMMN_DEPLOYMENT] ADD CONSTRAINT [PK_ACT_CMMN_DEPLOYMENT] PRIMARY KEY CLUSTERED ([ID_])
  2693. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2694. ON [PRIMARY]
  2695. GO
  2696. -- ----------------------------
  2697. -- Indexes structure for table ACT_CMMN_DEPLOYMENT_RESOURCE
  2698. -- ----------------------------
  2699. CREATE NONCLUSTERED INDEX [ACT_IDX_CMMN_RSRC_DPL]
  2700. ON [dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE] (
  2701. [DEPLOYMENT_ID_] ASC
  2702. )
  2703. GO
  2704. -- ----------------------------
  2705. -- Primary Key structure for table ACT_CMMN_DEPLOYMENT_RESOURCE
  2706. -- ----------------------------
  2707. ALTER TABLE [dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE] ADD CONSTRAINT [PK_CMMN_DEPLOYMENT_RESOURCE] PRIMARY KEY CLUSTERED ([ID_])
  2708. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2709. ON [PRIMARY]
  2710. GO
  2711. -- ----------------------------
  2712. -- Indexes structure for table ACT_CMMN_HI_CASE_INST
  2713. -- ----------------------------
  2714. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_CASE_INST_END]
  2715. ON [dbo].[ACT_CMMN_HI_CASE_INST] (
  2716. [END_TIME_] ASC
  2717. )
  2718. GO
  2719. -- ----------------------------
  2720. -- Primary Key structure for table ACT_CMMN_HI_CASE_INST
  2721. -- ----------------------------
  2722. ALTER TABLE [dbo].[ACT_CMMN_HI_CASE_INST] ADD CONSTRAINT [PK_ACT_CMMN_HI_CASE_INST] PRIMARY KEY CLUSTERED ([ID_])
  2723. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2724. ON [PRIMARY]
  2725. GO
  2726. -- ----------------------------
  2727. -- Primary Key structure for table ACT_CMMN_HI_MIL_INST
  2728. -- ----------------------------
  2729. ALTER TABLE [dbo].[ACT_CMMN_HI_MIL_INST] ADD CONSTRAINT [PK_ACT_CMMN_HI_MIL_INST] PRIMARY KEY CLUSTERED ([ID_])
  2730. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2731. ON [PRIMARY]
  2732. GO
  2733. -- ----------------------------
  2734. -- Indexes structure for table ACT_CMMN_HI_PLAN_ITEM_INST
  2735. -- ----------------------------
  2736. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_PLAN_ITEM_INST_CASE]
  2737. ON [dbo].[ACT_CMMN_HI_PLAN_ITEM_INST] (
  2738. [CASE_INST_ID_] ASC
  2739. )
  2740. GO
  2741. -- ----------------------------
  2742. -- Primary Key structure for table ACT_CMMN_HI_PLAN_ITEM_INST
  2743. -- ----------------------------
  2744. ALTER TABLE [dbo].[ACT_CMMN_HI_PLAN_ITEM_INST] ADD CONSTRAINT [PK_ACT_CMMN_HI_PLAN_ITEM_INST] PRIMARY KEY CLUSTERED ([ID_])
  2745. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2746. ON [PRIMARY]
  2747. GO
  2748. -- ----------------------------
  2749. -- Indexes structure for table ACT_CMMN_RU_CASE_INST
  2750. -- ----------------------------
  2751. CREATE NONCLUSTERED INDEX [ACT_IDX_CASE_INST_CASE_DEF]
  2752. ON [dbo].[ACT_CMMN_RU_CASE_INST] (
  2753. [CASE_DEF_ID_] ASC
  2754. )
  2755. GO
  2756. CREATE NONCLUSTERED INDEX [ACT_IDX_CASE_INST_PARENT]
  2757. ON [dbo].[ACT_CMMN_RU_CASE_INST] (
  2758. [PARENT_ID_] ASC
  2759. )
  2760. GO
  2761. CREATE NONCLUSTERED INDEX [ACT_IDX_CASE_INST_REF_ID_]
  2762. ON [dbo].[ACT_CMMN_RU_CASE_INST] (
  2763. [REFERENCE_ID_] ASC
  2764. )
  2765. GO
  2766. -- ----------------------------
  2767. -- Primary Key structure for table ACT_CMMN_RU_CASE_INST
  2768. -- ----------------------------
  2769. ALTER TABLE [dbo].[ACT_CMMN_RU_CASE_INST] ADD CONSTRAINT [PK_ACT_CMMN_RU_CASE_INST] PRIMARY KEY CLUSTERED ([ID_])
  2770. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2771. ON [PRIMARY]
  2772. GO
  2773. -- ----------------------------
  2774. -- Indexes structure for table ACT_CMMN_RU_MIL_INST
  2775. -- ----------------------------
  2776. CREATE NONCLUSTERED INDEX [ACT_IDX_MIL_CASE_DEF]
  2777. ON [dbo].[ACT_CMMN_RU_MIL_INST] (
  2778. [CASE_DEF_ID_] ASC
  2779. )
  2780. GO
  2781. CREATE NONCLUSTERED INDEX [ACT_IDX_MIL_CASE_INST]
  2782. ON [dbo].[ACT_CMMN_RU_MIL_INST] (
  2783. [CASE_INST_ID_] ASC
  2784. )
  2785. GO
  2786. -- ----------------------------
  2787. -- Primary Key structure for table ACT_CMMN_RU_MIL_INST
  2788. -- ----------------------------
  2789. ALTER TABLE [dbo].[ACT_CMMN_RU_MIL_INST] ADD CONSTRAINT [PK_ACT_CMMN_RU_MIL_INST] PRIMARY KEY CLUSTERED ([ID_])
  2790. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2791. ON [PRIMARY]
  2792. GO
  2793. -- ----------------------------
  2794. -- Indexes structure for table ACT_CMMN_RU_PLAN_ITEM_INST
  2795. -- ----------------------------
  2796. CREATE NONCLUSTERED INDEX [ACT_IDX_PLAN_ITEM_CASE_DEF]
  2797. ON [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] (
  2798. [CASE_DEF_ID_] ASC
  2799. )
  2800. GO
  2801. CREATE NONCLUSTERED INDEX [ACT_IDX_PLAN_ITEM_CASE_INST]
  2802. ON [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] (
  2803. [CASE_INST_ID_] ASC
  2804. )
  2805. GO
  2806. CREATE NONCLUSTERED INDEX [ACT_IDX_PLAN_ITEM_STAGE_INST]
  2807. ON [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] (
  2808. [STAGE_INST_ID_] ASC
  2809. )
  2810. GO
  2811. -- ----------------------------
  2812. -- Primary Key structure for table ACT_CMMN_RU_PLAN_ITEM_INST
  2813. -- ----------------------------
  2814. ALTER TABLE [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] ADD CONSTRAINT [PK_CMMN_PLAN_ITEM_INST] PRIMARY KEY CLUSTERED ([ID_])
  2815. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2816. ON [PRIMARY]
  2817. GO
  2818. -- ----------------------------
  2819. -- Indexes structure for table ACT_CMMN_RU_SENTRY_PART_INST
  2820. -- ----------------------------
  2821. CREATE NONCLUSTERED INDEX [ACT_IDX_SENTRY_CASE_DEF]
  2822. ON [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] (
  2823. [CASE_DEF_ID_] ASC
  2824. )
  2825. GO
  2826. CREATE NONCLUSTERED INDEX [ACT_IDX_SENTRY_CASE_INST]
  2827. ON [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] (
  2828. [CASE_INST_ID_] ASC
  2829. )
  2830. GO
  2831. CREATE NONCLUSTERED INDEX [ACT_IDX_SENTRY_PLAN_ITEM]
  2832. ON [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] (
  2833. [PLAN_ITEM_INST_ID_] ASC
  2834. )
  2835. GO
  2836. -- ----------------------------
  2837. -- Primary Key structure for table ACT_CMMN_RU_SENTRY_PART_INST
  2838. -- ----------------------------
  2839. ALTER TABLE [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] ADD CONSTRAINT [PK_CMMN_SENTRY_PART_INST] PRIMARY KEY CLUSTERED ([ID_])
  2840. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2841. ON [PRIMARY]
  2842. GO
  2843. -- ----------------------------
  2844. -- Indexes structure for table ACT_CO_CONTENT_ITEM
  2845. -- ----------------------------
  2846. CREATE NONCLUSTERED INDEX [idx_contitem_taskid]
  2847. ON [dbo].[ACT_CO_CONTENT_ITEM] (
  2848. [TASK_ID_] ASC
  2849. )
  2850. GO
  2851. CREATE NONCLUSTERED INDEX [idx_contitem_procid]
  2852. ON [dbo].[ACT_CO_CONTENT_ITEM] (
  2853. [PROC_INST_ID_] ASC
  2854. )
  2855. GO
  2856. CREATE NONCLUSTERED INDEX [idx_contitem_scope]
  2857. ON [dbo].[ACT_CO_CONTENT_ITEM] (
  2858. [SCOPE_ID_] ASC,
  2859. [SCOPE_TYPE_] ASC
  2860. )
  2861. GO
  2862. -- ----------------------------
  2863. -- Primary Key structure for table ACT_CO_CONTENT_ITEM
  2864. -- ----------------------------
  2865. ALTER TABLE [dbo].[ACT_CO_CONTENT_ITEM] ADD CONSTRAINT [PK_ACT_CO_CONTENT_ITEM] PRIMARY KEY CLUSTERED ([ID_])
  2866. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2867. ON [PRIMARY]
  2868. GO
  2869. -- ----------------------------
  2870. -- Primary Key structure for table ACT_CO_DATABASECHANGELOGLOCK
  2871. -- ----------------------------
  2872. ALTER TABLE [dbo].[ACT_CO_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_ACT_CO_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  2873. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2874. ON [PRIMARY]
  2875. GO
  2876. -- ----------------------------
  2877. -- Primary Key structure for table ACT_DE_DATABASECHANGELOGLOCK
  2878. -- ----------------------------
  2879. ALTER TABLE [dbo].[ACT_DE_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_ACT_DE_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  2880. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2881. ON [PRIMARY]
  2882. GO
  2883. -- ----------------------------
  2884. -- Indexes structure for table ACT_DE_MODEL
  2885. -- ----------------------------
  2886. CREATE NONCLUSTERED INDEX [idx_proc_mod_created]
  2887. ON [dbo].[ACT_DE_MODEL] (
  2888. [created_by] ASC
  2889. )
  2890. GO
  2891. -- ----------------------------
  2892. -- Primary Key structure for table ACT_DE_MODEL
  2893. -- ----------------------------
  2894. ALTER TABLE [dbo].[ACT_DE_MODEL] ADD CONSTRAINT [PK_ACT_DE_MODEL] PRIMARY KEY CLUSTERED ([id])
  2895. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2896. ON [PRIMARY]
  2897. GO
  2898. -- ----------------------------
  2899. -- Indexes structure for table ACT_DE_MODEL_HISTORY
  2900. -- ----------------------------
  2901. CREATE NONCLUSTERED INDEX [idx_proc_mod_history_proc]
  2902. ON [dbo].[ACT_DE_MODEL_HISTORY] (
  2903. [model_id] ASC
  2904. )
  2905. GO
  2906. -- ----------------------------
  2907. -- Primary Key structure for table ACT_DE_MODEL_HISTORY
  2908. -- ----------------------------
  2909. ALTER TABLE [dbo].[ACT_DE_MODEL_HISTORY] ADD CONSTRAINT [PK_ACT_DE_MODEL_HISTORY] PRIMARY KEY CLUSTERED ([id])
  2910. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2911. ON [PRIMARY]
  2912. GO
  2913. -- ----------------------------
  2914. -- Primary Key structure for table ACT_DE_MODEL_RELATION
  2915. -- ----------------------------
  2916. ALTER TABLE [dbo].[ACT_DE_MODEL_RELATION] ADD CONSTRAINT [PK_ACT_DE_MODEL_RELATION] PRIMARY KEY CLUSTERED ([id])
  2917. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2918. ON [PRIMARY]
  2919. GO
  2920. -- ----------------------------
  2921. -- Primary Key structure for table ACT_DMN_DATABASECHANGELOGLOCK
  2922. -- ----------------------------
  2923. ALTER TABLE [dbo].[ACT_DMN_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_ACT_DMN_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  2924. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2925. ON [PRIMARY]
  2926. GO
  2927. -- ----------------------------
  2928. -- Indexes structure for table ACT_DMN_DECISION
  2929. -- ----------------------------
  2930. CREATE UNIQUE NONCLUSTERED INDEX [ACT_IDX_DMN_DEC_UNIQ]
  2931. ON [dbo].[ACT_DMN_DECISION] (
  2932. [KEY_] ASC,
  2933. [VERSION_] ASC,
  2934. [TENANT_ID_] ASC
  2935. )
  2936. GO
  2937. -- ----------------------------
  2938. -- Primary Key structure for table ACT_DMN_DECISION
  2939. -- ----------------------------
  2940. ALTER TABLE [dbo].[ACT_DMN_DECISION] ADD CONSTRAINT [PK_ACT_DMN_DECISION_TABLE] PRIMARY KEY CLUSTERED ([ID_])
  2941. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2942. ON [PRIMARY]
  2943. GO
  2944. -- ----------------------------
  2945. -- Primary Key structure for table ACT_DMN_DEPLOYMENT
  2946. -- ----------------------------
  2947. ALTER TABLE [dbo].[ACT_DMN_DEPLOYMENT] ADD CONSTRAINT [PK_ACT_DMN_DEPLOYMENT] PRIMARY KEY CLUSTERED ([ID_])
  2948. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2949. ON [PRIMARY]
  2950. GO
  2951. -- ----------------------------
  2952. -- Primary Key structure for table ACT_DMN_DEPLOYMENT_RESOURCE
  2953. -- ----------------------------
  2954. ALTER TABLE [dbo].[ACT_DMN_DEPLOYMENT_RESOURCE] ADD CONSTRAINT [PK_ACT_DMN_DEPLOYMENT_RESOURCE] PRIMARY KEY CLUSTERED ([ID_])
  2955. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2956. ON [PRIMARY]
  2957. GO
  2958. -- ----------------------------
  2959. -- Indexes structure for table ACT_DMN_HI_DECISION_EXECUTION
  2960. -- ----------------------------
  2961. CREATE NONCLUSTERED INDEX [ACT_IDX_DMN_INSTANCE_ID]
  2962. ON [dbo].[ACT_DMN_HI_DECISION_EXECUTION] (
  2963. [INSTANCE_ID_] ASC
  2964. )
  2965. GO
  2966. -- ----------------------------
  2967. -- Primary Key structure for table ACT_DMN_HI_DECISION_EXECUTION
  2968. -- ----------------------------
  2969. ALTER TABLE [dbo].[ACT_DMN_HI_DECISION_EXECUTION] ADD CONSTRAINT [PK_ACT_DMN_HI_DECISION_EXECUTION] PRIMARY KEY CLUSTERED ([ID_])
  2970. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2971. ON [PRIMARY]
  2972. GO
  2973. -- ----------------------------
  2974. -- Auto increment value for ACT_EVT_LOG
  2975. -- ----------------------------
  2976. DBCC CHECKIDENT ('[dbo].[ACT_EVT_LOG]', RESEED, 1)
  2977. GO
  2978. -- ----------------------------
  2979. -- Primary Key structure for table ACT_EVT_LOG
  2980. -- ----------------------------
  2981. ALTER TABLE [dbo].[ACT_EVT_LOG] ADD CONSTRAINT [PK__ACT_EVT___DE8852D86ADC7D73] PRIMARY KEY CLUSTERED ([LOG_NR_])
  2982. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2983. ON [PRIMARY]
  2984. GO
  2985. -- ----------------------------
  2986. -- Primary Key structure for table ACT_FO_DATABASECHANGELOGLOCK
  2987. -- ----------------------------
  2988. ALTER TABLE [dbo].[ACT_FO_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_ACT_FO_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  2989. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  2990. ON [PRIMARY]
  2991. GO
  2992. -- ----------------------------
  2993. -- Indexes structure for table ACT_FO_FORM_DEFINITION
  2994. -- ----------------------------
  2995. CREATE UNIQUE NONCLUSTERED INDEX [ACT_IDX_FORM_DEF_UNIQ]
  2996. ON [dbo].[ACT_FO_FORM_DEFINITION] (
  2997. [KEY_] ASC,
  2998. [VERSION_] ASC,
  2999. [TENANT_ID_] ASC
  3000. )
  3001. GO
  3002. -- ----------------------------
  3003. -- Primary Key structure for table ACT_FO_FORM_DEFINITION
  3004. -- ----------------------------
  3005. ALTER TABLE [dbo].[ACT_FO_FORM_DEFINITION] ADD CONSTRAINT [PK_ACT_FO_FORM_DEFINITION] PRIMARY KEY CLUSTERED ([ID_])
  3006. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3007. ON [PRIMARY]
  3008. GO
  3009. -- ----------------------------
  3010. -- Primary Key structure for table ACT_FO_FORM_DEPLOYMENT
  3011. -- ----------------------------
  3012. ALTER TABLE [dbo].[ACT_FO_FORM_DEPLOYMENT] ADD CONSTRAINT [PK_ACT_FO_FORM_DEPLOYMENT] PRIMARY KEY CLUSTERED ([ID_])
  3013. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3014. ON [PRIMARY]
  3015. GO
  3016. -- ----------------------------
  3017. -- Indexes structure for table ACT_FO_FORM_INSTANCE
  3018. -- ----------------------------
  3019. CREATE NONCLUSTERED INDEX [ACT_IDX_FORM_TASK]
  3020. ON [dbo].[ACT_FO_FORM_INSTANCE] (
  3021. [TASK_ID_] ASC
  3022. )
  3023. GO
  3024. CREATE NONCLUSTERED INDEX [ACT_IDX_FORM_PROC]
  3025. ON [dbo].[ACT_FO_FORM_INSTANCE] (
  3026. [PROC_INST_ID_] ASC
  3027. )
  3028. GO
  3029. CREATE NONCLUSTERED INDEX [ACT_IDX_FORM_SCOPE]
  3030. ON [dbo].[ACT_FO_FORM_INSTANCE] (
  3031. [SCOPE_ID_] ASC,
  3032. [SCOPE_TYPE_] ASC
  3033. )
  3034. GO
  3035. -- ----------------------------
  3036. -- Primary Key structure for table ACT_FO_FORM_INSTANCE
  3037. -- ----------------------------
  3038. ALTER TABLE [dbo].[ACT_FO_FORM_INSTANCE] ADD CONSTRAINT [PK_ACT_FO_FORM_INSTANCE] PRIMARY KEY CLUSTERED ([ID_])
  3039. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3040. ON [PRIMARY]
  3041. GO
  3042. -- ----------------------------
  3043. -- Primary Key structure for table ACT_FO_FORM_RESOURCE
  3044. -- ----------------------------
  3045. ALTER TABLE [dbo].[ACT_FO_FORM_RESOURCE] ADD CONSTRAINT [PK_ACT_FO_FORM_RESOURCE] PRIMARY KEY CLUSTERED ([ID_])
  3046. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3047. ON [PRIMARY]
  3048. GO
  3049. -- ----------------------------
  3050. -- Primary Key structure for table ACT_GE_BYTEARRAY
  3051. -- ----------------------------
  3052. ALTER TABLE [dbo].[ACT_GE_BYTEARRAY] ADD CONSTRAINT [PK__ACT_GE_B__C4971C0FD30493FA] PRIMARY KEY CLUSTERED ([ID_])
  3053. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3054. ON [PRIMARY]
  3055. GO
  3056. -- ----------------------------
  3057. -- Primary Key structure for table ACT_GE_PROPERTY
  3058. -- ----------------------------
  3059. ALTER TABLE [dbo].[ACT_GE_PROPERTY] ADD CONSTRAINT [PK__ACT_GE_P__A7BE44DE49135FFB] PRIMARY KEY CLUSTERED ([NAME_])
  3060. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3061. ON [PRIMARY]
  3062. GO
  3063. -- ----------------------------
  3064. -- Indexes structure for table ACT_HI_ACTINST
  3065. -- ----------------------------
  3066. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_ACT_INST_START]
  3067. ON [dbo].[ACT_HI_ACTINST] (
  3068. [START_TIME_] ASC
  3069. )
  3070. GO
  3071. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_ACT_INST_END]
  3072. ON [dbo].[ACT_HI_ACTINST] (
  3073. [END_TIME_] ASC
  3074. )
  3075. GO
  3076. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_ACT_INST_PROCINST]
  3077. ON [dbo].[ACT_HI_ACTINST] (
  3078. [PROC_INST_ID_] ASC,
  3079. [ACT_ID_] ASC
  3080. )
  3081. GO
  3082. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_ACT_INST_EXEC]
  3083. ON [dbo].[ACT_HI_ACTINST] (
  3084. [EXECUTION_ID_] ASC,
  3085. [ACT_ID_] ASC
  3086. )
  3087. GO
  3088. -- ----------------------------
  3089. -- Primary Key structure for table ACT_HI_ACTINST
  3090. -- ----------------------------
  3091. ALTER TABLE [dbo].[ACT_HI_ACTINST] ADD CONSTRAINT [PK__ACT_HI_A__C4971C0F2451D6E3] PRIMARY KEY CLUSTERED ([ID_])
  3092. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3093. ON [PRIMARY]
  3094. GO
  3095. -- ----------------------------
  3096. -- Primary Key structure for table ACT_HI_ATTACHMENT
  3097. -- ----------------------------
  3098. ALTER TABLE [dbo].[ACT_HI_ATTACHMENT] ADD CONSTRAINT [PK__ACT_HI_A__C4971C0F200B2D6C] PRIMARY KEY CLUSTERED ([ID_])
  3099. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3100. ON [PRIMARY]
  3101. GO
  3102. -- ----------------------------
  3103. -- Primary Key structure for table ACT_HI_COMMENT
  3104. -- ----------------------------
  3105. ALTER TABLE [dbo].[ACT_HI_COMMENT] ADD CONSTRAINT [PK__ACT_HI_C__C4971C0F2E06F7E2] PRIMARY KEY CLUSTERED ([ID_])
  3106. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3107. ON [PRIMARY]
  3108. GO
  3109. -- ----------------------------
  3110. -- Indexes structure for table ACT_HI_DETAIL
  3111. -- ----------------------------
  3112. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_DETAIL_PROC_INST]
  3113. ON [dbo].[ACT_HI_DETAIL] (
  3114. [PROC_INST_ID_] ASC
  3115. )
  3116. GO
  3117. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_DETAIL_ACT_INST]
  3118. ON [dbo].[ACT_HI_DETAIL] (
  3119. [ACT_INST_ID_] ASC
  3120. )
  3121. GO
  3122. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_DETAIL_TIME]
  3123. ON [dbo].[ACT_HI_DETAIL] (
  3124. [TIME_] ASC
  3125. )
  3126. GO
  3127. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_DETAIL_NAME]
  3128. ON [dbo].[ACT_HI_DETAIL] (
  3129. [NAME_] ASC
  3130. )
  3131. GO
  3132. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_DETAIL_TASK_ID]
  3133. ON [dbo].[ACT_HI_DETAIL] (
  3134. [TASK_ID_] ASC
  3135. )
  3136. GO
  3137. -- ----------------------------
  3138. -- Primary Key structure for table ACT_HI_DETAIL
  3139. -- ----------------------------
  3140. ALTER TABLE [dbo].[ACT_HI_DETAIL] ADD CONSTRAINT [PK__ACT_HI_D__C4971C0F40A48B1A] PRIMARY KEY CLUSTERED ([ID_])
  3141. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3142. ON [PRIMARY]
  3143. GO
  3144. -- ----------------------------
  3145. -- Indexes structure for table ACT_HI_ENTITYLINK
  3146. -- ----------------------------
  3147. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_ENT_LNK_SCOPE]
  3148. ON [dbo].[ACT_HI_ENTITYLINK] (
  3149. [SCOPE_ID_] ASC,
  3150. [SCOPE_TYPE_] ASC,
  3151. [LINK_TYPE_] ASC
  3152. )
  3153. GO
  3154. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_ENT_LNK_REF_SCOPE]
  3155. ON [dbo].[ACT_HI_ENTITYLINK] (
  3156. [REF_SCOPE_ID_] ASC,
  3157. [REF_SCOPE_TYPE_] ASC,
  3158. [LINK_TYPE_] ASC
  3159. )
  3160. GO
  3161. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_ENT_LNK_ROOT_SCOPE]
  3162. ON [dbo].[ACT_HI_ENTITYLINK] (
  3163. [ROOT_SCOPE_ID_] ASC,
  3164. [ROOT_SCOPE_TYPE_] ASC,
  3165. [LINK_TYPE_] ASC
  3166. )
  3167. GO
  3168. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_ENT_LNK_SCOPE_DEF]
  3169. ON [dbo].[ACT_HI_ENTITYLINK] (
  3170. [SCOPE_DEFINITION_ID_] ASC,
  3171. [SCOPE_TYPE_] ASC,
  3172. [LINK_TYPE_] ASC
  3173. )
  3174. GO
  3175. -- ----------------------------
  3176. -- Primary Key structure for table ACT_HI_ENTITYLINK
  3177. -- ----------------------------
  3178. ALTER TABLE [dbo].[ACT_HI_ENTITYLINK] ADD CONSTRAINT [PK__ACT_HI_E__C4971C0FEED8EF51] PRIMARY KEY CLUSTERED ([ID_])
  3179. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3180. ON [PRIMARY]
  3181. GO
  3182. -- ----------------------------
  3183. -- Indexes structure for table ACT_HI_IDENTITYLINK
  3184. -- ----------------------------
  3185. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_IDENT_LNK_USER]
  3186. ON [dbo].[ACT_HI_IDENTITYLINK] (
  3187. [USER_ID_] ASC
  3188. )
  3189. GO
  3190. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_IDENT_LNK_SCOPE]
  3191. ON [dbo].[ACT_HI_IDENTITYLINK] (
  3192. [SCOPE_ID_] ASC,
  3193. [SCOPE_TYPE_] ASC
  3194. )
  3195. GO
  3196. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_IDENT_LNK_SUB_SCOPE]
  3197. ON [dbo].[ACT_HI_IDENTITYLINK] (
  3198. [SUB_SCOPE_ID_] ASC,
  3199. [SCOPE_TYPE_] ASC
  3200. )
  3201. GO
  3202. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_IDENT_LNK_SCOPE_DEF]
  3203. ON [dbo].[ACT_HI_IDENTITYLINK] (
  3204. [SCOPE_DEFINITION_ID_] ASC,
  3205. [SCOPE_TYPE_] ASC
  3206. )
  3207. GO
  3208. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_IDENT_LNK_TASK]
  3209. ON [dbo].[ACT_HI_IDENTITYLINK] (
  3210. [TASK_ID_] ASC
  3211. )
  3212. GO
  3213. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_IDENT_LNK_PROCINST]
  3214. ON [dbo].[ACT_HI_IDENTITYLINK] (
  3215. [PROC_INST_ID_] ASC
  3216. )
  3217. GO
  3218. -- ----------------------------
  3219. -- Primary Key structure for table ACT_HI_IDENTITYLINK
  3220. -- ----------------------------
  3221. ALTER TABLE [dbo].[ACT_HI_IDENTITYLINK] ADD CONSTRAINT [PK__ACT_HI_I__C4971C0FA127DE68] PRIMARY KEY CLUSTERED ([ID_])
  3222. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3223. ON [PRIMARY]
  3224. GO
  3225. -- ----------------------------
  3226. -- Indexes structure for table ACT_HI_PROCINST
  3227. -- ----------------------------
  3228. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_PRO_INST_END]
  3229. ON [dbo].[ACT_HI_PROCINST] (
  3230. [END_TIME_] ASC
  3231. )
  3232. GO
  3233. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_PRO_I_BUSKEY]
  3234. ON [dbo].[ACT_HI_PROCINST] (
  3235. [BUSINESS_KEY_] ASC
  3236. )
  3237. GO
  3238. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_PRO_SUPER_PROCINST]
  3239. ON [dbo].[ACT_HI_PROCINST] (
  3240. [SUPER_PROCESS_INSTANCE_ID_] ASC
  3241. )
  3242. GO
  3243. -- ----------------------------
  3244. -- Uniques structure for table ACT_HI_PROCINST
  3245. -- ----------------------------
  3246. ALTER TABLE [dbo].[ACT_HI_PROCINST] ADD CONSTRAINT [UQ__ACT_HI_P__C0341572F5DEF7EA] UNIQUE NONCLUSTERED ([PROC_INST_ID_] ASC)
  3247. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3248. ON [PRIMARY]
  3249. GO
  3250. -- ----------------------------
  3251. -- Primary Key structure for table ACT_HI_PROCINST
  3252. -- ----------------------------
  3253. ALTER TABLE [dbo].[ACT_HI_PROCINST] ADD CONSTRAINT [PK__ACT_HI_P__C4971C0F9DC73153] PRIMARY KEY CLUSTERED ([ID_])
  3254. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3255. ON [PRIMARY]
  3256. GO
  3257. -- ----------------------------
  3258. -- Indexes structure for table ACT_HI_TASKINST
  3259. -- ----------------------------
  3260. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_TASK_SCOPE]
  3261. ON [dbo].[ACT_HI_TASKINST] (
  3262. [SCOPE_ID_] ASC,
  3263. [SCOPE_TYPE_] ASC
  3264. )
  3265. GO
  3266. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_TASK_SUB_SCOPE]
  3267. ON [dbo].[ACT_HI_TASKINST] (
  3268. [SUB_SCOPE_ID_] ASC,
  3269. [SCOPE_TYPE_] ASC
  3270. )
  3271. GO
  3272. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_TASK_SCOPE_DEF]
  3273. ON [dbo].[ACT_HI_TASKINST] (
  3274. [SCOPE_DEFINITION_ID_] ASC,
  3275. [SCOPE_TYPE_] ASC
  3276. )
  3277. GO
  3278. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_TASK_INST_PROCINST]
  3279. ON [dbo].[ACT_HI_TASKINST] (
  3280. [PROC_INST_ID_] ASC
  3281. )
  3282. GO
  3283. -- ----------------------------
  3284. -- Primary Key structure for table ACT_HI_TASKINST
  3285. -- ----------------------------
  3286. ALTER TABLE [dbo].[ACT_HI_TASKINST] ADD CONSTRAINT [PK__ACT_HI_T__C4971C0FDDE6C3CA] PRIMARY KEY CLUSTERED ([ID_])
  3287. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3288. ON [PRIMARY]
  3289. GO
  3290. -- ----------------------------
  3291. -- Auto increment value for ACT_HI_TSK_LOG
  3292. -- ----------------------------
  3293. DBCC CHECKIDENT ('[dbo].[ACT_HI_TSK_LOG]', RESEED, 1)
  3294. GO
  3295. -- ----------------------------
  3296. -- Primary Key structure for table ACT_HI_TSK_LOG
  3297. -- ----------------------------
  3298. ALTER TABLE [dbo].[ACT_HI_TSK_LOG] ADD CONSTRAINT [PK__ACT_HI_T__C4971C0FE3DE5C63] PRIMARY KEY CLUSTERED ([ID_])
  3299. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3300. ON [PRIMARY]
  3301. GO
  3302. -- ----------------------------
  3303. -- Indexes structure for table ACT_HI_VARINST
  3304. -- ----------------------------
  3305. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_PROCVAR_NAME_TYPE]
  3306. ON [dbo].[ACT_HI_VARINST] (
  3307. [NAME_] ASC,
  3308. [VAR_TYPE_] ASC
  3309. )
  3310. GO
  3311. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_VAR_SCOPE_ID_TYPE]
  3312. ON [dbo].[ACT_HI_VARINST] (
  3313. [SCOPE_ID_] ASC,
  3314. [SCOPE_TYPE_] ASC
  3315. )
  3316. GO
  3317. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_VAR_SUB_ID_TYPE]
  3318. ON [dbo].[ACT_HI_VARINST] (
  3319. [SUB_SCOPE_ID_] ASC,
  3320. [SCOPE_TYPE_] ASC
  3321. )
  3322. GO
  3323. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_PROCVAR_PROC_INST]
  3324. ON [dbo].[ACT_HI_VARINST] (
  3325. [PROC_INST_ID_] ASC
  3326. )
  3327. GO
  3328. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_PROCVAR_TASK_ID]
  3329. ON [dbo].[ACT_HI_VARINST] (
  3330. [TASK_ID_] ASC
  3331. )
  3332. GO
  3333. CREATE NONCLUSTERED INDEX [ACT_IDX_HI_PROCVAR_EXE]
  3334. ON [dbo].[ACT_HI_VARINST] (
  3335. [EXECUTION_ID_] ASC
  3336. )
  3337. GO
  3338. -- ----------------------------
  3339. -- Primary Key structure for table ACT_HI_VARINST
  3340. -- ----------------------------
  3341. ALTER TABLE [dbo].[ACT_HI_VARINST] ADD CONSTRAINT [PK__ACT_HI_V__C4971C0F899A46DE] PRIMARY KEY CLUSTERED ([ID_])
  3342. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3343. ON [PRIMARY]
  3344. GO
  3345. -- ----------------------------
  3346. -- Primary Key structure for table ACT_ID_BYTEARRAY
  3347. -- ----------------------------
  3348. ALTER TABLE [dbo].[ACT_ID_BYTEARRAY] ADD CONSTRAINT [PK__ACT_ID_B__C4971C0FE3B999DC] PRIMARY KEY CLUSTERED ([ID_])
  3349. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3350. ON [PRIMARY]
  3351. GO
  3352. -- ----------------------------
  3353. -- Primary Key structure for table ACT_ID_GROUP
  3354. -- ----------------------------
  3355. ALTER TABLE [dbo].[ACT_ID_GROUP] ADD CONSTRAINT [PK__ACT_ID_G__C4971C0F2B119228] PRIMARY KEY CLUSTERED ([ID_])
  3356. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3357. ON [PRIMARY]
  3358. GO
  3359. -- ----------------------------
  3360. -- Primary Key structure for table ACT_ID_INFO
  3361. -- ----------------------------
  3362. ALTER TABLE [dbo].[ACT_ID_INFO] ADD CONSTRAINT [PK__ACT_ID_I__C4971C0F0E8CE406] PRIMARY KEY CLUSTERED ([ID_])
  3363. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3364. ON [PRIMARY]
  3365. GO
  3366. -- ----------------------------
  3367. -- Primary Key structure for table ACT_ID_MEMBERSHIP
  3368. -- ----------------------------
  3369. ALTER TABLE [dbo].[ACT_ID_MEMBERSHIP] ADD CONSTRAINT [PK__ACT_ID_M__C2371B0F230E010D] PRIMARY KEY CLUSTERED ([USER_ID_], [GROUP_ID_])
  3370. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3371. ON [PRIMARY]
  3372. GO
  3373. -- ----------------------------
  3374. -- Uniques structure for table ACT_ID_PRIV
  3375. -- ----------------------------
  3376. ALTER TABLE [dbo].[ACT_ID_PRIV] ADD CONSTRAINT [ACT_UNIQ_PRIV_NAME] UNIQUE NONCLUSTERED ([NAME_] ASC)
  3377. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3378. ON [PRIMARY]
  3379. GO
  3380. -- ----------------------------
  3381. -- Primary Key structure for table ACT_ID_PRIV
  3382. -- ----------------------------
  3383. ALTER TABLE [dbo].[ACT_ID_PRIV] ADD CONSTRAINT [PK__ACT_ID_P__C4971C0F1B9A75B0] PRIMARY KEY CLUSTERED ([ID_])
  3384. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3385. ON [PRIMARY]
  3386. GO
  3387. -- ----------------------------
  3388. -- Indexes structure for table ACT_ID_PRIV_MAPPING
  3389. -- ----------------------------
  3390. CREATE NONCLUSTERED INDEX [ACT_IDX_PRIV_USER]
  3391. ON [dbo].[ACT_ID_PRIV_MAPPING] (
  3392. [USER_ID_] ASC
  3393. )
  3394. GO
  3395. CREATE NONCLUSTERED INDEX [ACT_IDX_PRIV_GROUP]
  3396. ON [dbo].[ACT_ID_PRIV_MAPPING] (
  3397. [GROUP_ID_] ASC
  3398. )
  3399. GO
  3400. -- ----------------------------
  3401. -- Primary Key structure for table ACT_ID_PRIV_MAPPING
  3402. -- ----------------------------
  3403. ALTER TABLE [dbo].[ACT_ID_PRIV_MAPPING] ADD CONSTRAINT [PK__ACT_ID_P__C4971C0F113C0DF7] PRIMARY KEY CLUSTERED ([ID_])
  3404. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3405. ON [PRIMARY]
  3406. GO
  3407. -- ----------------------------
  3408. -- Primary Key structure for table ACT_ID_PROPERTY
  3409. -- ----------------------------
  3410. ALTER TABLE [dbo].[ACT_ID_PROPERTY] ADD CONSTRAINT [PK__ACT_ID_P__A7BE44DE00D2EAEF] PRIMARY KEY CLUSTERED ([NAME_])
  3411. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3412. ON [PRIMARY]
  3413. GO
  3414. -- ----------------------------
  3415. -- Primary Key structure for table ACT_ID_TOKEN
  3416. -- ----------------------------
  3417. ALTER TABLE [dbo].[ACT_ID_TOKEN] ADD CONSTRAINT [PK__ACT_ID_T__C4971C0F0C6DA3E7] PRIMARY KEY CLUSTERED ([ID_])
  3418. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3419. ON [PRIMARY]
  3420. GO
  3421. -- ----------------------------
  3422. -- Primary Key structure for table ACT_ID_USER
  3423. -- ----------------------------
  3424. ALTER TABLE [dbo].[ACT_ID_USER] ADD CONSTRAINT [PK__ACT_ID_U__C4971C0FFB7FB36B] PRIMARY KEY CLUSTERED ([ID_])
  3425. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3426. ON [PRIMARY]
  3427. GO
  3428. -- ----------------------------
  3429. -- Indexes structure for table ACT_PROCDEF_INFO
  3430. -- ----------------------------
  3431. CREATE NONCLUSTERED INDEX [ACT_IDX_INFO_PROCDEF]
  3432. ON [dbo].[ACT_PROCDEF_INFO] (
  3433. [PROC_DEF_ID_] ASC
  3434. )
  3435. GO
  3436. -- ----------------------------
  3437. -- Uniques structure for table ACT_PROCDEF_INFO
  3438. -- ----------------------------
  3439. ALTER TABLE [dbo].[ACT_PROCDEF_INFO] ADD CONSTRAINT [ACT_UNIQ_INFO_PROCDEF] UNIQUE NONCLUSTERED ([PROC_DEF_ID_] ASC)
  3440. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3441. ON [PRIMARY]
  3442. GO
  3443. -- ----------------------------
  3444. -- Primary Key structure for table ACT_PROCDEF_INFO
  3445. -- ----------------------------
  3446. ALTER TABLE [dbo].[ACT_PROCDEF_INFO] ADD CONSTRAINT [PK__ACT_PROC__C4971C0F74F78A2D] PRIMARY KEY CLUSTERED ([ID_])
  3447. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3448. ON [PRIMARY]
  3449. GO
  3450. -- ----------------------------
  3451. -- Primary Key structure for table ACT_RE_DEPLOYMENT
  3452. -- ----------------------------
  3453. ALTER TABLE [dbo].[ACT_RE_DEPLOYMENT] ADD CONSTRAINT [PK__ACT_RE_D__C4971C0F364A6578] PRIMARY KEY CLUSTERED ([ID_])
  3454. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3455. ON [PRIMARY]
  3456. GO
  3457. -- ----------------------------
  3458. -- Primary Key structure for table ACT_RE_MODEL
  3459. -- ----------------------------
  3460. ALTER TABLE [dbo].[ACT_RE_MODEL] ADD CONSTRAINT [PK__ACT_RE_M__C4971C0FC6153643] PRIMARY KEY CLUSTERED ([ID_])
  3461. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3462. ON [PRIMARY]
  3463. GO
  3464. -- ----------------------------
  3465. -- Uniques structure for table ACT_RE_PROCDEF
  3466. -- ----------------------------
  3467. ALTER TABLE [dbo].[ACT_RE_PROCDEF] ADD CONSTRAINT [ACT_UNIQ_PROCDEF] UNIQUE NONCLUSTERED ([KEY_] ASC, [VERSION_] ASC, [DERIVED_VERSION_] ASC, [TENANT_ID_] ASC)
  3468. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3469. ON [PRIMARY]
  3470. GO
  3471. -- ----------------------------
  3472. -- Primary Key structure for table ACT_RE_PROCDEF
  3473. -- ----------------------------
  3474. ALTER TABLE [dbo].[ACT_RE_PROCDEF] ADD CONSTRAINT [PK__ACT_RE_P__C4971C0FF3F16E59] PRIMARY KEY CLUSTERED ([ID_])
  3475. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3476. ON [PRIMARY]
  3477. GO
  3478. -- ----------------------------
  3479. -- Indexes structure for table ACT_RU_ACTINST
  3480. -- ----------------------------
  3481. CREATE NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_START]
  3482. ON [dbo].[ACT_RU_ACTINST] (
  3483. [START_TIME_] ASC
  3484. )
  3485. GO
  3486. CREATE NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_END]
  3487. ON [dbo].[ACT_RU_ACTINST] (
  3488. [END_TIME_] ASC
  3489. )
  3490. GO
  3491. CREATE NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_PROC]
  3492. ON [dbo].[ACT_RU_ACTINST] (
  3493. [PROC_INST_ID_] ASC
  3494. )
  3495. GO
  3496. CREATE NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_PROC_ACT]
  3497. ON [dbo].[ACT_RU_ACTINST] (
  3498. [PROC_INST_ID_] ASC,
  3499. [ACT_ID_] ASC
  3500. )
  3501. GO
  3502. CREATE NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_EXEC]
  3503. ON [dbo].[ACT_RU_ACTINST] (
  3504. [EXECUTION_ID_] ASC
  3505. )
  3506. GO
  3507. CREATE NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_EXEC_ACT]
  3508. ON [dbo].[ACT_RU_ACTINST] (
  3509. [EXECUTION_ID_] ASC,
  3510. [ACT_ID_] ASC
  3511. )
  3512. GO
  3513. CREATE NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_TASK]
  3514. ON [dbo].[ACT_RU_ACTINST] (
  3515. [TASK_ID_] ASC
  3516. )
  3517. GO
  3518. -- ----------------------------
  3519. -- Primary Key structure for table ACT_RU_ACTINST
  3520. -- ----------------------------
  3521. ALTER TABLE [dbo].[ACT_RU_ACTINST] ADD CONSTRAINT [PK__ACT_RU_A__C4971C0F9AFE0002] PRIMARY KEY CLUSTERED ([ID_])
  3522. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3523. ON [PRIMARY]
  3524. GO
  3525. -- ----------------------------
  3526. -- Indexes structure for table ACT_RU_DEADLETTER_JOB
  3527. -- ----------------------------
  3528. CREATE NONCLUSTERED INDEX [ACT_IDX_DEADLETTER_JOB_EXCEPTION_STACK_ID]
  3529. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  3530. [EXCEPTION_STACK_ID_] ASC
  3531. )
  3532. GO
  3533. CREATE NONCLUSTERED INDEX [ACT_IDX_DEADLETTER_JOB_CUSTOM_VALUES_ID]
  3534. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  3535. [CUSTOM_VALUES_ID_] ASC
  3536. )
  3537. GO
  3538. CREATE NONCLUSTERED INDEX [ACT_IDX_DEADLETTER_JOB_CORRELATION_ID]
  3539. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  3540. [CORRELATION_ID_] ASC
  3541. )
  3542. GO
  3543. CREATE NONCLUSTERED INDEX [ACT_IDX_DJOB_SCOPE]
  3544. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  3545. [SCOPE_ID_] ASC,
  3546. [SCOPE_TYPE_] ASC
  3547. )
  3548. GO
  3549. CREATE NONCLUSTERED INDEX [ACT_IDX_DJOB_SUB_SCOPE]
  3550. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  3551. [SUB_SCOPE_ID_] ASC,
  3552. [SCOPE_TYPE_] ASC
  3553. )
  3554. GO
  3555. CREATE NONCLUSTERED INDEX [ACT_IDX_DJOB_SCOPE_DEF]
  3556. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  3557. [SCOPE_DEFINITION_ID_] ASC,
  3558. [SCOPE_TYPE_] ASC
  3559. )
  3560. GO
  3561. CREATE NONCLUSTERED INDEX [ACT_IDX_DEADLETTER_JOB_EXECUTION_ID]
  3562. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  3563. [EXECUTION_ID_] ASC
  3564. )
  3565. GO
  3566. CREATE NONCLUSTERED INDEX [ACT_IDX_DEADLETTER_JOB_PROCESS_INSTANCE_ID]
  3567. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  3568. [PROCESS_INSTANCE_ID_] ASC
  3569. )
  3570. GO
  3571. CREATE NONCLUSTERED INDEX [ACT_IDX_DEADLETTER_JOB_PROC_DEF_ID]
  3572. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  3573. [PROC_DEF_ID_] ASC
  3574. )
  3575. GO
  3576. -- ----------------------------
  3577. -- Primary Key structure for table ACT_RU_DEADLETTER_JOB
  3578. -- ----------------------------
  3579. ALTER TABLE [dbo].[ACT_RU_DEADLETTER_JOB] ADD CONSTRAINT [PK__ACT_RU_D__C4971C0F802873D8] PRIMARY KEY CLUSTERED ([ID_])
  3580. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3581. ON [PRIMARY]
  3582. GO
  3583. -- ----------------------------
  3584. -- Indexes structure for table ACT_RU_ENTITYLINK
  3585. -- ----------------------------
  3586. CREATE NONCLUSTERED INDEX [ACT_IDX_ENT_LNK_SCOPE]
  3587. ON [dbo].[ACT_RU_ENTITYLINK] (
  3588. [SCOPE_ID_] ASC,
  3589. [SCOPE_TYPE_] ASC,
  3590. [LINK_TYPE_] ASC
  3591. )
  3592. GO
  3593. CREATE NONCLUSTERED INDEX [ACT_IDX_ENT_LNK_REF_SCOPE]
  3594. ON [dbo].[ACT_RU_ENTITYLINK] (
  3595. [REF_SCOPE_ID_] ASC,
  3596. [REF_SCOPE_TYPE_] ASC,
  3597. [LINK_TYPE_] ASC
  3598. )
  3599. GO
  3600. CREATE NONCLUSTERED INDEX [ACT_IDX_ENT_LNK_ROOT_SCOPE]
  3601. ON [dbo].[ACT_RU_ENTITYLINK] (
  3602. [ROOT_SCOPE_ID_] ASC,
  3603. [ROOT_SCOPE_TYPE_] ASC,
  3604. [LINK_TYPE_] ASC
  3605. )
  3606. GO
  3607. CREATE NONCLUSTERED INDEX [ACT_IDX_ENT_LNK_SCOPE_DEF]
  3608. ON [dbo].[ACT_RU_ENTITYLINK] (
  3609. [SCOPE_DEFINITION_ID_] ASC,
  3610. [SCOPE_TYPE_] ASC,
  3611. [LINK_TYPE_] ASC
  3612. )
  3613. GO
  3614. -- ----------------------------
  3615. -- Primary Key structure for table ACT_RU_ENTITYLINK
  3616. -- ----------------------------
  3617. ALTER TABLE [dbo].[ACT_RU_ENTITYLINK] ADD CONSTRAINT [PK__ACT_RU_E__C4971C0F1837003C] PRIMARY KEY CLUSTERED ([ID_])
  3618. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3619. ON [PRIMARY]
  3620. GO
  3621. -- ----------------------------
  3622. -- Indexes structure for table ACT_RU_EVENT_SUBSCR
  3623. -- ----------------------------
  3624. CREATE NONCLUSTERED INDEX [ACT_IDX_EVENT_SUBSCR_CONFIG_]
  3625. ON [dbo].[ACT_RU_EVENT_SUBSCR] (
  3626. [CONFIGURATION_] ASC
  3627. )
  3628. GO
  3629. CREATE NONCLUSTERED INDEX [ACT_IDX_EVENT_SUBSCR_EXEC_ID]
  3630. ON [dbo].[ACT_RU_EVENT_SUBSCR] (
  3631. [EXECUTION_ID_] ASC
  3632. )
  3633. GO
  3634. CREATE NONCLUSTERED INDEX [ACT_IDX_EVENT_SUBSCR_SCOPEREF_]
  3635. ON [dbo].[ACT_RU_EVENT_SUBSCR] (
  3636. [SCOPE_ID_] ASC,
  3637. [SCOPE_TYPE_] ASC
  3638. )
  3639. GO
  3640. -- ----------------------------
  3641. -- Primary Key structure for table ACT_RU_EVENT_SUBSCR
  3642. -- ----------------------------
  3643. ALTER TABLE [dbo].[ACT_RU_EVENT_SUBSCR] ADD CONSTRAINT [PK__ACT_RU_E__C4971C0FD068F467] PRIMARY KEY CLUSTERED ([ID_])
  3644. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3645. ON [PRIMARY]
  3646. GO
  3647. -- ----------------------------
  3648. -- Indexes structure for table ACT_RU_EXECUTION
  3649. -- ----------------------------
  3650. CREATE NONCLUSTERED INDEX [ACT_IDX_EXEC_BUSKEY]
  3651. ON [dbo].[ACT_RU_EXECUTION] (
  3652. [BUSINESS_KEY_] ASC
  3653. )
  3654. GO
  3655. CREATE NONCLUSTERED INDEX [ACT_IDX_EXEC_ROOT]
  3656. ON [dbo].[ACT_RU_EXECUTION] (
  3657. [ROOT_PROC_INST_ID_] ASC
  3658. )
  3659. GO
  3660. CREATE NONCLUSTERED INDEX [ACT_IDX_EXEC_REF_ID_]
  3661. ON [dbo].[ACT_RU_EXECUTION] (
  3662. [REFERENCE_ID_] ASC
  3663. )
  3664. GO
  3665. CREATE NONCLUSTERED INDEX [ACT_IDX_EXECUTION_PROC]
  3666. ON [dbo].[ACT_RU_EXECUTION] (
  3667. [PROC_DEF_ID_] ASC
  3668. )
  3669. GO
  3670. CREATE NONCLUSTERED INDEX [ACT_IDX_EXECUTION_PARENT]
  3671. ON [dbo].[ACT_RU_EXECUTION] (
  3672. [PARENT_ID_] ASC
  3673. )
  3674. GO
  3675. CREATE NONCLUSTERED INDEX [ACT_IDX_EXECUTION_SUPER]
  3676. ON [dbo].[ACT_RU_EXECUTION] (
  3677. [SUPER_EXEC_] ASC
  3678. )
  3679. GO
  3680. CREATE NONCLUSTERED INDEX [ACT_IDX_EXECUTION_IDANDREV]
  3681. ON [dbo].[ACT_RU_EXECUTION] (
  3682. [ID_] ASC,
  3683. [REV_] ASC
  3684. )
  3685. GO
  3686. CREATE NONCLUSTERED INDEX [ACT_IDX_EXEC_PROC_INST_ID]
  3687. ON [dbo].[ACT_RU_EXECUTION] (
  3688. [PROC_INST_ID_] ASC
  3689. )
  3690. GO
  3691. -- ----------------------------
  3692. -- Primary Key structure for table ACT_RU_EXECUTION
  3693. -- ----------------------------
  3694. ALTER TABLE [dbo].[ACT_RU_EXECUTION] ADD CONSTRAINT [PK__ACT_RU_E__C4971C0F23EDB8A1] PRIMARY KEY CLUSTERED ([ID_])
  3695. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3696. ON [PRIMARY]
  3697. GO
  3698. -- ----------------------------
  3699. -- Indexes structure for table ACT_RU_EXTERNAL_JOB
  3700. -- ----------------------------
  3701. CREATE NONCLUSTERED INDEX [ACT_IDX_EXTERNAL_JOB_EXCEPTION_STACK_ID]
  3702. ON [dbo].[ACT_RU_EXTERNAL_JOB] (
  3703. [EXCEPTION_STACK_ID_] ASC
  3704. )
  3705. GO
  3706. CREATE NONCLUSTERED INDEX [ACT_IDX_EXTERNAL_JOB_CUSTOM_VALUES_ID]
  3707. ON [dbo].[ACT_RU_EXTERNAL_JOB] (
  3708. [CUSTOM_VALUES_ID_] ASC
  3709. )
  3710. GO
  3711. CREATE NONCLUSTERED INDEX [ACT_IDX_EXTERNAL_JOB_CORRELATION_ID]
  3712. ON [dbo].[ACT_RU_EXTERNAL_JOB] (
  3713. [CORRELATION_ID_] ASC
  3714. )
  3715. GO
  3716. CREATE NONCLUSTERED INDEX [ACT_IDX_EJOB_SCOPE]
  3717. ON [dbo].[ACT_RU_EXTERNAL_JOB] (
  3718. [SCOPE_ID_] ASC,
  3719. [SCOPE_TYPE_] ASC
  3720. )
  3721. GO
  3722. CREATE NONCLUSTERED INDEX [ACT_IDX_EJOB_SUB_SCOPE]
  3723. ON [dbo].[ACT_RU_EXTERNAL_JOB] (
  3724. [SUB_SCOPE_ID_] ASC,
  3725. [SCOPE_TYPE_] ASC
  3726. )
  3727. GO
  3728. CREATE NONCLUSTERED INDEX [ACT_IDX_EJOB_SCOPE_DEF]
  3729. ON [dbo].[ACT_RU_EXTERNAL_JOB] (
  3730. [SCOPE_DEFINITION_ID_] ASC,
  3731. [SCOPE_TYPE_] ASC
  3732. )
  3733. GO
  3734. -- ----------------------------
  3735. -- Primary Key structure for table ACT_RU_EXTERNAL_JOB
  3736. -- ----------------------------
  3737. ALTER TABLE [dbo].[ACT_RU_EXTERNAL_JOB] ADD CONSTRAINT [PK__ACT_RU_E__C4971C0F34A40685] PRIMARY KEY CLUSTERED ([ID_])
  3738. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3739. ON [PRIMARY]
  3740. GO
  3741. -- ----------------------------
  3742. -- Primary Key structure for table ACT_RU_HISTORY_JOB
  3743. -- ----------------------------
  3744. ALTER TABLE [dbo].[ACT_RU_HISTORY_JOB] ADD CONSTRAINT [PK__ACT_RU_H__C4971C0F01BB5820] PRIMARY KEY CLUSTERED ([ID_])
  3745. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3746. ON [PRIMARY]
  3747. GO
  3748. -- ----------------------------
  3749. -- Indexes structure for table ACT_RU_IDENTITYLINK
  3750. -- ----------------------------
  3751. CREATE NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_USER]
  3752. ON [dbo].[ACT_RU_IDENTITYLINK] (
  3753. [USER_ID_] ASC
  3754. )
  3755. GO
  3756. CREATE NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_GROUP]
  3757. ON [dbo].[ACT_RU_IDENTITYLINK] (
  3758. [GROUP_ID_] ASC
  3759. )
  3760. GO
  3761. CREATE NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_SCOPE]
  3762. ON [dbo].[ACT_RU_IDENTITYLINK] (
  3763. [SCOPE_ID_] ASC,
  3764. [SCOPE_TYPE_] ASC
  3765. )
  3766. GO
  3767. CREATE NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_SUB_SCOPE]
  3768. ON [dbo].[ACT_RU_IDENTITYLINK] (
  3769. [SUB_SCOPE_ID_] ASC,
  3770. [SCOPE_TYPE_] ASC
  3771. )
  3772. GO
  3773. CREATE NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_SCOPE_DEF]
  3774. ON [dbo].[ACT_RU_IDENTITYLINK] (
  3775. [SCOPE_DEFINITION_ID_] ASC,
  3776. [SCOPE_TYPE_] ASC
  3777. )
  3778. GO
  3779. CREATE NONCLUSTERED INDEX [ACT_IDX_ATHRZ_PROCEDEF]
  3780. ON [dbo].[ACT_RU_IDENTITYLINK] (
  3781. [PROC_DEF_ID_] ASC
  3782. )
  3783. GO
  3784. CREATE NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_TASK]
  3785. ON [dbo].[ACT_RU_IDENTITYLINK] (
  3786. [TASK_ID_] ASC
  3787. )
  3788. GO
  3789. CREATE NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_PROCINST]
  3790. ON [dbo].[ACT_RU_IDENTITYLINK] (
  3791. [PROC_INST_ID_] ASC
  3792. )
  3793. GO
  3794. -- ----------------------------
  3795. -- Primary Key structure for table ACT_RU_IDENTITYLINK
  3796. -- ----------------------------
  3797. ALTER TABLE [dbo].[ACT_RU_IDENTITYLINK] ADD CONSTRAINT [PK__ACT_RU_I__C4971C0F84681884] PRIMARY KEY CLUSTERED ([ID_])
  3798. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3799. ON [PRIMARY]
  3800. GO
  3801. -- ----------------------------
  3802. -- Indexes structure for table ACT_RU_JOB
  3803. -- ----------------------------
  3804. CREATE NONCLUSTERED INDEX [ACT_IDX_JOB_EXCEPTION_STACK_ID]
  3805. ON [dbo].[ACT_RU_JOB] (
  3806. [EXCEPTION_STACK_ID_] ASC
  3807. )
  3808. GO
  3809. CREATE NONCLUSTERED INDEX [ACT_IDX_JOB_CUSTOM_VALUES_ID]
  3810. ON [dbo].[ACT_RU_JOB] (
  3811. [CUSTOM_VALUES_ID_] ASC
  3812. )
  3813. GO
  3814. CREATE NONCLUSTERED INDEX [ACT_IDX_JOB_CORRELATION_ID]
  3815. ON [dbo].[ACT_RU_JOB] (
  3816. [CORRELATION_ID_] ASC
  3817. )
  3818. GO
  3819. CREATE NONCLUSTERED INDEX [ACT_IDX_JOB_SCOPE]
  3820. ON [dbo].[ACT_RU_JOB] (
  3821. [SCOPE_ID_] ASC,
  3822. [SCOPE_TYPE_] ASC
  3823. )
  3824. GO
  3825. CREATE NONCLUSTERED INDEX [ACT_IDX_JOB_SUB_SCOPE]
  3826. ON [dbo].[ACT_RU_JOB] (
  3827. [SUB_SCOPE_ID_] ASC,
  3828. [SCOPE_TYPE_] ASC
  3829. )
  3830. GO
  3831. CREATE NONCLUSTERED INDEX [ACT_IDX_JOB_SCOPE_DEF]
  3832. ON [dbo].[ACT_RU_JOB] (
  3833. [SCOPE_DEFINITION_ID_] ASC,
  3834. [SCOPE_TYPE_] ASC
  3835. )
  3836. GO
  3837. CREATE NONCLUSTERED INDEX [ACT_IDX_JOB_EXECUTION_ID]
  3838. ON [dbo].[ACT_RU_JOB] (
  3839. [EXECUTION_ID_] ASC
  3840. )
  3841. GO
  3842. CREATE NONCLUSTERED INDEX [ACT_IDX_JOB_PROCESS_INSTANCE_ID]
  3843. ON [dbo].[ACT_RU_JOB] (
  3844. [PROCESS_INSTANCE_ID_] ASC
  3845. )
  3846. GO
  3847. CREATE NONCLUSTERED INDEX [ACT_IDX_JOB_PROC_DEF_ID]
  3848. ON [dbo].[ACT_RU_JOB] (
  3849. [PROC_DEF_ID_] ASC
  3850. )
  3851. GO
  3852. -- ----------------------------
  3853. -- Primary Key structure for table ACT_RU_JOB
  3854. -- ----------------------------
  3855. ALTER TABLE [dbo].[ACT_RU_JOB] ADD CONSTRAINT [PK__ACT_RU_J__C4971C0FA45441B1] PRIMARY KEY CLUSTERED ([ID_])
  3856. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3857. ON [PRIMARY]
  3858. GO
  3859. -- ----------------------------
  3860. -- Indexes structure for table ACT_RU_SUSPENDED_JOB
  3861. -- ----------------------------
  3862. CREATE NONCLUSTERED INDEX [ACT_IDX_SUSPENDED_JOB_EXCEPTION_STACK_ID]
  3863. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  3864. [EXCEPTION_STACK_ID_] ASC
  3865. )
  3866. GO
  3867. CREATE NONCLUSTERED INDEX [ACT_IDX_SUSPENDED_JOB_CUSTOM_VALUES_ID]
  3868. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  3869. [CUSTOM_VALUES_ID_] ASC
  3870. )
  3871. GO
  3872. CREATE NONCLUSTERED INDEX [ACT_IDX_SUSPENDED_JOB_CORRELATION_ID]
  3873. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  3874. [CORRELATION_ID_] ASC
  3875. )
  3876. GO
  3877. CREATE NONCLUSTERED INDEX [ACT_IDX_SJOB_SCOPE]
  3878. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  3879. [SCOPE_ID_] ASC,
  3880. [SCOPE_TYPE_] ASC
  3881. )
  3882. GO
  3883. CREATE NONCLUSTERED INDEX [ACT_IDX_SJOB_SUB_SCOPE]
  3884. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  3885. [SUB_SCOPE_ID_] ASC,
  3886. [SCOPE_TYPE_] ASC
  3887. )
  3888. GO
  3889. CREATE NONCLUSTERED INDEX [ACT_IDX_SJOB_SCOPE_DEF]
  3890. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  3891. [SCOPE_DEFINITION_ID_] ASC,
  3892. [SCOPE_TYPE_] ASC
  3893. )
  3894. GO
  3895. CREATE NONCLUSTERED INDEX [ACT_IDX_SUSPENDED_JOB_EXECUTION_ID]
  3896. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  3897. [EXECUTION_ID_] ASC
  3898. )
  3899. GO
  3900. CREATE NONCLUSTERED INDEX [ACT_IDX_SUSPENDED_JOB_PROCESS_INSTANCE_ID]
  3901. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  3902. [PROCESS_INSTANCE_ID_] ASC
  3903. )
  3904. GO
  3905. CREATE NONCLUSTERED INDEX [ACT_IDX_SUSPENDED_JOB_PROC_DEF_ID]
  3906. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  3907. [PROC_DEF_ID_] ASC
  3908. )
  3909. GO
  3910. -- ----------------------------
  3911. -- Primary Key structure for table ACT_RU_SUSPENDED_JOB
  3912. -- ----------------------------
  3913. ALTER TABLE [dbo].[ACT_RU_SUSPENDED_JOB] ADD CONSTRAINT [PK__ACT_RU_S__C4971C0F2256B43D] PRIMARY KEY CLUSTERED ([ID_])
  3914. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3915. ON [PRIMARY]
  3916. GO
  3917. -- ----------------------------
  3918. -- Indexes structure for table ACT_RU_TASK
  3919. -- ----------------------------
  3920. CREATE NONCLUSTERED INDEX [ACT_IDX_TASK_CREATE]
  3921. ON [dbo].[ACT_RU_TASK] (
  3922. [CREATE_TIME_] ASC
  3923. )
  3924. GO
  3925. CREATE NONCLUSTERED INDEX [ACT_IDX_TASK_SCOPE]
  3926. ON [dbo].[ACT_RU_TASK] (
  3927. [SCOPE_ID_] ASC,
  3928. [SCOPE_TYPE_] ASC
  3929. )
  3930. GO
  3931. CREATE NONCLUSTERED INDEX [ACT_IDX_TASK_SUB_SCOPE]
  3932. ON [dbo].[ACT_RU_TASK] (
  3933. [SUB_SCOPE_ID_] ASC,
  3934. [SCOPE_TYPE_] ASC
  3935. )
  3936. GO
  3937. CREATE NONCLUSTERED INDEX [ACT_IDX_TASK_SCOPE_DEF]
  3938. ON [dbo].[ACT_RU_TASK] (
  3939. [SCOPE_DEFINITION_ID_] ASC,
  3940. [SCOPE_TYPE_] ASC
  3941. )
  3942. GO
  3943. CREATE NONCLUSTERED INDEX [ACT_IDX_TASK_EXEC]
  3944. ON [dbo].[ACT_RU_TASK] (
  3945. [EXECUTION_ID_] ASC
  3946. )
  3947. GO
  3948. CREATE NONCLUSTERED INDEX [ACT_IDX_TASK_PROCINST]
  3949. ON [dbo].[ACT_RU_TASK] (
  3950. [PROC_INST_ID_] ASC
  3951. )
  3952. GO
  3953. CREATE NONCLUSTERED INDEX [ACT_IDX_TASK_PROC_DEF_ID]
  3954. ON [dbo].[ACT_RU_TASK] (
  3955. [PROC_DEF_ID_] ASC
  3956. )
  3957. GO
  3958. -- ----------------------------
  3959. -- Primary Key structure for table ACT_RU_TASK
  3960. -- ----------------------------
  3961. ALTER TABLE [dbo].[ACT_RU_TASK] ADD CONSTRAINT [PK__ACT_RU_T__C4971C0FCFBADCC4] PRIMARY KEY CLUSTERED ([ID_])
  3962. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  3963. ON [PRIMARY]
  3964. GO
  3965. -- ----------------------------
  3966. -- Indexes structure for table ACT_RU_TIMER_JOB
  3967. -- ----------------------------
  3968. CREATE NONCLUSTERED INDEX [ACT_IDX_TIMER_JOB_EXCEPTION_STACK_ID]
  3969. ON [dbo].[ACT_RU_TIMER_JOB] (
  3970. [EXCEPTION_STACK_ID_] ASC
  3971. )
  3972. GO
  3973. CREATE NONCLUSTERED INDEX [ACT_IDX_TIMER_JOB_CUSTOM_VALUES_ID]
  3974. ON [dbo].[ACT_RU_TIMER_JOB] (
  3975. [CUSTOM_VALUES_ID_] ASC
  3976. )
  3977. GO
  3978. CREATE NONCLUSTERED INDEX [ACT_IDX_TIMER_JOB_CORRELATION_ID]
  3979. ON [dbo].[ACT_RU_TIMER_JOB] (
  3980. [CORRELATION_ID_] ASC
  3981. )
  3982. GO
  3983. CREATE NONCLUSTERED INDEX [ACT_IDX_TIMER_JOB_DUEDATE]
  3984. ON [dbo].[ACT_RU_TIMER_JOB] (
  3985. [DUEDATE_] ASC
  3986. )
  3987. GO
  3988. CREATE NONCLUSTERED INDEX [ACT_IDX_TJOB_SCOPE]
  3989. ON [dbo].[ACT_RU_TIMER_JOB] (
  3990. [SCOPE_ID_] ASC,
  3991. [SCOPE_TYPE_] ASC
  3992. )
  3993. GO
  3994. CREATE NONCLUSTERED INDEX [ACT_IDX_TJOB_SUB_SCOPE]
  3995. ON [dbo].[ACT_RU_TIMER_JOB] (
  3996. [SUB_SCOPE_ID_] ASC,
  3997. [SCOPE_TYPE_] ASC
  3998. )
  3999. GO
  4000. CREATE NONCLUSTERED INDEX [ACT_IDX_TJOB_SCOPE_DEF]
  4001. ON [dbo].[ACT_RU_TIMER_JOB] (
  4002. [SCOPE_DEFINITION_ID_] ASC,
  4003. [SCOPE_TYPE_] ASC
  4004. )
  4005. GO
  4006. CREATE NONCLUSTERED INDEX [ACT_IDX_TIMER_JOB_EXECUTION_ID]
  4007. ON [dbo].[ACT_RU_TIMER_JOB] (
  4008. [EXECUTION_ID_] ASC
  4009. )
  4010. GO
  4011. CREATE NONCLUSTERED INDEX [ACT_IDX_TIMER_JOB_PROCESS_INSTANCE_ID]
  4012. ON [dbo].[ACT_RU_TIMER_JOB] (
  4013. [PROCESS_INSTANCE_ID_] ASC
  4014. )
  4015. GO
  4016. CREATE NONCLUSTERED INDEX [ACT_IDX_TIMER_JOB_PROC_DEF_ID]
  4017. ON [dbo].[ACT_RU_TIMER_JOB] (
  4018. [PROC_DEF_ID_] ASC
  4019. )
  4020. GO
  4021. -- ----------------------------
  4022. -- Primary Key structure for table ACT_RU_TIMER_JOB
  4023. -- ----------------------------
  4024. ALTER TABLE [dbo].[ACT_RU_TIMER_JOB] ADD CONSTRAINT [PK__ACT_RU_T__C4971C0FE21B8629] PRIMARY KEY CLUSTERED ([ID_])
  4025. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4026. ON [PRIMARY]
  4027. GO
  4028. -- ----------------------------
  4029. -- Indexes structure for table ACT_RU_VARIABLE
  4030. -- ----------------------------
  4031. CREATE NONCLUSTERED INDEX [ACT_IDX_RU_VAR_SCOPE_ID_TYPE]
  4032. ON [dbo].[ACT_RU_VARIABLE] (
  4033. [SCOPE_ID_] ASC,
  4034. [SCOPE_TYPE_] ASC
  4035. )
  4036. GO
  4037. CREATE NONCLUSTERED INDEX [ACT_IDX_RU_VAR_SUB_ID_TYPE]
  4038. ON [dbo].[ACT_RU_VARIABLE] (
  4039. [SUB_SCOPE_ID_] ASC,
  4040. [SCOPE_TYPE_] ASC
  4041. )
  4042. GO
  4043. CREATE NONCLUSTERED INDEX [ACT_IDX_VARIABLE_BA]
  4044. ON [dbo].[ACT_RU_VARIABLE] (
  4045. [BYTEARRAY_ID_] ASC
  4046. )
  4047. GO
  4048. CREATE NONCLUSTERED INDEX [ACT_IDX_VARIABLE_TASK_ID]
  4049. ON [dbo].[ACT_RU_VARIABLE] (
  4050. [TASK_ID_] ASC
  4051. )
  4052. GO
  4053. CREATE NONCLUSTERED INDEX [ACT_IDX_VARIABLE_EXEC]
  4054. ON [dbo].[ACT_RU_VARIABLE] (
  4055. [EXECUTION_ID_] ASC
  4056. )
  4057. GO
  4058. CREATE NONCLUSTERED INDEX [ACT_IDX_VARIABLE_PROCINST]
  4059. ON [dbo].[ACT_RU_VARIABLE] (
  4060. [PROC_INST_ID_] ASC
  4061. )
  4062. GO
  4063. -- ----------------------------
  4064. -- Primary Key structure for table ACT_RU_VARIABLE
  4065. -- ----------------------------
  4066. ALTER TABLE [dbo].[ACT_RU_VARIABLE] ADD CONSTRAINT [PK__ACT_RU_V__C4971C0F1A05E3A9] PRIMARY KEY CLUSTERED ([ID_])
  4067. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4068. ON [PRIMARY]
  4069. GO
  4070. -- ----------------------------
  4071. -- Indexes structure for table FLW_CHANNEL_DEFINITION
  4072. -- ----------------------------
  4073. CREATE UNIQUE NONCLUSTERED INDEX [ACT_IDX_CHANNEL_DEF_UNIQ]
  4074. ON [dbo].[FLW_CHANNEL_DEFINITION] (
  4075. [KEY_] ASC,
  4076. [VERSION_] ASC,
  4077. [TENANT_ID_] ASC
  4078. )
  4079. GO
  4080. -- ----------------------------
  4081. -- Primary Key structure for table FLW_CHANNEL_DEFINITION
  4082. -- ----------------------------
  4083. ALTER TABLE [dbo].[FLW_CHANNEL_DEFINITION] ADD CONSTRAINT [PK_FLW_CHANNEL_DEFINITION] PRIMARY KEY CLUSTERED ([ID_])
  4084. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4085. ON [PRIMARY]
  4086. GO
  4087. -- ----------------------------
  4088. -- Indexes structure for table FLW_EVENT_DEFINITION
  4089. -- ----------------------------
  4090. CREATE UNIQUE NONCLUSTERED INDEX [ACT_IDX_EVENT_DEF_UNIQ]
  4091. ON [dbo].[FLW_EVENT_DEFINITION] (
  4092. [KEY_] ASC,
  4093. [VERSION_] ASC,
  4094. [TENANT_ID_] ASC
  4095. )
  4096. GO
  4097. -- ----------------------------
  4098. -- Primary Key structure for table FLW_EVENT_DEFINITION
  4099. -- ----------------------------
  4100. ALTER TABLE [dbo].[FLW_EVENT_DEFINITION] ADD CONSTRAINT [PK_FLW_EVENT_DEFINITION] PRIMARY KEY CLUSTERED ([ID_])
  4101. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4102. ON [PRIMARY]
  4103. GO
  4104. -- ----------------------------
  4105. -- Primary Key structure for table FLW_EVENT_DEPLOYMENT
  4106. -- ----------------------------
  4107. ALTER TABLE [dbo].[FLW_EVENT_DEPLOYMENT] ADD CONSTRAINT [PK_FLW_EVENT_DEPLOYMENT] PRIMARY KEY CLUSTERED ([ID_])
  4108. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4109. ON [PRIMARY]
  4110. GO
  4111. -- ----------------------------
  4112. -- Primary Key structure for table FLW_EVENT_RESOURCE
  4113. -- ----------------------------
  4114. ALTER TABLE [dbo].[FLW_EVENT_RESOURCE] ADD CONSTRAINT [PK_FLW_EVENT_RESOURCE] PRIMARY KEY CLUSTERED ([ID_])
  4115. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4116. ON [PRIMARY]
  4117. GO
  4118. -- ----------------------------
  4119. -- Primary Key structure for table FLW_EV_DATABASECHANGELOGLOCK
  4120. -- ----------------------------
  4121. ALTER TABLE [dbo].[FLW_EV_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_FLW_EV_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  4122. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4123. ON [PRIMARY]
  4124. GO
  4125. -- ----------------------------
  4126. -- Primary Key structure for table FLW_RU_BATCH
  4127. -- ----------------------------
  4128. ALTER TABLE [dbo].[FLW_RU_BATCH] ADD CONSTRAINT [PK__FLW_RU_B__C4971C0FFD4930D4] PRIMARY KEY CLUSTERED ([ID_])
  4129. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4130. ON [PRIMARY]
  4131. GO
  4132. -- ----------------------------
  4133. -- Indexes structure for table FLW_RU_BATCH_PART
  4134. -- ----------------------------
  4135. CREATE NONCLUSTERED INDEX [FLW_IDX_BATCH_PART]
  4136. ON [dbo].[FLW_RU_BATCH_PART] (
  4137. [BATCH_ID_] ASC
  4138. )
  4139. GO
  4140. -- ----------------------------
  4141. -- Primary Key structure for table FLW_RU_BATCH_PART
  4142. -- ----------------------------
  4143. ALTER TABLE [dbo].[FLW_RU_BATCH_PART] ADD CONSTRAINT [PK__FLW_RU_B__C4971C0F47364816] PRIMARY KEY CLUSTERED ([ID_])
  4144. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4145. ON [PRIMARY]
  4146. GO
  4147. -- ----------------------------
  4148. -- Foreign Keys structure for table ACT_APP_APPDEF
  4149. -- ----------------------------
  4150. 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
  4151. GO
  4152. -- ----------------------------
  4153. -- Foreign Keys structure for table ACT_APP_DEPLOYMENT_RESOURCE
  4154. -- ----------------------------
  4155. 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
  4156. GO
  4157. -- ----------------------------
  4158. -- Foreign Keys structure for table ACT_CMMN_CASEDEF
  4159. -- ----------------------------
  4160. 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
  4161. GO
  4162. -- ----------------------------
  4163. -- Foreign Keys structure for table ACT_CMMN_DEPLOYMENT_RESOURCE
  4164. -- ----------------------------
  4165. 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
  4166. GO
  4167. -- ----------------------------
  4168. -- Foreign Keys structure for table ACT_CMMN_RU_CASE_INST
  4169. -- ----------------------------
  4170. 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
  4171. GO
  4172. -- ----------------------------
  4173. -- Foreign Keys structure for table ACT_CMMN_RU_MIL_INST
  4174. -- ----------------------------
  4175. 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
  4176. GO
  4177. 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
  4178. GO
  4179. -- ----------------------------
  4180. -- Foreign Keys structure for table ACT_CMMN_RU_PLAN_ITEM_INST
  4181. -- ----------------------------
  4182. 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
  4183. GO
  4184. 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
  4185. GO
  4186. -- ----------------------------
  4187. -- Foreign Keys structure for table ACT_CMMN_RU_SENTRY_PART_INST
  4188. -- ----------------------------
  4189. 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
  4190. GO
  4191. 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
  4192. GO
  4193. 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
  4194. GO
  4195. -- ----------------------------
  4196. -- Foreign Keys structure for table ACT_DE_MODEL_RELATION
  4197. -- ----------------------------
  4198. 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
  4199. GO
  4200. 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
  4201. GO
  4202. -- ----------------------------
  4203. -- Foreign Keys structure for table ACT_GE_BYTEARRAY
  4204. -- ----------------------------
  4205. 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
  4206. GO
  4207. -- ----------------------------
  4208. -- Foreign Keys structure for table ACT_ID_MEMBERSHIP
  4209. -- ----------------------------
  4210. 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
  4211. GO
  4212. 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
  4213. GO
  4214. -- ----------------------------
  4215. -- Foreign Keys structure for table ACT_ID_PRIV_MAPPING
  4216. -- ----------------------------
  4217. 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
  4218. GO
  4219. -- ----------------------------
  4220. -- Foreign Keys structure for table ACT_PROCDEF_INFO
  4221. -- ----------------------------
  4222. 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
  4223. GO
  4224. 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
  4225. GO
  4226. -- ----------------------------
  4227. -- Foreign Keys structure for table ACT_RE_MODEL
  4228. -- ----------------------------
  4229. 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
  4230. GO
  4231. 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
  4232. GO
  4233. 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
  4234. GO
  4235. -- ----------------------------
  4236. -- Foreign Keys structure for table ACT_RU_DEADLETTER_JOB
  4237. -- ----------------------------
  4238. 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
  4239. GO
  4240. 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
  4241. GO
  4242. 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
  4243. GO
  4244. 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
  4245. GO
  4246. 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
  4247. GO
  4248. -- ----------------------------
  4249. -- Foreign Keys structure for table ACT_RU_EVENT_SUBSCR
  4250. -- ----------------------------
  4251. 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
  4252. GO
  4253. -- ----------------------------
  4254. -- Foreign Keys structure for table ACT_RU_EXECUTION
  4255. -- ----------------------------
  4256. 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
  4257. GO
  4258. 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
  4259. GO
  4260. 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
  4261. GO
  4262. -- ----------------------------
  4263. -- Foreign Keys structure for table ACT_RU_EXTERNAL_JOB
  4264. -- ----------------------------
  4265. ALTER TABLE [dbo].[ACT_RU_EXTERNAL_JOB] ADD CONSTRAINT [ACT_FK_EXTERNAL_JOB_EXCEPTION] FOREIGN KEY ([EXCEPTION_STACK_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  4266. GO
  4267. ALTER TABLE [dbo].[ACT_RU_EXTERNAL_JOB] ADD CONSTRAINT [ACT_FK_EXTERNAL_JOB_CUSTOM_VALUES] FOREIGN KEY ([CUSTOM_VALUES_ID_]) REFERENCES [dbo].[ACT_GE_BYTEARRAY] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  4268. GO
  4269. -- ----------------------------
  4270. -- Foreign Keys structure for table ACT_RU_IDENTITYLINK
  4271. -- ----------------------------
  4272. 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
  4273. GO
  4274. 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
  4275. GO
  4276. 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
  4277. GO
  4278. -- ----------------------------
  4279. -- Foreign Keys structure for table ACT_RU_JOB
  4280. -- ----------------------------
  4281. 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
  4282. GO
  4283. 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
  4284. GO
  4285. 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
  4286. GO
  4287. 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
  4288. GO
  4289. 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
  4290. GO
  4291. -- ----------------------------
  4292. -- Foreign Keys structure for table ACT_RU_SUSPENDED_JOB
  4293. -- ----------------------------
  4294. 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
  4295. GO
  4296. 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
  4297. GO
  4298. 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
  4299. GO
  4300. 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
  4301. GO
  4302. 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
  4303. GO
  4304. -- ----------------------------
  4305. -- Foreign Keys structure for table ACT_RU_TASK
  4306. -- ----------------------------
  4307. 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
  4308. GO
  4309. 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
  4310. GO
  4311. 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
  4312. GO
  4313. -- ----------------------------
  4314. -- Foreign Keys structure for table ACT_RU_TIMER_JOB
  4315. -- ----------------------------
  4316. 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
  4317. GO
  4318. 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
  4319. GO
  4320. 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
  4321. GO
  4322. 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
  4323. GO
  4324. 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
  4325. GO
  4326. -- ----------------------------
  4327. -- Foreign Keys structure for table ACT_RU_VARIABLE
  4328. -- ----------------------------
  4329. 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
  4330. GO
  4331. 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
  4332. GO
  4333. 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
  4334. GO
  4335. -- ----------------------------
  4336. -- Foreign Keys structure for table FLW_RU_BATCH_PART
  4337. -- ----------------------------
  4338. ALTER TABLE [dbo].[FLW_RU_BATCH_PART] ADD CONSTRAINT [FLW_FK_BATCH_PART_PARENT] FOREIGN KEY ([BATCH_ID_]) REFERENCES [dbo].[FLW_RU_BATCH] ([ID_]) ON DELETE NO ACTION ON UPDATE NO ACTION
  4339. GO