bladex-flowable-sqlserver.sql 155 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : sqlserver_remote
  4. Source Server Type : SQL Server
  5. Source Server Version : 10501600
  6. Source Host : 127.0.0.1:1433
  7. Source Catalog : bladex
  8. Source Schema : dbo
  9. Target Server Type : SQL Server
  10. Target Server Version : 10501600
  11. File Encoding : 65001
  12. Date: 20/03/2022 21:27:18
  13. */
  14. -- ----------------------------
  15. -- Table structure for ACT_APP_APPDEF
  16. -- ----------------------------
  17. IF
  18. EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_APP_APPDEF]') AND type IN ('U'))
  19. DROP TABLE [dbo].[ACT_APP_APPDEF]
  20. GO
  21. CREATE TABLE [dbo].[ACT_APP_APPDEF]
  22. (
  23. [
  24. ID_] varchar
  25. (
  26. 255
  27. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  28. [REV_] int NOT NULL,
  29. [NAME_] varchar
  30. (
  31. 255
  32. ) COLLATE Chinese_PRC_CI_AS NULL,
  33. [KEY_] varchar
  34. (
  35. 255
  36. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  37. [VERSION_] int NOT NULL,
  38. [CATEGORY_] varchar
  39. (
  40. 255
  41. ) COLLATE Chinese_PRC_CI_AS NULL,
  42. [DEPLOYMENT_ID_] varchar
  43. (
  44. 255
  45. ) COLLATE Chinese_PRC_CI_AS NULL,
  46. [RESOURCE_NAME_] varchar
  47. (
  48. 4000
  49. ) COLLATE Chinese_PRC_CI_AS NULL,
  50. [DESCRIPTION_] varchar
  51. (
  52. 4000
  53. ) COLLATE Chinese_PRC_CI_AS NULL,
  54. [TENANT_ID_] varchar
  55. (
  56. 255
  57. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  58. )
  59. GO
  60. ALTER TABLE [dbo].[ACT_APP_APPDEF] SET (LOCK_ESCALATION = TABLE)
  61. GO
  62. -- ----------------------------
  63. -- Table structure for ACT_APP_DATABASECHANGELOG
  64. -- ----------------------------
  65. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_APP_DATABASECHANGELOG]') AND type IN ('U'))
  66. DROP TABLE [dbo].[ACT_APP_DATABASECHANGELOG]
  67. GO
  68. CREATE TABLE [dbo].[ACT_APP_DATABASECHANGELOG]
  69. (
  70. [
  71. ID] nvarchar
  72. (
  73. 255
  74. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  75. [AUTHOR] nvarchar
  76. (
  77. 255
  78. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  79. [FILENAME] nvarchar
  80. (
  81. 255
  82. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  83. [DATEEXECUTED] datetime2
  84. (
  85. 3
  86. ) NOT NULL,
  87. [ORDEREXECUTED] int NOT NULL,
  88. [EXECTYPE] nvarchar
  89. (
  90. 10
  91. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  92. [MD5SUM] nvarchar
  93. (
  94. 35
  95. ) COLLATE Chinese_PRC_CI_AS NULL,
  96. [DESCRIPTION] nvarchar
  97. (
  98. 255
  99. ) COLLATE Chinese_PRC_CI_AS NULL,
  100. [COMMENTS] nvarchar
  101. (
  102. 255
  103. ) COLLATE Chinese_PRC_CI_AS NULL,
  104. [TAG] nvarchar
  105. (
  106. 255
  107. ) COLLATE Chinese_PRC_CI_AS NULL,
  108. [LIQUIBASE] nvarchar
  109. (
  110. 20
  111. ) COLLATE Chinese_PRC_CI_AS NULL,
  112. [CONTEXTS] nvarchar
  113. (
  114. 255
  115. ) COLLATE Chinese_PRC_CI_AS NULL,
  116. [LABELS] nvarchar
  117. (
  118. 255
  119. ) COLLATE Chinese_PRC_CI_AS NULL,
  120. [DEPLOYMENT_ID] nvarchar
  121. (
  122. 10
  123. ) COLLATE Chinese_PRC_CI_AS NULL
  124. )
  125. GO
  126. ALTER TABLE [dbo].[ACT_APP_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  127. GO
  128. -- ----------------------------
  129. -- Records of ACT_APP_DATABASECHANGELOG
  130. -- ----------------------------
  131. BEGIN
  132. TRANSACTION
  133. GO
  134. INSERT INTO [dbo].[ACT_APP_DATABASECHANGELOG] VALUES (N'1', N'flowable', N'org/flowable/app/db/liquibase/flowable-app-db-changelog.xml', N'2020-07-22 17:51:40.847', N'1', N'EXECUTED', N'8:496fc778bdf2ab13f2e1926d0e63e0a2', N'createTable tableName=ACT_APP_DEPLOYMENT; createTable tableName=ACT_APP_DEPLOYMENT_RESOURCE; addForeignKeyConstraint baseTableName=ACT_APP_DEPLOYMENT_RESOURCE, constraintName=ACT_FK_APP_RSRC_DPL, referencedTableName=ACT_APP_DEPLOYMENT; createIndex...', N'', NULL, N'3.6.3', NULL, NULL, N'5411555815')
  135. GO
  136. INSERT INTO [dbo].[ACT_APP_DATABASECHANGELOG] VALUES (N'3', N'flowable', N'org/flowable/app/db/liquibase/flowable-app-db-changelog.xml', N'2020-07-22 17:51:40.940', N'2', N'EXECUTED', N'8:f1f8aff320aade831944ebad24355f3d', N'createIndex indexName=ACT_IDX_APP_DEF_UNIQ, tableName=ACT_APP_APPDEF', N'', NULL, N'3.6.3', NULL, NULL, N'5411555815')
  137. GO
  138. COMMIT
  139. GO
  140. -- ----------------------------
  141. -- Table structure for ACT_APP_DATABASECHANGELOGLOCK
  142. -- ----------------------------
  143. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_APP_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  144. DROP TABLE [dbo].[ACT_APP_DATABASECHANGELOGLOCK]
  145. GO
  146. CREATE TABLE [dbo].[ACT_APP_DATABASECHANGELOGLOCK]
  147. (
  148. [
  149. ID]
  150. int
  151. NOT
  152. NULL, [
  153. LOCKED]
  154. bit
  155. NOT
  156. NULL, [
  157. LOCKGRANTED]
  158. datetime2
  159. (
  160. 3
  161. ) NULL,
  162. [LOCKEDBY] nvarchar
  163. (
  164. 255
  165. ) COLLATE Chinese_PRC_CI_AS NULL
  166. )
  167. GO
  168. ALTER TABLE [dbo].[ACT_APP_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  169. GO
  170. -- ----------------------------
  171. -- Records of ACT_APP_DATABASECHANGELOGLOCK
  172. -- ----------------------------
  173. BEGIN
  174. TRANSACTION
  175. GO
  176. INSERT INTO [dbo].[ACT_APP_DATABASECHANGELOGLOCK] VALUES (N'1', N'0', NULL, NULL)
  177. GO
  178. COMMIT
  179. GO
  180. -- ----------------------------
  181. -- Table structure for ACT_APP_DEPLOYMENT
  182. -- ----------------------------
  183. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_APP_DEPLOYMENT]') AND type IN ('U'))
  184. DROP TABLE [dbo].[ACT_APP_DEPLOYMENT]
  185. GO
  186. CREATE TABLE [dbo].[ACT_APP_DEPLOYMENT]
  187. (
  188. [
  189. ID_] varchar
  190. (
  191. 255
  192. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  193. [NAME_] varchar
  194. (
  195. 255
  196. ) COLLATE Chinese_PRC_CI_AS NULL,
  197. [CATEGORY_] varchar
  198. (
  199. 255
  200. ) COLLATE Chinese_PRC_CI_AS NULL,
  201. [KEY_] varchar
  202. (
  203. 255
  204. ) COLLATE Chinese_PRC_CI_AS NULL,
  205. [DEPLOY_TIME_] datetime NULL,
  206. [TENANT_ID_] varchar
  207. (
  208. 255
  209. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  210. )
  211. GO
  212. ALTER TABLE [dbo].[ACT_APP_DEPLOYMENT] SET (LOCK_ESCALATION = TABLE)
  213. GO
  214. -- ----------------------------
  215. -- Table structure for ACT_APP_DEPLOYMENT_RESOURCE
  216. -- ----------------------------
  217. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_APP_DEPLOYMENT_RESOURCE]') AND type IN ('U'))
  218. DROP TABLE [dbo].[ACT_APP_DEPLOYMENT_RESOURCE]
  219. GO
  220. CREATE TABLE [dbo].[ACT_APP_DEPLOYMENT_RESOURCE]
  221. (
  222. [
  223. ID_] varchar
  224. (
  225. 255
  226. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  227. [NAME_] varchar
  228. (
  229. 255
  230. ) COLLATE Chinese_PRC_CI_AS NULL,
  231. [DEPLOYMENT_ID_] varchar
  232. (
  233. 255
  234. ) COLLATE Chinese_PRC_CI_AS NULL,
  235. [RESOURCE_BYTES_] varbinary
  236. (
  237. max
  238. ) NULL
  239. )
  240. GO
  241. ALTER TABLE [dbo].[ACT_APP_DEPLOYMENT_RESOURCE] SET (LOCK_ESCALATION = TABLE)
  242. GO
  243. -- ----------------------------
  244. -- Table structure for ACT_CMMN_CASEDEF
  245. -- ----------------------------
  246. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_CASEDEF]') AND type IN ('U'))
  247. DROP TABLE [dbo].[ACT_CMMN_CASEDEF]
  248. GO
  249. CREATE TABLE [dbo].[ACT_CMMN_CASEDEF]
  250. (
  251. [
  252. ID_] varchar
  253. (
  254. 255
  255. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  256. [REV_] int NOT NULL,
  257. [NAME_] varchar
  258. (
  259. 255
  260. ) COLLATE Chinese_PRC_CI_AS NULL,
  261. [KEY_] varchar
  262. (
  263. 255
  264. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  265. [VERSION_] int NOT NULL,
  266. [CATEGORY_] varchar
  267. (
  268. 255
  269. ) COLLATE Chinese_PRC_CI_AS NULL,
  270. [DEPLOYMENT_ID_] varchar
  271. (
  272. 255
  273. ) COLLATE Chinese_PRC_CI_AS NULL,
  274. [RESOURCE_NAME_] varchar
  275. (
  276. 4000
  277. ) COLLATE Chinese_PRC_CI_AS NULL,
  278. [DESCRIPTION_] varchar
  279. (
  280. 4000
  281. ) COLLATE Chinese_PRC_CI_AS NULL,
  282. [HAS_GRAPHICAL_NOTATION_] bit NULL,
  283. [TENANT_ID_] varchar
  284. (
  285. 255
  286. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  287. [DGRM_RESOURCE_NAME_] varchar
  288. (
  289. 4000
  290. ) COLLATE Chinese_PRC_CI_AS NULL,
  291. [HAS_START_FORM_KEY_] bit NULL
  292. )
  293. GO
  294. ALTER TABLE [dbo].[ACT_CMMN_CASEDEF] SET (LOCK_ESCALATION = TABLE)
  295. GO
  296. -- ----------------------------
  297. -- Table structure for ACT_CMMN_DATABASECHANGELOG
  298. -- ----------------------------
  299. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_DATABASECHANGELOG]') AND type IN ('U'))
  300. DROP TABLE [dbo].[ACT_CMMN_DATABASECHANGELOG]
  301. GO
  302. CREATE TABLE [dbo].[ACT_CMMN_DATABASECHANGELOG]
  303. (
  304. [
  305. ID] nvarchar
  306. (
  307. 255
  308. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  309. [AUTHOR] nvarchar
  310. (
  311. 255
  312. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  313. [FILENAME] nvarchar
  314. (
  315. 255
  316. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  317. [DATEEXECUTED] datetime2
  318. (
  319. 3
  320. ) NOT NULL,
  321. [ORDEREXECUTED] int NOT NULL,
  322. [EXECTYPE] nvarchar
  323. (
  324. 10
  325. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  326. [MD5SUM] nvarchar
  327. (
  328. 35
  329. ) COLLATE Chinese_PRC_CI_AS NULL,
  330. [DESCRIPTION] nvarchar
  331. (
  332. 255
  333. ) COLLATE Chinese_PRC_CI_AS NULL,
  334. [COMMENTS] nvarchar
  335. (
  336. 255
  337. ) COLLATE Chinese_PRC_CI_AS NULL,
  338. [TAG] nvarchar
  339. (
  340. 255
  341. ) COLLATE Chinese_PRC_CI_AS NULL,
  342. [LIQUIBASE] nvarchar
  343. (
  344. 20
  345. ) COLLATE Chinese_PRC_CI_AS NULL,
  346. [CONTEXTS] nvarchar
  347. (
  348. 255
  349. ) COLLATE Chinese_PRC_CI_AS NULL,
  350. [LABELS] nvarchar
  351. (
  352. 255
  353. ) COLLATE Chinese_PRC_CI_AS NULL,
  354. [DEPLOYMENT_ID] nvarchar
  355. (
  356. 10
  357. ) COLLATE Chinese_PRC_CI_AS NULL
  358. )
  359. GO
  360. ALTER TABLE [dbo].[ACT_CMMN_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  361. GO
  362. -- ----------------------------
  363. -- Records of ACT_CMMN_DATABASECHANGELOG
  364. -- ----------------------------
  365. BEGIN
  366. TRANSACTION
  367. GO
  368. INSERT INTO [dbo].[ACT_CMMN_DATABASECHANGELOG] VALUES (N'1', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2020-07-22 17:51:37.387', N'1', N'EXECUTED', N'8:8b4b922d90b05ff27483abefc9597aa6', N'createTable tableName=ACT_CMMN_DEPLOYMENT; createTable tableName=ACT_CMMN_DEPLOYMENT_RESOURCE; addForeignKeyConstraint baseTableName=ACT_CMMN_DEPLOYMENT_RESOURCE, constraintName=ACT_FK_CMMN_RSRC_DPL, referencedTableName=ACT_CMMN_DEPLOYMENT; create...', N'', NULL, N'3.6.3', NULL, NULL, N'5411550973')
  369. GO
  370. INSERT INTO [dbo].[ACT_CMMN_DATABASECHANGELOG] VALUES (N'2', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2020-07-22 17:51:37.650', N'2', N'EXECUTED', N'8:65e39b3d385706bb261cbeffe7533cbe', N'addColumn tableName=ACT_CMMN_CASEDEF; addColumn tableName=ACT_CMMN_DEPLOYMENT_RESOURCE; addColumn tableName=ACT_CMMN_RU_CASE_INST; addColumn tableName=ACT_CMMN_RU_PLAN_ITEM_INST', N'', NULL, N'3.6.3', NULL, NULL, N'5411550973')
  371. GO
  372. INSERT INTO [dbo].[ACT_CMMN_DATABASECHANGELOG] VALUES (N'3', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2020-07-22 17:51:37.907', N'3', N'EXECUTED', N'8:c01f6e802b49436b4489040da3012359', N'addColumn tableName=ACT_CMMN_RU_PLAN_ITEM_INST; addColumn tableName=ACT_CMMN_RU_CASE_INST; createIndex indexName=ACT_IDX_PLAN_ITEM_STAGE_INST, tableName=ACT_CMMN_RU_PLAN_ITEM_INST; addColumn tableName=ACT_CMMN_RU_PLAN_ITEM_INST; addColumn tableNam...', N'', NULL, N'3.6.3', NULL, NULL, N'5411550973')
  373. GO
  374. INSERT INTO [dbo].[ACT_CMMN_DATABASECHANGELOG] VALUES (N'4', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2020-07-22 17:51:38.077', N'4', N'EXECUTED', N'8:e40d29cb79345b7fb5afd38a7f0ba8fc', N'createTable tableName=ACT_CMMN_HI_PLAN_ITEM_INST; addColumn tableName=ACT_CMMN_RU_MIL_INST; addColumn tableName=ACT_CMMN_HI_MIL_INST', N'', NULL, N'3.6.3', NULL, NULL, N'5411550973')
  375. GO
  376. INSERT INTO [dbo].[ACT_CMMN_DATABASECHANGELOG] VALUES (N'6', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2020-07-22 17:51:38.190', N'5', N'EXECUTED', N'8:10e82e26a7fee94c32a92099c059c18c', N'createIndex indexName=ACT_IDX_CASE_DEF_UNIQ, tableName=ACT_CMMN_CASEDEF', N'', NULL, N'3.6.3', NULL, NULL, N'5411550973')
  377. GO
  378. INSERT INTO [dbo].[ACT_CMMN_DATABASECHANGELOG] VALUES (N'7', N'flowable', N'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', N'2020-07-22 17:51:39.060', N'6', N'EXECUTED', N'8:530bc81a1e30618ccf4a2da1f7c6c043', N'renameColumn newColumnName=CREATE_TIME_, oldColumnName=START_TIME_, tableName=ACT_CMMN_RU_PLAN_ITEM_INST; renameColumn newColumnName=CREATE_TIME_, oldColumnName=CREATED_TIME_, tableName=ACT_CMMN_HI_PLAN_ITEM_INST; addColumn tableName=ACT_CMMN_RU_P...', N'', NULL, N'3.6.3', NULL, NULL, N'5411550973')
  379. GO
  380. COMMIT
  381. GO
  382. -- ----------------------------
  383. -- Table structure for ACT_CMMN_DATABASECHANGELOGLOCK
  384. -- ----------------------------
  385. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  386. DROP TABLE [dbo].[ACT_CMMN_DATABASECHANGELOGLOCK]
  387. GO
  388. CREATE TABLE [dbo].[ACT_CMMN_DATABASECHANGELOGLOCK]
  389. (
  390. [
  391. ID]
  392. int
  393. NOT
  394. NULL, [
  395. LOCKED]
  396. bit
  397. NOT
  398. NULL, [
  399. LOCKGRANTED]
  400. datetime2
  401. (
  402. 3
  403. ) NULL,
  404. [LOCKEDBY] nvarchar
  405. (
  406. 255
  407. ) COLLATE Chinese_PRC_CI_AS NULL
  408. )
  409. GO
  410. ALTER TABLE [dbo].[ACT_CMMN_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  411. GO
  412. -- ----------------------------
  413. -- Records of ACT_CMMN_DATABASECHANGELOGLOCK
  414. -- ----------------------------
  415. BEGIN
  416. TRANSACTION
  417. GO
  418. INSERT INTO [dbo].[ACT_CMMN_DATABASECHANGELOGLOCK] VALUES (N'1', N'0', NULL, NULL)
  419. GO
  420. COMMIT
  421. GO
  422. -- ----------------------------
  423. -- Table structure for ACT_CMMN_DEPLOYMENT
  424. -- ----------------------------
  425. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_DEPLOYMENT]') AND type IN ('U'))
  426. DROP TABLE [dbo].[ACT_CMMN_DEPLOYMENT]
  427. GO
  428. CREATE TABLE [dbo].[ACT_CMMN_DEPLOYMENT]
  429. (
  430. [
  431. ID_] varchar
  432. (
  433. 255
  434. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  435. [NAME_] varchar
  436. (
  437. 255
  438. ) COLLATE Chinese_PRC_CI_AS NULL,
  439. [CATEGORY_] varchar
  440. (
  441. 255
  442. ) COLLATE Chinese_PRC_CI_AS NULL,
  443. [KEY_] varchar
  444. (
  445. 255
  446. ) COLLATE Chinese_PRC_CI_AS NULL,
  447. [DEPLOY_TIME_] datetime NULL,
  448. [PARENT_DEPLOYMENT_ID_] varchar
  449. (
  450. 255
  451. ) COLLATE Chinese_PRC_CI_AS NULL,
  452. [TENANT_ID_] varchar
  453. (
  454. 255
  455. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  456. )
  457. GO
  458. ALTER TABLE [dbo].[ACT_CMMN_DEPLOYMENT] SET (LOCK_ESCALATION = TABLE)
  459. GO
  460. -- ----------------------------
  461. -- Table structure for ACT_CMMN_DEPLOYMENT_RESOURCE
  462. -- ----------------------------
  463. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE]') AND type IN ('U'))
  464. DROP TABLE [dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE]
  465. GO
  466. CREATE TABLE [dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE]
  467. (
  468. [
  469. ID_] varchar
  470. (
  471. 255
  472. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  473. [NAME_] varchar
  474. (
  475. 255
  476. ) COLLATE Chinese_PRC_CI_AS NULL,
  477. [DEPLOYMENT_ID_] varchar
  478. (
  479. 255
  480. ) COLLATE Chinese_PRC_CI_AS NULL,
  481. [RESOURCE_BYTES_] varbinary
  482. (
  483. max
  484. ) NULL,
  485. [GENERATED_] bit NULL
  486. )
  487. GO
  488. ALTER TABLE [dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE] SET (LOCK_ESCALATION = TABLE)
  489. GO
  490. -- ----------------------------
  491. -- Table structure for ACT_CMMN_HI_CASE_INST
  492. -- ----------------------------
  493. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_HI_CASE_INST]') AND type IN ('U'))
  494. DROP TABLE [dbo].[ACT_CMMN_HI_CASE_INST]
  495. GO
  496. CREATE TABLE [dbo].[ACT_CMMN_HI_CASE_INST]
  497. (
  498. [
  499. ID_] varchar
  500. (
  501. 255
  502. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  503. [REV_] int NOT NULL,
  504. [BUSINESS_KEY_] varchar
  505. (
  506. 255
  507. ) COLLATE Chinese_PRC_CI_AS NULL,
  508. [NAME_] varchar
  509. (
  510. 255
  511. ) COLLATE Chinese_PRC_CI_AS NULL,
  512. [PARENT_ID_] varchar
  513. (
  514. 255
  515. ) COLLATE Chinese_PRC_CI_AS NULL,
  516. [CASE_DEF_ID_] varchar
  517. (
  518. 255
  519. ) COLLATE Chinese_PRC_CI_AS NULL,
  520. [STATE_] varchar
  521. (
  522. 255
  523. ) COLLATE Chinese_PRC_CI_AS NULL,
  524. [START_TIME_] datetime NULL,
  525. [END_TIME_] datetime NULL,
  526. [START_USER_ID_] varchar
  527. (
  528. 255
  529. ) COLLATE Chinese_PRC_CI_AS NULL,
  530. [CALLBACK_ID_] varchar
  531. (
  532. 255
  533. ) COLLATE Chinese_PRC_CI_AS NULL,
  534. [CALLBACK_TYPE_] varchar
  535. (
  536. 255
  537. ) COLLATE Chinese_PRC_CI_AS NULL,
  538. [TENANT_ID_] varchar
  539. (
  540. 255
  541. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  542. )
  543. GO
  544. ALTER TABLE [dbo].[ACT_CMMN_HI_CASE_INST] SET (LOCK_ESCALATION = TABLE)
  545. GO
  546. -- ----------------------------
  547. -- Table structure for ACT_CMMN_HI_MIL_INST
  548. -- ----------------------------
  549. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_HI_MIL_INST]') AND type IN ('U'))
  550. DROP TABLE [dbo].[ACT_CMMN_HI_MIL_INST]
  551. GO
  552. CREATE TABLE [dbo].[ACT_CMMN_HI_MIL_INST]
  553. (
  554. [
  555. ID_] varchar
  556. (
  557. 255
  558. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  559. [REV_] int NOT NULL,
  560. [NAME_] varchar
  561. (
  562. 255
  563. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  564. [TIME_STAMP_] datetime NOT NULL,
  565. [CASE_INST_ID_] varchar
  566. (
  567. 255
  568. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  569. [CASE_DEF_ID_] varchar
  570. (
  571. 255
  572. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  573. [ELEMENT_ID_] varchar
  574. (
  575. 255
  576. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  577. [TENANT_ID_] varchar
  578. (
  579. 255
  580. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  581. )
  582. GO
  583. ALTER TABLE [dbo].[ACT_CMMN_HI_MIL_INST] SET (LOCK_ESCALATION = TABLE)
  584. GO
  585. -- ----------------------------
  586. -- Table structure for ACT_CMMN_HI_PLAN_ITEM_INST
  587. -- ----------------------------
  588. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_HI_PLAN_ITEM_INST]') AND type IN ('U'))
  589. DROP TABLE [dbo].[ACT_CMMN_HI_PLAN_ITEM_INST]
  590. GO
  591. CREATE TABLE [dbo].[ACT_CMMN_HI_PLAN_ITEM_INST]
  592. (
  593. [
  594. ID_] varchar
  595. (
  596. 255
  597. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  598. [REV_] int NOT NULL,
  599. [NAME_] varchar
  600. (
  601. 255
  602. ) COLLATE Chinese_PRC_CI_AS NULL,
  603. [STATE_] varchar
  604. (
  605. 255
  606. ) COLLATE Chinese_PRC_CI_AS NULL,
  607. [CASE_DEF_ID_] varchar
  608. (
  609. 255
  610. ) COLLATE Chinese_PRC_CI_AS NULL,
  611. [CASE_INST_ID_] varchar
  612. (
  613. 255
  614. ) COLLATE Chinese_PRC_CI_AS NULL,
  615. [STAGE_INST_ID_] varchar
  616. (
  617. 255
  618. ) COLLATE Chinese_PRC_CI_AS NULL,
  619. [IS_STAGE_] bit NULL,
  620. [ELEMENT_ID_] varchar
  621. (
  622. 255
  623. ) COLLATE Chinese_PRC_CI_AS NULL,
  624. [ITEM_DEFINITION_ID_] varchar
  625. (
  626. 255
  627. ) COLLATE Chinese_PRC_CI_AS NULL,
  628. [ITEM_DEFINITION_TYPE_] varchar
  629. (
  630. 255
  631. ) COLLATE Chinese_PRC_CI_AS NULL,
  632. [CREATE_TIME_] datetime NULL,
  633. [LAST_AVAILABLE_TIME_] datetime NULL,
  634. [LAST_ENABLED_TIME_] datetime NULL,
  635. [LAST_DISABLED_TIME_] datetime NULL,
  636. [LAST_STARTED_TIME_] datetime NULL,
  637. [LAST_SUSPENDED_TIME_] datetime NULL,
  638. [COMPLETED_TIME_] datetime NULL,
  639. [OCCURRED_TIME_] datetime NULL,
  640. [TERMINATED_TIME_] datetime NULL,
  641. [EXIT_TIME_] datetime NULL,
  642. [ENDED_TIME_] datetime NULL,
  643. [LAST_UPDATED_TIME_] datetime NULL,
  644. [START_USER_ID_] varchar
  645. (
  646. 255
  647. ) COLLATE Chinese_PRC_CI_AS NULL,
  648. [REFERENCE_ID_] varchar
  649. (
  650. 255
  651. ) COLLATE Chinese_PRC_CI_AS NULL,
  652. [REFERENCE_TYPE_] varchar
  653. (
  654. 255
  655. ) COLLATE Chinese_PRC_CI_AS NULL,
  656. [TENANT_ID_] varchar
  657. (
  658. 255
  659. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  660. [ENTRY_CRITERION_ID_] varchar
  661. (
  662. 255
  663. ) COLLATE Chinese_PRC_CI_AS NULL,
  664. [EXIT_CRITERION_ID_] varchar
  665. (
  666. 255
  667. ) COLLATE Chinese_PRC_CI_AS NULL
  668. )
  669. GO
  670. ALTER TABLE [dbo].[ACT_CMMN_HI_PLAN_ITEM_INST] SET (LOCK_ESCALATION = TABLE)
  671. GO
  672. -- ----------------------------
  673. -- Table structure for ACT_CMMN_RU_CASE_INST
  674. -- ----------------------------
  675. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_RU_CASE_INST]') AND type IN ('U'))
  676. DROP TABLE [dbo].[ACT_CMMN_RU_CASE_INST]
  677. GO
  678. CREATE TABLE [dbo].[ACT_CMMN_RU_CASE_INST]
  679. (
  680. [
  681. ID_] varchar
  682. (
  683. 255
  684. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  685. [REV_] int NOT NULL,
  686. [BUSINESS_KEY_] varchar
  687. (
  688. 255
  689. ) COLLATE Chinese_PRC_CI_AS NULL,
  690. [NAME_] varchar
  691. (
  692. 255
  693. ) COLLATE Chinese_PRC_CI_AS NULL,
  694. [PARENT_ID_] varchar
  695. (
  696. 255
  697. ) COLLATE Chinese_PRC_CI_AS NULL,
  698. [CASE_DEF_ID_] varchar
  699. (
  700. 255
  701. ) COLLATE Chinese_PRC_CI_AS NULL,
  702. [STATE_] varchar
  703. (
  704. 255
  705. ) COLLATE Chinese_PRC_CI_AS NULL,
  706. [START_TIME_] datetime NULL,
  707. [START_USER_ID_] varchar
  708. (
  709. 255
  710. ) COLLATE Chinese_PRC_CI_AS NULL,
  711. [CALLBACK_ID_] varchar
  712. (
  713. 255
  714. ) COLLATE Chinese_PRC_CI_AS NULL,
  715. [CALLBACK_TYPE_] varchar
  716. (
  717. 255
  718. ) COLLATE Chinese_PRC_CI_AS NULL,
  719. [TENANT_ID_] varchar
  720. (
  721. 255
  722. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  723. [LOCK_TIME_] datetime NULL,
  724. [IS_COMPLETEABLE_] bit NULL
  725. )
  726. GO
  727. ALTER TABLE [dbo].[ACT_CMMN_RU_CASE_INST] SET (LOCK_ESCALATION = TABLE)
  728. GO
  729. -- ----------------------------
  730. -- Table structure for ACT_CMMN_RU_MIL_INST
  731. -- ----------------------------
  732. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_RU_MIL_INST]') AND type IN ('U'))
  733. DROP TABLE [dbo].[ACT_CMMN_RU_MIL_INST]
  734. GO
  735. CREATE TABLE [dbo].[ACT_CMMN_RU_MIL_INST]
  736. (
  737. [
  738. ID_] varchar
  739. (
  740. 255
  741. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  742. [NAME_] varchar
  743. (
  744. 255
  745. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  746. [TIME_STAMP_] datetime NOT NULL,
  747. [CASE_INST_ID_] varchar
  748. (
  749. 255
  750. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  751. [CASE_DEF_ID_] varchar
  752. (
  753. 255
  754. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  755. [ELEMENT_ID_] varchar
  756. (
  757. 255
  758. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  759. [TENANT_ID_] varchar
  760. (
  761. 255
  762. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  763. )
  764. GO
  765. ALTER TABLE [dbo].[ACT_CMMN_RU_MIL_INST] SET (LOCK_ESCALATION = TABLE)
  766. GO
  767. -- ----------------------------
  768. -- Table structure for ACT_CMMN_RU_PLAN_ITEM_INST
  769. -- ----------------------------
  770. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_RU_PLAN_ITEM_INST]') AND type IN ('U'))
  771. DROP TABLE [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST]
  772. GO
  773. CREATE TABLE [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST]
  774. (
  775. [
  776. ID_] varchar
  777. (
  778. 255
  779. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  780. [REV_] int NOT NULL,
  781. [CASE_DEF_ID_] varchar
  782. (
  783. 255
  784. ) COLLATE Chinese_PRC_CI_AS NULL,
  785. [CASE_INST_ID_] varchar
  786. (
  787. 255
  788. ) COLLATE Chinese_PRC_CI_AS NULL,
  789. [STAGE_INST_ID_] varchar
  790. (
  791. 255
  792. ) COLLATE Chinese_PRC_CI_AS NULL,
  793. [IS_STAGE_] bit NULL,
  794. [ELEMENT_ID_] varchar
  795. (
  796. 255
  797. ) COLLATE Chinese_PRC_CI_AS NULL,
  798. [NAME_] varchar
  799. (
  800. 255
  801. ) COLLATE Chinese_PRC_CI_AS NULL,
  802. [STATE_] varchar
  803. (
  804. 255
  805. ) COLLATE Chinese_PRC_CI_AS NULL,
  806. [CREATE_TIME_] datetime NULL,
  807. [START_USER_ID_] varchar
  808. (
  809. 255
  810. ) COLLATE Chinese_PRC_CI_AS NULL,
  811. [REFERENCE_ID_] varchar
  812. (
  813. 255
  814. ) COLLATE Chinese_PRC_CI_AS NULL,
  815. [REFERENCE_TYPE_] varchar
  816. (
  817. 255
  818. ) COLLATE Chinese_PRC_CI_AS NULL,
  819. [TENANT_ID_] varchar
  820. (
  821. 255
  822. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  823. [ITEM_DEFINITION_ID_] varchar
  824. (
  825. 255
  826. ) COLLATE Chinese_PRC_CI_AS NULL,
  827. [ITEM_DEFINITION_TYPE_] varchar
  828. (
  829. 255
  830. ) COLLATE Chinese_PRC_CI_AS NULL,
  831. [IS_COMPLETEABLE_] bit NULL,
  832. [IS_COUNT_ENABLED_] bit NULL,
  833. [VAR_COUNT_] int NULL,
  834. [SENTRY_PART_INST_COUNT_] int NULL,
  835. [LAST_AVAILABLE_TIME_] datetime NULL,
  836. [LAST_ENABLED_TIME_] datetime NULL,
  837. [LAST_DISABLED_TIME_] datetime NULL,
  838. [LAST_STARTED_TIME_] datetime NULL,
  839. [LAST_SUSPENDED_TIME_] datetime NULL,
  840. [COMPLETED_TIME_] datetime NULL,
  841. [OCCURRED_TIME_] datetime NULL,
  842. [TERMINATED_TIME_] datetime NULL,
  843. [EXIT_TIME_] datetime NULL,
  844. [ENDED_TIME_] datetime NULL,
  845. [ENTRY_CRITERION_ID_] varchar
  846. (
  847. 255
  848. ) COLLATE Chinese_PRC_CI_AS NULL,
  849. [EXIT_CRITERION_ID_] varchar
  850. (
  851. 255
  852. ) COLLATE Chinese_PRC_CI_AS NULL
  853. )
  854. GO
  855. ALTER TABLE [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] SET (LOCK_ESCALATION = TABLE)
  856. GO
  857. -- ----------------------------
  858. -- Table structure for ACT_CMMN_RU_SENTRY_PART_INST
  859. -- ----------------------------
  860. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CMMN_RU_SENTRY_PART_INST]') AND type IN ('U'))
  861. DROP TABLE [dbo].[ACT_CMMN_RU_SENTRY_PART_INST]
  862. GO
  863. CREATE TABLE [dbo].[ACT_CMMN_RU_SENTRY_PART_INST]
  864. (
  865. [
  866. ID_] varchar
  867. (
  868. 255
  869. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  870. [REV_] int NOT NULL,
  871. [CASE_DEF_ID_] varchar
  872. (
  873. 255
  874. ) COLLATE Chinese_PRC_CI_AS NULL,
  875. [CASE_INST_ID_] varchar
  876. (
  877. 255
  878. ) COLLATE Chinese_PRC_CI_AS NULL,
  879. [PLAN_ITEM_INST_ID_] varchar
  880. (
  881. 255
  882. ) COLLATE Chinese_PRC_CI_AS NULL,
  883. [ON_PART_ID_] varchar
  884. (
  885. 255
  886. ) COLLATE Chinese_PRC_CI_AS NULL,
  887. [IF_PART_ID_] varchar
  888. (
  889. 255
  890. ) COLLATE Chinese_PRC_CI_AS NULL,
  891. [TIME_STAMP_] datetime NULL
  892. )
  893. GO
  894. ALTER TABLE [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] SET (LOCK_ESCALATION = TABLE)
  895. GO
  896. -- ----------------------------
  897. -- Table structure for ACT_CO_CONTENT_ITEM
  898. -- ----------------------------
  899. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CO_CONTENT_ITEM]') AND type IN ('U'))
  900. DROP TABLE [dbo].[ACT_CO_CONTENT_ITEM]
  901. GO
  902. CREATE TABLE [dbo].[ACT_CO_CONTENT_ITEM]
  903. (
  904. [
  905. ID_] varchar
  906. (
  907. 255
  908. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  909. [NAME_] varchar
  910. (
  911. 255
  912. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  913. [MIME_TYPE_] varchar
  914. (
  915. 255
  916. ) COLLATE Chinese_PRC_CI_AS NULL,
  917. [TASK_ID_] varchar
  918. (
  919. 255
  920. ) COLLATE Chinese_PRC_CI_AS NULL,
  921. [PROC_INST_ID_] varchar
  922. (
  923. 255
  924. ) COLLATE Chinese_PRC_CI_AS NULL,
  925. [CONTENT_STORE_ID_] varchar
  926. (
  927. 255
  928. ) COLLATE Chinese_PRC_CI_AS NULL,
  929. [CONTENT_STORE_NAME_] varchar
  930. (
  931. 255
  932. ) COLLATE Chinese_PRC_CI_AS NULL,
  933. [FIELD_] varchar
  934. (
  935. 400
  936. ) COLLATE Chinese_PRC_CI_AS NULL,
  937. [CONTENT_AVAILABLE_] bit DEFAULT
  938. (
  939. (
  940. 0
  941. )) NULL,
  942. [CREATED_] datetime NULL,
  943. [CREATED_BY_] varchar
  944. (
  945. 255
  946. ) COLLATE Chinese_PRC_CI_AS NULL,
  947. [LAST_MODIFIED_] datetime NULL,
  948. [LAST_MODIFIED_BY_] varchar
  949. (
  950. 255
  951. ) COLLATE Chinese_PRC_CI_AS NULL,
  952. [CONTENT_SIZE_] bigint DEFAULT
  953. (
  954. (
  955. 0
  956. )) NULL,
  957. [TENANT_ID_] varchar
  958. (
  959. 255
  960. ) COLLATE Chinese_PRC_CI_AS NULL,
  961. [SCOPE_ID_] varchar
  962. (
  963. 255
  964. ) COLLATE Chinese_PRC_CI_AS NULL,
  965. [SCOPE_TYPE_] varchar
  966. (
  967. 255
  968. ) COLLATE Chinese_PRC_CI_AS NULL
  969. )
  970. GO
  971. ALTER TABLE [dbo].[ACT_CO_CONTENT_ITEM] SET (LOCK_ESCALATION = TABLE)
  972. GO
  973. -- ----------------------------
  974. -- Table structure for ACT_CO_DATABASECHANGELOG
  975. -- ----------------------------
  976. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CO_DATABASECHANGELOG]') AND type IN ('U'))
  977. DROP TABLE [dbo].[ACT_CO_DATABASECHANGELOG]
  978. GO
  979. CREATE TABLE [dbo].[ACT_CO_DATABASECHANGELOG]
  980. (
  981. [
  982. ID] nvarchar
  983. (
  984. 255
  985. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  986. [AUTHOR] nvarchar
  987. (
  988. 255
  989. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  990. [FILENAME] nvarchar
  991. (
  992. 255
  993. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  994. [DATEEXECUTED] datetime2
  995. (
  996. 3
  997. ) NOT NULL,
  998. [ORDEREXECUTED] int NOT NULL,
  999. [EXECTYPE] nvarchar
  1000. (
  1001. 10
  1002. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1003. [MD5SUM] nvarchar
  1004. (
  1005. 35
  1006. ) COLLATE Chinese_PRC_CI_AS NULL,
  1007. [DESCRIPTION] nvarchar
  1008. (
  1009. 255
  1010. ) COLLATE Chinese_PRC_CI_AS NULL,
  1011. [COMMENTS] nvarchar
  1012. (
  1013. 255
  1014. ) COLLATE Chinese_PRC_CI_AS NULL,
  1015. [TAG] nvarchar
  1016. (
  1017. 255
  1018. ) COLLATE Chinese_PRC_CI_AS NULL,
  1019. [LIQUIBASE] nvarchar
  1020. (
  1021. 20
  1022. ) COLLATE Chinese_PRC_CI_AS NULL,
  1023. [CONTEXTS] nvarchar
  1024. (
  1025. 255
  1026. ) COLLATE Chinese_PRC_CI_AS NULL,
  1027. [LABELS] nvarchar
  1028. (
  1029. 255
  1030. ) COLLATE Chinese_PRC_CI_AS NULL,
  1031. [DEPLOYMENT_ID] nvarchar
  1032. (
  1033. 10
  1034. ) COLLATE Chinese_PRC_CI_AS NULL
  1035. )
  1036. GO
  1037. ALTER TABLE [dbo].[ACT_CO_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  1038. GO
  1039. -- ----------------------------
  1040. -- Records of ACT_CO_DATABASECHANGELOG
  1041. -- ----------------------------
  1042. BEGIN
  1043. TRANSACTION
  1044. GO
  1045. INSERT INTO [dbo].[ACT_CO_DATABASECHANGELOG] VALUES (N'1', N'activiti', N'org/flowable/content/db/liquibase/flowable-content-db-changelog.xml', N'2020-07-22 17:51:32.973', N'1', N'EXECUTED', N'8:7644d7165cfe799200a2abdd3419e8b6', N'createTable tableName=ACT_CO_CONTENT_ITEM; createIndex indexName=idx_contitem_taskid, tableName=ACT_CO_CONTENT_ITEM; createIndex indexName=idx_contitem_procid, tableName=ACT_CO_CONTENT_ITEM', N'', NULL, N'3.6.3', NULL, NULL, N'5411548080')
  1046. GO
  1047. INSERT INTO [dbo].[ACT_CO_DATABASECHANGELOG] VALUES (N'2', N'flowable', N'org/flowable/content/db/liquibase/flowable-content-db-changelog.xml', N'2020-07-22 17:51:33.143', N'2', N'EXECUTED', N'8:fe7b11ac7dbbf9c43006b23bbab60bab', N'addColumn tableName=ACT_CO_CONTENT_ITEM; createIndex indexName=idx_contitem_scope, tableName=ACT_CO_CONTENT_ITEM', N'', NULL, N'3.6.3', NULL, NULL, N'5411548080')
  1048. GO
  1049. COMMIT
  1050. GO
  1051. -- ----------------------------
  1052. -- Table structure for ACT_CO_DATABASECHANGELOGLOCK
  1053. -- ----------------------------
  1054. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_CO_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  1055. DROP TABLE [dbo].[ACT_CO_DATABASECHANGELOGLOCK]
  1056. GO
  1057. CREATE TABLE [dbo].[ACT_CO_DATABASECHANGELOGLOCK]
  1058. (
  1059. [
  1060. ID]
  1061. int
  1062. NOT
  1063. NULL, [
  1064. LOCKED]
  1065. bit
  1066. NOT
  1067. NULL, [
  1068. LOCKGRANTED]
  1069. datetime2
  1070. (
  1071. 3
  1072. ) NULL,
  1073. [LOCKEDBY] nvarchar
  1074. (
  1075. 255
  1076. ) COLLATE Chinese_PRC_CI_AS NULL
  1077. )
  1078. GO
  1079. ALTER TABLE [dbo].[ACT_CO_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  1080. GO
  1081. -- ----------------------------
  1082. -- Records of ACT_CO_DATABASECHANGELOGLOCK
  1083. -- ----------------------------
  1084. BEGIN
  1085. TRANSACTION
  1086. GO
  1087. INSERT INTO [dbo].[ACT_CO_DATABASECHANGELOGLOCK] VALUES (N'1', N'0', NULL, NULL)
  1088. GO
  1089. COMMIT
  1090. GO
  1091. -- ----------------------------
  1092. -- Table structure for ACT_DE_DATABASECHANGELOG
  1093. -- ----------------------------
  1094. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DE_DATABASECHANGELOG]') AND type IN ('U'))
  1095. DROP TABLE [dbo].[ACT_DE_DATABASECHANGELOG]
  1096. GO
  1097. CREATE TABLE [dbo].[ACT_DE_DATABASECHANGELOG]
  1098. (
  1099. [
  1100. ID] nvarchar
  1101. (
  1102. 255
  1103. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1104. [AUTHOR] nvarchar
  1105. (
  1106. 255
  1107. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1108. [FILENAME] nvarchar
  1109. (
  1110. 255
  1111. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1112. [DATEEXECUTED] datetime2
  1113. (
  1114. 3
  1115. ) NOT NULL,
  1116. [ORDEREXECUTED] int NOT NULL,
  1117. [EXECTYPE] nvarchar
  1118. (
  1119. 10
  1120. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1121. [MD5SUM] nvarchar
  1122. (
  1123. 35
  1124. ) COLLATE Chinese_PRC_CI_AS NULL,
  1125. [DESCRIPTION] nvarchar
  1126. (
  1127. 255
  1128. ) COLLATE Chinese_PRC_CI_AS NULL,
  1129. [COMMENTS] nvarchar
  1130. (
  1131. 255
  1132. ) COLLATE Chinese_PRC_CI_AS NULL,
  1133. [TAG] nvarchar
  1134. (
  1135. 255
  1136. ) COLLATE Chinese_PRC_CI_AS NULL,
  1137. [LIQUIBASE] nvarchar
  1138. (
  1139. 20
  1140. ) COLLATE Chinese_PRC_CI_AS NULL,
  1141. [CONTEXTS] nvarchar
  1142. (
  1143. 255
  1144. ) COLLATE Chinese_PRC_CI_AS NULL,
  1145. [LABELS] nvarchar
  1146. (
  1147. 255
  1148. ) COLLATE Chinese_PRC_CI_AS NULL,
  1149. [DEPLOYMENT_ID] nvarchar
  1150. (
  1151. 10
  1152. ) COLLATE Chinese_PRC_CI_AS NULL
  1153. )
  1154. GO
  1155. ALTER TABLE [dbo].[ACT_DE_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  1156. GO
  1157. -- ----------------------------
  1158. -- Records of ACT_DE_DATABASECHANGELOG
  1159. -- ----------------------------
  1160. BEGIN
  1161. TRANSACTION
  1162. GO
  1163. INSERT INTO [dbo].[ACT_DE_DATABASECHANGELOG] VALUES (N'1', N'flowable', N'META-INF/liquibase/flowable-modeler-app-db-changelog.xml', N'2020-07-22 21:25:47.840', N'1', N'EXECUTED', N'8:e70d1d9d3899a734296b2514ccc71501', N'createTable tableName=ACT_DE_MODEL; createIndex indexName=idx_proc_mod_created, tableName=ACT_DE_MODEL; createTable tableName=ACT_DE_MODEL_HISTORY; createIndex indexName=idx_proc_mod_history_proc, tableName=ACT_DE_MODEL_HISTORY; createTable tableN...', N'', NULL, N'3.6.3', NULL, NULL, N'5424402462')
  1164. GO
  1165. INSERT INTO [dbo].[ACT_DE_DATABASECHANGELOG] VALUES (N'2', N'flowable', N'META-INF/liquibase/flowable-modeler-app-db-changelog.xml', N'2020-07-22 21:25:48.050', N'2', N'EXECUTED', N'8:f08070bcdfbc61d089df76c8f2327d50', N'modifyDataType columnName=created, tableName=ACT_DE_MODEL; modifyDataType columnName=last_updated, tableName=ACT_DE_MODEL; modifyDataType columnName=created, tableName=ACT_DE_MODEL_HISTORY; modifyDataType columnName=last_updated, tableName=ACT_DE_...', N'', NULL, N'3.6.3', NULL, NULL, N'5424402462')
  1166. GO
  1167. INSERT INTO [dbo].[ACT_DE_DATABASECHANGELOG] VALUES (N'3', N'flowable', N'META-INF/liquibase/flowable-modeler-app-db-changelog.xml', N'2020-07-22 21:25:48.170', N'3', N'EXECUTED', N'8:3a9143bef2e45f2316231cc1369138b6', N'addColumn tableName=ACT_DE_MODEL; addColumn tableName=ACT_DE_MODEL_HISTORY', N'', NULL, N'3.6.3', NULL, NULL, N'5424402462')
  1168. GO
  1169. COMMIT
  1170. GO
  1171. -- ----------------------------
  1172. -- Table structure for ACT_DE_DATABASECHANGELOGLOCK
  1173. -- ----------------------------
  1174. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DE_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  1175. DROP TABLE [dbo].[ACT_DE_DATABASECHANGELOGLOCK]
  1176. GO
  1177. CREATE TABLE [dbo].[ACT_DE_DATABASECHANGELOGLOCK]
  1178. (
  1179. [
  1180. ID]
  1181. int
  1182. NOT
  1183. NULL, [
  1184. LOCKED]
  1185. bit
  1186. NOT
  1187. NULL, [
  1188. LOCKGRANTED]
  1189. datetime2
  1190. (
  1191. 3
  1192. ) NULL,
  1193. [LOCKEDBY] nvarchar
  1194. (
  1195. 255
  1196. ) COLLATE Chinese_PRC_CI_AS NULL
  1197. )
  1198. GO
  1199. ALTER TABLE [dbo].[ACT_DE_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  1200. GO
  1201. -- ----------------------------
  1202. -- Records of ACT_DE_DATABASECHANGELOGLOCK
  1203. -- ----------------------------
  1204. BEGIN
  1205. TRANSACTION
  1206. GO
  1207. INSERT INTO [dbo].[ACT_DE_DATABASECHANGELOGLOCK] VALUES (N'1', N'0', NULL, NULL)
  1208. GO
  1209. COMMIT
  1210. GO
  1211. -- ----------------------------
  1212. -- Table structure for ACT_DE_MODEL
  1213. -- ----------------------------
  1214. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DE_MODEL]') AND type IN ('U'))
  1215. DROP TABLE [dbo].[ACT_DE_MODEL]
  1216. GO
  1217. CREATE TABLE [dbo].[ACT_DE_MODEL]
  1218. (
  1219. [
  1220. id] varchar
  1221. (
  1222. 255
  1223. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1224. [name] varchar
  1225. (
  1226. 400
  1227. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1228. [model_key] varchar
  1229. (
  1230. 400
  1231. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1232. [description] varchar
  1233. (
  1234. 4000
  1235. ) COLLATE Chinese_PRC_CI_AS NULL,
  1236. [model_comment] varchar
  1237. (
  1238. 4000
  1239. ) COLLATE Chinese_PRC_CI_AS NULL,
  1240. [created] datetime2
  1241. (
  1242. 7
  1243. ) NULL,
  1244. [created_by] varchar
  1245. (
  1246. 255
  1247. ) COLLATE Chinese_PRC_CI_AS NULL,
  1248. [last_updated] datetime2
  1249. (
  1250. 7
  1251. ) NULL,
  1252. [last_updated_by] varchar
  1253. (
  1254. 255
  1255. ) COLLATE Chinese_PRC_CI_AS NULL,
  1256. [version] int NULL,
  1257. [model_editor_json] varchar
  1258. (
  1259. max
  1260. ) COLLATE Chinese_PRC_CI_AS NULL,
  1261. [model_editor_xml] varchar
  1262. (
  1263. max
  1264. ) COLLATE Chinese_PRC_CI_AS NULL,
  1265. [thumbnail] varbinary
  1266. (
  1267. max
  1268. ) NULL,
  1269. [model_type] int NULL,
  1270. [tenant_id] varchar
  1271. (
  1272. 255
  1273. ) COLLATE Chinese_PRC_CI_AS NULL
  1274. )
  1275. GO
  1276. ALTER TABLE [dbo].[ACT_DE_MODEL] SET (LOCK_ESCALATION = TABLE)
  1277. GO
  1278. -- ----------------------------
  1279. -- Table structure for ACT_DE_MODEL_HISTORY
  1280. -- ----------------------------
  1281. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DE_MODEL_HISTORY]') AND type IN ('U'))
  1282. DROP TABLE [dbo].[ACT_DE_MODEL_HISTORY]
  1283. GO
  1284. CREATE TABLE [dbo].[ACT_DE_MODEL_HISTORY]
  1285. (
  1286. [
  1287. id] varchar
  1288. (
  1289. 255
  1290. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1291. [name] varchar
  1292. (
  1293. 400
  1294. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1295. [model_key] varchar
  1296. (
  1297. 400
  1298. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1299. [description] varchar
  1300. (
  1301. 4000
  1302. ) COLLATE Chinese_PRC_CI_AS NULL,
  1303. [model_comment] varchar
  1304. (
  1305. 4000
  1306. ) COLLATE Chinese_PRC_CI_AS NULL,
  1307. [created] datetime2
  1308. (
  1309. 7
  1310. ) NULL,
  1311. [created_by] varchar
  1312. (
  1313. 255
  1314. ) COLLATE Chinese_PRC_CI_AS NULL,
  1315. [last_updated] datetime2
  1316. (
  1317. 7
  1318. ) NULL,
  1319. [last_updated_by] varchar
  1320. (
  1321. 255
  1322. ) COLLATE Chinese_PRC_CI_AS NULL,
  1323. [removal_date] datetime2
  1324. (
  1325. 7
  1326. ) NULL,
  1327. [version] int NULL,
  1328. [model_editor_json] varchar
  1329. (
  1330. max
  1331. ) COLLATE Chinese_PRC_CI_AS NULL,
  1332. [model_id] varchar
  1333. (
  1334. 255
  1335. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1336. [model_type] int NULL,
  1337. [tenant_id] varchar
  1338. (
  1339. 255
  1340. ) COLLATE Chinese_PRC_CI_AS NULL
  1341. )
  1342. GO
  1343. ALTER TABLE [dbo].[ACT_DE_MODEL_HISTORY] SET (LOCK_ESCALATION = TABLE)
  1344. GO
  1345. -- ----------------------------
  1346. -- Table structure for ACT_DE_MODEL_RELATION
  1347. -- ----------------------------
  1348. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DE_MODEL_RELATION]') AND type IN ('U'))
  1349. DROP TABLE [dbo].[ACT_DE_MODEL_RELATION]
  1350. GO
  1351. CREATE TABLE [dbo].[ACT_DE_MODEL_RELATION]
  1352. (
  1353. [
  1354. id] varchar
  1355. (
  1356. 255
  1357. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1358. [parent_model_id] varchar
  1359. (
  1360. 255
  1361. ) COLLATE Chinese_PRC_CI_AS NULL,
  1362. [model_id] varchar
  1363. (
  1364. 255
  1365. ) COLLATE Chinese_PRC_CI_AS NULL,
  1366. [relation_type] varchar
  1367. (
  1368. 255
  1369. ) COLLATE Chinese_PRC_CI_AS NULL
  1370. )
  1371. GO
  1372. ALTER TABLE [dbo].[ACT_DE_MODEL_RELATION] SET (LOCK_ESCALATION = TABLE)
  1373. GO
  1374. -- ----------------------------
  1375. -- Table structure for ACT_DMN_DATABASECHANGELOG
  1376. -- ----------------------------
  1377. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DMN_DATABASECHANGELOG]') AND type IN ('U'))
  1378. DROP TABLE [dbo].[ACT_DMN_DATABASECHANGELOG]
  1379. GO
  1380. CREATE TABLE [dbo].[ACT_DMN_DATABASECHANGELOG]
  1381. (
  1382. [
  1383. ID] nvarchar
  1384. (
  1385. 255
  1386. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1387. [AUTHOR] nvarchar
  1388. (
  1389. 255
  1390. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1391. [FILENAME] nvarchar
  1392. (
  1393. 255
  1394. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1395. [DATEEXECUTED] datetime2
  1396. (
  1397. 3
  1398. ) NOT NULL,
  1399. [ORDEREXECUTED] int NOT NULL,
  1400. [EXECTYPE] nvarchar
  1401. (
  1402. 10
  1403. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1404. [MD5SUM] nvarchar
  1405. (
  1406. 35
  1407. ) COLLATE Chinese_PRC_CI_AS NULL,
  1408. [DESCRIPTION] nvarchar
  1409. (
  1410. 255
  1411. ) COLLATE Chinese_PRC_CI_AS NULL,
  1412. [COMMENTS] nvarchar
  1413. (
  1414. 255
  1415. ) COLLATE Chinese_PRC_CI_AS NULL,
  1416. [TAG] nvarchar
  1417. (
  1418. 255
  1419. ) COLLATE Chinese_PRC_CI_AS NULL,
  1420. [LIQUIBASE] nvarchar
  1421. (
  1422. 20
  1423. ) COLLATE Chinese_PRC_CI_AS NULL,
  1424. [CONTEXTS] nvarchar
  1425. (
  1426. 255
  1427. ) COLLATE Chinese_PRC_CI_AS NULL,
  1428. [LABELS] nvarchar
  1429. (
  1430. 255
  1431. ) COLLATE Chinese_PRC_CI_AS NULL,
  1432. [DEPLOYMENT_ID] nvarchar
  1433. (
  1434. 10
  1435. ) COLLATE Chinese_PRC_CI_AS NULL
  1436. )
  1437. GO
  1438. ALTER TABLE [dbo].[ACT_DMN_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  1439. GO
  1440. -- ----------------------------
  1441. -- Records of ACT_DMN_DATABASECHANGELOG
  1442. -- ----------------------------
  1443. BEGIN
  1444. TRANSACTION
  1445. GO
  1446. INSERT INTO [dbo].[ACT_DMN_DATABASECHANGELOG] VALUES (N'1', N'activiti', N'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', N'2020-07-22 17:51:29.020', N'1', N'EXECUTED', N'8:c8701f1c71018b55029f450b2e9a10a1', N'createTable tableName=ACT_DMN_DEPLOYMENT; createTable tableName=ACT_DMN_DEPLOYMENT_RESOURCE; createTable tableName=ACT_DMN_DECISION_TABLE', N'', NULL, N'3.6.3', NULL, NULL, N'5411544106')
  1447. GO
  1448. INSERT INTO [dbo].[ACT_DMN_DATABASECHANGELOG] VALUES (N'2', N'flowable', N'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', N'2020-07-22 17:51:29.383', N'2', N'EXECUTED', N'8:47f94b27feb7df8a30d4e338c7bd5fb8', N'createTable tableName=ACT_DMN_HI_DECISION_EXECUTION', N'', NULL, N'3.6.3', NULL, NULL, N'5411544106')
  1449. GO
  1450. INSERT INTO [dbo].[ACT_DMN_DATABASECHANGELOG] VALUES (N'3', N'flowable', N'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', N'2020-07-22 17:51:29.513', N'3', N'EXECUTED', N'8:ac17eae89fbdccb6e08daf3c7797b579', N'addColumn tableName=ACT_DMN_HI_DECISION_EXECUTION', N'', NULL, N'3.6.3', NULL, NULL, N'5411544106')
  1451. GO
  1452. INSERT INTO [dbo].[ACT_DMN_DATABASECHANGELOG] VALUES (N'4', N'flowable', N'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', N'2020-07-22 17:51:29.620', N'4', N'EXECUTED', N'8:f73aabc4529e7292c2942073d1cff6f9', N'dropColumn columnName=PARENT_DEPLOYMENT_ID_, tableName=ACT_DMN_DECISION_TABLE', N'', NULL, N'3.6.3', NULL, NULL, N'5411544106')
  1453. GO
  1454. INSERT INTO [dbo].[ACT_DMN_DATABASECHANGELOG] VALUES (N'6', N'flowable', N'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', N'2020-07-22 17:51:29.727', N'5', N'EXECUTED', N'8:646c6a061e0b6e8a62e69844ff96abb0', N'createIndex indexName=ACT_IDX_DEC_TBL_UNIQ, tableName=ACT_DMN_DECISION_TABLE', N'', NULL, N'3.6.3', NULL, NULL, N'5411544106')
  1455. GO
  1456. COMMIT
  1457. GO
  1458. -- ----------------------------
  1459. -- Table structure for ACT_DMN_DATABASECHANGELOGLOCK
  1460. -- ----------------------------
  1461. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DMN_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  1462. DROP TABLE [dbo].[ACT_DMN_DATABASECHANGELOGLOCK]
  1463. GO
  1464. CREATE TABLE [dbo].[ACT_DMN_DATABASECHANGELOGLOCK]
  1465. (
  1466. [
  1467. ID]
  1468. int
  1469. NOT
  1470. NULL, [
  1471. LOCKED]
  1472. bit
  1473. NOT
  1474. NULL, [
  1475. LOCKGRANTED]
  1476. datetime2
  1477. (
  1478. 3
  1479. ) NULL,
  1480. [LOCKEDBY] nvarchar
  1481. (
  1482. 255
  1483. ) COLLATE Chinese_PRC_CI_AS NULL
  1484. )
  1485. GO
  1486. ALTER TABLE [dbo].[ACT_DMN_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  1487. GO
  1488. -- ----------------------------
  1489. -- Records of ACT_DMN_DATABASECHANGELOGLOCK
  1490. -- ----------------------------
  1491. BEGIN
  1492. TRANSACTION
  1493. GO
  1494. INSERT INTO [dbo].[ACT_DMN_DATABASECHANGELOGLOCK] VALUES (N'1', N'0', NULL, NULL)
  1495. GO
  1496. COMMIT
  1497. GO
  1498. -- ----------------------------
  1499. -- Table structure for ACT_DMN_DECISION_TABLE
  1500. -- ----------------------------
  1501. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DMN_DECISION_TABLE]') AND type IN ('U'))
  1502. DROP TABLE [dbo].[ACT_DMN_DECISION_TABLE]
  1503. GO
  1504. CREATE TABLE [dbo].[ACT_DMN_DECISION_TABLE]
  1505. (
  1506. [
  1507. ID_] varchar
  1508. (
  1509. 255
  1510. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1511. [NAME_] varchar
  1512. (
  1513. 255
  1514. ) COLLATE Chinese_PRC_CI_AS NULL,
  1515. [VERSION_] int NULL,
  1516. [KEY_] varchar
  1517. (
  1518. 255
  1519. ) COLLATE Chinese_PRC_CI_AS NULL,
  1520. [CATEGORY_] varchar
  1521. (
  1522. 255
  1523. ) COLLATE Chinese_PRC_CI_AS NULL,
  1524. [DEPLOYMENT_ID_] varchar
  1525. (
  1526. 255
  1527. ) COLLATE Chinese_PRC_CI_AS NULL,
  1528. [TENANT_ID_] varchar
  1529. (
  1530. 255
  1531. ) COLLATE Chinese_PRC_CI_AS NULL,
  1532. [RESOURCE_NAME_] varchar
  1533. (
  1534. 255
  1535. ) COLLATE Chinese_PRC_CI_AS NULL,
  1536. [DESCRIPTION_] varchar
  1537. (
  1538. 255
  1539. ) COLLATE Chinese_PRC_CI_AS NULL
  1540. )
  1541. GO
  1542. ALTER TABLE [dbo].[ACT_DMN_DECISION_TABLE] SET (LOCK_ESCALATION = TABLE)
  1543. GO
  1544. -- ----------------------------
  1545. -- Table structure for ACT_DMN_DEPLOYMENT
  1546. -- ----------------------------
  1547. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DMN_DEPLOYMENT]') AND type IN ('U'))
  1548. DROP TABLE [dbo].[ACT_DMN_DEPLOYMENT]
  1549. GO
  1550. CREATE TABLE [dbo].[ACT_DMN_DEPLOYMENT]
  1551. (
  1552. [
  1553. ID_] varchar
  1554. (
  1555. 255
  1556. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1557. [NAME_] varchar
  1558. (
  1559. 255
  1560. ) COLLATE Chinese_PRC_CI_AS NULL,
  1561. [CATEGORY_] varchar
  1562. (
  1563. 255
  1564. ) COLLATE Chinese_PRC_CI_AS NULL,
  1565. [DEPLOY_TIME_] datetime NULL,
  1566. [TENANT_ID_] varchar
  1567. (
  1568. 255
  1569. ) COLLATE Chinese_PRC_CI_AS NULL,
  1570. [PARENT_DEPLOYMENT_ID_] varchar
  1571. (
  1572. 255
  1573. ) COLLATE Chinese_PRC_CI_AS NULL
  1574. )
  1575. GO
  1576. ALTER TABLE [dbo].[ACT_DMN_DEPLOYMENT] SET (LOCK_ESCALATION = TABLE)
  1577. GO
  1578. -- ----------------------------
  1579. -- Table structure for ACT_DMN_DEPLOYMENT_RESOURCE
  1580. -- ----------------------------
  1581. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DMN_DEPLOYMENT_RESOURCE]') AND type IN ('U'))
  1582. DROP TABLE [dbo].[ACT_DMN_DEPLOYMENT_RESOURCE]
  1583. GO
  1584. CREATE TABLE [dbo].[ACT_DMN_DEPLOYMENT_RESOURCE]
  1585. (
  1586. [
  1587. ID_] varchar
  1588. (
  1589. 255
  1590. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1591. [NAME_] varchar
  1592. (
  1593. 255
  1594. ) COLLATE Chinese_PRC_CI_AS NULL,
  1595. [DEPLOYMENT_ID_] varchar
  1596. (
  1597. 255
  1598. ) COLLATE Chinese_PRC_CI_AS NULL,
  1599. [RESOURCE_BYTES_] varbinary
  1600. (
  1601. max
  1602. ) NULL
  1603. )
  1604. GO
  1605. ALTER TABLE [dbo].[ACT_DMN_DEPLOYMENT_RESOURCE] SET (LOCK_ESCALATION = TABLE)
  1606. GO
  1607. -- ----------------------------
  1608. -- Table structure for ACT_DMN_HI_DECISION_EXECUTION
  1609. -- ----------------------------
  1610. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_DMN_HI_DECISION_EXECUTION]') AND type IN ('U'))
  1611. DROP TABLE [dbo].[ACT_DMN_HI_DECISION_EXECUTION]
  1612. GO
  1613. CREATE TABLE [dbo].[ACT_DMN_HI_DECISION_EXECUTION]
  1614. (
  1615. [
  1616. ID_] varchar
  1617. (
  1618. 255
  1619. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1620. [DECISION_DEFINITION_ID_] varchar
  1621. (
  1622. 255
  1623. ) COLLATE Chinese_PRC_CI_AS NULL,
  1624. [DEPLOYMENT_ID_] varchar
  1625. (
  1626. 255
  1627. ) COLLATE Chinese_PRC_CI_AS NULL,
  1628. [START_TIME_] datetime NULL,
  1629. [END_TIME_] datetime NULL,
  1630. [INSTANCE_ID_] varchar
  1631. (
  1632. 255
  1633. ) COLLATE Chinese_PRC_CI_AS NULL,
  1634. [EXECUTION_ID_] varchar
  1635. (
  1636. 255
  1637. ) COLLATE Chinese_PRC_CI_AS NULL,
  1638. [ACTIVITY_ID_] varchar
  1639. (
  1640. 255
  1641. ) COLLATE Chinese_PRC_CI_AS NULL,
  1642. [FAILED_] bit DEFAULT
  1643. (
  1644. (
  1645. 0
  1646. )) NULL,
  1647. [TENANT_ID_] varchar
  1648. (
  1649. 255
  1650. ) COLLATE Chinese_PRC_CI_AS NULL,
  1651. [EXECUTION_JSON_] varchar
  1652. (
  1653. max
  1654. ) COLLATE Chinese_PRC_CI_AS NULL,
  1655. [SCOPE_TYPE_] varchar
  1656. (
  1657. 255
  1658. ) COLLATE Chinese_PRC_CI_AS NULL
  1659. )
  1660. GO
  1661. ALTER TABLE [dbo].[ACT_DMN_HI_DECISION_EXECUTION] SET (LOCK_ESCALATION = TABLE)
  1662. GO
  1663. -- ----------------------------
  1664. -- Table structure for ACT_EVT_LOG
  1665. -- ----------------------------
  1666. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_EVT_LOG]') AND type IN ('U'))
  1667. DROP TABLE [dbo].[ACT_EVT_LOG]
  1668. GO
  1669. CREATE TABLE [dbo].[ACT_EVT_LOG]
  1670. (
  1671. [
  1672. LOG_NR_] numeric
  1673. (
  1674. 19
  1675. ) IDENTITY
  1676. (
  1677. 1,
  1678. 1
  1679. ) NOT NULL,
  1680. [TYPE_] nvarchar
  1681. (
  1682. 64
  1683. ) COLLATE Chinese_PRC_CI_AS NULL,
  1684. [PROC_DEF_ID_] nvarchar
  1685. (
  1686. 64
  1687. ) COLLATE Chinese_PRC_CI_AS NULL,
  1688. [PROC_INST_ID_] nvarchar
  1689. (
  1690. 64
  1691. ) COLLATE Chinese_PRC_CI_AS NULL,
  1692. [EXECUTION_ID_] nvarchar
  1693. (
  1694. 64
  1695. ) COLLATE Chinese_PRC_CI_AS NULL,
  1696. [TASK_ID_] nvarchar
  1697. (
  1698. 64
  1699. ) COLLATE Chinese_PRC_CI_AS NULL,
  1700. [TIME_STAMP_] datetime NOT NULL,
  1701. [USER_ID_] nvarchar
  1702. (
  1703. 255
  1704. ) COLLATE Chinese_PRC_CI_AS NULL,
  1705. [DATA_] varbinary
  1706. (
  1707. max
  1708. ) NULL,
  1709. [LOCK_OWNER_] nvarchar
  1710. (
  1711. 255
  1712. ) COLLATE Chinese_PRC_CI_AS NULL,
  1713. [LOCK_TIME_] datetime NULL,
  1714. [IS_PROCESSED_] tinyint DEFAULT
  1715. (
  1716. (
  1717. 0
  1718. )) NULL
  1719. )
  1720. GO
  1721. ALTER TABLE [dbo].[ACT_EVT_LOG] SET (LOCK_ESCALATION = TABLE)
  1722. GO
  1723. -- ----------------------------
  1724. -- Table structure for ACT_FO_DATABASECHANGELOG
  1725. -- ----------------------------
  1726. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_FO_DATABASECHANGELOG]') AND type IN ('U'))
  1727. DROP TABLE [dbo].[ACT_FO_DATABASECHANGELOG]
  1728. GO
  1729. CREATE TABLE [dbo].[ACT_FO_DATABASECHANGELOG]
  1730. (
  1731. [
  1732. ID] nvarchar
  1733. (
  1734. 255
  1735. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1736. [AUTHOR] nvarchar
  1737. (
  1738. 255
  1739. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1740. [FILENAME] nvarchar
  1741. (
  1742. 255
  1743. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1744. [DATEEXECUTED] datetime2
  1745. (
  1746. 3
  1747. ) NOT NULL,
  1748. [ORDEREXECUTED] int NOT NULL,
  1749. [EXECTYPE] nvarchar
  1750. (
  1751. 10
  1752. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1753. [MD5SUM] nvarchar
  1754. (
  1755. 35
  1756. ) COLLATE Chinese_PRC_CI_AS NULL,
  1757. [DESCRIPTION] nvarchar
  1758. (
  1759. 255
  1760. ) COLLATE Chinese_PRC_CI_AS NULL,
  1761. [COMMENTS] nvarchar
  1762. (
  1763. 255
  1764. ) COLLATE Chinese_PRC_CI_AS NULL,
  1765. [TAG] nvarchar
  1766. (
  1767. 255
  1768. ) COLLATE Chinese_PRC_CI_AS NULL,
  1769. [LIQUIBASE] nvarchar
  1770. (
  1771. 20
  1772. ) COLLATE Chinese_PRC_CI_AS NULL,
  1773. [CONTEXTS] nvarchar
  1774. (
  1775. 255
  1776. ) COLLATE Chinese_PRC_CI_AS NULL,
  1777. [LABELS] nvarchar
  1778. (
  1779. 255
  1780. ) COLLATE Chinese_PRC_CI_AS NULL,
  1781. [DEPLOYMENT_ID] nvarchar
  1782. (
  1783. 10
  1784. ) COLLATE Chinese_PRC_CI_AS NULL
  1785. )
  1786. GO
  1787. ALTER TABLE [dbo].[ACT_FO_DATABASECHANGELOG] SET (LOCK_ESCALATION = TABLE)
  1788. GO
  1789. -- ----------------------------
  1790. -- Records of ACT_FO_DATABASECHANGELOG
  1791. -- ----------------------------
  1792. BEGIN
  1793. TRANSACTION
  1794. GO
  1795. INSERT INTO [dbo].[ACT_FO_DATABASECHANGELOG] VALUES (N'1', N'activiti', N'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', N'2020-07-22 17:51:31.023', N'1', N'EXECUTED', N'8:033ebf9380889aed7c453927ecc3250d', N'createTable tableName=ACT_FO_FORM_DEPLOYMENT; createTable tableName=ACT_FO_FORM_RESOURCE; createTable tableName=ACT_FO_FORM_DEFINITION; createTable tableName=ACT_FO_FORM_INSTANCE', N'', NULL, N'3.6.3', NULL, NULL, N'5411546094')
  1796. GO
  1797. INSERT INTO [dbo].[ACT_FO_DATABASECHANGELOG] VALUES (N'2', N'flowable', N'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', N'2020-07-22 17:51:31.383', N'2', N'EXECUTED', N'8:986365ceb40445ce3b27a8e6b40f159b', N'addColumn tableName=ACT_FO_FORM_INSTANCE', N'', NULL, N'3.6.3', NULL, NULL, N'5411546094')
  1798. GO
  1799. INSERT INTO [dbo].[ACT_FO_DATABASECHANGELOG] VALUES (N'3', N'flowable', N'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', N'2020-07-22 17:51:31.517', N'3', N'EXECUTED', N'8:abf482518ceb09830ef674e52c06bf15', N'dropColumn columnName=PARENT_DEPLOYMENT_ID_, tableName=ACT_FO_FORM_DEFINITION', N'', NULL, N'3.6.3', NULL, NULL, N'5411546094')
  1800. GO
  1801. INSERT INTO [dbo].[ACT_FO_DATABASECHANGELOG] VALUES (N'5', N'flowable', N'org/flowable/form/db/liquibase/flowable-form-db-changelog.xml', N'2020-07-22 17:51:31.627', N'4', N'EXECUTED', N'8:b4be732b89e5ca028bdd520c6ad4d446', N'createIndex indexName=ACT_IDX_FORM_DEF_UNIQ, tableName=ACT_FO_FORM_DEFINITION', N'', NULL, N'3.6.3', NULL, NULL, N'5411546094')
  1802. GO
  1803. COMMIT
  1804. GO
  1805. -- ----------------------------
  1806. -- Table structure for ACT_FO_DATABASECHANGELOGLOCK
  1807. -- ----------------------------
  1808. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_FO_DATABASECHANGELOGLOCK]') AND type IN ('U'))
  1809. DROP TABLE [dbo].[ACT_FO_DATABASECHANGELOGLOCK]
  1810. GO
  1811. CREATE TABLE [dbo].[ACT_FO_DATABASECHANGELOGLOCK]
  1812. (
  1813. [
  1814. ID]
  1815. int
  1816. NOT
  1817. NULL, [
  1818. LOCKED]
  1819. bit
  1820. NOT
  1821. NULL, [
  1822. LOCKGRANTED]
  1823. datetime2
  1824. (
  1825. 3
  1826. ) NULL,
  1827. [LOCKEDBY] nvarchar
  1828. (
  1829. 255
  1830. ) COLLATE Chinese_PRC_CI_AS NULL
  1831. )
  1832. GO
  1833. ALTER TABLE [dbo].[ACT_FO_DATABASECHANGELOGLOCK] SET (LOCK_ESCALATION = TABLE)
  1834. GO
  1835. -- ----------------------------
  1836. -- Records of ACT_FO_DATABASECHANGELOGLOCK
  1837. -- ----------------------------
  1838. BEGIN
  1839. TRANSACTION
  1840. GO
  1841. INSERT INTO [dbo].[ACT_FO_DATABASECHANGELOGLOCK] VALUES (N'1', N'0', NULL, NULL)
  1842. GO
  1843. COMMIT
  1844. GO
  1845. -- ----------------------------
  1846. -- Table structure for ACT_FO_FORM_DEFINITION
  1847. -- ----------------------------
  1848. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_FO_FORM_DEFINITION]') AND type IN ('U'))
  1849. DROP TABLE [dbo].[ACT_FO_FORM_DEFINITION]
  1850. GO
  1851. CREATE TABLE [dbo].[ACT_FO_FORM_DEFINITION]
  1852. (
  1853. [
  1854. ID_] varchar
  1855. (
  1856. 255
  1857. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1858. [NAME_] varchar
  1859. (
  1860. 255
  1861. ) COLLATE Chinese_PRC_CI_AS NULL,
  1862. [VERSION_] int NULL,
  1863. [KEY_] varchar
  1864. (
  1865. 255
  1866. ) COLLATE Chinese_PRC_CI_AS NULL,
  1867. [CATEGORY_] varchar
  1868. (
  1869. 255
  1870. ) COLLATE Chinese_PRC_CI_AS NULL,
  1871. [DEPLOYMENT_ID_] varchar
  1872. (
  1873. 255
  1874. ) COLLATE Chinese_PRC_CI_AS NULL,
  1875. [TENANT_ID_] varchar
  1876. (
  1877. 255
  1878. ) COLLATE Chinese_PRC_CI_AS NULL,
  1879. [RESOURCE_NAME_] varchar
  1880. (
  1881. 255
  1882. ) COLLATE Chinese_PRC_CI_AS NULL,
  1883. [DESCRIPTION_] varchar
  1884. (
  1885. 255
  1886. ) COLLATE Chinese_PRC_CI_AS NULL
  1887. )
  1888. GO
  1889. ALTER TABLE [dbo].[ACT_FO_FORM_DEFINITION] SET (LOCK_ESCALATION = TABLE)
  1890. GO
  1891. -- ----------------------------
  1892. -- Table structure for ACT_FO_FORM_DEPLOYMENT
  1893. -- ----------------------------
  1894. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_FO_FORM_DEPLOYMENT]') AND type IN ('U'))
  1895. DROP TABLE [dbo].[ACT_FO_FORM_DEPLOYMENT]
  1896. GO
  1897. CREATE TABLE [dbo].[ACT_FO_FORM_DEPLOYMENT]
  1898. (
  1899. [
  1900. ID_] varchar
  1901. (
  1902. 255
  1903. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1904. [NAME_] varchar
  1905. (
  1906. 255
  1907. ) COLLATE Chinese_PRC_CI_AS NULL,
  1908. [CATEGORY_] varchar
  1909. (
  1910. 255
  1911. ) COLLATE Chinese_PRC_CI_AS NULL,
  1912. [DEPLOY_TIME_] datetime NULL,
  1913. [TENANT_ID_] varchar
  1914. (
  1915. 255
  1916. ) COLLATE Chinese_PRC_CI_AS NULL,
  1917. [PARENT_DEPLOYMENT_ID_] varchar
  1918. (
  1919. 255
  1920. ) COLLATE Chinese_PRC_CI_AS NULL
  1921. )
  1922. GO
  1923. ALTER TABLE [dbo].[ACT_FO_FORM_DEPLOYMENT] SET (LOCK_ESCALATION = TABLE)
  1924. GO
  1925. -- ----------------------------
  1926. -- Table structure for ACT_FO_FORM_INSTANCE
  1927. -- ----------------------------
  1928. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_FO_FORM_INSTANCE]') AND type IN ('U'))
  1929. DROP TABLE [dbo].[ACT_FO_FORM_INSTANCE]
  1930. GO
  1931. CREATE TABLE [dbo].[ACT_FO_FORM_INSTANCE]
  1932. (
  1933. [
  1934. ID_] varchar
  1935. (
  1936. 255
  1937. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1938. [FORM_DEFINITION_ID_] varchar
  1939. (
  1940. 255
  1941. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1942. [TASK_ID_] varchar
  1943. (
  1944. 255
  1945. ) COLLATE Chinese_PRC_CI_AS NULL,
  1946. [PROC_INST_ID_] varchar
  1947. (
  1948. 255
  1949. ) COLLATE Chinese_PRC_CI_AS NULL,
  1950. [PROC_DEF_ID_] varchar
  1951. (
  1952. 255
  1953. ) COLLATE Chinese_PRC_CI_AS NULL,
  1954. [SUBMITTED_DATE_] datetime NULL,
  1955. [SUBMITTED_BY_] varchar
  1956. (
  1957. 255
  1958. ) COLLATE Chinese_PRC_CI_AS NULL,
  1959. [FORM_VALUES_ID_] varchar
  1960. (
  1961. 255
  1962. ) COLLATE Chinese_PRC_CI_AS NULL,
  1963. [TENANT_ID_] varchar
  1964. (
  1965. 255
  1966. ) COLLATE Chinese_PRC_CI_AS NULL,
  1967. [SCOPE_ID_] varchar
  1968. (
  1969. 255
  1970. ) COLLATE Chinese_PRC_CI_AS NULL,
  1971. [SCOPE_TYPE_] varchar
  1972. (
  1973. 255
  1974. ) COLLATE Chinese_PRC_CI_AS NULL,
  1975. [SCOPE_DEFINITION_ID_] varchar
  1976. (
  1977. 255
  1978. ) COLLATE Chinese_PRC_CI_AS NULL
  1979. )
  1980. GO
  1981. ALTER TABLE [dbo].[ACT_FO_FORM_INSTANCE] SET (LOCK_ESCALATION = TABLE)
  1982. GO
  1983. -- ----------------------------
  1984. -- Table structure for ACT_FO_FORM_RESOURCE
  1985. -- ----------------------------
  1986. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_FO_FORM_RESOURCE]') AND type IN ('U'))
  1987. DROP TABLE [dbo].[ACT_FO_FORM_RESOURCE]
  1988. GO
  1989. CREATE TABLE [dbo].[ACT_FO_FORM_RESOURCE]
  1990. (
  1991. [
  1992. ID_] varchar
  1993. (
  1994. 255
  1995. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  1996. [NAME_] varchar
  1997. (
  1998. 255
  1999. ) COLLATE Chinese_PRC_CI_AS NULL,
  2000. [DEPLOYMENT_ID_] varchar
  2001. (
  2002. 255
  2003. ) COLLATE Chinese_PRC_CI_AS NULL,
  2004. [RESOURCE_BYTES_] varbinary
  2005. (
  2006. max
  2007. ) NULL
  2008. )
  2009. GO
  2010. ALTER TABLE [dbo].[ACT_FO_FORM_RESOURCE] SET (LOCK_ESCALATION = TABLE)
  2011. GO
  2012. -- ----------------------------
  2013. -- Table structure for ACT_GE_BYTEARRAY
  2014. -- ----------------------------
  2015. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_GE_BYTEARRAY]') AND type IN ('U'))
  2016. DROP TABLE [dbo].[ACT_GE_BYTEARRAY]
  2017. GO
  2018. CREATE TABLE [dbo].[ACT_GE_BYTEARRAY]
  2019. (
  2020. [
  2021. ID_] nvarchar
  2022. (
  2023. 64
  2024. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2025. [REV_] int NULL,
  2026. [NAME_] nvarchar
  2027. (
  2028. 255
  2029. ) COLLATE Chinese_PRC_CI_AS NULL,
  2030. [DEPLOYMENT_ID_] nvarchar
  2031. (
  2032. 64
  2033. ) COLLATE Chinese_PRC_CI_AS NULL,
  2034. [BYTES_] varbinary
  2035. (
  2036. max
  2037. ) NULL,
  2038. [GENERATED_] tinyint NULL
  2039. )
  2040. GO
  2041. ALTER TABLE [dbo].[ACT_GE_BYTEARRAY] SET (LOCK_ESCALATION = TABLE)
  2042. GO
  2043. -- ----------------------------
  2044. -- Table structure for ACT_GE_PROPERTY
  2045. -- ----------------------------
  2046. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_GE_PROPERTY]') AND type IN ('U'))
  2047. DROP TABLE [dbo].[ACT_GE_PROPERTY]
  2048. GO
  2049. CREATE TABLE [dbo].[ACT_GE_PROPERTY]
  2050. (
  2051. [
  2052. NAME_] nvarchar
  2053. (
  2054. 64
  2055. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2056. [VALUE_] nvarchar
  2057. (
  2058. 300
  2059. ) COLLATE Chinese_PRC_CI_AS NULL,
  2060. [REV_] int NULL
  2061. )
  2062. GO
  2063. ALTER TABLE [dbo].[ACT_GE_PROPERTY] SET (LOCK_ESCALATION = TABLE)
  2064. GO
  2065. -- ----------------------------
  2066. -- Records of ACT_GE_PROPERTY
  2067. -- ----------------------------
  2068. BEGIN
  2069. TRANSACTION
  2070. GO
  2071. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'cfg.execution-related-entities-count', N'true', N'1')
  2072. GO
  2073. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'cfg.task-related-entities-count', N'true', N'1')
  2074. GO
  2075. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'common.schema.version', N'6.5.0.1', N'1')
  2076. GO
  2077. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'entitylink.schema.version', N'6.5.0.1', N'1')
  2078. GO
  2079. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'eventsubscription.schema.version', N'6.5.0.1', N'1')
  2080. GO
  2081. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'identitylink.schema.version', N'6.5.0.1', N'1')
  2082. GO
  2083. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'job.schema.version', N'6.5.0.1', N'1')
  2084. GO
  2085. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'next.dbid', N'1', N'1')
  2086. GO
  2087. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'schema.history', N'create(6.5.0.1)', N'1')
  2088. GO
  2089. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'schema.version', N'6.5.0.1', N'1')
  2090. GO
  2091. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'task.schema.version', N'6.5.0.1', N'1')
  2092. GO
  2093. INSERT INTO [dbo].[ACT_GE_PROPERTY] VALUES (N'variable.schema.version', N'6.5.0.1', N'1')
  2094. GO
  2095. COMMIT
  2096. GO
  2097. -- ----------------------------
  2098. -- Table structure for ACT_HI_ACTINST
  2099. -- ----------------------------
  2100. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_ACTINST]') AND type IN ('U'))
  2101. DROP TABLE [dbo].[ACT_HI_ACTINST]
  2102. GO
  2103. CREATE TABLE [dbo].[ACT_HI_ACTINST]
  2104. (
  2105. [
  2106. ID_] nvarchar
  2107. (
  2108. 64
  2109. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2110. [REV_] int DEFAULT
  2111. (
  2112. (
  2113. 1
  2114. )) NULL,
  2115. [PROC_DEF_ID_] nvarchar
  2116. (
  2117. 64
  2118. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2119. [PROC_INST_ID_] nvarchar
  2120. (
  2121. 64
  2122. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2123. [EXECUTION_ID_] nvarchar
  2124. (
  2125. 64
  2126. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2127. [ACT_ID_] nvarchar
  2128. (
  2129. 255
  2130. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2131. [TASK_ID_] nvarchar
  2132. (
  2133. 64
  2134. ) COLLATE Chinese_PRC_CI_AS NULL,
  2135. [CALL_PROC_INST_ID_] nvarchar
  2136. (
  2137. 64
  2138. ) COLLATE Chinese_PRC_CI_AS NULL,
  2139. [ACT_NAME_] nvarchar
  2140. (
  2141. 255
  2142. ) COLLATE Chinese_PRC_CI_AS NULL,
  2143. [ACT_TYPE_] nvarchar
  2144. (
  2145. 255
  2146. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2147. [ASSIGNEE_] nvarchar
  2148. (
  2149. 255
  2150. ) COLLATE Chinese_PRC_CI_AS NULL,
  2151. [START_TIME_] datetime NOT NULL,
  2152. [END_TIME_] datetime NULL,
  2153. [DURATION_] numeric
  2154. (
  2155. 19
  2156. ) NULL,
  2157. [DELETE_REASON_] nvarchar
  2158. (
  2159. 4000
  2160. ) COLLATE Chinese_PRC_CI_AS NULL,
  2161. [TENANT_ID_] nvarchar
  2162. (
  2163. 255
  2164. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  2165. )
  2166. GO
  2167. ALTER TABLE [dbo].[ACT_HI_ACTINST] SET (LOCK_ESCALATION = TABLE)
  2168. GO
  2169. -- ----------------------------
  2170. -- Table structure for ACT_HI_ATTACHMENT
  2171. -- ----------------------------
  2172. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_ATTACHMENT]') AND type IN ('U'))
  2173. DROP TABLE [dbo].[ACT_HI_ATTACHMENT]
  2174. GO
  2175. CREATE TABLE [dbo].[ACT_HI_ATTACHMENT]
  2176. (
  2177. [
  2178. ID_] nvarchar
  2179. (
  2180. 64
  2181. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2182. [REV_] int NULL,
  2183. [USER_ID_] nvarchar
  2184. (
  2185. 255
  2186. ) COLLATE Chinese_PRC_CI_AS NULL,
  2187. [NAME_] nvarchar
  2188. (
  2189. 255
  2190. ) COLLATE Chinese_PRC_CI_AS NULL,
  2191. [DESCRIPTION_] nvarchar
  2192. (
  2193. 4000
  2194. ) COLLATE Chinese_PRC_CI_AS NULL,
  2195. [TYPE_] nvarchar
  2196. (
  2197. 255
  2198. ) COLLATE Chinese_PRC_CI_AS NULL,
  2199. [TASK_ID_] nvarchar
  2200. (
  2201. 64
  2202. ) COLLATE Chinese_PRC_CI_AS NULL,
  2203. [PROC_INST_ID_] nvarchar
  2204. (
  2205. 64
  2206. ) COLLATE Chinese_PRC_CI_AS NULL,
  2207. [URL_] nvarchar
  2208. (
  2209. 4000
  2210. ) COLLATE Chinese_PRC_CI_AS NULL,
  2211. [CONTENT_ID_] nvarchar
  2212. (
  2213. 64
  2214. ) COLLATE Chinese_PRC_CI_AS NULL,
  2215. [TIME_] datetime NULL
  2216. )
  2217. GO
  2218. ALTER TABLE [dbo].[ACT_HI_ATTACHMENT] SET (LOCK_ESCALATION = TABLE)
  2219. GO
  2220. -- ----------------------------
  2221. -- Table structure for ACT_HI_COMMENT
  2222. -- ----------------------------
  2223. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_COMMENT]') AND type IN ('U'))
  2224. DROP TABLE [dbo].[ACT_HI_COMMENT]
  2225. GO
  2226. CREATE TABLE [dbo].[ACT_HI_COMMENT]
  2227. (
  2228. [
  2229. ID_] nvarchar
  2230. (
  2231. 64
  2232. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2233. [TYPE_] nvarchar
  2234. (
  2235. 255
  2236. ) COLLATE Chinese_PRC_CI_AS NULL,
  2237. [TIME_] datetime NOT NULL,
  2238. [USER_ID_] nvarchar
  2239. (
  2240. 255
  2241. ) COLLATE Chinese_PRC_CI_AS NULL,
  2242. [TASK_ID_] nvarchar
  2243. (
  2244. 64
  2245. ) COLLATE Chinese_PRC_CI_AS NULL,
  2246. [PROC_INST_ID_] nvarchar
  2247. (
  2248. 64
  2249. ) COLLATE Chinese_PRC_CI_AS NULL,
  2250. [ACTION_] nvarchar
  2251. (
  2252. 255
  2253. ) COLLATE Chinese_PRC_CI_AS NULL,
  2254. [MESSAGE_] nvarchar
  2255. (
  2256. 4000
  2257. ) COLLATE Chinese_PRC_CI_AS NULL,
  2258. [FULL_MSG_] varbinary
  2259. (
  2260. max
  2261. ) NULL
  2262. )
  2263. GO
  2264. ALTER TABLE [dbo].[ACT_HI_COMMENT] SET (LOCK_ESCALATION = TABLE)
  2265. GO
  2266. -- ----------------------------
  2267. -- Table structure for ACT_HI_DETAIL
  2268. -- ----------------------------
  2269. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_DETAIL]') AND type IN ('U'))
  2270. DROP TABLE [dbo].[ACT_HI_DETAIL]
  2271. GO
  2272. CREATE TABLE [dbo].[ACT_HI_DETAIL]
  2273. (
  2274. [
  2275. ID_] nvarchar
  2276. (
  2277. 64
  2278. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2279. [TYPE_] nvarchar
  2280. (
  2281. 255
  2282. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2283. [PROC_INST_ID_] nvarchar
  2284. (
  2285. 64
  2286. ) COLLATE Chinese_PRC_CI_AS NULL,
  2287. [EXECUTION_ID_] nvarchar
  2288. (
  2289. 64
  2290. ) COLLATE Chinese_PRC_CI_AS NULL,
  2291. [TASK_ID_] nvarchar
  2292. (
  2293. 64
  2294. ) COLLATE Chinese_PRC_CI_AS NULL,
  2295. [ACT_INST_ID_] nvarchar
  2296. (
  2297. 64
  2298. ) COLLATE Chinese_PRC_CI_AS NULL,
  2299. [NAME_] nvarchar
  2300. (
  2301. 255
  2302. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2303. [VAR_TYPE_] nvarchar
  2304. (
  2305. 255
  2306. ) COLLATE Chinese_PRC_CI_AS NULL,
  2307. [REV_] int NULL,
  2308. [TIME_] datetime NOT NULL,
  2309. [BYTEARRAY_ID_] nvarchar
  2310. (
  2311. 64
  2312. ) COLLATE Chinese_PRC_CI_AS NULL,
  2313. [DOUBLE_] float
  2314. (
  2315. 53
  2316. ) NULL,
  2317. [LONG_] numeric
  2318. (
  2319. 19
  2320. ) NULL,
  2321. [TEXT_] nvarchar
  2322. (
  2323. 4000
  2324. ) COLLATE Chinese_PRC_CI_AS NULL,
  2325. [TEXT2_] nvarchar
  2326. (
  2327. 4000
  2328. ) COLLATE Chinese_PRC_CI_AS NULL
  2329. )
  2330. GO
  2331. ALTER TABLE [dbo].[ACT_HI_DETAIL] SET (LOCK_ESCALATION = TABLE)
  2332. GO
  2333. -- ----------------------------
  2334. -- Table structure for ACT_HI_ENTITYLINK
  2335. -- ----------------------------
  2336. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_ENTITYLINK]') AND type IN ('U'))
  2337. DROP TABLE [dbo].[ACT_HI_ENTITYLINK]
  2338. GO
  2339. CREATE TABLE [dbo].[ACT_HI_ENTITYLINK]
  2340. (
  2341. [
  2342. ID_] nvarchar
  2343. (
  2344. 64
  2345. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2346. [LINK_TYPE_] nvarchar
  2347. (
  2348. 255
  2349. ) COLLATE Chinese_PRC_CI_AS NULL,
  2350. [CREATE_TIME_] datetime NULL,
  2351. [SCOPE_ID_] nvarchar
  2352. (
  2353. 255
  2354. ) COLLATE Chinese_PRC_CI_AS NULL,
  2355. [SCOPE_TYPE_] nvarchar
  2356. (
  2357. 255
  2358. ) COLLATE Chinese_PRC_CI_AS NULL,
  2359. [SCOPE_DEFINITION_ID_] nvarchar
  2360. (
  2361. 255
  2362. ) COLLATE Chinese_PRC_CI_AS NULL,
  2363. [REF_SCOPE_ID_] nvarchar
  2364. (
  2365. 255
  2366. ) COLLATE Chinese_PRC_CI_AS NULL,
  2367. [REF_SCOPE_TYPE_] nvarchar
  2368. (
  2369. 255
  2370. ) COLLATE Chinese_PRC_CI_AS NULL,
  2371. [REF_SCOPE_DEFINITION_ID_] nvarchar
  2372. (
  2373. 255
  2374. ) COLLATE Chinese_PRC_CI_AS NULL,
  2375. [HIERARCHY_TYPE_] nvarchar
  2376. (
  2377. 255
  2378. ) COLLATE Chinese_PRC_CI_AS NULL
  2379. )
  2380. GO
  2381. ALTER TABLE [dbo].[ACT_HI_ENTITYLINK] SET (LOCK_ESCALATION = TABLE)
  2382. GO
  2383. -- ----------------------------
  2384. -- Table structure for ACT_HI_IDENTITYLINK
  2385. -- ----------------------------
  2386. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_IDENTITYLINK]') AND type IN ('U'))
  2387. DROP TABLE [dbo].[ACT_HI_IDENTITYLINK]
  2388. GO
  2389. CREATE TABLE [dbo].[ACT_HI_IDENTITYLINK]
  2390. (
  2391. [
  2392. ID_] nvarchar
  2393. (
  2394. 64
  2395. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2396. [GROUP_ID_] nvarchar
  2397. (
  2398. 255
  2399. ) COLLATE Chinese_PRC_CI_AS NULL,
  2400. [TYPE_] nvarchar
  2401. (
  2402. 255
  2403. ) COLLATE Chinese_PRC_CI_AS NULL,
  2404. [USER_ID_] nvarchar
  2405. (
  2406. 255
  2407. ) COLLATE Chinese_PRC_CI_AS NULL,
  2408. [TASK_ID_] nvarchar
  2409. (
  2410. 64
  2411. ) COLLATE Chinese_PRC_CI_AS NULL,
  2412. [CREATE_TIME_] datetime NULL,
  2413. [PROC_INST_ID_] nvarchar
  2414. (
  2415. 64
  2416. ) COLLATE Chinese_PRC_CI_AS NULL,
  2417. [SCOPE_ID_] nvarchar
  2418. (
  2419. 255
  2420. ) COLLATE Chinese_PRC_CI_AS NULL,
  2421. [SCOPE_TYPE_] nvarchar
  2422. (
  2423. 255
  2424. ) COLLATE Chinese_PRC_CI_AS NULL,
  2425. [SCOPE_DEFINITION_ID_] nvarchar
  2426. (
  2427. 255
  2428. ) COLLATE Chinese_PRC_CI_AS NULL
  2429. )
  2430. GO
  2431. ALTER TABLE [dbo].[ACT_HI_IDENTITYLINK] SET (LOCK_ESCALATION = TABLE)
  2432. GO
  2433. -- ----------------------------
  2434. -- Table structure for ACT_HI_PROCINST
  2435. -- ----------------------------
  2436. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_PROCINST]') AND type IN ('U'))
  2437. DROP TABLE [dbo].[ACT_HI_PROCINST]
  2438. GO
  2439. CREATE TABLE [dbo].[ACT_HI_PROCINST]
  2440. (
  2441. [
  2442. ID_] nvarchar
  2443. (
  2444. 64
  2445. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2446. [REV_] int DEFAULT
  2447. (
  2448. (
  2449. 1
  2450. )) NULL,
  2451. [PROC_INST_ID_] nvarchar
  2452. (
  2453. 64
  2454. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2455. [BUSINESS_KEY_] nvarchar
  2456. (
  2457. 255
  2458. ) COLLATE Chinese_PRC_CI_AS NULL,
  2459. [PROC_DEF_ID_] nvarchar
  2460. (
  2461. 64
  2462. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2463. [START_TIME_] datetime NOT NULL,
  2464. [END_TIME_] datetime NULL,
  2465. [DURATION_] numeric
  2466. (
  2467. 19
  2468. ) NULL,
  2469. [START_USER_ID_] nvarchar
  2470. (
  2471. 255
  2472. ) COLLATE Chinese_PRC_CI_AS NULL,
  2473. [START_ACT_ID_] nvarchar
  2474. (
  2475. 255
  2476. ) COLLATE Chinese_PRC_CI_AS NULL,
  2477. [END_ACT_ID_] nvarchar
  2478. (
  2479. 255
  2480. ) COLLATE Chinese_PRC_CI_AS NULL,
  2481. [SUPER_PROCESS_INSTANCE_ID_] nvarchar
  2482. (
  2483. 64
  2484. ) COLLATE Chinese_PRC_CI_AS NULL,
  2485. [DELETE_REASON_] nvarchar
  2486. (
  2487. 4000
  2488. ) COLLATE Chinese_PRC_CI_AS NULL,
  2489. [TENANT_ID_] nvarchar
  2490. (
  2491. 255
  2492. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  2493. [NAME_] nvarchar
  2494. (
  2495. 255
  2496. ) COLLATE Chinese_PRC_CI_AS NULL,
  2497. [CALLBACK_ID_] nvarchar
  2498. (
  2499. 255
  2500. ) COLLATE Chinese_PRC_CI_AS NULL,
  2501. [CALLBACK_TYPE_] nvarchar
  2502. (
  2503. 255
  2504. ) COLLATE Chinese_PRC_CI_AS NULL
  2505. )
  2506. GO
  2507. ALTER TABLE [dbo].[ACT_HI_PROCINST] SET (LOCK_ESCALATION = TABLE)
  2508. GO
  2509. -- ----------------------------
  2510. -- Table structure for ACT_HI_TASKINST
  2511. -- ----------------------------
  2512. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_TASKINST]') AND type IN ('U'))
  2513. DROP TABLE [dbo].[ACT_HI_TASKINST]
  2514. GO
  2515. CREATE TABLE [dbo].[ACT_HI_TASKINST]
  2516. (
  2517. [
  2518. ID_] nvarchar
  2519. (
  2520. 64
  2521. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2522. [REV_] int DEFAULT
  2523. (
  2524. (
  2525. 1
  2526. )) NULL,
  2527. [PROC_DEF_ID_] nvarchar
  2528. (
  2529. 64
  2530. ) COLLATE Chinese_PRC_CI_AS NULL,
  2531. [TASK_DEF_ID_] nvarchar
  2532. (
  2533. 64
  2534. ) COLLATE Chinese_PRC_CI_AS NULL,
  2535. [TASK_DEF_KEY_] nvarchar
  2536. (
  2537. 255
  2538. ) COLLATE Chinese_PRC_CI_AS NULL,
  2539. [PROC_INST_ID_] nvarchar
  2540. (
  2541. 64
  2542. ) COLLATE Chinese_PRC_CI_AS NULL,
  2543. [EXECUTION_ID_] nvarchar
  2544. (
  2545. 64
  2546. ) COLLATE Chinese_PRC_CI_AS NULL,
  2547. [SCOPE_ID_] nvarchar
  2548. (
  2549. 255
  2550. ) COLLATE Chinese_PRC_CI_AS NULL,
  2551. [SUB_SCOPE_ID_] nvarchar
  2552. (
  2553. 255
  2554. ) COLLATE Chinese_PRC_CI_AS NULL,
  2555. [SCOPE_TYPE_] nvarchar
  2556. (
  2557. 255
  2558. ) COLLATE Chinese_PRC_CI_AS NULL,
  2559. [SCOPE_DEFINITION_ID_] nvarchar
  2560. (
  2561. 255
  2562. ) COLLATE Chinese_PRC_CI_AS NULL,
  2563. [NAME_] nvarchar
  2564. (
  2565. 255
  2566. ) COLLATE Chinese_PRC_CI_AS NULL,
  2567. [PARENT_TASK_ID_] nvarchar
  2568. (
  2569. 64
  2570. ) COLLATE Chinese_PRC_CI_AS NULL,
  2571. [DESCRIPTION_] nvarchar
  2572. (
  2573. 4000
  2574. ) COLLATE Chinese_PRC_CI_AS NULL,
  2575. [OWNER_] nvarchar
  2576. (
  2577. 255
  2578. ) COLLATE Chinese_PRC_CI_AS NULL,
  2579. [ASSIGNEE_] nvarchar
  2580. (
  2581. 255
  2582. ) COLLATE Chinese_PRC_CI_AS NULL,
  2583. [START_TIME_] datetime NOT NULL,
  2584. [CLAIM_TIME_] datetime NULL,
  2585. [END_TIME_] datetime NULL,
  2586. [DURATION_] numeric
  2587. (
  2588. 19
  2589. ) NULL,
  2590. [DELETE_REASON_] nvarchar
  2591. (
  2592. 4000
  2593. ) COLLATE Chinese_PRC_CI_AS NULL,
  2594. [PRIORITY_] int NULL,
  2595. [DUE_DATE_] datetime NULL,
  2596. [FORM_KEY_] nvarchar
  2597. (
  2598. 255
  2599. ) COLLATE Chinese_PRC_CI_AS NULL,
  2600. [CATEGORY_] nvarchar
  2601. (
  2602. 255
  2603. ) COLLATE Chinese_PRC_CI_AS NULL,
  2604. [TENANT_ID_] nvarchar
  2605. (
  2606. 255
  2607. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  2608. [LAST_UPDATED_TIME_] datetime2
  2609. (
  2610. 7
  2611. ) NULL
  2612. )
  2613. GO
  2614. ALTER TABLE [dbo].[ACT_HI_TASKINST] SET (LOCK_ESCALATION = TABLE)
  2615. GO
  2616. -- ----------------------------
  2617. -- Table structure for ACT_HI_TSK_LOG
  2618. -- ----------------------------
  2619. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_TSK_LOG]') AND type IN ('U'))
  2620. DROP TABLE [dbo].[ACT_HI_TSK_LOG]
  2621. GO
  2622. CREATE TABLE [dbo].[ACT_HI_TSK_LOG]
  2623. (
  2624. [
  2625. ID_] numeric
  2626. (
  2627. 19
  2628. ) IDENTITY
  2629. (
  2630. 1,
  2631. 1
  2632. ) NOT NULL,
  2633. [TYPE_] nvarchar
  2634. (
  2635. 64
  2636. ) COLLATE Chinese_PRC_CI_AS NULL,
  2637. [TASK_ID_] nvarchar
  2638. (
  2639. 64
  2640. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2641. [TIME_STAMP_] datetime NOT NULL,
  2642. [USER_ID_] nvarchar
  2643. (
  2644. 255
  2645. ) COLLATE Chinese_PRC_CI_AS NULL,
  2646. [DATA_] nvarchar
  2647. (
  2648. 4000
  2649. ) COLLATE Chinese_PRC_CI_AS NULL,
  2650. [EXECUTION_ID_] nvarchar
  2651. (
  2652. 64
  2653. ) COLLATE Chinese_PRC_CI_AS NULL,
  2654. [PROC_INST_ID_] nvarchar
  2655. (
  2656. 64
  2657. ) COLLATE Chinese_PRC_CI_AS NULL,
  2658. [PROC_DEF_ID_] nvarchar
  2659. (
  2660. 64
  2661. ) COLLATE Chinese_PRC_CI_AS NULL,
  2662. [SCOPE_ID_] nvarchar
  2663. (
  2664. 255
  2665. ) COLLATE Chinese_PRC_CI_AS NULL,
  2666. [SCOPE_DEFINITION_ID_] nvarchar
  2667. (
  2668. 255
  2669. ) COLLATE Chinese_PRC_CI_AS NULL,
  2670. [SUB_SCOPE_ID_] nvarchar
  2671. (
  2672. 255
  2673. ) COLLATE Chinese_PRC_CI_AS NULL,
  2674. [SCOPE_TYPE_] nvarchar
  2675. (
  2676. 255
  2677. ) COLLATE Chinese_PRC_CI_AS NULL,
  2678. [TENANT_ID_] nvarchar
  2679. (
  2680. 255
  2681. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  2682. )
  2683. GO
  2684. ALTER TABLE [dbo].[ACT_HI_TSK_LOG] SET (LOCK_ESCALATION = TABLE)
  2685. GO
  2686. -- ----------------------------
  2687. -- Table structure for ACT_HI_VARINST
  2688. -- ----------------------------
  2689. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_HI_VARINST]') AND type IN ('U'))
  2690. DROP TABLE [dbo].[ACT_HI_VARINST]
  2691. GO
  2692. CREATE TABLE [dbo].[ACT_HI_VARINST]
  2693. (
  2694. [
  2695. ID_] nvarchar
  2696. (
  2697. 64
  2698. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2699. [REV_] int DEFAULT
  2700. (
  2701. (
  2702. 1
  2703. )) NULL,
  2704. [PROC_INST_ID_] nvarchar
  2705. (
  2706. 64
  2707. ) COLLATE Chinese_PRC_CI_AS NULL,
  2708. [EXECUTION_ID_] nvarchar
  2709. (
  2710. 64
  2711. ) COLLATE Chinese_PRC_CI_AS NULL,
  2712. [TASK_ID_] nvarchar
  2713. (
  2714. 64
  2715. ) COLLATE Chinese_PRC_CI_AS NULL,
  2716. [NAME_] nvarchar
  2717. (
  2718. 255
  2719. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2720. [VAR_TYPE_] nvarchar
  2721. (
  2722. 100
  2723. ) COLLATE Chinese_PRC_CI_AS NULL,
  2724. [SCOPE_ID_] nvarchar
  2725. (
  2726. 255
  2727. ) COLLATE Chinese_PRC_CI_AS NULL,
  2728. [SUB_SCOPE_ID_] nvarchar
  2729. (
  2730. 255
  2731. ) COLLATE Chinese_PRC_CI_AS NULL,
  2732. [SCOPE_TYPE_] nvarchar
  2733. (
  2734. 255
  2735. ) COLLATE Chinese_PRC_CI_AS NULL,
  2736. [BYTEARRAY_ID_] nvarchar
  2737. (
  2738. 64
  2739. ) COLLATE Chinese_PRC_CI_AS NULL,
  2740. [DOUBLE_] float
  2741. (
  2742. 53
  2743. ) NULL,
  2744. [LONG_] numeric
  2745. (
  2746. 19
  2747. ) NULL,
  2748. [TEXT_] nvarchar
  2749. (
  2750. 4000
  2751. ) COLLATE Chinese_PRC_CI_AS NULL,
  2752. [TEXT2_] nvarchar
  2753. (
  2754. 4000
  2755. ) COLLATE Chinese_PRC_CI_AS NULL,
  2756. [CREATE_TIME_] datetime NULL,
  2757. [LAST_UPDATED_TIME_] datetime2
  2758. (
  2759. 7
  2760. ) NULL
  2761. )
  2762. GO
  2763. ALTER TABLE [dbo].[ACT_HI_VARINST] SET (LOCK_ESCALATION = TABLE)
  2764. GO
  2765. -- ----------------------------
  2766. -- Table structure for ACT_ID_BYTEARRAY
  2767. -- ----------------------------
  2768. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_BYTEARRAY]') AND type IN ('U'))
  2769. DROP TABLE [dbo].[ACT_ID_BYTEARRAY]
  2770. GO
  2771. CREATE TABLE [dbo].[ACT_ID_BYTEARRAY]
  2772. (
  2773. [
  2774. ID_] nvarchar
  2775. (
  2776. 64
  2777. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2778. [REV_] int NULL,
  2779. [NAME_] nvarchar
  2780. (
  2781. 255
  2782. ) COLLATE Chinese_PRC_CI_AS NULL,
  2783. [BYTES_] varbinary
  2784. (
  2785. max
  2786. ) NULL
  2787. )
  2788. GO
  2789. ALTER TABLE [dbo].[ACT_ID_BYTEARRAY] SET (LOCK_ESCALATION = TABLE)
  2790. GO
  2791. -- ----------------------------
  2792. -- Table structure for ACT_ID_GROUP
  2793. -- ----------------------------
  2794. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_GROUP]') AND type IN ('U'))
  2795. DROP TABLE [dbo].[ACT_ID_GROUP]
  2796. GO
  2797. CREATE TABLE [dbo].[ACT_ID_GROUP]
  2798. (
  2799. [
  2800. ID_] nvarchar
  2801. (
  2802. 64
  2803. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2804. [REV_] int NULL,
  2805. [NAME_] nvarchar
  2806. (
  2807. 255
  2808. ) COLLATE Chinese_PRC_CI_AS NULL,
  2809. [TYPE_] nvarchar
  2810. (
  2811. 255
  2812. ) COLLATE Chinese_PRC_CI_AS NULL
  2813. )
  2814. GO
  2815. ALTER TABLE [dbo].[ACT_ID_GROUP] SET (LOCK_ESCALATION = TABLE)
  2816. GO
  2817. -- ----------------------------
  2818. -- Table structure for ACT_ID_INFO
  2819. -- ----------------------------
  2820. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_INFO]') AND type IN ('U'))
  2821. DROP TABLE [dbo].[ACT_ID_INFO]
  2822. GO
  2823. CREATE TABLE [dbo].[ACT_ID_INFO]
  2824. (
  2825. [
  2826. ID_] nvarchar
  2827. (
  2828. 64
  2829. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2830. [REV_] int NULL,
  2831. [USER_ID_] nvarchar
  2832. (
  2833. 64
  2834. ) COLLATE Chinese_PRC_CI_AS NULL,
  2835. [TYPE_] nvarchar
  2836. (
  2837. 64
  2838. ) COLLATE Chinese_PRC_CI_AS NULL,
  2839. [KEY_] nvarchar
  2840. (
  2841. 255
  2842. ) COLLATE Chinese_PRC_CI_AS NULL,
  2843. [VALUE_] nvarchar
  2844. (
  2845. 255
  2846. ) COLLATE Chinese_PRC_CI_AS NULL,
  2847. [PASSWORD_] varbinary
  2848. (
  2849. max
  2850. ) NULL,
  2851. [PARENT_ID_] nvarchar
  2852. (
  2853. 255
  2854. ) COLLATE Chinese_PRC_CI_AS NULL
  2855. )
  2856. GO
  2857. ALTER TABLE [dbo].[ACT_ID_INFO] SET (LOCK_ESCALATION = TABLE)
  2858. GO
  2859. -- ----------------------------
  2860. -- Table structure for ACT_ID_MEMBERSHIP
  2861. -- ----------------------------
  2862. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_MEMBERSHIP]') AND type IN ('U'))
  2863. DROP TABLE [dbo].[ACT_ID_MEMBERSHIP]
  2864. GO
  2865. CREATE TABLE [dbo].[ACT_ID_MEMBERSHIP]
  2866. (
  2867. [
  2868. USER_ID_] nvarchar
  2869. (
  2870. 64
  2871. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2872. [GROUP_ID_] nvarchar
  2873. (
  2874. 64
  2875. ) COLLATE Chinese_PRC_CI_AS NOT NULL
  2876. )
  2877. GO
  2878. ALTER TABLE [dbo].[ACT_ID_MEMBERSHIP] SET (LOCK_ESCALATION = TABLE)
  2879. GO
  2880. -- ----------------------------
  2881. -- Table structure for ACT_ID_PRIV
  2882. -- ----------------------------
  2883. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_PRIV]') AND type IN ('U'))
  2884. DROP TABLE [dbo].[ACT_ID_PRIV]
  2885. GO
  2886. CREATE TABLE [dbo].[ACT_ID_PRIV]
  2887. (
  2888. [
  2889. ID_] nvarchar
  2890. (
  2891. 64
  2892. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2893. [NAME_] nvarchar
  2894. (
  2895. 255
  2896. ) COLLATE Chinese_PRC_CI_AS NOT NULL
  2897. )
  2898. GO
  2899. ALTER TABLE [dbo].[ACT_ID_PRIV] SET (LOCK_ESCALATION = TABLE)
  2900. GO
  2901. -- ----------------------------
  2902. -- Table structure for ACT_ID_PRIV_MAPPING
  2903. -- ----------------------------
  2904. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_PRIV_MAPPING]') AND type IN ('U'))
  2905. DROP TABLE [dbo].[ACT_ID_PRIV_MAPPING]
  2906. GO
  2907. CREATE TABLE [dbo].[ACT_ID_PRIV_MAPPING]
  2908. (
  2909. [
  2910. ID_] nvarchar
  2911. (
  2912. 64
  2913. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2914. [PRIV_ID_] nvarchar
  2915. (
  2916. 64
  2917. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2918. [USER_ID_] nvarchar
  2919. (
  2920. 255
  2921. ) COLLATE Chinese_PRC_CI_AS NULL,
  2922. [GROUP_ID_] nvarchar
  2923. (
  2924. 255
  2925. ) COLLATE Chinese_PRC_CI_AS NULL
  2926. )
  2927. GO
  2928. ALTER TABLE [dbo].[ACT_ID_PRIV_MAPPING] SET (LOCK_ESCALATION = TABLE)
  2929. GO
  2930. -- ----------------------------
  2931. -- Table structure for ACT_ID_PROPERTY
  2932. -- ----------------------------
  2933. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_PROPERTY]') AND type IN ('U'))
  2934. DROP TABLE [dbo].[ACT_ID_PROPERTY]
  2935. GO
  2936. CREATE TABLE [dbo].[ACT_ID_PROPERTY]
  2937. (
  2938. [
  2939. NAME_] nvarchar
  2940. (
  2941. 64
  2942. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2943. [VALUE_] nvarchar
  2944. (
  2945. 300
  2946. ) COLLATE Chinese_PRC_CI_AS NULL,
  2947. [REV_] int NULL
  2948. )
  2949. GO
  2950. ALTER TABLE [dbo].[ACT_ID_PROPERTY] SET (LOCK_ESCALATION = TABLE)
  2951. GO
  2952. -- ----------------------------
  2953. -- Records of ACT_ID_PROPERTY
  2954. -- ----------------------------
  2955. BEGIN
  2956. TRANSACTION
  2957. GO
  2958. INSERT INTO [dbo].[ACT_ID_PROPERTY] VALUES (N'schema.version', N'6.5.0.1', N'1')
  2959. GO
  2960. COMMIT
  2961. GO
  2962. -- ----------------------------
  2963. -- Table structure for ACT_ID_TOKEN
  2964. -- ----------------------------
  2965. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_TOKEN]') AND type IN ('U'))
  2966. DROP TABLE [dbo].[ACT_ID_TOKEN]
  2967. GO
  2968. CREATE TABLE [dbo].[ACT_ID_TOKEN]
  2969. (
  2970. [
  2971. ID_] nvarchar
  2972. (
  2973. 64
  2974. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  2975. [REV_] int NULL,
  2976. [TOKEN_VALUE_] nvarchar
  2977. (
  2978. 255
  2979. ) COLLATE Chinese_PRC_CI_AS NULL,
  2980. [TOKEN_DATE_] datetime NULL,
  2981. [IP_ADDRESS_] nvarchar
  2982. (
  2983. 255
  2984. ) COLLATE Chinese_PRC_CI_AS NULL,
  2985. [USER_AGENT_] nvarchar
  2986. (
  2987. 255
  2988. ) COLLATE Chinese_PRC_CI_AS NULL,
  2989. [USER_ID_] nvarchar
  2990. (
  2991. 255
  2992. ) COLLATE Chinese_PRC_CI_AS NULL,
  2993. [TOKEN_DATA_] nvarchar
  2994. (
  2995. 2000
  2996. ) COLLATE Chinese_PRC_CI_AS NULL
  2997. )
  2998. GO
  2999. ALTER TABLE [dbo].[ACT_ID_TOKEN] SET (LOCK_ESCALATION = TABLE)
  3000. GO
  3001. -- ----------------------------
  3002. -- Table structure for ACT_ID_USER
  3003. -- ----------------------------
  3004. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_ID_USER]') AND type IN ('U'))
  3005. DROP TABLE [dbo].[ACT_ID_USER]
  3006. GO
  3007. CREATE TABLE [dbo].[ACT_ID_USER]
  3008. (
  3009. [
  3010. ID_] nvarchar
  3011. (
  3012. 64
  3013. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3014. [REV_] int NULL,
  3015. [FIRST_] nvarchar
  3016. (
  3017. 255
  3018. ) COLLATE Chinese_PRC_CI_AS NULL,
  3019. [LAST_] nvarchar
  3020. (
  3021. 255
  3022. ) COLLATE Chinese_PRC_CI_AS NULL,
  3023. [DISPLAY_NAME_] nvarchar
  3024. (
  3025. 255
  3026. ) COLLATE Chinese_PRC_CI_AS NULL,
  3027. [EMAIL_] nvarchar
  3028. (
  3029. 255
  3030. ) COLLATE Chinese_PRC_CI_AS NULL,
  3031. [PWD_] nvarchar
  3032. (
  3033. 255
  3034. ) COLLATE Chinese_PRC_CI_AS NULL,
  3035. [PICTURE_ID_] nvarchar
  3036. (
  3037. 64
  3038. ) COLLATE Chinese_PRC_CI_AS NULL,
  3039. [TENANT_ID_] nvarchar
  3040. (
  3041. 255
  3042. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  3043. )
  3044. GO
  3045. ALTER TABLE [dbo].[ACT_ID_USER] SET (LOCK_ESCALATION = TABLE)
  3046. GO
  3047. -- ----------------------------
  3048. -- Table structure for ACT_PROCDEF_INFO
  3049. -- ----------------------------
  3050. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_PROCDEF_INFO]') AND type IN ('U'))
  3051. DROP TABLE [dbo].[ACT_PROCDEF_INFO]
  3052. GO
  3053. CREATE TABLE [dbo].[ACT_PROCDEF_INFO]
  3054. (
  3055. [
  3056. ID_] nvarchar
  3057. (
  3058. 64
  3059. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3060. [PROC_DEF_ID_] nvarchar
  3061. (
  3062. 64
  3063. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3064. [REV_] int NULL,
  3065. [INFO_JSON_ID_] nvarchar
  3066. (
  3067. 64
  3068. ) COLLATE Chinese_PRC_CI_AS NULL
  3069. )
  3070. GO
  3071. ALTER TABLE [dbo].[ACT_PROCDEF_INFO] SET (LOCK_ESCALATION = TABLE)
  3072. GO
  3073. -- ----------------------------
  3074. -- Table structure for ACT_RE_DEPLOYMENT
  3075. -- ----------------------------
  3076. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RE_DEPLOYMENT]') AND type IN ('U'))
  3077. DROP TABLE [dbo].[ACT_RE_DEPLOYMENT]
  3078. GO
  3079. CREATE TABLE [dbo].[ACT_RE_DEPLOYMENT]
  3080. (
  3081. [
  3082. ID_] nvarchar
  3083. (
  3084. 64
  3085. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3086. [NAME_] nvarchar
  3087. (
  3088. 255
  3089. ) COLLATE Chinese_PRC_CI_AS NULL,
  3090. [CATEGORY_] nvarchar
  3091. (
  3092. 255
  3093. ) COLLATE Chinese_PRC_CI_AS NULL,
  3094. [KEY_] nvarchar
  3095. (
  3096. 255
  3097. ) COLLATE Chinese_PRC_CI_AS NULL,
  3098. [TENANT_ID_] nvarchar
  3099. (
  3100. 255
  3101. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  3102. [DEPLOY_TIME_] datetime NULL,
  3103. [DERIVED_FROM_] nvarchar
  3104. (
  3105. 64
  3106. ) COLLATE Chinese_PRC_CI_AS NULL,
  3107. [DERIVED_FROM_ROOT_] nvarchar
  3108. (
  3109. 64
  3110. ) COLLATE Chinese_PRC_CI_AS NULL,
  3111. [PARENT_DEPLOYMENT_ID_] nvarchar
  3112. (
  3113. 255
  3114. ) COLLATE Chinese_PRC_CI_AS NULL,
  3115. [ENGINE_VERSION_] nvarchar
  3116. (
  3117. 255
  3118. ) COLLATE Chinese_PRC_CI_AS NULL
  3119. )
  3120. GO
  3121. ALTER TABLE [dbo].[ACT_RE_DEPLOYMENT] SET (LOCK_ESCALATION = TABLE)
  3122. GO
  3123. -- ----------------------------
  3124. -- Table structure for ACT_RE_MODEL
  3125. -- ----------------------------
  3126. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RE_MODEL]') AND type IN ('U'))
  3127. DROP TABLE [dbo].[ACT_RE_MODEL]
  3128. GO
  3129. CREATE TABLE [dbo].[ACT_RE_MODEL]
  3130. (
  3131. [
  3132. ID_] nvarchar
  3133. (
  3134. 64
  3135. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3136. [REV_] int NULL,
  3137. [NAME_] nvarchar
  3138. (
  3139. 255
  3140. ) COLLATE Chinese_PRC_CI_AS NULL,
  3141. [KEY_] nvarchar
  3142. (
  3143. 255
  3144. ) COLLATE Chinese_PRC_CI_AS NULL,
  3145. [CATEGORY_] nvarchar
  3146. (
  3147. 255
  3148. ) COLLATE Chinese_PRC_CI_AS NULL,
  3149. [CREATE_TIME_] datetime NULL,
  3150. [LAST_UPDATE_TIME_] datetime NULL,
  3151. [VERSION_] int NULL,
  3152. [META_INFO_] nvarchar
  3153. (
  3154. 4000
  3155. ) COLLATE Chinese_PRC_CI_AS NULL,
  3156. [DEPLOYMENT_ID_] nvarchar
  3157. (
  3158. 64
  3159. ) COLLATE Chinese_PRC_CI_AS NULL,
  3160. [EDITOR_SOURCE_VALUE_ID_] nvarchar
  3161. (
  3162. 64
  3163. ) COLLATE Chinese_PRC_CI_AS NULL,
  3164. [EDITOR_SOURCE_EXTRA_VALUE_ID_] nvarchar
  3165. (
  3166. 64
  3167. ) COLLATE Chinese_PRC_CI_AS NULL,
  3168. [TENANT_ID_] nvarchar
  3169. (
  3170. 255
  3171. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  3172. )
  3173. GO
  3174. ALTER TABLE [dbo].[ACT_RE_MODEL] SET (LOCK_ESCALATION = TABLE)
  3175. GO
  3176. -- ----------------------------
  3177. -- Table structure for ACT_RE_PROCDEF
  3178. -- ----------------------------
  3179. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RE_PROCDEF]') AND type IN ('U'))
  3180. DROP TABLE [dbo].[ACT_RE_PROCDEF]
  3181. GO
  3182. CREATE TABLE [dbo].[ACT_RE_PROCDEF]
  3183. (
  3184. [
  3185. ID_] nvarchar
  3186. (
  3187. 64
  3188. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3189. [REV_] int NULL,
  3190. [CATEGORY_] nvarchar
  3191. (
  3192. 255
  3193. ) COLLATE Chinese_PRC_CI_AS NULL,
  3194. [NAME_] nvarchar
  3195. (
  3196. 255
  3197. ) COLLATE Chinese_PRC_CI_AS NULL,
  3198. [KEY_] nvarchar
  3199. (
  3200. 255
  3201. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3202. [VERSION_] int NOT NULL,
  3203. [DEPLOYMENT_ID_] nvarchar
  3204. (
  3205. 64
  3206. ) COLLATE Chinese_PRC_CI_AS NULL,
  3207. [RESOURCE_NAME_] nvarchar
  3208. (
  3209. 4000
  3210. ) COLLATE Chinese_PRC_CI_AS NULL,
  3211. [DGRM_RESOURCE_NAME_] nvarchar
  3212. (
  3213. 4000
  3214. ) COLLATE Chinese_PRC_CI_AS NULL,
  3215. [DESCRIPTION_] nvarchar
  3216. (
  3217. 4000
  3218. ) COLLATE Chinese_PRC_CI_AS NULL,
  3219. [HAS_START_FORM_KEY_] tinyint NULL,
  3220. [HAS_GRAPHICAL_NOTATION_] tinyint NULL,
  3221. [SUSPENSION_STATE_] tinyint NULL,
  3222. [TENANT_ID_] nvarchar
  3223. (
  3224. 255
  3225. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  3226. [DERIVED_FROM_] nvarchar
  3227. (
  3228. 64
  3229. ) COLLATE Chinese_PRC_CI_AS NULL,
  3230. [DERIVED_FROM_ROOT_] nvarchar
  3231. (
  3232. 64
  3233. ) COLLATE Chinese_PRC_CI_AS NULL,
  3234. [DERIVED_VERSION_] int DEFAULT
  3235. (
  3236. (
  3237. 0
  3238. )) NOT NULL,
  3239. [ENGINE_VERSION_] nvarchar
  3240. (
  3241. 255
  3242. ) COLLATE Chinese_PRC_CI_AS NULL
  3243. )
  3244. GO
  3245. ALTER TABLE [dbo].[ACT_RE_PROCDEF] SET (LOCK_ESCALATION = TABLE)
  3246. GO
  3247. -- ----------------------------
  3248. -- Table structure for ACT_RU_ACTINST
  3249. -- ----------------------------
  3250. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_ACTINST]') AND type IN ('U'))
  3251. DROP TABLE [dbo].[ACT_RU_ACTINST]
  3252. GO
  3253. CREATE TABLE [dbo].[ACT_RU_ACTINST]
  3254. (
  3255. [
  3256. ID_] nvarchar
  3257. (
  3258. 64
  3259. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3260. [REV_] int DEFAULT
  3261. (
  3262. (
  3263. 1
  3264. )) NULL,
  3265. [PROC_DEF_ID_] nvarchar
  3266. (
  3267. 64
  3268. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3269. [PROC_INST_ID_] nvarchar
  3270. (
  3271. 64
  3272. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3273. [EXECUTION_ID_] nvarchar
  3274. (
  3275. 64
  3276. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3277. [ACT_ID_] nvarchar
  3278. (
  3279. 255
  3280. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3281. [TASK_ID_] nvarchar
  3282. (
  3283. 64
  3284. ) COLLATE Chinese_PRC_CI_AS NULL,
  3285. [CALL_PROC_INST_ID_] nvarchar
  3286. (
  3287. 64
  3288. ) COLLATE Chinese_PRC_CI_AS NULL,
  3289. [ACT_NAME_] nvarchar
  3290. (
  3291. 255
  3292. ) COLLATE Chinese_PRC_CI_AS NULL,
  3293. [ACT_TYPE_] nvarchar
  3294. (
  3295. 255
  3296. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3297. [ASSIGNEE_] nvarchar
  3298. (
  3299. 255
  3300. ) COLLATE Chinese_PRC_CI_AS NULL,
  3301. [START_TIME_] datetime NOT NULL,
  3302. [END_TIME_] datetime NULL,
  3303. [DURATION_] numeric
  3304. (
  3305. 19
  3306. ) NULL,
  3307. [DELETE_REASON_] nvarchar
  3308. (
  3309. 4000
  3310. ) COLLATE Chinese_PRC_CI_AS NULL,
  3311. [TENANT_ID_] nvarchar
  3312. (
  3313. 255
  3314. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  3315. )
  3316. GO
  3317. ALTER TABLE [dbo].[ACT_RU_ACTINST] SET (LOCK_ESCALATION = TABLE)
  3318. GO
  3319. -- ----------------------------
  3320. -- Table structure for ACT_RU_DEADLETTER_JOB
  3321. -- ----------------------------
  3322. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_DEADLETTER_JOB]') AND type IN ('U'))
  3323. DROP TABLE [dbo].[ACT_RU_DEADLETTER_JOB]
  3324. GO
  3325. CREATE TABLE [dbo].[ACT_RU_DEADLETTER_JOB]
  3326. (
  3327. [
  3328. ID_] nvarchar
  3329. (
  3330. 64
  3331. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3332. [REV_] int NULL,
  3333. [TYPE_] nvarchar
  3334. (
  3335. 255
  3336. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3337. [EXCLUSIVE_] bit NULL,
  3338. [EXECUTION_ID_] nvarchar
  3339. (
  3340. 64
  3341. ) COLLATE Chinese_PRC_CI_AS NULL,
  3342. [PROCESS_INSTANCE_ID_] nvarchar
  3343. (
  3344. 64
  3345. ) COLLATE Chinese_PRC_CI_AS NULL,
  3346. [PROC_DEF_ID_] nvarchar
  3347. (
  3348. 64
  3349. ) COLLATE Chinese_PRC_CI_AS NULL,
  3350. [ELEMENT_ID_] nvarchar
  3351. (
  3352. 255
  3353. ) COLLATE Chinese_PRC_CI_AS NULL,
  3354. [ELEMENT_NAME_] nvarchar
  3355. (
  3356. 255
  3357. ) COLLATE Chinese_PRC_CI_AS NULL,
  3358. [SCOPE_ID_] nvarchar
  3359. (
  3360. 255
  3361. ) COLLATE Chinese_PRC_CI_AS NULL,
  3362. [SUB_SCOPE_ID_] nvarchar
  3363. (
  3364. 255
  3365. ) COLLATE Chinese_PRC_CI_AS NULL,
  3366. [SCOPE_TYPE_] nvarchar
  3367. (
  3368. 255
  3369. ) COLLATE Chinese_PRC_CI_AS NULL,
  3370. [SCOPE_DEFINITION_ID_] nvarchar
  3371. (
  3372. 255
  3373. ) COLLATE Chinese_PRC_CI_AS NULL,
  3374. [EXCEPTION_STACK_ID_] nvarchar
  3375. (
  3376. 64
  3377. ) COLLATE Chinese_PRC_CI_AS NULL,
  3378. [EXCEPTION_MSG_] nvarchar
  3379. (
  3380. 4000
  3381. ) COLLATE Chinese_PRC_CI_AS NULL,
  3382. [DUEDATE_] datetime NULL,
  3383. [REPEAT_] nvarchar
  3384. (
  3385. 255
  3386. ) COLLATE Chinese_PRC_CI_AS NULL,
  3387. [HANDLER_TYPE_] nvarchar
  3388. (
  3389. 255
  3390. ) COLLATE Chinese_PRC_CI_AS NULL,
  3391. [HANDLER_CFG_] nvarchar
  3392. (
  3393. 4000
  3394. ) COLLATE Chinese_PRC_CI_AS NULL,
  3395. [CUSTOM_VALUES_ID_] nvarchar
  3396. (
  3397. 64
  3398. ) COLLATE Chinese_PRC_CI_AS NULL,
  3399. [CREATE_TIME_] datetime2
  3400. (
  3401. 7
  3402. ) NULL,
  3403. [TENANT_ID_] nvarchar
  3404. (
  3405. 255
  3406. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  3407. )
  3408. GO
  3409. ALTER TABLE [dbo].[ACT_RU_DEADLETTER_JOB] SET (LOCK_ESCALATION = TABLE)
  3410. GO
  3411. -- ----------------------------
  3412. -- Table structure for ACT_RU_ENTITYLINK
  3413. -- ----------------------------
  3414. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_ENTITYLINK]') AND type IN ('U'))
  3415. DROP TABLE [dbo].[ACT_RU_ENTITYLINK]
  3416. GO
  3417. CREATE TABLE [dbo].[ACT_RU_ENTITYLINK]
  3418. (
  3419. [
  3420. ID_] nvarchar
  3421. (
  3422. 64
  3423. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3424. [REV_] int NULL,
  3425. [CREATE_TIME_] datetime NULL,
  3426. [LINK_TYPE_] nvarchar
  3427. (
  3428. 255
  3429. ) COLLATE Chinese_PRC_CI_AS NULL,
  3430. [SCOPE_ID_] nvarchar
  3431. (
  3432. 255
  3433. ) COLLATE Chinese_PRC_CI_AS NULL,
  3434. [SCOPE_TYPE_] nvarchar
  3435. (
  3436. 255
  3437. ) COLLATE Chinese_PRC_CI_AS NULL,
  3438. [SCOPE_DEFINITION_ID_] nvarchar
  3439. (
  3440. 255
  3441. ) COLLATE Chinese_PRC_CI_AS NULL,
  3442. [REF_SCOPE_ID_] nvarchar
  3443. (
  3444. 255
  3445. ) COLLATE Chinese_PRC_CI_AS NULL,
  3446. [REF_SCOPE_TYPE_] nvarchar
  3447. (
  3448. 255
  3449. ) COLLATE Chinese_PRC_CI_AS NULL,
  3450. [REF_SCOPE_DEFINITION_ID_] nvarchar
  3451. (
  3452. 255
  3453. ) COLLATE Chinese_PRC_CI_AS NULL,
  3454. [HIERARCHY_TYPE_] nvarchar
  3455. (
  3456. 255
  3457. ) COLLATE Chinese_PRC_CI_AS NULL
  3458. )
  3459. GO
  3460. ALTER TABLE [dbo].[ACT_RU_ENTITYLINK] SET (LOCK_ESCALATION = TABLE)
  3461. GO
  3462. -- ----------------------------
  3463. -- Table structure for ACT_RU_EVENT_SUBSCR
  3464. -- ----------------------------
  3465. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_EVENT_SUBSCR]') AND type IN ('U'))
  3466. DROP TABLE [dbo].[ACT_RU_EVENT_SUBSCR]
  3467. GO
  3468. CREATE TABLE [dbo].[ACT_RU_EVENT_SUBSCR]
  3469. (
  3470. [
  3471. ID_] nvarchar
  3472. (
  3473. 64
  3474. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3475. [REV_] int NULL,
  3476. [EVENT_TYPE_] nvarchar
  3477. (
  3478. 255
  3479. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3480. [EVENT_NAME_] nvarchar
  3481. (
  3482. 255
  3483. ) COLLATE Chinese_PRC_CI_AS NULL,
  3484. [EXECUTION_ID_] nvarchar
  3485. (
  3486. 64
  3487. ) COLLATE Chinese_PRC_CI_AS NULL,
  3488. [PROC_INST_ID_] nvarchar
  3489. (
  3490. 64
  3491. ) COLLATE Chinese_PRC_CI_AS NULL,
  3492. [ACTIVITY_ID_] nvarchar
  3493. (
  3494. 64
  3495. ) COLLATE Chinese_PRC_CI_AS NULL,
  3496. [CONFIGURATION_] nvarchar
  3497. (
  3498. 255
  3499. ) COLLATE Chinese_PRC_CI_AS NULL,
  3500. [CREATED_] datetime NOT NULL,
  3501. [PROC_DEF_ID_] nvarchar
  3502. (
  3503. 64
  3504. ) COLLATE Chinese_PRC_CI_AS NULL,
  3505. [SUB_SCOPE_ID_] nvarchar
  3506. (
  3507. 64
  3508. ) COLLATE Chinese_PRC_CI_AS NULL,
  3509. [SCOPE_ID_] nvarchar
  3510. (
  3511. 64
  3512. ) COLLATE Chinese_PRC_CI_AS NULL,
  3513. [SCOPE_DEFINITION_ID_] nvarchar
  3514. (
  3515. 64
  3516. ) COLLATE Chinese_PRC_CI_AS NULL,
  3517. [SCOPE_TYPE_] nvarchar
  3518. (
  3519. 64
  3520. ) COLLATE Chinese_PRC_CI_AS NULL,
  3521. [TENANT_ID_] nvarchar
  3522. (
  3523. 255
  3524. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  3525. )
  3526. GO
  3527. ALTER TABLE [dbo].[ACT_RU_EVENT_SUBSCR] SET (LOCK_ESCALATION = TABLE)
  3528. GO
  3529. -- ----------------------------
  3530. -- Table structure for ACT_RU_EXECUTION
  3531. -- ----------------------------
  3532. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_EXECUTION]') AND type IN ('U'))
  3533. DROP TABLE [dbo].[ACT_RU_EXECUTION]
  3534. GO
  3535. CREATE TABLE [dbo].[ACT_RU_EXECUTION]
  3536. (
  3537. [
  3538. ID_] nvarchar
  3539. (
  3540. 64
  3541. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3542. [REV_] int NULL,
  3543. [PROC_INST_ID_] nvarchar
  3544. (
  3545. 64
  3546. ) COLLATE Chinese_PRC_CI_AS NULL,
  3547. [BUSINESS_KEY_] nvarchar
  3548. (
  3549. 255
  3550. ) COLLATE Chinese_PRC_CI_AS NULL,
  3551. [PARENT_ID_] nvarchar
  3552. (
  3553. 64
  3554. ) COLLATE Chinese_PRC_CI_AS NULL,
  3555. [PROC_DEF_ID_] nvarchar
  3556. (
  3557. 64
  3558. ) COLLATE Chinese_PRC_CI_AS NULL,
  3559. [SUPER_EXEC_] nvarchar
  3560. (
  3561. 64
  3562. ) COLLATE Chinese_PRC_CI_AS NULL,
  3563. [ROOT_PROC_INST_ID_] nvarchar
  3564. (
  3565. 64
  3566. ) COLLATE Chinese_PRC_CI_AS NULL,
  3567. [ACT_ID_] nvarchar
  3568. (
  3569. 255
  3570. ) COLLATE Chinese_PRC_CI_AS NULL,
  3571. [IS_ACTIVE_] tinyint NULL,
  3572. [IS_CONCURRENT_] tinyint NULL,
  3573. [IS_SCOPE_] tinyint NULL,
  3574. [IS_EVENT_SCOPE_] tinyint NULL,
  3575. [IS_MI_ROOT_] tinyint NULL,
  3576. [SUSPENSION_STATE_] tinyint NULL,
  3577. [CACHED_ENT_STATE_] int NULL,
  3578. [TENANT_ID_] nvarchar
  3579. (
  3580. 255
  3581. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  3582. [NAME_] nvarchar
  3583. (
  3584. 255
  3585. ) COLLATE Chinese_PRC_CI_AS NULL,
  3586. [START_ACT_ID_] nvarchar
  3587. (
  3588. 255
  3589. ) COLLATE Chinese_PRC_CI_AS NULL,
  3590. [START_TIME_] datetime NULL,
  3591. [START_USER_ID_] nvarchar
  3592. (
  3593. 255
  3594. ) COLLATE Chinese_PRC_CI_AS NULL,
  3595. [LOCK_TIME_] datetime NULL,
  3596. [IS_COUNT_ENABLED_] tinyint NULL,
  3597. [EVT_SUBSCR_COUNT_] int NULL,
  3598. [TASK_COUNT_] int NULL,
  3599. [JOB_COUNT_] int NULL,
  3600. [TIMER_JOB_COUNT_] int NULL,
  3601. [SUSP_JOB_COUNT_] int NULL,
  3602. [DEADLETTER_JOB_COUNT_] int NULL,
  3603. [VAR_COUNT_] int NULL,
  3604. [ID_LINK_COUNT_] int NULL,
  3605. [CALLBACK_ID_] nvarchar
  3606. (
  3607. 255
  3608. ) COLLATE Chinese_PRC_CI_AS NULL,
  3609. [CALLBACK_TYPE_] nvarchar
  3610. (
  3611. 255
  3612. ) COLLATE Chinese_PRC_CI_AS NULL
  3613. )
  3614. GO
  3615. ALTER TABLE [dbo].[ACT_RU_EXECUTION] SET (LOCK_ESCALATION = TABLE)
  3616. GO
  3617. -- ----------------------------
  3618. -- Table structure for ACT_RU_HISTORY_JOB
  3619. -- ----------------------------
  3620. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_HISTORY_JOB]') AND type IN ('U'))
  3621. DROP TABLE [dbo].[ACT_RU_HISTORY_JOB]
  3622. GO
  3623. CREATE TABLE [dbo].[ACT_RU_HISTORY_JOB]
  3624. (
  3625. [
  3626. ID_] nvarchar
  3627. (
  3628. 64
  3629. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3630. [REV_] int NULL,
  3631. [LOCK_EXP_TIME_] datetime NULL,
  3632. [LOCK_OWNER_] nvarchar
  3633. (
  3634. 255
  3635. ) COLLATE Chinese_PRC_CI_AS NULL,
  3636. [RETRIES_] int NULL,
  3637. [EXCEPTION_STACK_ID_] nvarchar
  3638. (
  3639. 64
  3640. ) COLLATE Chinese_PRC_CI_AS NULL,
  3641. [EXCEPTION_MSG_] nvarchar
  3642. (
  3643. 4000
  3644. ) COLLATE Chinese_PRC_CI_AS NULL,
  3645. [HANDLER_TYPE_] nvarchar
  3646. (
  3647. 255
  3648. ) COLLATE Chinese_PRC_CI_AS NULL,
  3649. [HANDLER_CFG_] nvarchar
  3650. (
  3651. 4000
  3652. ) COLLATE Chinese_PRC_CI_AS NULL,
  3653. [CUSTOM_VALUES_ID_] nvarchar
  3654. (
  3655. 64
  3656. ) COLLATE Chinese_PRC_CI_AS NULL,
  3657. [ADV_HANDLER_CFG_ID_] nvarchar
  3658. (
  3659. 64
  3660. ) COLLATE Chinese_PRC_CI_AS NULL,
  3661. [CREATE_TIME_] datetime2
  3662. (
  3663. 7
  3664. ) NULL,
  3665. [SCOPE_TYPE_] nvarchar
  3666. (
  3667. 255
  3668. ) COLLATE Chinese_PRC_CI_AS NULL,
  3669. [TENANT_ID_] nvarchar
  3670. (
  3671. 255
  3672. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  3673. )
  3674. GO
  3675. ALTER TABLE [dbo].[ACT_RU_HISTORY_JOB] SET (LOCK_ESCALATION = TABLE)
  3676. GO
  3677. -- ----------------------------
  3678. -- Table structure for ACT_RU_IDENTITYLINK
  3679. -- ----------------------------
  3680. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_IDENTITYLINK]') AND type IN ('U'))
  3681. DROP TABLE [dbo].[ACT_RU_IDENTITYLINK]
  3682. GO
  3683. CREATE TABLE [dbo].[ACT_RU_IDENTITYLINK]
  3684. (
  3685. [
  3686. ID_] nvarchar
  3687. (
  3688. 64
  3689. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3690. [REV_] int NULL,
  3691. [GROUP_ID_] nvarchar
  3692. (
  3693. 255
  3694. ) COLLATE Chinese_PRC_CI_AS NULL,
  3695. [TYPE_] nvarchar
  3696. (
  3697. 255
  3698. ) COLLATE Chinese_PRC_CI_AS NULL,
  3699. [USER_ID_] nvarchar
  3700. (
  3701. 255
  3702. ) COLLATE Chinese_PRC_CI_AS NULL,
  3703. [TASK_ID_] nvarchar
  3704. (
  3705. 64
  3706. ) COLLATE Chinese_PRC_CI_AS NULL,
  3707. [PROC_INST_ID_] nvarchar
  3708. (
  3709. 64
  3710. ) COLLATE Chinese_PRC_CI_AS NULL,
  3711. [PROC_DEF_ID_] nvarchar
  3712. (
  3713. 64
  3714. ) COLLATE Chinese_PRC_CI_AS NULL,
  3715. [SCOPE_ID_] nvarchar
  3716. (
  3717. 255
  3718. ) COLLATE Chinese_PRC_CI_AS NULL,
  3719. [SCOPE_TYPE_] nvarchar
  3720. (
  3721. 255
  3722. ) COLLATE Chinese_PRC_CI_AS NULL,
  3723. [SCOPE_DEFINITION_ID_] nvarchar
  3724. (
  3725. 255
  3726. ) COLLATE Chinese_PRC_CI_AS NULL
  3727. )
  3728. GO
  3729. ALTER TABLE [dbo].[ACT_RU_IDENTITYLINK] SET (LOCK_ESCALATION = TABLE)
  3730. GO
  3731. -- ----------------------------
  3732. -- Table structure for ACT_RU_JOB
  3733. -- ----------------------------
  3734. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_JOB]') AND type IN ('U'))
  3735. DROP TABLE [dbo].[ACT_RU_JOB]
  3736. GO
  3737. CREATE TABLE [dbo].[ACT_RU_JOB]
  3738. (
  3739. [
  3740. ID_] nvarchar
  3741. (
  3742. 64
  3743. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3744. [REV_] int NULL,
  3745. [TYPE_] nvarchar
  3746. (
  3747. 255
  3748. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3749. [LOCK_EXP_TIME_] datetime NULL,
  3750. [LOCK_OWNER_] nvarchar
  3751. (
  3752. 255
  3753. ) COLLATE Chinese_PRC_CI_AS NULL,
  3754. [EXCLUSIVE_] bit NULL,
  3755. [EXECUTION_ID_] nvarchar
  3756. (
  3757. 64
  3758. ) COLLATE Chinese_PRC_CI_AS NULL,
  3759. [PROCESS_INSTANCE_ID_] nvarchar
  3760. (
  3761. 64
  3762. ) COLLATE Chinese_PRC_CI_AS NULL,
  3763. [PROC_DEF_ID_] nvarchar
  3764. (
  3765. 64
  3766. ) COLLATE Chinese_PRC_CI_AS NULL,
  3767. [ELEMENT_ID_] nvarchar
  3768. (
  3769. 255
  3770. ) COLLATE Chinese_PRC_CI_AS NULL,
  3771. [ELEMENT_NAME_] nvarchar
  3772. (
  3773. 255
  3774. ) COLLATE Chinese_PRC_CI_AS NULL,
  3775. [SCOPE_ID_] nvarchar
  3776. (
  3777. 255
  3778. ) COLLATE Chinese_PRC_CI_AS NULL,
  3779. [SUB_SCOPE_ID_] nvarchar
  3780. (
  3781. 255
  3782. ) COLLATE Chinese_PRC_CI_AS NULL,
  3783. [SCOPE_TYPE_] nvarchar
  3784. (
  3785. 255
  3786. ) COLLATE Chinese_PRC_CI_AS NULL,
  3787. [SCOPE_DEFINITION_ID_] nvarchar
  3788. (
  3789. 255
  3790. ) COLLATE Chinese_PRC_CI_AS NULL,
  3791. [RETRIES_] int NULL,
  3792. [EXCEPTION_STACK_ID_] nvarchar
  3793. (
  3794. 64
  3795. ) COLLATE Chinese_PRC_CI_AS NULL,
  3796. [EXCEPTION_MSG_] nvarchar
  3797. (
  3798. 4000
  3799. ) COLLATE Chinese_PRC_CI_AS NULL,
  3800. [DUEDATE_] datetime NULL,
  3801. [REPEAT_] nvarchar
  3802. (
  3803. 255
  3804. ) COLLATE Chinese_PRC_CI_AS NULL,
  3805. [HANDLER_TYPE_] nvarchar
  3806. (
  3807. 255
  3808. ) COLLATE Chinese_PRC_CI_AS NULL,
  3809. [HANDLER_CFG_] nvarchar
  3810. (
  3811. 4000
  3812. ) COLLATE Chinese_PRC_CI_AS NULL,
  3813. [CUSTOM_VALUES_ID_] nvarchar
  3814. (
  3815. 64
  3816. ) COLLATE Chinese_PRC_CI_AS NULL,
  3817. [CREATE_TIME_] datetime2
  3818. (
  3819. 7
  3820. ) NULL,
  3821. [TENANT_ID_] nvarchar
  3822. (
  3823. 255
  3824. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  3825. )
  3826. GO
  3827. ALTER TABLE [dbo].[ACT_RU_JOB] SET (LOCK_ESCALATION = TABLE)
  3828. GO
  3829. -- ----------------------------
  3830. -- Table structure for ACT_RU_SUSPENDED_JOB
  3831. -- ----------------------------
  3832. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_SUSPENDED_JOB]') AND type IN ('U'))
  3833. DROP TABLE [dbo].[ACT_RU_SUSPENDED_JOB]
  3834. GO
  3835. CREATE TABLE [dbo].[ACT_RU_SUSPENDED_JOB]
  3836. (
  3837. [
  3838. ID_] nvarchar
  3839. (
  3840. 64
  3841. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3842. [REV_] int NULL,
  3843. [TYPE_] nvarchar
  3844. (
  3845. 255
  3846. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3847. [EXCLUSIVE_] bit NULL,
  3848. [EXECUTION_ID_] nvarchar
  3849. (
  3850. 64
  3851. ) COLLATE Chinese_PRC_CI_AS NULL,
  3852. [PROCESS_INSTANCE_ID_] nvarchar
  3853. (
  3854. 64
  3855. ) COLLATE Chinese_PRC_CI_AS NULL,
  3856. [PROC_DEF_ID_] nvarchar
  3857. (
  3858. 64
  3859. ) COLLATE Chinese_PRC_CI_AS NULL,
  3860. [ELEMENT_ID_] nvarchar
  3861. (
  3862. 255
  3863. ) COLLATE Chinese_PRC_CI_AS NULL,
  3864. [ELEMENT_NAME_] nvarchar
  3865. (
  3866. 255
  3867. ) COLLATE Chinese_PRC_CI_AS NULL,
  3868. [SCOPE_ID_] nvarchar
  3869. (
  3870. 255
  3871. ) COLLATE Chinese_PRC_CI_AS NULL,
  3872. [SUB_SCOPE_ID_] nvarchar
  3873. (
  3874. 255
  3875. ) COLLATE Chinese_PRC_CI_AS NULL,
  3876. [SCOPE_TYPE_] nvarchar
  3877. (
  3878. 255
  3879. ) COLLATE Chinese_PRC_CI_AS NULL,
  3880. [SCOPE_DEFINITION_ID_] nvarchar
  3881. (
  3882. 255
  3883. ) COLLATE Chinese_PRC_CI_AS NULL,
  3884. [RETRIES_] int NULL,
  3885. [EXCEPTION_STACK_ID_] nvarchar
  3886. (
  3887. 64
  3888. ) COLLATE Chinese_PRC_CI_AS NULL,
  3889. [EXCEPTION_MSG_] nvarchar
  3890. (
  3891. 4000
  3892. ) COLLATE Chinese_PRC_CI_AS NULL,
  3893. [DUEDATE_] datetime NULL,
  3894. [REPEAT_] nvarchar
  3895. (
  3896. 255
  3897. ) COLLATE Chinese_PRC_CI_AS NULL,
  3898. [HANDLER_TYPE_] nvarchar
  3899. (
  3900. 255
  3901. ) COLLATE Chinese_PRC_CI_AS NULL,
  3902. [HANDLER_CFG_] nvarchar
  3903. (
  3904. 4000
  3905. ) COLLATE Chinese_PRC_CI_AS NULL,
  3906. [CUSTOM_VALUES_ID_] nvarchar
  3907. (
  3908. 64
  3909. ) COLLATE Chinese_PRC_CI_AS NULL,
  3910. [CREATE_TIME_] datetime2
  3911. (
  3912. 7
  3913. ) NULL,
  3914. [TENANT_ID_] nvarchar
  3915. (
  3916. 255
  3917. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  3918. )
  3919. GO
  3920. ALTER TABLE [dbo].[ACT_RU_SUSPENDED_JOB] SET (LOCK_ESCALATION = TABLE)
  3921. GO
  3922. -- ----------------------------
  3923. -- Table structure for ACT_RU_TASK
  3924. -- ----------------------------
  3925. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_TASK]') AND type IN ('U'))
  3926. DROP TABLE [dbo].[ACT_RU_TASK]
  3927. GO
  3928. CREATE TABLE [dbo].[ACT_RU_TASK]
  3929. (
  3930. [
  3931. ID_] nvarchar
  3932. (
  3933. 64
  3934. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  3935. [REV_] int NULL,
  3936. [EXECUTION_ID_] nvarchar
  3937. (
  3938. 64
  3939. ) COLLATE Chinese_PRC_CI_AS NULL,
  3940. [PROC_INST_ID_] nvarchar
  3941. (
  3942. 64
  3943. ) COLLATE Chinese_PRC_CI_AS NULL,
  3944. [PROC_DEF_ID_] nvarchar
  3945. (
  3946. 64
  3947. ) COLLATE Chinese_PRC_CI_AS NULL,
  3948. [TASK_DEF_ID_] nvarchar
  3949. (
  3950. 64
  3951. ) COLLATE Chinese_PRC_CI_AS NULL,
  3952. [SCOPE_ID_] nvarchar
  3953. (
  3954. 255
  3955. ) COLLATE Chinese_PRC_CI_AS NULL,
  3956. [SUB_SCOPE_ID_] nvarchar
  3957. (
  3958. 255
  3959. ) COLLATE Chinese_PRC_CI_AS NULL,
  3960. [SCOPE_TYPE_] nvarchar
  3961. (
  3962. 255
  3963. ) COLLATE Chinese_PRC_CI_AS NULL,
  3964. [SCOPE_DEFINITION_ID_] nvarchar
  3965. (
  3966. 255
  3967. ) COLLATE Chinese_PRC_CI_AS NULL,
  3968. [NAME_] nvarchar
  3969. (
  3970. 255
  3971. ) COLLATE Chinese_PRC_CI_AS NULL,
  3972. [PARENT_TASK_ID_] nvarchar
  3973. (
  3974. 64
  3975. ) COLLATE Chinese_PRC_CI_AS NULL,
  3976. [DESCRIPTION_] nvarchar
  3977. (
  3978. 4000
  3979. ) COLLATE Chinese_PRC_CI_AS NULL,
  3980. [TASK_DEF_KEY_] nvarchar
  3981. (
  3982. 255
  3983. ) COLLATE Chinese_PRC_CI_AS NULL,
  3984. [OWNER_] nvarchar
  3985. (
  3986. 255
  3987. ) COLLATE Chinese_PRC_CI_AS NULL,
  3988. [ASSIGNEE_] nvarchar
  3989. (
  3990. 255
  3991. ) COLLATE Chinese_PRC_CI_AS NULL,
  3992. [DELEGATION_] nvarchar
  3993. (
  3994. 64
  3995. ) COLLATE Chinese_PRC_CI_AS NULL,
  3996. [PRIORITY_] int NULL,
  3997. [CREATE_TIME_] datetime NULL,
  3998. [DUE_DATE_] datetime NULL,
  3999. [CATEGORY_] nvarchar
  4000. (
  4001. 255
  4002. ) COLLATE Chinese_PRC_CI_AS NULL,
  4003. [SUSPENSION_STATE_] int NULL,
  4004. [TENANT_ID_] nvarchar
  4005. (
  4006. 255
  4007. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL,
  4008. [FORM_KEY_] nvarchar
  4009. (
  4010. 255
  4011. ) COLLATE Chinese_PRC_CI_AS NULL,
  4012. [CLAIM_TIME_] datetime NULL,
  4013. [IS_COUNT_ENABLED_] tinyint NULL,
  4014. [VAR_COUNT_] int NULL,
  4015. [ID_LINK_COUNT_] int NULL,
  4016. [SUB_TASK_COUNT_] int NULL
  4017. )
  4018. GO
  4019. ALTER TABLE [dbo].[ACT_RU_TASK] SET (LOCK_ESCALATION = TABLE)
  4020. GO
  4021. -- ----------------------------
  4022. -- Table structure for ACT_RU_TIMER_JOB
  4023. -- ----------------------------
  4024. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_TIMER_JOB]') AND type IN ('U'))
  4025. DROP TABLE [dbo].[ACT_RU_TIMER_JOB]
  4026. GO
  4027. CREATE TABLE [dbo].[ACT_RU_TIMER_JOB]
  4028. (
  4029. [
  4030. ID_] nvarchar
  4031. (
  4032. 64
  4033. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  4034. [REV_] int NULL,
  4035. [TYPE_] nvarchar
  4036. (
  4037. 255
  4038. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  4039. [LOCK_EXP_TIME_] datetime NULL,
  4040. [LOCK_OWNER_] nvarchar
  4041. (
  4042. 255
  4043. ) COLLATE Chinese_PRC_CI_AS NULL,
  4044. [EXCLUSIVE_] bit NULL,
  4045. [EXECUTION_ID_] nvarchar
  4046. (
  4047. 64
  4048. ) COLLATE Chinese_PRC_CI_AS NULL,
  4049. [PROCESS_INSTANCE_ID_] nvarchar
  4050. (
  4051. 64
  4052. ) COLLATE Chinese_PRC_CI_AS NULL,
  4053. [PROC_DEF_ID_] nvarchar
  4054. (
  4055. 64
  4056. ) COLLATE Chinese_PRC_CI_AS NULL,
  4057. [ELEMENT_ID_] nvarchar
  4058. (
  4059. 255
  4060. ) COLLATE Chinese_PRC_CI_AS NULL,
  4061. [ELEMENT_NAME_] nvarchar
  4062. (
  4063. 255
  4064. ) COLLATE Chinese_PRC_CI_AS NULL,
  4065. [SCOPE_ID_] nvarchar
  4066. (
  4067. 255
  4068. ) COLLATE Chinese_PRC_CI_AS NULL,
  4069. [SUB_SCOPE_ID_] nvarchar
  4070. (
  4071. 255
  4072. ) COLLATE Chinese_PRC_CI_AS NULL,
  4073. [SCOPE_TYPE_] nvarchar
  4074. (
  4075. 255
  4076. ) COLLATE Chinese_PRC_CI_AS NULL,
  4077. [SCOPE_DEFINITION_ID_] nvarchar
  4078. (
  4079. 255
  4080. ) COLLATE Chinese_PRC_CI_AS NULL,
  4081. [RETRIES_] int NULL,
  4082. [EXCEPTION_STACK_ID_] nvarchar
  4083. (
  4084. 64
  4085. ) COLLATE Chinese_PRC_CI_AS NULL,
  4086. [EXCEPTION_MSG_] nvarchar
  4087. (
  4088. 4000
  4089. ) COLLATE Chinese_PRC_CI_AS NULL,
  4090. [DUEDATE_] datetime NULL,
  4091. [REPEAT_] nvarchar
  4092. (
  4093. 255
  4094. ) COLLATE Chinese_PRC_CI_AS NULL,
  4095. [HANDLER_TYPE_] nvarchar
  4096. (
  4097. 255
  4098. ) COLLATE Chinese_PRC_CI_AS NULL,
  4099. [HANDLER_CFG_] nvarchar
  4100. (
  4101. 4000
  4102. ) COLLATE Chinese_PRC_CI_AS NULL,
  4103. [CUSTOM_VALUES_ID_] nvarchar
  4104. (
  4105. 64
  4106. ) COLLATE Chinese_PRC_CI_AS NULL,
  4107. [CREATE_TIME_] datetime2
  4108. (
  4109. 7
  4110. ) NULL,
  4111. [TENANT_ID_] nvarchar
  4112. (
  4113. 255
  4114. ) COLLATE Chinese_PRC_CI_AS DEFAULT '' NULL
  4115. )
  4116. GO
  4117. ALTER TABLE [dbo].[ACT_RU_TIMER_JOB] SET (LOCK_ESCALATION = TABLE)
  4118. GO
  4119. -- ----------------------------
  4120. -- Table structure for ACT_RU_VARIABLE
  4121. -- ----------------------------
  4122. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[ACT_RU_VARIABLE]') AND type IN ('U'))
  4123. DROP TABLE [dbo].[ACT_RU_VARIABLE]
  4124. GO
  4125. CREATE TABLE [dbo].[ACT_RU_VARIABLE]
  4126. (
  4127. [
  4128. ID_] nvarchar
  4129. (
  4130. 64
  4131. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  4132. [REV_] int NULL,
  4133. [TYPE_] nvarchar
  4134. (
  4135. 255
  4136. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  4137. [NAME_] nvarchar
  4138. (
  4139. 255
  4140. ) COLLATE Chinese_PRC_CI_AS NOT NULL,
  4141. [EXECUTION_ID_] nvarchar
  4142. (
  4143. 64
  4144. ) COLLATE Chinese_PRC_CI_AS NULL,
  4145. [PROC_INST_ID_] nvarchar
  4146. (
  4147. 64
  4148. ) COLLATE Chinese_PRC_CI_AS NULL,
  4149. [TASK_ID_] nvarchar
  4150. (
  4151. 64
  4152. ) COLLATE Chinese_PRC_CI_AS NULL,
  4153. [SCOPE_ID_] nvarchar
  4154. (
  4155. 255
  4156. ) COLLATE Chinese_PRC_CI_AS NULL,
  4157. [SUB_SCOPE_ID_] nvarchar
  4158. (
  4159. 255
  4160. ) COLLATE Chinese_PRC_CI_AS NULL,
  4161. [SCOPE_TYPE_] nvarchar
  4162. (
  4163. 255
  4164. ) COLLATE Chinese_PRC_CI_AS NULL,
  4165. [BYTEARRAY_ID_] nvarchar
  4166. (
  4167. 64
  4168. ) COLLATE Chinese_PRC_CI_AS NULL,
  4169. [DOUBLE_] float
  4170. (
  4171. 53
  4172. ) NULL,
  4173. [LONG_] numeric
  4174. (
  4175. 19
  4176. ) NULL,
  4177. [TEXT_] nvarchar
  4178. (
  4179. 4000
  4180. ) COLLATE Chinese_PRC_CI_AS NULL,
  4181. [TEXT2_] nvarchar
  4182. (
  4183. 4000
  4184. ) COLLATE Chinese_PRC_CI_AS NULL
  4185. )
  4186. GO
  4187. ALTER TABLE [dbo].[ACT_RU_VARIABLE] SET (LOCK_ESCALATION = TABLE)
  4188. GO
  4189. -- ----------------------------
  4190. -- Indexes structure for table ACT_APP_APPDEF
  4191. -- ----------------------------
  4192. CREATE
  4193. NONCLUSTERED INDEX [ACT_IDX_APP_DEF_DPLY]
  4194. ON [dbo].[ACT_APP_APPDEF] (
  4195. [DEPLOYMENT_ID_] ASC
  4196. )
  4197. GO
  4198. CREATE UNIQUE
  4199. NONCLUSTERED INDEX [ACT_IDX_APP_DEF_UNIQ]
  4200. ON [dbo].[ACT_APP_APPDEF] (
  4201. [KEY_] ASC,
  4202. [VERSION_] ASC,
  4203. [TENANT_ID_] ASC
  4204. )
  4205. GO
  4206. -- ----------------------------
  4207. -- Primary Key structure for table ACT_APP_APPDEF
  4208. -- ----------------------------
  4209. ALTER TABLE [dbo].[ACT_APP_APPDEF] ADD CONSTRAINT [PK_ACT_APP_APPDEF] PRIMARY KEY CLUSTERED ([ID_])
  4210. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4211. ON [PRIMARY]
  4212. GO
  4213. -- ----------------------------
  4214. -- Primary Key structure for table ACT_APP_DATABASECHANGELOGLOCK
  4215. -- ----------------------------
  4216. ALTER TABLE [dbo].[ACT_APP_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_ACT_APP_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  4217. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4218. ON [PRIMARY]
  4219. GO
  4220. -- ----------------------------
  4221. -- Primary Key structure for table ACT_APP_DEPLOYMENT
  4222. -- ----------------------------
  4223. ALTER TABLE [dbo].[ACT_APP_DEPLOYMENT] ADD CONSTRAINT [PK_ACT_APP_DEPLOYMENT] PRIMARY KEY CLUSTERED ([ID_])
  4224. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4225. ON [PRIMARY]
  4226. GO
  4227. -- ----------------------------
  4228. -- Indexes structure for table ACT_APP_DEPLOYMENT_RESOURCE
  4229. -- ----------------------------
  4230. CREATE
  4231. NONCLUSTERED INDEX [ACT_IDX_APP_RSRC_DPL]
  4232. ON [dbo].[ACT_APP_DEPLOYMENT_RESOURCE] (
  4233. [DEPLOYMENT_ID_] ASC
  4234. )
  4235. GO
  4236. -- ----------------------------
  4237. -- Primary Key structure for table ACT_APP_DEPLOYMENT_RESOURCE
  4238. -- ----------------------------
  4239. ALTER TABLE [dbo].[ACT_APP_DEPLOYMENT_RESOURCE] ADD CONSTRAINT [PK_APP_DEPLOYMENT_RESOURCE] PRIMARY KEY CLUSTERED ([ID_])
  4240. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4241. ON [PRIMARY]
  4242. GO
  4243. -- ----------------------------
  4244. -- Indexes structure for table ACT_CMMN_CASEDEF
  4245. -- ----------------------------
  4246. CREATE
  4247. NONCLUSTERED INDEX [ACT_IDX_CASE_DEF_DPLY]
  4248. ON [dbo].[ACT_CMMN_CASEDEF] (
  4249. [DEPLOYMENT_ID_] ASC
  4250. )
  4251. GO
  4252. CREATE UNIQUE
  4253. NONCLUSTERED INDEX [ACT_IDX_CASE_DEF_UNIQ]
  4254. ON [dbo].[ACT_CMMN_CASEDEF] (
  4255. [KEY_] ASC,
  4256. [VERSION_] ASC,
  4257. [TENANT_ID_] ASC
  4258. )
  4259. GO
  4260. -- ----------------------------
  4261. -- Primary Key structure for table ACT_CMMN_CASEDEF
  4262. -- ----------------------------
  4263. ALTER TABLE [dbo].[ACT_CMMN_CASEDEF] ADD CONSTRAINT [PK_ACT_CMMN_CASEDEF] PRIMARY KEY CLUSTERED ([ID_])
  4264. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4265. ON [PRIMARY]
  4266. GO
  4267. -- ----------------------------
  4268. -- Primary Key structure for table ACT_CMMN_DATABASECHANGELOGLOCK
  4269. -- ----------------------------
  4270. ALTER TABLE [dbo].[ACT_CMMN_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_ACT_CMMN_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  4271. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4272. ON [PRIMARY]
  4273. GO
  4274. -- ----------------------------
  4275. -- Primary Key structure for table ACT_CMMN_DEPLOYMENT
  4276. -- ----------------------------
  4277. ALTER TABLE [dbo].[ACT_CMMN_DEPLOYMENT] ADD CONSTRAINT [PK_ACT_CMMN_DEPLOYMENT] PRIMARY KEY CLUSTERED ([ID_])
  4278. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4279. ON [PRIMARY]
  4280. GO
  4281. -- ----------------------------
  4282. -- Indexes structure for table ACT_CMMN_DEPLOYMENT_RESOURCE
  4283. -- ----------------------------
  4284. CREATE
  4285. NONCLUSTERED INDEX [ACT_IDX_CMMN_RSRC_DPL]
  4286. ON [dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE] (
  4287. [DEPLOYMENT_ID_] ASC
  4288. )
  4289. GO
  4290. -- ----------------------------
  4291. -- Primary Key structure for table ACT_CMMN_DEPLOYMENT_RESOURCE
  4292. -- ----------------------------
  4293. ALTER TABLE [dbo].[ACT_CMMN_DEPLOYMENT_RESOURCE] ADD CONSTRAINT [PK_CMMN_DEPLOYMENT_RESOURCE] PRIMARY KEY CLUSTERED ([ID_])
  4294. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4295. ON [PRIMARY]
  4296. GO
  4297. -- ----------------------------
  4298. -- Primary Key structure for table ACT_CMMN_HI_CASE_INST
  4299. -- ----------------------------
  4300. ALTER TABLE [dbo].[ACT_CMMN_HI_CASE_INST] ADD CONSTRAINT [PK_ACT_CMMN_HI_CASE_INST] PRIMARY KEY CLUSTERED ([ID_])
  4301. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4302. ON [PRIMARY]
  4303. GO
  4304. -- ----------------------------
  4305. -- Primary Key structure for table ACT_CMMN_HI_MIL_INST
  4306. -- ----------------------------
  4307. ALTER TABLE [dbo].[ACT_CMMN_HI_MIL_INST] ADD CONSTRAINT [PK_ACT_CMMN_HI_MIL_INST] PRIMARY KEY CLUSTERED ([ID_])
  4308. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4309. ON [PRIMARY]
  4310. GO
  4311. -- ----------------------------
  4312. -- Primary Key structure for table ACT_CMMN_HI_PLAN_ITEM_INST
  4313. -- ----------------------------
  4314. ALTER TABLE [dbo].[ACT_CMMN_HI_PLAN_ITEM_INST] ADD CONSTRAINT [PK_ACT_CMMN_HI_PLAN_ITEM_INST] PRIMARY KEY CLUSTERED ([ID_])
  4315. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4316. ON [PRIMARY]
  4317. GO
  4318. -- ----------------------------
  4319. -- Indexes structure for table ACT_CMMN_RU_CASE_INST
  4320. -- ----------------------------
  4321. CREATE
  4322. NONCLUSTERED INDEX [ACT_IDX_CASE_INST_CASE_DEF]
  4323. ON [dbo].[ACT_CMMN_RU_CASE_INST] (
  4324. [CASE_DEF_ID_] ASC
  4325. )
  4326. GO
  4327. CREATE
  4328. NONCLUSTERED INDEX [ACT_IDX_CASE_INST_PARENT]
  4329. ON [dbo].[ACT_CMMN_RU_CASE_INST] (
  4330. [PARENT_ID_] ASC
  4331. )
  4332. GO
  4333. -- ----------------------------
  4334. -- Primary Key structure for table ACT_CMMN_RU_CASE_INST
  4335. -- ----------------------------
  4336. ALTER TABLE [dbo].[ACT_CMMN_RU_CASE_INST] ADD CONSTRAINT [PK_ACT_CMMN_RU_CASE_INST] PRIMARY KEY CLUSTERED ([ID_])
  4337. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4338. ON [PRIMARY]
  4339. GO
  4340. -- ----------------------------
  4341. -- Indexes structure for table ACT_CMMN_RU_MIL_INST
  4342. -- ----------------------------
  4343. CREATE
  4344. NONCLUSTERED INDEX [ACT_IDX_MIL_CASE_DEF]
  4345. ON [dbo].[ACT_CMMN_RU_MIL_INST] (
  4346. [CASE_DEF_ID_] ASC
  4347. )
  4348. GO
  4349. CREATE
  4350. NONCLUSTERED INDEX [ACT_IDX_MIL_CASE_INST]
  4351. ON [dbo].[ACT_CMMN_RU_MIL_INST] (
  4352. [CASE_INST_ID_] ASC
  4353. )
  4354. GO
  4355. -- ----------------------------
  4356. -- Primary Key structure for table ACT_CMMN_RU_MIL_INST
  4357. -- ----------------------------
  4358. ALTER TABLE [dbo].[ACT_CMMN_RU_MIL_INST] ADD CONSTRAINT [PK_ACT_CMMN_RU_MIL_INST] PRIMARY KEY CLUSTERED ([ID_])
  4359. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4360. ON [PRIMARY]
  4361. GO
  4362. -- ----------------------------
  4363. -- Indexes structure for table ACT_CMMN_RU_PLAN_ITEM_INST
  4364. -- ----------------------------
  4365. CREATE
  4366. NONCLUSTERED INDEX [ACT_IDX_PLAN_ITEM_CASE_DEF]
  4367. ON [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] (
  4368. [CASE_DEF_ID_] ASC
  4369. )
  4370. GO
  4371. CREATE
  4372. NONCLUSTERED INDEX [ACT_IDX_PLAN_ITEM_CASE_INST]
  4373. ON [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] (
  4374. [CASE_INST_ID_] ASC
  4375. )
  4376. GO
  4377. CREATE
  4378. NONCLUSTERED INDEX [ACT_IDX_PLAN_ITEM_STAGE_INST]
  4379. ON [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] (
  4380. [STAGE_INST_ID_] ASC
  4381. )
  4382. GO
  4383. -- ----------------------------
  4384. -- Primary Key structure for table ACT_CMMN_RU_PLAN_ITEM_INST
  4385. -- ----------------------------
  4386. ALTER TABLE [dbo].[ACT_CMMN_RU_PLAN_ITEM_INST] ADD CONSTRAINT [PK_CMMN_PLAN_ITEM_INST] PRIMARY KEY CLUSTERED ([ID_])
  4387. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4388. ON [PRIMARY]
  4389. GO
  4390. -- ----------------------------
  4391. -- Indexes structure for table ACT_CMMN_RU_SENTRY_PART_INST
  4392. -- ----------------------------
  4393. CREATE
  4394. NONCLUSTERED INDEX [ACT_IDX_SENTRY_CASE_DEF]
  4395. ON [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] (
  4396. [CASE_DEF_ID_] ASC
  4397. )
  4398. GO
  4399. CREATE
  4400. NONCLUSTERED INDEX [ACT_IDX_SENTRY_CASE_INST]
  4401. ON [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] (
  4402. [CASE_INST_ID_] ASC
  4403. )
  4404. GO
  4405. CREATE
  4406. NONCLUSTERED INDEX [ACT_IDX_SENTRY_PLAN_ITEM]
  4407. ON [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] (
  4408. [PLAN_ITEM_INST_ID_] ASC
  4409. )
  4410. GO
  4411. -- ----------------------------
  4412. -- Primary Key structure for table ACT_CMMN_RU_SENTRY_PART_INST
  4413. -- ----------------------------
  4414. ALTER TABLE [dbo].[ACT_CMMN_RU_SENTRY_PART_INST] ADD CONSTRAINT [PK_CMMN_SENTRY_PART_INST] PRIMARY KEY CLUSTERED ([ID_])
  4415. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4416. ON [PRIMARY]
  4417. GO
  4418. -- ----------------------------
  4419. -- Indexes structure for table ACT_CO_CONTENT_ITEM
  4420. -- ----------------------------
  4421. CREATE
  4422. NONCLUSTERED INDEX [idx_contitem_taskid]
  4423. ON [dbo].[ACT_CO_CONTENT_ITEM] (
  4424. [TASK_ID_] ASC
  4425. )
  4426. GO
  4427. CREATE
  4428. NONCLUSTERED INDEX [idx_contitem_procid]
  4429. ON [dbo].[ACT_CO_CONTENT_ITEM] (
  4430. [PROC_INST_ID_] ASC
  4431. )
  4432. GO
  4433. CREATE
  4434. NONCLUSTERED INDEX [idx_contitem_scope]
  4435. ON [dbo].[ACT_CO_CONTENT_ITEM] (
  4436. [SCOPE_ID_] ASC,
  4437. [SCOPE_TYPE_] ASC
  4438. )
  4439. GO
  4440. -- ----------------------------
  4441. -- Primary Key structure for table ACT_CO_CONTENT_ITEM
  4442. -- ----------------------------
  4443. ALTER TABLE [dbo].[ACT_CO_CONTENT_ITEM] ADD CONSTRAINT [PK_ACT_CO_CONTENT_ITEM] PRIMARY KEY CLUSTERED ([ID_])
  4444. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4445. ON [PRIMARY]
  4446. GO
  4447. -- ----------------------------
  4448. -- Primary Key structure for table ACT_CO_DATABASECHANGELOGLOCK
  4449. -- ----------------------------
  4450. ALTER TABLE [dbo].[ACT_CO_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_ACT_CO_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  4451. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4452. ON [PRIMARY]
  4453. GO
  4454. -- ----------------------------
  4455. -- Primary Key structure for table ACT_DE_DATABASECHANGELOGLOCK
  4456. -- ----------------------------
  4457. ALTER TABLE [dbo].[ACT_DE_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_ACT_DE_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  4458. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4459. ON [PRIMARY]
  4460. GO
  4461. -- ----------------------------
  4462. -- Indexes structure for table ACT_DE_MODEL
  4463. -- ----------------------------
  4464. CREATE
  4465. NONCLUSTERED INDEX [idx_proc_mod_created]
  4466. ON [dbo].[ACT_DE_MODEL] (
  4467. [created_by] ASC
  4468. )
  4469. GO
  4470. -- ----------------------------
  4471. -- Primary Key structure for table ACT_DE_MODEL
  4472. -- ----------------------------
  4473. ALTER TABLE [dbo].[ACT_DE_MODEL] ADD CONSTRAINT [PK_ACT_DE_MODEL] PRIMARY KEY CLUSTERED ([id])
  4474. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4475. ON [PRIMARY]
  4476. GO
  4477. -- ----------------------------
  4478. -- Indexes structure for table ACT_DE_MODEL_HISTORY
  4479. -- ----------------------------
  4480. CREATE
  4481. NONCLUSTERED INDEX [idx_proc_mod_history_proc]
  4482. ON [dbo].[ACT_DE_MODEL_HISTORY] (
  4483. [model_id] ASC
  4484. )
  4485. GO
  4486. -- ----------------------------
  4487. -- Primary Key structure for table ACT_DE_MODEL_HISTORY
  4488. -- ----------------------------
  4489. ALTER TABLE [dbo].[ACT_DE_MODEL_HISTORY] ADD CONSTRAINT [PK_ACT_DE_MODEL_HISTORY] PRIMARY KEY CLUSTERED ([id])
  4490. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4491. ON [PRIMARY]
  4492. GO
  4493. -- ----------------------------
  4494. -- Primary Key structure for table ACT_DE_MODEL_RELATION
  4495. -- ----------------------------
  4496. ALTER TABLE [dbo].[ACT_DE_MODEL_RELATION] ADD CONSTRAINT [PK_ACT_DE_MODEL_RELATION] PRIMARY KEY CLUSTERED ([id])
  4497. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4498. ON [PRIMARY]
  4499. GO
  4500. -- ----------------------------
  4501. -- Primary Key structure for table ACT_DMN_DATABASECHANGELOGLOCK
  4502. -- ----------------------------
  4503. ALTER TABLE [dbo].[ACT_DMN_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_ACT_DMN_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  4504. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4505. ON [PRIMARY]
  4506. GO
  4507. -- ----------------------------
  4508. -- Indexes structure for table ACT_DMN_DECISION_TABLE
  4509. -- ----------------------------
  4510. CREATE
  4511. UNIQUE
  4512. NONCLUSTERED INDEX [ACT_IDX_DEC_TBL_UNIQ]
  4513. ON [dbo].[ACT_DMN_DECISION_TABLE] (
  4514. [KEY_] ASC,
  4515. [VERSION_] ASC,
  4516. [TENANT_ID_] ASC
  4517. )
  4518. GO
  4519. -- ----------------------------
  4520. -- Primary Key structure for table ACT_DMN_DECISION_TABLE
  4521. -- ----------------------------
  4522. ALTER TABLE [dbo].[ACT_DMN_DECISION_TABLE] ADD CONSTRAINT [PK_ACT_DMN_DECISION_TABLE] PRIMARY KEY CLUSTERED ([ID_])
  4523. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4524. ON [PRIMARY]
  4525. GO
  4526. -- ----------------------------
  4527. -- Primary Key structure for table ACT_DMN_DEPLOYMENT
  4528. -- ----------------------------
  4529. ALTER TABLE [dbo].[ACT_DMN_DEPLOYMENT] ADD CONSTRAINT [PK_ACT_DMN_DEPLOYMENT] PRIMARY KEY CLUSTERED ([ID_])
  4530. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4531. ON [PRIMARY]
  4532. GO
  4533. -- ----------------------------
  4534. -- Primary Key structure for table ACT_DMN_DEPLOYMENT_RESOURCE
  4535. -- ----------------------------
  4536. ALTER TABLE [dbo].[ACT_DMN_DEPLOYMENT_RESOURCE] ADD CONSTRAINT [PK_ACT_DMN_DEPLOYMENT_RESOURCE] PRIMARY KEY CLUSTERED ([ID_])
  4537. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4538. ON [PRIMARY]
  4539. GO
  4540. -- ----------------------------
  4541. -- Primary Key structure for table ACT_DMN_HI_DECISION_EXECUTION
  4542. -- ----------------------------
  4543. ALTER TABLE [dbo].[ACT_DMN_HI_DECISION_EXECUTION] ADD CONSTRAINT [PK_ACT_DMN_HI_DECISION_EXECUTION] PRIMARY KEY CLUSTERED ([ID_])
  4544. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4545. ON [PRIMARY]
  4546. GO
  4547. -- ----------------------------
  4548. -- Primary Key structure for table ACT_EVT_LOG
  4549. -- ----------------------------
  4550. ALTER TABLE [dbo].[ACT_EVT_LOG] ADD CONSTRAINT [PK__ACT_EVT___DE8852D855F4C372] PRIMARY KEY CLUSTERED ([LOG_NR_])
  4551. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4552. ON [PRIMARY]
  4553. GO
  4554. -- ----------------------------
  4555. -- Primary Key structure for table ACT_FO_DATABASECHANGELOGLOCK
  4556. -- ----------------------------
  4557. ALTER TABLE [dbo].[ACT_FO_DATABASECHANGELOGLOCK] ADD CONSTRAINT [PK_ACT_FO_DATABASECHANGELOGLOCK] PRIMARY KEY CLUSTERED ([ID])
  4558. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4559. ON [PRIMARY]
  4560. GO
  4561. -- ----------------------------
  4562. -- Indexes structure for table ACT_FO_FORM_DEFINITION
  4563. -- ----------------------------
  4564. CREATE
  4565. UNIQUE
  4566. NONCLUSTERED INDEX [ACT_IDX_FORM_DEF_UNIQ]
  4567. ON [dbo].[ACT_FO_FORM_DEFINITION] (
  4568. [KEY_] ASC,
  4569. [VERSION_] ASC,
  4570. [TENANT_ID_] ASC
  4571. )
  4572. GO
  4573. -- ----------------------------
  4574. -- Primary Key structure for table ACT_FO_FORM_DEFINITION
  4575. -- ----------------------------
  4576. ALTER TABLE [dbo].[ACT_FO_FORM_DEFINITION] ADD CONSTRAINT [PK_ACT_FO_FORM_DEFINITION] PRIMARY KEY CLUSTERED ([ID_])
  4577. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4578. ON [PRIMARY]
  4579. GO
  4580. -- ----------------------------
  4581. -- Primary Key structure for table ACT_FO_FORM_DEPLOYMENT
  4582. -- ----------------------------
  4583. ALTER TABLE [dbo].[ACT_FO_FORM_DEPLOYMENT] ADD CONSTRAINT [PK_ACT_FO_FORM_DEPLOYMENT] PRIMARY KEY CLUSTERED ([ID_])
  4584. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4585. ON [PRIMARY]
  4586. GO
  4587. -- ----------------------------
  4588. -- Primary Key structure for table ACT_FO_FORM_INSTANCE
  4589. -- ----------------------------
  4590. ALTER TABLE [dbo].[ACT_FO_FORM_INSTANCE] ADD CONSTRAINT [PK_ACT_FO_FORM_INSTANCE] PRIMARY KEY CLUSTERED ([ID_])
  4591. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4592. ON [PRIMARY]
  4593. GO
  4594. -- ----------------------------
  4595. -- Primary Key structure for table ACT_FO_FORM_RESOURCE
  4596. -- ----------------------------
  4597. ALTER TABLE [dbo].[ACT_FO_FORM_RESOURCE] ADD CONSTRAINT [PK_ACT_FO_FORM_RESOURCE] PRIMARY KEY CLUSTERED ([ID_])
  4598. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4599. ON [PRIMARY]
  4600. GO
  4601. -- ----------------------------
  4602. -- Primary Key structure for table ACT_GE_BYTEARRAY
  4603. -- ----------------------------
  4604. ALTER TABLE [dbo].[ACT_GE_BYTEARRAY] ADD CONSTRAINT [PK__ACT_GE_B__C4971C0F71D1E811] PRIMARY KEY CLUSTERED ([ID_])
  4605. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4606. ON [PRIMARY]
  4607. GO
  4608. -- ----------------------------
  4609. -- Primary Key structure for table ACT_GE_PROPERTY
  4610. -- ----------------------------
  4611. ALTER TABLE [dbo].[ACT_GE_PROPERTY] ADD CONSTRAINT [PK__ACT_GE_P__A7BE44DE6E01572D] PRIMARY KEY CLUSTERED ([NAME_])
  4612. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4613. ON [PRIMARY]
  4614. GO
  4615. -- ----------------------------
  4616. -- Indexes structure for table ACT_HI_ACTINST
  4617. -- ----------------------------
  4618. CREATE
  4619. NONCLUSTERED INDEX [ACT_IDX_HI_ACT_INST_START]
  4620. ON [dbo].[ACT_HI_ACTINST] (
  4621. [START_TIME_] ASC
  4622. )
  4623. GO
  4624. CREATE
  4625. NONCLUSTERED INDEX [ACT_IDX_HI_ACT_INST_END]
  4626. ON [dbo].[ACT_HI_ACTINST] (
  4627. [END_TIME_] ASC
  4628. )
  4629. GO
  4630. CREATE
  4631. NONCLUSTERED INDEX [ACT_IDX_HI_ACT_INST_PROCINST]
  4632. ON [dbo].[ACT_HI_ACTINST] (
  4633. [PROC_INST_ID_] ASC,
  4634. [ACT_ID_] ASC
  4635. )
  4636. GO
  4637. CREATE
  4638. NONCLUSTERED INDEX [ACT_IDX_HI_ACT_INST_EXEC]
  4639. ON [dbo].[ACT_HI_ACTINST] (
  4640. [EXECUTION_ID_] ASC,
  4641. [ACT_ID_] ASC
  4642. )
  4643. GO
  4644. -- ----------------------------
  4645. -- Primary Key structure for table ACT_HI_ACTINST
  4646. -- ----------------------------
  4647. ALTER TABLE [dbo].[ACT_HI_ACTINST] ADD CONSTRAINT [PK__ACT_HI_A__C4971C0F0B5CAFEA] PRIMARY KEY CLUSTERED ([ID_])
  4648. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4649. ON [PRIMARY]
  4650. GO
  4651. -- ----------------------------
  4652. -- Primary Key structure for table ACT_HI_ATTACHMENT
  4653. -- ----------------------------
  4654. ALTER TABLE [dbo].[ACT_HI_ATTACHMENT] ADD CONSTRAINT [PK__ACT_HI_A__C4971C0F18B6AB08] PRIMARY KEY CLUSTERED ([ID_])
  4655. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4656. ON [PRIMARY]
  4657. GO
  4658. -- ----------------------------
  4659. -- Primary Key structure for table ACT_HI_COMMENT
  4660. -- ----------------------------
  4661. ALTER TABLE [dbo].[ACT_HI_COMMENT] ADD CONSTRAINT [PK__ACT_HI_C__C4971C0F14E61A24] PRIMARY KEY CLUSTERED ([ID_])
  4662. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4663. ON [PRIMARY]
  4664. GO
  4665. -- ----------------------------
  4666. -- Indexes structure for table ACT_HI_DETAIL
  4667. -- ----------------------------
  4668. CREATE
  4669. NONCLUSTERED INDEX [ACT_IDX_HI_DETAIL_PROC_INST]
  4670. ON [dbo].[ACT_HI_DETAIL] (
  4671. [PROC_INST_ID_] ASC
  4672. )
  4673. GO
  4674. CREATE
  4675. NONCLUSTERED INDEX [ACT_IDX_HI_DETAIL_ACT_INST]
  4676. ON [dbo].[ACT_HI_DETAIL] (
  4677. [ACT_INST_ID_] ASC
  4678. )
  4679. GO
  4680. CREATE
  4681. NONCLUSTERED INDEX [ACT_IDX_HI_DETAIL_TIME]
  4682. ON [dbo].[ACT_HI_DETAIL] (
  4683. [TIME_] ASC
  4684. )
  4685. GO
  4686. CREATE
  4687. NONCLUSTERED INDEX [ACT_IDX_HI_DETAIL_NAME]
  4688. ON [dbo].[ACT_HI_DETAIL] (
  4689. [NAME_] ASC
  4690. )
  4691. GO
  4692. CREATE
  4693. NONCLUSTERED INDEX [ACT_IDX_HI_DETAIL_TASK_ID]
  4694. ON [dbo].[ACT_HI_DETAIL] (
  4695. [TASK_ID_] ASC
  4696. )
  4697. GO
  4698. -- ----------------------------
  4699. -- Primary Key structure for table ACT_HI_DETAIL
  4700. -- ----------------------------
  4701. ALTER TABLE [dbo].[ACT_HI_DETAIL] ADD CONSTRAINT [PK__ACT_HI_D__C4971C0F11158940] PRIMARY KEY CLUSTERED ([ID_])
  4702. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4703. ON [PRIMARY]
  4704. GO
  4705. -- ----------------------------
  4706. -- Indexes structure for table ACT_HI_ENTITYLINK
  4707. -- ----------------------------
  4708. CREATE
  4709. NONCLUSTERED INDEX [ACT_IDX_HI_ENT_LNK_SCOPE]
  4710. ON [dbo].[ACT_HI_ENTITYLINK] (
  4711. [SCOPE_ID_] ASC,
  4712. [SCOPE_TYPE_] ASC,
  4713. [LINK_TYPE_] ASC
  4714. )
  4715. GO
  4716. CREATE
  4717. NONCLUSTERED INDEX [ACT_IDX_HI_ENT_LNK_SCOPE_DEF]
  4718. ON [dbo].[ACT_HI_ENTITYLINK] (
  4719. [SCOPE_DEFINITION_ID_] ASC,
  4720. [SCOPE_TYPE_] ASC,
  4721. [LINK_TYPE_] ASC
  4722. )
  4723. GO
  4724. -- ----------------------------
  4725. -- Primary Key structure for table ACT_HI_ENTITYLINK
  4726. -- ----------------------------
  4727. ALTER TABLE [dbo].[ACT_HI_ENTITYLINK] ADD CONSTRAINT [PK__ACT_HI_E__C4971C0F01142BA1] PRIMARY KEY CLUSTERED ([ID_])
  4728. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4729. ON [PRIMARY]
  4730. GO
  4731. -- ----------------------------
  4732. -- Indexes structure for table ACT_HI_IDENTITYLINK
  4733. -- ----------------------------
  4734. CREATE
  4735. NONCLUSTERED INDEX [ACT_IDX_HI_IDENT_LNK_USER]
  4736. ON [dbo].[ACT_HI_IDENTITYLINK] (
  4737. [USER_ID_] ASC
  4738. )
  4739. GO
  4740. CREATE
  4741. NONCLUSTERED INDEX [ACT_IDX_HI_IDENT_LNK_SCOPE]
  4742. ON [dbo].[ACT_HI_IDENTITYLINK] (
  4743. [SCOPE_ID_] ASC,
  4744. [SCOPE_TYPE_] ASC
  4745. )
  4746. GO
  4747. CREATE
  4748. NONCLUSTERED INDEX [ACT_IDX_HI_IDENT_LNK_SCOPE_DEF]
  4749. ON [dbo].[ACT_HI_IDENTITYLINK] (
  4750. [SCOPE_DEFINITION_ID_] ASC,
  4751. [SCOPE_TYPE_] ASC
  4752. )
  4753. GO
  4754. CREATE
  4755. NONCLUSTERED INDEX [ACT_IDX_HI_IDENT_LNK_TASK]
  4756. ON [dbo].[ACT_HI_IDENTITYLINK] (
  4757. [TASK_ID_] ASC
  4758. )
  4759. GO
  4760. CREATE
  4761. NONCLUSTERED INDEX [ACT_IDX_HI_IDENT_LNK_PROCINST]
  4762. ON [dbo].[ACT_HI_IDENTITYLINK] (
  4763. [PROC_INST_ID_] ASC
  4764. )
  4765. GO
  4766. -- ----------------------------
  4767. -- Primary Key structure for table ACT_HI_IDENTITYLINK
  4768. -- ----------------------------
  4769. ALTER TABLE [dbo].[ACT_HI_IDENTITYLINK] ADD CONSTRAINT [PK__ACT_HI_I__C4971C0F797309D9] PRIMARY KEY CLUSTERED ([ID_])
  4770. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4771. ON [PRIMARY]
  4772. GO
  4773. -- ----------------------------
  4774. -- Indexes structure for table ACT_HI_PROCINST
  4775. -- ----------------------------
  4776. CREATE
  4777. NONCLUSTERED INDEX [ACT_IDX_HI_PRO_INST_END]
  4778. ON [dbo].[ACT_HI_PROCINST] (
  4779. [END_TIME_] ASC
  4780. )
  4781. GO
  4782. CREATE
  4783. NONCLUSTERED INDEX [ACT_IDX_HI_PRO_I_BUSKEY]
  4784. ON [dbo].[ACT_HI_PROCINST] (
  4785. [BUSINESS_KEY_] ASC
  4786. )
  4787. GO
  4788. -- ----------------------------
  4789. -- Uniques structure for table ACT_HI_PROCINST
  4790. -- ----------------------------
  4791. ALTER TABLE [dbo].[ACT_HI_PROCINST] ADD CONSTRAINT [UQ__ACT_HI_P__C034157205A3D694] UNIQUE NONCLUSTERED ([PROC_INST_ID_] ASC)
  4792. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4793. ON [PRIMARY]
  4794. GO
  4795. -- ----------------------------
  4796. -- Primary Key structure for table ACT_HI_PROCINST
  4797. -- ----------------------------
  4798. ALTER TABLE [dbo].[ACT_HI_PROCINST] ADD CONSTRAINT [PK__ACT_HI_P__C4971C0F02C769E9] PRIMARY KEY CLUSTERED ([ID_])
  4799. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4800. ON [PRIMARY]
  4801. GO
  4802. -- ----------------------------
  4803. -- Indexes structure for table ACT_HI_TASKINST
  4804. -- ----------------------------
  4805. CREATE
  4806. NONCLUSTERED INDEX [ACT_IDX_HI_TASK_SCOPE]
  4807. ON [dbo].[ACT_HI_TASKINST] (
  4808. [SCOPE_ID_] ASC,
  4809. [SCOPE_TYPE_] ASC
  4810. )
  4811. GO
  4812. CREATE
  4813. NONCLUSTERED INDEX [ACT_IDX_HI_TASK_SUB_SCOPE]
  4814. ON [dbo].[ACT_HI_TASKINST] (
  4815. [SUB_SCOPE_ID_] ASC,
  4816. [SCOPE_TYPE_] ASC
  4817. )
  4818. GO
  4819. CREATE
  4820. NONCLUSTERED INDEX [ACT_IDX_HI_TASK_SCOPE_DEF]
  4821. ON [dbo].[ACT_HI_TASKINST] (
  4822. [SCOPE_DEFINITION_ID_] ASC,
  4823. [SCOPE_TYPE_] ASC
  4824. )
  4825. GO
  4826. CREATE
  4827. NONCLUSTERED INDEX [ACT_IDX_HI_TASK_INST_PROCINST]
  4828. ON [dbo].[ACT_HI_TASKINST] (
  4829. [PROC_INST_ID_] ASC
  4830. )
  4831. GO
  4832. -- ----------------------------
  4833. -- Primary Key structure for table ACT_HI_TASKINST
  4834. -- ----------------------------
  4835. ALTER TABLE [dbo].[ACT_HI_TASKINST] ADD CONSTRAINT [PK__ACT_HI_T__C4971C0F0E6E26BF] PRIMARY KEY CLUSTERED ([ID_])
  4836. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4837. ON [PRIMARY]
  4838. GO
  4839. -- ----------------------------
  4840. -- Primary Key structure for table ACT_HI_TSK_LOG
  4841. -- ----------------------------
  4842. ALTER TABLE [dbo].[ACT_HI_TSK_LOG] ADD CONSTRAINT [PK__ACT_HI_T__C4971C0F14270015] PRIMARY KEY CLUSTERED ([ID_])
  4843. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4844. ON [PRIMARY]
  4845. GO
  4846. -- ----------------------------
  4847. -- Indexes structure for table ACT_HI_VARINST
  4848. -- ----------------------------
  4849. CREATE
  4850. NONCLUSTERED INDEX [ACT_IDX_HI_PROCVAR_NAME_TYPE]
  4851. ON [dbo].[ACT_HI_VARINST] (
  4852. [NAME_] ASC,
  4853. [VAR_TYPE_] ASC
  4854. )
  4855. GO
  4856. CREATE
  4857. NONCLUSTERED INDEX [ACT_IDX_HI_VAR_SCOPE_ID_TYPE]
  4858. ON [dbo].[ACT_HI_VARINST] (
  4859. [SCOPE_ID_] ASC,
  4860. [SCOPE_TYPE_] ASC
  4861. )
  4862. GO
  4863. CREATE
  4864. NONCLUSTERED INDEX [ACT_IDX_HI_VAR_SUB_ID_TYPE]
  4865. ON [dbo].[ACT_HI_VARINST] (
  4866. [SUB_SCOPE_ID_] ASC,
  4867. [SCOPE_TYPE_] ASC
  4868. )
  4869. GO
  4870. CREATE
  4871. NONCLUSTERED INDEX [ACT_IDX_HI_PROCVAR_PROC_INST]
  4872. ON [dbo].[ACT_HI_VARINST] (
  4873. [PROC_INST_ID_] ASC
  4874. )
  4875. GO
  4876. CREATE
  4877. NONCLUSTERED INDEX [ACT_IDX_HI_PROCVAR_TASK_ID]
  4878. ON [dbo].[ACT_HI_VARINST] (
  4879. [TASK_ID_] ASC
  4880. )
  4881. GO
  4882. CREATE
  4883. NONCLUSTERED INDEX [ACT_IDX_HI_PROCVAR_EXE]
  4884. ON [dbo].[ACT_HI_VARINST] (
  4885. [EXECUTION_ID_] ASC
  4886. )
  4887. GO
  4888. -- ----------------------------
  4889. -- Primary Key structure for table ACT_HI_VARINST
  4890. -- ----------------------------
  4891. ALTER TABLE [dbo].[ACT_HI_VARINST] ADD CONSTRAINT [PK__ACT_HI_V__C4971C0F1DB06A4F] PRIMARY KEY CLUSTERED ([ID_])
  4892. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4893. ON [PRIMARY]
  4894. GO
  4895. -- ----------------------------
  4896. -- Primary Key structure for table ACT_ID_BYTEARRAY
  4897. -- ----------------------------
  4898. ALTER TABLE [dbo].[ACT_ID_BYTEARRAY] ADD CONSTRAINT [PK__ACT_ID_B__C4971C0F2057CCD0] PRIMARY KEY CLUSTERED ([ID_])
  4899. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4900. ON [PRIMARY]
  4901. GO
  4902. -- ----------------------------
  4903. -- Primary Key structure for table ACT_ID_GROUP
  4904. -- ----------------------------
  4905. ALTER TABLE [dbo].[ACT_ID_GROUP] ADD CONSTRAINT [PK__ACT_ID_G__C4971C0F24285DB4] PRIMARY KEY CLUSTERED ([ID_])
  4906. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4907. ON [PRIMARY]
  4908. GO
  4909. -- ----------------------------
  4910. -- Primary Key structure for table ACT_ID_INFO
  4911. -- ----------------------------
  4912. ALTER TABLE [dbo].[ACT_ID_INFO] ADD CONSTRAINT [PK__ACT_ID_I__C4971C0F308E3499] PRIMARY KEY CLUSTERED ([ID_])
  4913. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4914. ON [PRIMARY]
  4915. GO
  4916. -- ----------------------------
  4917. -- Primary Key structure for table ACT_ID_MEMBERSHIP
  4918. -- ----------------------------
  4919. ALTER TABLE [dbo].[ACT_ID_MEMBERSHIP] ADD CONSTRAINT [PK__ACT_ID_M__C2371B0F27F8EE98] PRIMARY KEY CLUSTERED ([USER_ID_], [GROUP_ID_])
  4920. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4921. ON [PRIMARY]
  4922. GO
  4923. -- ----------------------------
  4924. -- Uniques structure for table ACT_ID_PRIV
  4925. -- ----------------------------
  4926. ALTER TABLE [dbo].[ACT_ID_PRIV] ADD CONSTRAINT [ACT_UNIQ_PRIV_NAME] UNIQUE NONCLUSTERED ([NAME_] ASC)
  4927. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4928. ON [PRIMARY]
  4929. GO
  4930. -- ----------------------------
  4931. -- Primary Key structure for table ACT_ID_PRIV
  4932. -- ----------------------------
  4933. ALTER TABLE [dbo].[ACT_ID_PRIV] ADD CONSTRAINT [PK__ACT_ID_P__C4971C0F382F5661] PRIMARY KEY CLUSTERED ([ID_])
  4934. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4935. ON [PRIMARY]
  4936. GO
  4937. -- ----------------------------
  4938. -- Indexes structure for table ACT_ID_PRIV_MAPPING
  4939. -- ----------------------------
  4940. CREATE
  4941. NONCLUSTERED INDEX [ACT_IDX_PRIV_USER]
  4942. ON [dbo].[ACT_ID_PRIV_MAPPING] (
  4943. [USER_ID_] ASC
  4944. )
  4945. GO
  4946. CREATE
  4947. NONCLUSTERED INDEX [ACT_IDX_PRIV_GROUP]
  4948. ON [dbo].[ACT_ID_PRIV_MAPPING] (
  4949. [GROUP_ID_] ASC
  4950. )
  4951. GO
  4952. -- ----------------------------
  4953. -- Primary Key structure for table ACT_ID_PRIV_MAPPING
  4954. -- ----------------------------
  4955. ALTER TABLE [dbo].[ACT_ID_PRIV_MAPPING] ADD CONSTRAINT [PK__ACT_ID_P__C4971C0F3BFFE745] PRIMARY KEY CLUSTERED ([ID_])
  4956. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4957. ON [PRIMARY]
  4958. GO
  4959. -- ----------------------------
  4960. -- Primary Key structure for table ACT_ID_PROPERTY
  4961. -- ----------------------------
  4962. ALTER TABLE [dbo].[ACT_ID_PROPERTY] ADD CONSTRAINT [PK__ACT_ID_P__A7BE44DE1C873BEC] PRIMARY KEY CLUSTERED ([NAME_])
  4963. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4964. ON [PRIMARY]
  4965. GO
  4966. -- ----------------------------
  4967. -- Primary Key structure for table ACT_ID_TOKEN
  4968. -- ----------------------------
  4969. ALTER TABLE [dbo].[ACT_ID_TOKEN] ADD CONSTRAINT [PK__ACT_ID_T__C4971C0F345EC57D] PRIMARY KEY CLUSTERED ([ID_])
  4970. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4971. ON [PRIMARY]
  4972. GO
  4973. -- ----------------------------
  4974. -- Primary Key structure for table ACT_ID_USER
  4975. -- ----------------------------
  4976. ALTER TABLE [dbo].[ACT_ID_USER] ADD CONSTRAINT [PK__ACT_ID_U__C4971C0F2BC97F7C] PRIMARY KEY CLUSTERED ([ID_])
  4977. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4978. ON [PRIMARY]
  4979. GO
  4980. -- ----------------------------
  4981. -- Indexes structure for table ACT_PROCDEF_INFO
  4982. -- ----------------------------
  4983. CREATE
  4984. NONCLUSTERED INDEX [ACT_IDX_INFO_PROCDEF]
  4985. ON [dbo].[ACT_PROCDEF_INFO] (
  4986. [PROC_DEF_ID_] ASC
  4987. )
  4988. GO
  4989. -- ----------------------------
  4990. -- Uniques structure for table ACT_PROCDEF_INFO
  4991. -- ----------------------------
  4992. ALTER TABLE [dbo].[ACT_PROCDEF_INFO] ADD CONSTRAINT [ACT_UNIQ_INFO_PROCDEF] UNIQUE NONCLUSTERED ([PROC_DEF_ID_] ASC)
  4993. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  4994. ON [PRIMARY]
  4995. GO
  4996. -- ----------------------------
  4997. -- Primary Key structure for table ACT_PROCDEF_INFO
  4998. -- ----------------------------
  4999. ALTER TABLE [dbo].[ACT_PROCDEF_INFO] ADD CONSTRAINT [PK__ACT_PROC__C4971C0F5AB9788F] PRIMARY KEY CLUSTERED ([ID_])
  5000. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  5001. ON [PRIMARY]
  5002. GO
  5003. -- ----------------------------
  5004. -- Primary Key structure for table ACT_RE_DEPLOYMENT
  5005. -- ----------------------------
  5006. ALTER TABLE [dbo].[ACT_RE_DEPLOYMENT] ADD CONSTRAINT [PK__ACT_RE_D__C4971C0F41EDCAC5] PRIMARY KEY CLUSTERED ([ID_])
  5007. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  5008. ON [PRIMARY]
  5009. GO
  5010. -- ----------------------------
  5011. -- Primary Key structure for table ACT_RE_MODEL
  5012. -- ----------------------------
  5013. ALTER TABLE [dbo].[ACT_RE_MODEL] ADD CONSTRAINT [PK__ACT_RE_M__C4971C0F46B27FE2] PRIMARY KEY CLUSTERED ([ID_])
  5014. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  5015. ON [PRIMARY]
  5016. GO
  5017. -- ----------------------------
  5018. -- Uniques structure for table ACT_RE_PROCDEF
  5019. -- ----------------------------
  5020. ALTER TABLE [dbo].[ACT_RE_PROCDEF] ADD CONSTRAINT [ACT_UNIQ_PROCDEF] UNIQUE NONCLUSTERED ([KEY_] ASC, [VERSION_] ASC, [DERIVED_VERSION_] ASC, [TENANT_ID_] ASC)
  5021. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  5022. ON [PRIMARY]
  5023. GO
  5024. -- ----------------------------
  5025. -- Primary Key structure for table ACT_RE_PROCDEF
  5026. -- ----------------------------
  5027. ALTER TABLE [dbo].[ACT_RE_PROCDEF] ADD CONSTRAINT [PK__ACT_RE_P__C4971C0F503BEA1C] PRIMARY KEY CLUSTERED ([ID_])
  5028. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  5029. ON [PRIMARY]
  5030. GO
  5031. -- ----------------------------
  5032. -- Indexes structure for table ACT_RU_ACTINST
  5033. -- ----------------------------
  5034. CREATE
  5035. NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_START]
  5036. ON [dbo].[ACT_RU_ACTINST] (
  5037. [START_TIME_] ASC
  5038. )
  5039. GO
  5040. CREATE
  5041. NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_END]
  5042. ON [dbo].[ACT_RU_ACTINST] (
  5043. [END_TIME_] ASC
  5044. )
  5045. GO
  5046. CREATE
  5047. NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_PROC]
  5048. ON [dbo].[ACT_RU_ACTINST] (
  5049. [PROC_INST_ID_] ASC
  5050. )
  5051. GO
  5052. CREATE
  5053. NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_PROC_ACT]
  5054. ON [dbo].[ACT_RU_ACTINST] (
  5055. [PROC_INST_ID_] ASC,
  5056. [ACT_ID_] ASC
  5057. )
  5058. GO
  5059. CREATE
  5060. NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_EXEC]
  5061. ON [dbo].[ACT_RU_ACTINST] (
  5062. [EXECUTION_ID_] ASC
  5063. )
  5064. GO
  5065. CREATE
  5066. NONCLUSTERED INDEX [ACT_IDX_RU_ACTI_EXEC_ACT]
  5067. ON [dbo].[ACT_RU_ACTINST] (
  5068. [EXECUTION_ID_] ASC,
  5069. [ACT_ID_] ASC
  5070. )
  5071. GO
  5072. -- ----------------------------
  5073. -- Primary Key structure for table ACT_RU_ACTINST
  5074. -- ----------------------------
  5075. ALTER TABLE [dbo].[ACT_RU_ACTINST] ADD CONSTRAINT [PK__ACT_RU_A__C4971C0F5E8A0973] PRIMARY KEY CLUSTERED ([ID_])
  5076. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  5077. ON [PRIMARY]
  5078. GO
  5079. -- ----------------------------
  5080. -- Indexes structure for table ACT_RU_DEADLETTER_JOB
  5081. -- ----------------------------
  5082. CREATE
  5083. NONCLUSTERED INDEX [ACT_IDX_DEADLETTER_JOB_EXCEPTION_STACK_ID]
  5084. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  5085. [EXCEPTION_STACK_ID_] ASC
  5086. )
  5087. GO
  5088. CREATE
  5089. NONCLUSTERED INDEX [ACT_IDX_DEADLETTER_JOB_CUSTOM_VALUES_ID]
  5090. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  5091. [CUSTOM_VALUES_ID_] ASC
  5092. )
  5093. GO
  5094. CREATE
  5095. NONCLUSTERED INDEX [ACT_IDX_DJOB_SCOPE]
  5096. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  5097. [SCOPE_ID_] ASC,
  5098. [SCOPE_TYPE_] ASC
  5099. )
  5100. GO
  5101. CREATE
  5102. NONCLUSTERED INDEX [ACT_IDX_DJOB_SUB_SCOPE]
  5103. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  5104. [SUB_SCOPE_ID_] ASC,
  5105. [SCOPE_TYPE_] ASC
  5106. )
  5107. GO
  5108. CREATE
  5109. NONCLUSTERED INDEX [ACT_IDX_DJOB_SCOPE_DEF]
  5110. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  5111. [SCOPE_DEFINITION_ID_] ASC,
  5112. [SCOPE_TYPE_] ASC
  5113. )
  5114. GO
  5115. CREATE
  5116. NONCLUSTERED INDEX [ACT_IDX_DEADLETTER_JOB_EXECUTION_ID]
  5117. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  5118. [EXECUTION_ID_] ASC
  5119. )
  5120. GO
  5121. CREATE
  5122. NONCLUSTERED INDEX [ACT_IDX_DEADLETTER_JOB_PROCESS_INSTANCE_ID]
  5123. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  5124. [PROCESS_INSTANCE_ID_] ASC
  5125. )
  5126. GO
  5127. CREATE
  5128. NONCLUSTERED INDEX [ACT_IDX_DEADLETTER_JOB_PROC_DEF_ID]
  5129. ON [dbo].[ACT_RU_DEADLETTER_JOB] (
  5130. [PROC_DEF_ID_] ASC
  5131. )
  5132. GO
  5133. -- ----------------------------
  5134. -- Primary Key structure for table ACT_RU_DEADLETTER_JOB
  5135. -- ----------------------------
  5136. ALTER TABLE [dbo].[ACT_RU_DEADLETTER_JOB] ADD CONSTRAINT [PK__ACT_RU_D__C4971C0F30C33EC3] PRIMARY KEY CLUSTERED ([ID_])
  5137. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  5138. ON [PRIMARY]
  5139. GO
  5140. -- ----------------------------
  5141. -- Indexes structure for table ACT_RU_ENTITYLINK
  5142. -- ----------------------------
  5143. CREATE
  5144. NONCLUSTERED INDEX [ACT_IDX_ENT_LNK_SCOPE]
  5145. ON [dbo].[ACT_RU_ENTITYLINK] (
  5146. [SCOPE_ID_] ASC,
  5147. [SCOPE_TYPE_] ASC,
  5148. [LINK_TYPE_] ASC
  5149. )
  5150. GO
  5151. CREATE
  5152. NONCLUSTERED INDEX [ACT_IDX_ENT_LNK_SCOPE_DEF]
  5153. ON [dbo].[ACT_RU_ENTITYLINK] (
  5154. [SCOPE_DEFINITION_ID_] ASC,
  5155. [SCOPE_TYPE_] ASC,
  5156. [LINK_TYPE_] ASC
  5157. )
  5158. GO
  5159. -- ----------------------------
  5160. -- Primary Key structure for table ACT_RU_ENTITYLINK
  5161. -- ----------------------------
  5162. ALTER TABLE [dbo].[ACT_RU_ENTITYLINK] ADD CONSTRAINT [PK__ACT_RU_E__C4971C0F7D439ABD] PRIMARY KEY CLUSTERED ([ID_])
  5163. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  5164. ON [PRIMARY]
  5165. GO
  5166. -- ----------------------------
  5167. -- Indexes structure for table ACT_RU_EVENT_SUBSCR
  5168. -- ----------------------------
  5169. CREATE
  5170. NONCLUSTERED INDEX [ACT_IDX_EVENT_SUBSCR_CONFIG_]
  5171. ON [dbo].[ACT_RU_EVENT_SUBSCR] (
  5172. [CONFIGURATION_] ASC
  5173. )
  5174. GO
  5175. CREATE
  5176. NONCLUSTERED INDEX [ACT_IDX_EVENT_SUBSCR_EXEC_ID]
  5177. ON [dbo].[ACT_RU_EVENT_SUBSCR] (
  5178. [EXECUTION_ID_] ASC
  5179. )
  5180. GO
  5181. -- ----------------------------
  5182. -- Primary Key structure for table ACT_RU_EVENT_SUBSCR
  5183. -- ----------------------------
  5184. ALTER TABLE [dbo].[ACT_RU_EVENT_SUBSCR] ADD CONSTRAINT [PK__ACT_RU_E__C4971C0F04E4BC85] PRIMARY KEY CLUSTERED ([ID_])
  5185. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  5186. ON [PRIMARY]
  5187. GO
  5188. -- ----------------------------
  5189. -- Indexes structure for table ACT_RU_EXECUTION
  5190. -- ----------------------------
  5191. CREATE
  5192. NONCLUSTERED INDEX [ACT_IDX_EXEC_BUSKEY]
  5193. ON [dbo].[ACT_RU_EXECUTION] (
  5194. [BUSINESS_KEY_] ASC
  5195. )
  5196. GO
  5197. CREATE
  5198. NONCLUSTERED INDEX [ACT_IDX_EXEC_ROOT]
  5199. ON [dbo].[ACT_RU_EXECUTION] (
  5200. [ROOT_PROC_INST_ID_] ASC
  5201. )
  5202. GO
  5203. CREATE
  5204. NONCLUSTERED INDEX [ACT_IDX_EXECUTION_PROC]
  5205. ON [dbo].[ACT_RU_EXECUTION] (
  5206. [PROC_DEF_ID_] ASC
  5207. )
  5208. GO
  5209. CREATE
  5210. NONCLUSTERED INDEX [ACT_IDX_EXECUTION_PARENT]
  5211. ON [dbo].[ACT_RU_EXECUTION] (
  5212. [PARENT_ID_] ASC
  5213. )
  5214. GO
  5215. CREATE
  5216. NONCLUSTERED INDEX [ACT_IDX_EXECUTION_SUPER]
  5217. ON [dbo].[ACT_RU_EXECUTION] (
  5218. [SUPER_EXEC_] ASC
  5219. )
  5220. GO
  5221. CREATE
  5222. NONCLUSTERED INDEX [ACT_IDX_EXECUTION_IDANDREV]
  5223. ON [dbo].[ACT_RU_EXECUTION] (
  5224. [ID_] ASC,
  5225. [REV_] ASC
  5226. )
  5227. GO
  5228. CREATE
  5229. NONCLUSTERED INDEX [ACT_IDX_EXEC_PROC_INST_ID]
  5230. ON [dbo].[ACT_RU_EXECUTION] (
  5231. [PROC_INST_ID_] ASC
  5232. )
  5233. GO
  5234. -- ----------------------------
  5235. -- Primary Key structure for table ACT_RU_EXECUTION
  5236. -- ----------------------------
  5237. ALTER TABLE [dbo].[ACT_RU_EXECUTION] ADD CONSTRAINT [PK__ACT_RU_E__C4971C0F4B7734FF] PRIMARY KEY CLUSTERED ([ID_])
  5238. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  5239. ON [PRIMARY]
  5240. GO
  5241. -- ----------------------------
  5242. -- Primary Key structure for table ACT_RU_HISTORY_JOB
  5243. -- ----------------------------
  5244. ALTER TABLE [dbo].[ACT_RU_HISTORY_JOB] ADD CONSTRAINT [PK__ACT_RU_H__C4971C0F3587F3E0] PRIMARY KEY CLUSTERED ([ID_])
  5245. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  5246. ON [PRIMARY]
  5247. GO
  5248. -- ----------------------------
  5249. -- Indexes structure for table ACT_RU_IDENTITYLINK
  5250. -- ----------------------------
  5251. CREATE
  5252. NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_USER]
  5253. ON [dbo].[ACT_RU_IDENTITYLINK] (
  5254. [USER_ID_] ASC
  5255. )
  5256. GO
  5257. CREATE
  5258. NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_GROUP]
  5259. ON [dbo].[ACT_RU_IDENTITYLINK] (
  5260. [GROUP_ID_] ASC
  5261. )
  5262. GO
  5263. CREATE
  5264. NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_SCOPE]
  5265. ON [dbo].[ACT_RU_IDENTITYLINK] (
  5266. [SCOPE_ID_] ASC,
  5267. [SCOPE_TYPE_] ASC
  5268. )
  5269. GO
  5270. CREATE
  5271. NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_SCOPE_DEF]
  5272. ON [dbo].[ACT_RU_IDENTITYLINK] (
  5273. [SCOPE_DEFINITION_ID_] ASC,
  5274. [SCOPE_TYPE_] ASC
  5275. )
  5276. GO
  5277. CREATE
  5278. NONCLUSTERED INDEX [ACT_IDX_ATHRZ_PROCEDEF]
  5279. ON [dbo].[ACT_RU_IDENTITYLINK] (
  5280. [PROC_DEF_ID_] ASC
  5281. )
  5282. GO
  5283. CREATE
  5284. NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_TASK]
  5285. ON [dbo].[ACT_RU_IDENTITYLINK] (
  5286. [TASK_ID_] ASC
  5287. )
  5288. GO
  5289. CREATE
  5290. NONCLUSTERED INDEX [ACT_IDX_IDENT_LNK_PROCINST]
  5291. ON [dbo].[ACT_RU_IDENTITYLINK] (
  5292. [PROC_INST_ID_] ASC
  5293. )
  5294. GO
  5295. -- ----------------------------
  5296. -- Primary Key structure for table ACT_RU_IDENTITYLINK
  5297. -- ----------------------------
  5298. ALTER TABLE [dbo].[ACT_RU_IDENTITYLINK] ADD CONSTRAINT [PK__ACT_RU_I__C4971C0F75A278F5] PRIMARY KEY CLUSTERED ([ID_])
  5299. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  5300. ON [PRIMARY]
  5301. GO
  5302. -- ----------------------------
  5303. -- Indexes structure for table ACT_RU_JOB
  5304. -- ----------------------------
  5305. CREATE
  5306. NONCLUSTERED INDEX [ACT_IDX_JOB_EXCEPTION_STACK_ID]
  5307. ON [dbo].[ACT_RU_JOB] (
  5308. [EXCEPTION_STACK_ID_] ASC
  5309. )
  5310. GO
  5311. CREATE
  5312. NONCLUSTERED INDEX [ACT_IDX_JOB_CUSTOM_VALUES_ID]
  5313. ON [dbo].[ACT_RU_JOB] (
  5314. [CUSTOM_VALUES_ID_] ASC
  5315. )
  5316. GO
  5317. CREATE
  5318. NONCLUSTERED INDEX [ACT_IDX_JOB_SCOPE]
  5319. ON [dbo].[ACT_RU_JOB] (
  5320. [SCOPE_ID_] ASC,
  5321. [SCOPE_TYPE_] ASC
  5322. )
  5323. GO
  5324. CREATE
  5325. NONCLUSTERED INDEX [ACT_IDX_JOB_SUB_SCOPE]
  5326. ON [dbo].[ACT_RU_JOB] (
  5327. [SUB_SCOPE_ID_] ASC,
  5328. [SCOPE_TYPE_] ASC
  5329. )
  5330. GO
  5331. CREATE
  5332. NONCLUSTERED INDEX [ACT_IDX_JOB_SCOPE_DEF]
  5333. ON [dbo].[ACT_RU_JOB] (
  5334. [SCOPE_DEFINITION_ID_] ASC,
  5335. [SCOPE_TYPE_] ASC
  5336. )
  5337. GO
  5338. CREATE
  5339. NONCLUSTERED INDEX [ACT_IDX_JOB_EXECUTION_ID]
  5340. ON [dbo].[ACT_RU_JOB] (
  5341. [EXECUTION_ID_] ASC
  5342. )
  5343. GO
  5344. CREATE
  5345. NONCLUSTERED INDEX [ACT_IDX_JOB_PROCESS_INSTANCE_ID]
  5346. ON [dbo].[ACT_RU_JOB] (
  5347. [PROCESS_INSTANCE_ID_] ASC
  5348. )
  5349. GO
  5350. CREATE
  5351. NONCLUSTERED INDEX [ACT_IDX_JOB_PROC_DEF_ID]
  5352. ON [dbo].[ACT_RU_JOB] (
  5353. [PROC_DEF_ID_] ASC
  5354. )
  5355. GO
  5356. -- ----------------------------
  5357. -- Primary Key structure for table ACT_RU_JOB
  5358. -- ----------------------------
  5359. ALTER TABLE [dbo].[ACT_RU_JOB] ADD CONSTRAINT [PK__ACT_RU_J__C4971C0F22751F6C] PRIMARY KEY CLUSTERED ([ID_])
  5360. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  5361. ON [PRIMARY]
  5362. GO
  5363. -- ----------------------------
  5364. -- Indexes structure for table ACT_RU_SUSPENDED_JOB
  5365. -- ----------------------------
  5366. CREATE
  5367. NONCLUSTERED INDEX [ACT_IDX_SUSPENDED_JOB_EXCEPTION_STACK_ID]
  5368. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  5369. [EXCEPTION_STACK_ID_] ASC
  5370. )
  5371. GO
  5372. CREATE
  5373. NONCLUSTERED INDEX [ACT_IDX_SUSPENDED_JOB_CUSTOM_VALUES_ID]
  5374. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  5375. [CUSTOM_VALUES_ID_] ASC
  5376. )
  5377. GO
  5378. CREATE
  5379. NONCLUSTERED INDEX [ACT_IDX_SJOB_SCOPE]
  5380. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  5381. [SCOPE_ID_] ASC,
  5382. [SCOPE_TYPE_] ASC
  5383. )
  5384. GO
  5385. CREATE
  5386. NONCLUSTERED INDEX [ACT_IDX_SJOB_SUB_SCOPE]
  5387. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  5388. [SUB_SCOPE_ID_] ASC,
  5389. [SCOPE_TYPE_] ASC
  5390. )
  5391. GO
  5392. CREATE
  5393. NONCLUSTERED INDEX [ACT_IDX_SJOB_SCOPE_DEF]
  5394. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  5395. [SCOPE_DEFINITION_ID_] ASC,
  5396. [SCOPE_TYPE_] ASC
  5397. )
  5398. GO
  5399. CREATE
  5400. NONCLUSTERED INDEX [ACT_IDX_SUSPENDED_JOB_EXECUTION_ID]
  5401. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  5402. [EXECUTION_ID_] ASC
  5403. )
  5404. GO
  5405. CREATE
  5406. NONCLUSTERED INDEX [ACT_IDX_SUSPENDED_JOB_PROCESS_INSTANCE_ID]
  5407. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  5408. [PROCESS_INSTANCE_ID_] ASC
  5409. )
  5410. GO
  5411. CREATE
  5412. NONCLUSTERED INDEX [ACT_IDX_SUSPENDED_JOB_PROC_DEF_ID]
  5413. ON [dbo].[ACT_RU_SUSPENDED_JOB] (
  5414. [PROC_DEF_ID_] ASC
  5415. )
  5416. GO
  5417. -- ----------------------------
  5418. -- Primary Key structure for table ACT_RU_SUSPENDED_JOB
  5419. -- ----------------------------
  5420. ALTER TABLE [dbo].[ACT_RU_SUSPENDED_JOB] ADD CONSTRAINT [PK__ACT_RU_S__C4971C0F2BFE89A6] PRIMARY KEY CLUSTERED ([ID_])
  5421. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  5422. ON [PRIMARY]
  5423. GO
  5424. -- ----------------------------
  5425. -- Indexes structure for table ACT_RU_TASK
  5426. -- ----------------------------
  5427. CREATE
  5428. NONCLUSTERED INDEX [ACT_IDX_TASK_CREATE]
  5429. ON [dbo].[ACT_RU_TASK] (
  5430. [CREATE_TIME_] ASC
  5431. )
  5432. GO
  5433. CREATE
  5434. NONCLUSTERED INDEX [ACT_IDX_TASK_SCOPE]
  5435. ON [dbo].[ACT_RU_TASK] (
  5436. [SCOPE_ID_] ASC,
  5437. [SCOPE_TYPE_] ASC
  5438. )
  5439. GO
  5440. CREATE
  5441. NONCLUSTERED INDEX [ACT_IDX_TASK_SUB_SCOPE]
  5442. ON [dbo].[ACT_RU_TASK] (
  5443. [SUB_SCOPE_ID_] ASC,
  5444. [SCOPE_TYPE_] ASC
  5445. )
  5446. GO
  5447. CREATE
  5448. NONCLUSTERED INDEX [ACT_IDX_TASK_SCOPE_DEF]
  5449. ON [dbo].[ACT_RU_TASK] (
  5450. [SCOPE_DEFINITION_ID_] ASC,
  5451. [SCOPE_TYPE_] ASC
  5452. )
  5453. GO
  5454. CREATE
  5455. NONCLUSTERED INDEX [ACT_IDX_TASK_EXEC]
  5456. ON [dbo].[ACT_RU_TASK] (
  5457. [EXECUTION_ID_] ASC
  5458. )
  5459. GO
  5460. CREATE
  5461. NONCLUSTERED INDEX [ACT_IDX_TASK_PROCINST]
  5462. ON [dbo].[ACT_RU_TASK] (
  5463. [PROC_INST_ID_] ASC
  5464. )
  5465. GO
  5466. CREATE
  5467. NONCLUSTERED INDEX [ACT_IDX_TASK_PROC_DEF_ID]
  5468. ON [dbo].[ACT_RU_TASK] (
  5469. [PROC_DEF_ID_] ASC
  5470. )
  5471. GO
  5472. -- ----------------------------
  5473. -- Primary Key structure for table ACT_RU_TASK
  5474. -- ----------------------------
  5475. ALTER TABLE [dbo].[ACT_RU_TASK] ADD CONSTRAINT [PK__ACT_RU_T__C4971C0F09A971A2] PRIMARY KEY CLUSTERED ([ID_])
  5476. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  5477. ON [PRIMARY]
  5478. GO
  5479. -- ----------------------------
  5480. -- Indexes structure for table ACT_RU_TIMER_JOB
  5481. -- ----------------------------
  5482. CREATE
  5483. NONCLUSTERED INDEX [ACT_IDX_TIMER_JOB_EXCEPTION_STACK_ID]
  5484. ON [dbo].[ACT_RU_TIMER_JOB] (
  5485. [EXCEPTION_STACK_ID_] ASC
  5486. )
  5487. GO
  5488. CREATE
  5489. NONCLUSTERED INDEX [ACT_IDX_TIMER_JOB_CUSTOM_VALUES_ID]
  5490. ON [dbo].[ACT_RU_TIMER_JOB] (
  5491. [CUSTOM_VALUES_ID_] ASC
  5492. )
  5493. GO
  5494. CREATE
  5495. NONCLUSTERED INDEX [ACT_IDX_TJOB_SCOPE]
  5496. ON [dbo].[ACT_RU_TIMER_JOB] (
  5497. [SCOPE_ID_] ASC,
  5498. [SCOPE_TYPE_] ASC
  5499. )
  5500. GO
  5501. CREATE
  5502. NONCLUSTERED INDEX [ACT_IDX_TJOB_SUB_SCOPE]
  5503. ON [dbo].[ACT_RU_TIMER_JOB] (
  5504. [SUB_SCOPE_ID_] ASC,
  5505. [SCOPE_TYPE_] ASC
  5506. )
  5507. GO
  5508. CREATE
  5509. NONCLUSTERED INDEX [ACT_IDX_TJOB_SCOPE_DEF]
  5510. ON [dbo].[ACT_RU_TIMER_JOB] (
  5511. [SCOPE_DEFINITION_ID_] ASC,
  5512. [SCOPE_TYPE_] ASC
  5513. )
  5514. GO
  5515. CREATE
  5516. NONCLUSTERED INDEX [ACT_IDX_TIMER_JOB_EXECUTION_ID]
  5517. ON [dbo].[ACT_RU_TIMER_JOB] (
  5518. [EXECUTION_ID_] ASC
  5519. )
  5520. GO
  5521. CREATE
  5522. NONCLUSTERED INDEX [ACT_IDX_TIMER_JOB_PROCESS_INSTANCE_ID]
  5523. ON [dbo].[ACT_RU_TIMER_JOB] (
  5524. [PROCESS_INSTANCE_ID_] ASC
  5525. )
  5526. GO
  5527. CREATE
  5528. NONCLUSTERED INDEX [ACT_IDX_TIMER_JOB_PROC_DEF_ID]
  5529. ON [dbo].[ACT_RU_TIMER_JOB] (
  5530. [PROC_DEF_ID_] ASC
  5531. )
  5532. GO
  5533. -- ----------------------------
  5534. -- Primary Key structure for table ACT_RU_TIMER_JOB
  5535. -- ----------------------------
  5536. ALTER TABLE [dbo].[ACT_RU_TIMER_JOB] ADD CONSTRAINT [PK__ACT_RU_T__C4971C0F2739D489] PRIMARY KEY CLUSTERED ([ID_])
  5537. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  5538. ON [PRIMARY]
  5539. GO
  5540. -- ----------------------------
  5541. -- Indexes structure for table ACT_RU_VARIABLE
  5542. -- ----------------------------
  5543. CREATE
  5544. NONCLUSTERED INDEX [ACT_IDX_RU_VAR_SCOPE_ID_TYPE]
  5545. ON [dbo].[ACT_RU_VARIABLE] (
  5546. [SCOPE_ID_] ASC,
  5547. [SCOPE_TYPE_] ASC
  5548. )
  5549. GO
  5550. CREATE
  5551. NONCLUSTERED INDEX [ACT_IDX_RU_VAR_SUB_ID_TYPE]
  5552. ON [dbo].[ACT_RU_VARIABLE] (
  5553. [SUB_SCOPE_ID_] ASC,
  5554. [SCOPE_TYPE_] ASC
  5555. )
  5556. GO
  5557. CREATE
  5558. NONCLUSTERED INDEX [ACT_IDX_VARIABLE_BA]
  5559. ON [dbo].[ACT_RU_VARIABLE] (
  5560. [BYTEARRAY_ID_] ASC
  5561. )
  5562. GO
  5563. CREATE
  5564. NONCLUSTERED INDEX [ACT_IDX_VARIABLE_TASK_ID]
  5565. ON [dbo].[ACT_RU_VARIABLE] (
  5566. [TASK_ID_] ASC
  5567. )
  5568. GO
  5569. CREATE
  5570. NONCLUSTERED INDEX [ACT_IDX_VARIABLE_EXEC]
  5571. ON [dbo].[ACT_RU_VARIABLE] (
  5572. [EXECUTION_ID_] ASC
  5573. )
  5574. GO
  5575. CREATE
  5576. NONCLUSTERED INDEX [ACT_IDX_VARIABLE_PROCINST]
  5577. ON [dbo].[ACT_RU_VARIABLE] (
  5578. [PROC_INST_ID_] ASC
  5579. )
  5580. GO
  5581. -- ----------------------------
  5582. -- Primary Key structure for table ACT_RU_VARIABLE
  5583. -- ----------------------------
  5584. ALTER TABLE [dbo].[ACT_RU_VARIABLE] ADD CONSTRAINT [PK__ACT_RU_V__C4971C0F18EBB532] PRIMARY KEY CLUSTERED ([ID_])
  5585. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  5586. ON [PRIMARY]
  5587. GO
  5588. -- ----------------------------
  5589. -- Foreign Keys structure for table ACT_APP_APPDEF
  5590. -- ----------------------------
  5591. 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
  5592. GO
  5593. -- ----------------------------
  5594. -- Foreign Keys structure for table ACT_APP_DEPLOYMENT_RESOURCE
  5595. -- ----------------------------
  5596. 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
  5597. GO
  5598. -- ----------------------------
  5599. -- Foreign Keys structure for table ACT_CMMN_CASEDEF
  5600. -- ----------------------------
  5601. 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
  5602. GO
  5603. -- ----------------------------
  5604. -- Foreign Keys structure for table ACT_CMMN_DEPLOYMENT_RESOURCE
  5605. -- ----------------------------
  5606. 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
  5607. GO
  5608. -- ----------------------------
  5609. -- Foreign Keys structure for table ACT_CMMN_RU_CASE_INST
  5610. -- ----------------------------
  5611. 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
  5612. GO
  5613. -- ----------------------------
  5614. -- Foreign Keys structure for table ACT_CMMN_RU_MIL_INST
  5615. -- ----------------------------
  5616. 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
  5617. GO
  5618. 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
  5619. GO
  5620. -- ----------------------------
  5621. -- Foreign Keys structure for table ACT_CMMN_RU_PLAN_ITEM_INST
  5622. -- ----------------------------
  5623. 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
  5624. GO
  5625. 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
  5626. GO
  5627. -- ----------------------------
  5628. -- Foreign Keys structure for table ACT_CMMN_RU_SENTRY_PART_INST
  5629. -- ----------------------------
  5630. 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
  5631. GO
  5632. 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
  5633. GO
  5634. 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
  5635. GO
  5636. -- ----------------------------
  5637. -- Foreign Keys structure for table ACT_DE_MODEL_RELATION
  5638. -- ----------------------------
  5639. 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
  5640. GO
  5641. 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
  5642. GO
  5643. -- ----------------------------
  5644. -- Foreign Keys structure for table ACT_GE_BYTEARRAY
  5645. -- ----------------------------
  5646. 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
  5647. GO
  5648. -- ----------------------------
  5649. -- Foreign Keys structure for table ACT_ID_MEMBERSHIP
  5650. -- ----------------------------
  5651. 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
  5652. GO
  5653. 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
  5654. GO
  5655. -- ----------------------------
  5656. -- Foreign Keys structure for table ACT_ID_PRIV_MAPPING
  5657. -- ----------------------------
  5658. 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
  5659. GO
  5660. -- ----------------------------
  5661. -- Foreign Keys structure for table ACT_PROCDEF_INFO
  5662. -- ----------------------------
  5663. 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
  5664. GO
  5665. 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
  5666. GO
  5667. -- ----------------------------
  5668. -- Foreign Keys structure for table ACT_RE_MODEL
  5669. -- ----------------------------
  5670. 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
  5671. GO
  5672. 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
  5673. GO
  5674. 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
  5675. GO
  5676. -- ----------------------------
  5677. -- Foreign Keys structure for table ACT_RU_DEADLETTER_JOB
  5678. -- ----------------------------
  5679. 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
  5680. GO
  5681. 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
  5682. GO
  5683. 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
  5684. GO
  5685. 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
  5686. GO
  5687. 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
  5688. GO
  5689. -- ----------------------------
  5690. -- Foreign Keys structure for table ACT_RU_EVENT_SUBSCR
  5691. -- ----------------------------
  5692. 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
  5693. GO
  5694. -- ----------------------------
  5695. -- Foreign Keys structure for table ACT_RU_EXECUTION
  5696. -- ----------------------------
  5697. 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
  5698. GO
  5699. 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
  5700. GO
  5701. 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
  5702. GO
  5703. -- ----------------------------
  5704. -- Foreign Keys structure for table ACT_RU_IDENTITYLINK
  5705. -- ----------------------------
  5706. 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
  5707. GO
  5708. 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
  5709. GO
  5710. 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
  5711. GO
  5712. -- ----------------------------
  5713. -- Foreign Keys structure for table ACT_RU_JOB
  5714. -- ----------------------------
  5715. 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
  5716. GO
  5717. 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
  5718. GO
  5719. 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
  5720. GO
  5721. 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
  5722. GO
  5723. 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
  5724. GO
  5725. -- ----------------------------
  5726. -- Foreign Keys structure for table ACT_RU_SUSPENDED_JOB
  5727. -- ----------------------------
  5728. 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
  5729. GO
  5730. 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
  5731. GO
  5732. 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
  5733. GO
  5734. 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
  5735. GO
  5736. 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
  5737. GO
  5738. -- ----------------------------
  5739. -- Foreign Keys structure for table ACT_RU_TASK
  5740. -- ----------------------------
  5741. 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
  5742. GO
  5743. 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
  5744. GO
  5745. 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
  5746. GO
  5747. -- ----------------------------
  5748. -- Foreign Keys structure for table ACT_RU_TIMER_JOB
  5749. -- ----------------------------
  5750. 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
  5751. GO
  5752. 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
  5753. GO
  5754. 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
  5755. GO
  5756. 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
  5757. GO
  5758. 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
  5759. GO
  5760. -- ----------------------------
  5761. -- Foreign Keys structure for table ACT_RU_VARIABLE
  5762. -- ----------------------------
  5763. 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
  5764. GO
  5765. 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
  5766. GO
  5767. 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
  5768. GO