T20240227220217.pdma.json 336KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763
  1. {
  2. "name": "global_funding(支付)",
  3. "describe": "global_funding(支付)",
  4. "avatar": "",
  5. "version": "4.6.0",
  6. "createdTime": "2024-2-26 20:14:20",
  7. "updatedTime": "2024-2-27 22:02:17",
  8. "dbConns": [],
  9. "profile": {
  10. "default": {
  11. "db": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E",
  12. "dbConn": "0FAC270E-2DD4-4BF5-A0E3-4DF927EB4AEC",
  13. "entityInitFields": [
  14. {
  15. "defKey": "TENANT_ID",
  16. "defName": "租户号",
  17. "comment": "",
  18. "type": "",
  19. "len": 32,
  20. "scale": "",
  21. "primaryKey": false,
  22. "notNull": false,
  23. "autoIncrement": false,
  24. "defaultValue": "",
  25. "hideInGraph": true,
  26. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  27. "refDict": "",
  28. "uiHint": "",
  29. "id": "ADB3AD14-6603-43E2-8261-114E32442B5B"
  30. },
  31. {
  32. "defKey": "REVISION",
  33. "defName": "乐观锁",
  34. "comment": "",
  35. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  36. "type": "",
  37. "len": "",
  38. "scale": "",
  39. "primaryKey": false,
  40. "notNull": false,
  41. "autoIncrement": false,
  42. "defaultValue": "",
  43. "hideInGraph": true,
  44. "refDict": "",
  45. "uiHint": "",
  46. "id": "92BF430E-01FA-4AEF-944F-25A142632654"
  47. },
  48. {
  49. "defKey": "CREATED_BY",
  50. "defName": "创建人",
  51. "comment": "",
  52. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  53. "type": "",
  54. "len": 32,
  55. "scale": "",
  56. "primaryKey": false,
  57. "notNull": false,
  58. "autoIncrement": false,
  59. "defaultValue": "",
  60. "hideInGraph": true,
  61. "refDict": "",
  62. "uiHint": "",
  63. "id": "C8BE2C7A-8251-4ADD-BB4F-411C5754DA62"
  64. },
  65. {
  66. "defKey": "CREATED_TIME",
  67. "defName": "创建时间",
  68. "comment": "",
  69. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  70. "type": "",
  71. "len": "",
  72. "scale": "",
  73. "primaryKey": false,
  74. "notNull": false,
  75. "autoIncrement": false,
  76. "defaultValue": "",
  77. "hideInGraph": true,
  78. "refDict": "",
  79. "uiHint": "",
  80. "id": "4E471FD6-3E73-4A90-B660-51598A482409"
  81. },
  82. {
  83. "defKey": "UPDATED_BY",
  84. "defName": "更新人",
  85. "comment": "",
  86. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  87. "type": "",
  88. "len": 32,
  89. "scale": "",
  90. "primaryKey": false,
  91. "notNull": false,
  92. "autoIncrement": false,
  93. "defaultValue": "",
  94. "hideInGraph": true,
  95. "refDict": "",
  96. "uiHint": "",
  97. "id": "0DC24AA9-4CD0-45D8-95CF-FA546BE343AB"
  98. },
  99. {
  100. "defKey": "UPDATED_TIME",
  101. "defName": "更新时间",
  102. "comment": "",
  103. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  104. "type": "",
  105. "len": "",
  106. "scale": "",
  107. "primaryKey": false,
  108. "notNull": false,
  109. "autoIncrement": false,
  110. "defaultValue": "",
  111. "hideInGraph": true,
  112. "refDict": "",
  113. "uiHint": "",
  114. "id": "09F64AC4-4DEE-428F-AF64-4C103884E1AC"
  115. }
  116. ],
  117. "entityInitProperties": {
  118. "partitioned by": "(date string)",
  119. "row format delimited": "",
  120. "fields terminated by ','": "",
  121. "collection items terminated by '-'": "",
  122. "map keys terminated by ':'": "",
  123. "store as textfile;": ""
  124. }
  125. },
  126. "javaHome": "",
  127. "sql": {
  128. "delimiter": ""
  129. },
  130. "dataTypeSupports": [
  131. {
  132. "defKey": "MYSQL",
  133. "id": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E"
  134. },
  135. {
  136. "defKey": "ORACLE",
  137. "id": "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542"
  138. },
  139. {
  140. "defKey": "SQLServer",
  141. "id": "BFC87171-C74F-494A-B7C2-76B9C55FACC9"
  142. },
  143. {
  144. "defKey": "PostgreSQL",
  145. "id": "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022"
  146. },
  147. {
  148. "defKey": "DB2",
  149. "id": "89504F5D-94BF-4C9E-8B2E-44F37305FED5"
  150. },
  151. {
  152. "defKey": "DM",
  153. "id": "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307"
  154. },
  155. {
  156. "defKey": "GaussDB",
  157. "id": "592C7013-143D-4E7B-AF64-0D7BF1E28230"
  158. },
  159. {
  160. "defKey": "Kingbase",
  161. "id": "77BD85E5-9D0D-4096-8427-CBA306FC9C6A"
  162. },
  163. {
  164. "defKey": "GBase",
  165. "id": "56F4B55B-F0B8-4049-9E6B-50B95C1D793A"
  166. },
  167. {
  168. "defKey": "MaxCompute",
  169. "id": "11D1FB71-A587-4217-89BA-611B8A1F83E0"
  170. },
  171. {
  172. "defKey": "SQLite",
  173. "id": "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1"
  174. },
  175. {
  176. "defKey": "Hive",
  177. "id": "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2"
  178. },
  179. {
  180. "defKey": "JAVA",
  181. "id": "797A1496-D649-4261-89B4-544132EC3F36"
  182. },
  183. {
  184. "defKey": "JavaMybatis",
  185. "id": "895CFD1D-4273-4D32-A2C4-CAC70200AB5B"
  186. },
  187. {
  188. "defKey": "JavaMybatisPlus",
  189. "id": "A2EE7B4A-CE62-4290-B00C-B26C1BF18073"
  190. },
  191. {
  192. "defKey": "C#",
  193. "id": "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30"
  194. },
  195. {
  196. "defKey": "Golang",
  197. "id": "B91D99E0-9B7C-416C-8737-B760957DAF09"
  198. },
  199. {
  200. "defKey": "Rust",
  201. "id": "BDF457FD-9F98-4AC3-A705-7587B00A3BAB"
  202. },
  203. {
  204. "defKey": "Doris",
  205. "id": "483F9346-C99E-4014-A1D2-A554606BD8A3"
  206. }
  207. ],
  208. "codeTemplates": [
  209. {
  210. "type": "appCode",
  211. "applyFor": "797A1496-D649-4261-89B4-544132EC3F36",
  212. " JpaBean": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.entity;\n$blankline\nimport io.swagger.annotations.ApiModel;\nimport io.swagger.annotations.ApiModelProperty;\nimport javax.persistence.*;\nimport java.io.Serializable;\nimport java.util.Date;\n$blankline\n\n /**\n * {{=it.entity.defName}};{{=it.entity.comment}}\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@ApiModel(value = \"{{=it.entity.defName}}\",description = \"{{=it.entity.comment}}\")\n@Table(name=\"{{=it.entity.defKey}}\")\npublic class {{=beanClass}} implements Serializable,Cloneable{\n{{~it.entity.fields:field:index}}\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n {{? field.primaryKey }}\n @Id\n @GeneratedValue\n {{?}}\n @ApiModelProperty(name = \"{{=field.defName}}\",notes = \"{{=field.comment}}\")\n private {{=field.type}} {{=it.func.camel(field.defKey,false)}} ;\n{{~}}\n$blankline\n\n{{~it.entity.fields:field:index}}\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n public {{=field.type}} get{{=it.func.camel(field.defKey,true)}}(){\n return this.{{=it.func.camel(field.defKey,false)}};\n }\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n public void set{{=it.func.camel(field.defKey,true)}}({{=field.type}} {{= it.func.camel(field.defKey,false) }}){\n this.{{=it.func.camel(field.defKey,false)}}={{=it.func.camel(field.defKey,false)}};\n }\n{{~}}\n}"
  213. },
  214. {
  215. "type": "appCode",
  216. "applyFor": "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30",
  217. "Default": "using System;\nusing System.Collections.Generic;\n\n$blankline\n{{\n var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n}}\n/*\n * @author : http://www.chiner.com.cn\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n * @desc : {{=it.func.join(it.entity.defName,it.entity.comment,'-')}}\n */\nnamespace PDManer.Application\n{\n public partial class {{=it.func.camel(it.entity.defKey,true) }}\n {\n \n {{~it.entity.fields:field:index}}\n /// <summary>\n /// {{=it.func.join(field.defName,field.comment,';')}}\n /// </summary>\n public {{=field.type}} {{=it.func.camel(field.defKey,true)}} { get; set; }\n $blankline\n {{~}}\n \n }\n}",
  218. "SqlSugar": "using System;\nusing System.Collections.Generic;\nusing SqlSugar;\n\n$blankline\n{{\n var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n var sqlSugartable='[SugarTable(\"{{=it.entity.defKey}}\", TableDescription = \"{{=it.func.join(it.entity.defName,it.entity.comment,';')}}\")]';\n}}\n/*\n * @author : xkdong@163.com\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n * @desc : {{=it.func.join(it.entity.defName,it.entity.comment,'-')}}\n */\nnamespace Model.DBModel\n{\n /// <summary>\n /// {{=it.func.join(it.entity.defName,it.entity.comment,';')}}\n /// </summary>\n {{=sqlSugartable}}\n public class {{=it.entity.defKey}}\n {\n {{~it.entity.fields:field:index}}\n /// <summary>\n /// {{=it.func.join(field.defName,field.comment,';')}}\n /// </summary>\n {{? field.primaryKey }}\n [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]\n {{?}}\n public {{=field.type}} {{=it.func.camel(field.defKey,true)}}{ get; set; }\n $blankline\n {{~}}\n }\n}",
  219. "FreeSql": "using System;\r\nusing FreeSql.DataAnnotations;\r\n\r\n$blankline\r\n{{\r\n var today=new Date();\r\n var fullYear=today.getFullYear();\r\n var month=today.getMonth() + 1;\r\n var days=today.getDate();\r\n var nameSpace=it.entity.env.base.nameSpace +'.Models';\r\n \r\n function getTableAttribute(){ \r\n return `[Table(Name = \"${it.func.camel(it.entity.defKey,true)}\")]`;\r\n }\r\n \r\n function getIndexAttribute(){\r\n var indexAtrr=[]; \r\n it.entity.indexes.forEach(function(field){\r\n var fields=[];\r\n for(var item of field.fields){\r\n fields.push(it.func.camel(item.fieldDefKey,true)+(item.ascOrDesc!='A'?' desc':''));\r\n }\r\n index=`[Index(\"${field.defKey}\",\"${it.func.join(fields)}\",${field.unique})]`;\r\n indexAtrr.push(index)\r\n });\r\n return indexAtrr.join('\\n ');\r\n }\r\n \r\n function getColumnAttribute(){\r\n var atrrs=[];\r\n if(field.primaryKey) atrrs.push('IsPrimary = true');\r\n if(field.autoIncrement) atrrs.push('IsIdentity = true'); \r\n if(field.type=='string' && field.len ) atrrs.push(`StringLength = ${field.len}`);\r\n if(field.type=='string' && field.notNull ) atrrs.push('IsNullable = false');\r\n if(field.type=='decimal' && field.len ) atrrs.push(`Precision = ${field.len}`);\r\n if(field.type=='decimal' && field.scale ) atrrs.push(`Scale = ${field.scale}`);\r\n if(field.defKey=='Version' || field.defName=='乐观锁' || field.comment=='乐观锁') atrrs.push('IsVersion = true');\r\n return atrrs.length>0?`[Column(${it.func.join(atrrs)})]`:'';\r\n }\r\n \r\n function getProperty(){\r\n var stype = field.type ;\r\n if(field.notNull && field.type!='string') stype+='?'; \r\n var name = it.func.camel(field.defKey,true);\r\n var defaultValue = field.defaultValue ? '= '+field.defaultValue.replaceAll('\\'','\\\"')+';':'';\r\n return `public ${stype} ${name} { get; set; } ${defaultValue}`;\r\n }\r\n}}\r\n\r\n/*\r\n * @author : Alen\r\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\r\n * @desc : {{=it.func.join(it.entity.defName,it.entity.comment,'-')}}\r\n */\r\nnamespace {{=nameSpace}}\r\n{\r\n\t/// <summary>\r\n\t/// {{=it.func.join(it.entity.defName,it.entity.comment,';')}}\r\n\t/// </summary>\r\n {{=getTableAttribute()}}\r\n {{=getIndexAttribute()}}\r\n public partial class {{=it.func.camel(it.entity.defKey,true) }}\r\n {\r\n {{~it.entity.fields:field:index}}\r\n /// <summary>\r\n /// {{=it.func.join(field.defName,field.comment,';')}}\r\n /// </summary>\r\n {{=getColumnAttribute()}}\r\n {{=getProperty()}}\r\n $blankline\r\n {{~}}\r\n }\r\n}\r\n"
  220. },
  221. {
  222. "applyFor": "895CFD1D-4273-4D32-A2C4-CAC70200AB5B",
  223. "type": "appCode",
  224. "Controller": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.controller;\n$blankline\nimport io.swagger.annotations.Api;\nimport io.swagger.annotations.ApiOperation;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.data.domain.Page;\nimport org.springframework.data.domain.PageRequest;\nimport org.springframework.http.ResponseEntity;\nimport org.springframework.web.bind.annotation.*;\nimport {{=pkgName}}.entity.{{=beanClass}};\nimport {{=pkgName}}.service.{{=serviceClass}};\n$blankline\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表控制层\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Api(tags = \"{{=it.entity.defName}}对象功能接口\")\n@RestController\n@RequestMapping(\"/{{=it.func.camel(it.entity.defKey,false)}}\")\npublic class {{=beanClass}}Controller{\n @Autowired\n private {{=serviceClass}} {{=serviceVarName}};\n $blankline\n /** \n * 通过ID查询单条数据 \n *\n * @param {{=pkVarName}} 主键\n * @return 实例对象\n */\n @ApiOperation(\"通过ID查询单条数据\")\n @GetMapping(\"{{{=it.func.camel(pkVarName,false)}}}\")\n public ResponseEntity<{{=beanClass}}> queryById({{=pkDataType}} {{=pkVarName}}){\n return ResponseEntity.ok({{=serviceVarName}}.queryById({{=pkVarName}}));\n }\n $blankline\n /** \n * 分页查询\n *\n * @param {{=beanVarName}} 筛选条件\n * @param pageRequest 分页对象\n * @return 查询结果\n */\n @ApiOperation(\"分页查询\")\n @GetMapping\n public ResponseEntity<Page<{{=beanClass}}>> paginQuery({{=beanClass}} {{=beanVarName}}, PageRequest pageRequest){\n return ResponseEntity.ok({{=serviceVarName}}.paginQuery({{=beanVarName}}, pageRequest));\n }\n $blankline\n /** \n * 新增数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n @ApiOperation(\"新增数据\")\n @PostMapping\n public ResponseEntity<{{=beanClass}}> add({{=beanClass}} {{=beanVarName}}){\n return ResponseEntity.ok({{=serviceVarName}}.insert({{=beanVarName}}));\n }\n $blankline\n /** \n * 更新数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n @ApiOperation(\"更新数据\")\n @PutMapping\n public ResponseEntity<{{=beanClass}}> edit({{=beanClass}} {{=beanVarName}}){\n return ResponseEntity.ok({{=serviceVarName}}.update({{=beanVarName}}));\n }\n $blankline\n /** \n * 通过主键删除数据\n *\n * @param {{=pkVarName}} 主键\n * @return 是否成功\n */\n @ApiOperation(\"通过主键删除数据\")\n @DeleteMapping\n public ResponseEntity<Boolean> deleteById({{=pkDataType}} {{=pkVarName}}){\n return ResponseEntity.ok({{=serviceVarName}}.deleteById({{=pkVarName}}));\n }\n}",
  225. "Service": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.service;\n$blankline\nimport org.springframework.data.domain.Page;\nimport org.springframework.data.domain.PageRequest;\nimport {{=pkgName}}.entity.{{=beanClass}};\n$blankline\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表服务接口\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\npublic interface {{=serviceClass}}{\n /** \n * 通过ID查询单条数据 \n *\n * @param {{=pkVarName}} 主键\n * @return 实例对象\n */\n {{=beanClass}} queryById({{=pkDataType}} {{=pkVarName}});\n \n /** \n * 分页查询\n *\n * @param {{=beanVarName}} 筛选条件\n * @param pageRequest 分页对象\n * @return 查询结果\n */\n Page<{{=beanClass}}> paginQuery({{=beanClass}} {{=beanVarName}}, PageRequest pageRequest);\n\n /** \n * 新增数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n {{=beanClass}} insert({{=beanClass}} {{=beanVarName}});\n\n \n /** \n * 更新数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n {{=beanClass}} update({{=beanClass}} {{=beanVarName}});\n\n /** \n * 通过主键删除数据\n *\n * @param {{=pkVarName}} 主键\n * @return 是否成功\n */\n boolean deleteById({{=pkDataType}} {{=pkVarName}});\n}",
  226. "ServiceImpl": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkVarNameU = \"UndefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkVarNameU = it.func.camel(field.defKey,true);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n var mapperName = beanVarName+'Mapper';\n \n}}package {{=pkgName}}.service.impl;\n$blankline\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\nimport org.springframework.data.domain.Page;\nimport org.springframework.data.domain.PageImpl;\nimport org.springframework.data.domain.PageRequest;\nimport {{=pkgName}}.entity.{{=beanClass}};\nimport {{=pkgName}}.mapper.{{=beanClass}}Mapper;\nimport {{=pkgName}}.service.{{=serviceClass}};\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表服务实现类\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Service\npublic class {{=serviceClass}}Impl implements {{=serviceClass}}{\n @Autowired\n private {{=beanClass}}Mapper {{=mapperName}};\n $blankline\n /** \n * 通过ID查询单条数据 \n *\n * @param {{=pkVarName}} 主键\n * @return 实例对象\n */\n public {{=beanClass}} queryById({{=pkDataType}} {{=pkVarName}}){\n return {{=mapperName}}.queryById({{=pkVarName}});\n }\n $blankline\n /** \n * 分页查询\n *\n * @param {{=beanVarName}} 筛选条件\n * @param pageRequest 分页对象\n * @return 查询结果\n */\n public Page<{{=beanClass}}> paginQuery({{=beanClass}} {{=beanVarName}}, PageRequest pageRequest){\n long total = {{=mapperName}}.count({{=beanVarName}});\n return new PageImpl<>({{=mapperName}}.queryAllByLimit({{=beanVarName}}, pageRequest), pageRequest, total);\n }\n $blankline\n /** \n * 新增数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n public {{=beanClass}} insert({{=beanClass}} {{=beanVarName}}){\n {{=mapperName}}.insert({{=beanVarName}});\n return {{=beanVarName}};\n }\n $blankline\n /** \n * 更新数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n public {{=beanClass}} update({{=beanClass}} {{=beanVarName}}){\n {{=mapperName}}.update({{=beanVarName}});\n return queryById({{=beanVarName}}.get{{=pkVarNameU}}());\n }\n $blankline\n /** \n * 通过主键删除数据\n *\n * @param {{=pkVarName}} 主键\n * @return 是否成功\n */\n public boolean deleteById({{=pkDataType}} {{=pkVarName}}){\n int total = {{=mapperName}}.deleteById({{=pkVarName}});\n return total > 0;\n }\n}",
  227. "Mapper": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.mapper;\n$blankline\nimport java.util.List;\nimport org.apache.ibatis.annotations.Mapper;\nimport org.apache.ibatis.annotations.Param;\nimport org.springframework.data.domain.Pageable;\nimport {{=pkgName}}.entity.{{=beanClass}};\n$blankline\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表数据库访问层\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Mapper\npublic interface {{=beanClass}}Mapper{\n /** \n * 通过ID查询单条数据 \n *\n * @param {{=pkVarName}} 主键\n * @return 实例对象\n */\n {{=beanClass}} queryById({{=pkDataType}} {{=pkVarName}});\n \n /** \n * 分页查询指定行数据\n *\n * @param {{=beanVarName}} 查询条件\n * @param pageable 分页对象\n * @return 对象列表\n */\n List<{{=beanClass}}> queryAllByLimit({{=beanClass}} {{=beanVarName}}, @Param(\"pageable\") Pageable pageable);\n\n /** \n * 统计总行数\n *\n * @param {{=beanVarName}} 查询条件\n * @return 总行数\n */\n long count({{=beanClass}} {{=beanVarName}});\n\n /** \n * 新增数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 影响行数\n */\n int insert({{=beanClass}} {{=beanVarName}});\n\n /** \n * 批量新增数据\n *\n * @param entities List<{{=beanClass}}> 实例对象列表\n * @return 影响行数\n */\n int insertBatch(@Param(\"entities\") List<{{=beanClass}}> entities);\n \n /** \n * 批量新增或按主键更新数据\n *\n * @param entities List<{{=beanClass}}> 实例对象列表\n * @return 影响行数\n */\n int insertOrUpdateBatch(@Param(\"entities\") List<{{=beanClass}}> entities);\n \n /** \n * 更新数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 影响行数\n */\n int update({{=beanClass}} {{=beanVarName}});\n\n /** \n * 通过主键删除数据\n *\n * @param {{=pkVarName}} 主键\n * @return 影响行数\n */\n int deleteById({{=pkDataType}} {{=pkVarName}});\n}",
  228. "Mapper.xml": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n var pkField = \"UNDEFINED_ID\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkField = field.defKey;\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE mapper PUBLIC \"-//mybatis.org//DTD Mapper 3.0//EN\" \"http://mybatis.org/dtd/mybatis-3-mapper.dtd\">\n<mapper namespace=\"{{=pkgName}}.mapper.{{=beanClass}}Mapper\">\n <resultMap type=\"{{=pkgName}}.entity.{{=beanClass}}\" id=\"{{=beanClass}}Map\">\n {{~it.entity.fields:field:index}}\n <result property=\"{{=it.func.camel(field.defKey,false)}}\" column=\"{{=field.defKey}}\" jdbcType=\"{{=field.type}}\"/>\n {{~}}\n </resultMap>\n $blankline\n <!-- 通过ID查询单条数据 -->\n <select id=\"queryById\" resultMap=\"{{=beanClass}}Map\">\n select\n {{=it.entity.fields.map(function(e,i){return e.defKey}).join(',')}}\n from {{=it.entity.defKey}}\n where {{=pkField}} = #{{{=pkVarName}}}\n </select>\n $blankline\n <!--分页查询指定行数据-->\n <select id=\"queryAllByLimit\" resultMap=\"{{=beanClass}}Map\">\n select\n {{=it.entity.fields.map(function(e,i){return e.defKey}).join(',')}}\n from {{=it.entity.defKey}}\n <where>\n {{~it.entity.fields:field:index}}\n <if test=\"{{=it.func.camel(field.defKey,false)}} != null and {{=it.func.camel(field.defKey,false)}} != ''\">\n and {{=field.defKey}} = #{{{=it.func.camel(field.defKey,false)}}}\n </if>\n {{~}}\n </where>\n limit #{pageable.offset}, #{pageable.pageSize}\n </select>\n $blankline\n <!--统计总行数-->\n <select id=\"count\" resultType=\"java.lang.Long\">\n select count(1)\n from {{=it.entity.defKey}}\n <where>\n {{~it.entity.fields:field:index}}\n <if test=\"{{=it.func.camel(field.defKey,false)}} != null and {{=it.func.camel(field.defKey,false)}} != ''\">\n and {{=field.defKey}} = #{{{=it.func.camel(field.defKey,false)}}}\n </if>\n {{~}}\n </where>\n </select>\n $blankline\n <!--新增数据-->\n <insert id=\"insert\" keyProperty=\"{{=pkField}}\" useGeneratedKeys=\"true\">\n insert into {{=it.entity.defKey}}({{=it.entity.fields.map(function(e,i){return e.defKey}).join(',')}})\n values ({{=it.entity.fields.map(function(e,i){return '#{'+it.func.camel(e.defKey,false)+'}'}).join(',')}})\n </insert>\n $blankline\n <!-- 批量新增数据 -->\n <insert id=\"insertBatch\" keyProperty=\"{{=pkField}}\" useGeneratedKeys=\"true\">\n insert into {{=it.entity.defKey}}({{=it.entity.fields.map(function(e,i){return e.defKey}).join(',')}})\n values\n <foreach collection=\"entities\" item=\"entity\" separator=\",\">\n ({{=it.entity.fields.map(function(e,i){return '#{entity.'+it.func.camel(e.defKey,false)+'}'}).join(',')}})\n </foreach>\n </insert>\n $blankline\n <!-- 批量新增或按主键更新数据 -->\n <insert id=\"insertOrUpdateBatch\" keyProperty=\"{{=pkField}}\" useGeneratedKeys=\"true\">\n insert into {{=it.entity.defKey}}({{=it.entity.fields.map(function(e,i){return e.defKey}).join(',')}})\n values\n <foreach collection=\"entities\" item=\"entity\" separator=\",\">\n ({{=it.entity.fields.map(function(e,i){return '#{entity.'+it.func.camel(e.defKey,false)+'}'}).join(',')}})\n </foreach>\n on duplicate key update\n {{=it.entity.fields.map(function(e,i){return e.defKey + '=values('+e.defKey+')'}).join(',\\n\\t\\t')}}\n </insert>\n $blankline\n <!-- 更新数据 -->\n <update id=\"update\">\n update {{=it.entity.defKey}}\n <set>\n {{~it.entity.fields:field:index}}\n <if test=\"{{=it.func.camel(field.defKey,false)}} != null and {{=it.func.camel(field.defKey,false)}} != ''\">\n {{=field.defKey}} = #{{{=it.func.camel(field.defKey,false)}}},\n </if>\n {{~}}\n </set>\n where {{=pkField}} = #{{{=pkVarName}}}\n </update>\n $blankline\n <!--通过主键删除-->\n <delete id=\"deleteById\">\n delete from {{=it.entity.defKey}} where {{=pkField}} = #{{{=pkVarName}}}\n </delete>\n</mapper>\n\n",
  229. "Entity": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.entity;\n$blankline\nimport io.swagger.annotations.ApiModel;\nimport io.swagger.annotations.ApiModelProperty;\nimport java.io.Serializable;\nimport java.util.Date;\n$blankline\n\n /**\n * {{=it.entity.defName}};{{=it.entity.comment}}\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@ApiModel(value = \"{{=it.entity.defName}}\",description = \"{{=it.entity.comment}}\")\npublic class {{=beanClass}} implements Serializable,Cloneable{\n{{~it.entity.fields:field:index}}\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n @ApiModelProperty(name = \"{{=field.defName}}\",notes = \"{{=field.comment}}\")\n private {{=field.type}} {{=it.func.camel(field.defKey,false)}} ;\n{{~}}\n$blankline\n\n{{~it.entity.fields:field:index}}\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n public {{=field.type}} get{{=it.func.camel(field.defKey,true)}}(){\n return this.{{=it.func.camel(field.defKey,false)}};\n }\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n public void set{{=it.func.camel(field.defKey,true)}}({{=field.type}} {{= it.func.camel(field.defKey,false) }}){\n this.{{=it.func.camel(field.defKey,false)}}={{=it.func.camel(field.defKey,false)}};\n }\n{{~}}\n}"
  230. },
  231. {
  232. "applyFor": "A2EE7B4A-CE62-4290-B00C-B26C1BF18073",
  233. "type": "appCode",
  234. "Controller": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.controller;\n$blankline\nimport cn.dev33.satoken.util.SaResult;\nimport com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;\nimport com.baomidou.mybatisplus.core.metadata.IPage;\nimport com.baomidou.mybatisplus.extension.plugins.pagination.Page;\nimport java.util.List;\nimport com.njyunzhi.common.Constants;\nimport com.njyunzhi.common.util.StringUtil;\nimport com.njyunzhi.framework.log.OpLog;\nimport com.njyunzhi.application.BaseController;\nimport com.njyunzhi.framework.accesslimit.AccessLimit;\nimport io.swagger.annotations.Api;\nimport io.swagger.annotations.ApiOperation;\nimport io.swagger.annotations.ApiParam;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.validation.annotation.Validated;\nimport org.springframework.web.bind.annotation.*;\nimport com.njyunzhi.repository.entity.{{=beanClass}};\nimport {{=pkgName}}.service.{{=serviceClass}};\n$blankline\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表控制层\n * @author : http://njyunzhi.com\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Api(tags = \"{{=it.entity.defName}}对象功能接口\")\n@RestController\n@RequestMapping(\"/\")\npublic class {{=beanClass}}Controller extends BaseController {\n $blankline\n @Autowired\n private {{=serviceClass}} {{=serviceVarName}};\n $blankline\n /** \n * 通过ID查询单条数据 \n *\n * @param id 主键\n * @return 实例对象\n */\n @OpLog(module = \"{{=it.entity.defName}}\", action = \"查询单条数据\", desc = \"ID:\\{\\{#id\\}\\}\")\n @AccessLimit()\n @ApiOperation(\"通过ID查询单条数据\")\n @GetMapping(\"/{{=beanVarName}}/{id}\")\n public SaResult queryById(@ApiParam(\"对象ID\") @PathVariable {{=pkDataType}} id) throws Exception {\n return SaResult.data({{=serviceVarName}}.getById(id));\n }\n $blankline\n /** \n * 分页查询\n *\n * @param pageNum 当前页码\n * @param pageSize 每页条数\n * @return 查询结果\n */\n @OpLog(module = \"{{=it.entity.defName}}\", action = \"分页列表查询\")\n @AccessLimit()\n @ApiOperation(\"分页查询\")\n @GetMapping(\"/{{=beanVarName}}\")\n public SaResult list(@ApiParam(\"页码\") @RequestParam(value =\"pageNum\",defaultValue = \"1\") Integer pageNum,\n @ApiParam(\"单页数据量\") @RequestParam(value =\"pageSize\",defaultValue = \"10\") Integer pageSize,\n @ApiParam(\"正序排列\") @RequestParam(value =\"sortAsc\", required = false) String sortAsc,\n @ApiParam(\"倒序排列\") @RequestParam(value =\"sortDesc\", defaultValue = \"created_at\") String sortDesc) throws Exception {\n $blankline\n IPage<{{=beanClass}}> pg = new Page<>(pageNum, pageSize);\n QueryWrapper<{{=beanClass}}> queryWrapper = new QueryWrapper<>();\n queryWrapper.orderByAsc(StringUtil.isNotEmpty(sortAsc), StringUtil.humpToLine(sortAsc));\n queryWrapper.orderByDesc(StringUtil.isNotEmpty(sortDesc), StringUtil.humpToLine(sortDesc));\n IPage<{{=beanClass}}> result = {{=serviceVarName}}.page(pg, queryWrapper);\n $blankline\n return SaResult.data(result);\n }\n $blankline\n /** \n * 新增数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n @OpLog(module = \"{{=it.entity.defName}}\", action = \"新增数据\")\n @AccessLimit()\n @ApiOperation(\"新增数据\")\n @PostMapping(\"/{{=beanVarName}}\")\n public SaResult add(@ApiParam(\"对象实体\") @Validated @RequestBody {{=beanClass}} {{=beanVarName}}) throws Exception {\n {{=serviceVarName}}.save({{=beanVarName}});\n return SaResult.data({{=beanVarName}});\n }\n $blankline\n /** \n * 更新数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n @OpLog(module = \"{{=it.entity.defName}}\", action = \"更新数据\")\n @AccessLimit()\n @ApiOperation(\"更新数据\")\n @PutMapping(\"/{{=beanVarName}}/{id}\")\n public SaResult edit(@ApiParam(\"对象实体\") @Validated @RequestBody {{=beanClass}} {{=beanVarName}},\n @ApiParam(\"对象ID\") @PathVariable {{=pkDataType}} id ) throws Exception {\n {{=serviceVarName}}.updateById({{=beanVarName}});\n return SaResult.data({{=beanVarName}});\n }\n $blankline\n /** \n * 通过主键删除数据\n *\n * @param id 主键\n * @return 是否成功\n */\n @OpLog(module = \"{{=it.entity.defName}}\", action = \"删除数据\", desc = \"ID:\\{\\{#id\\}\\}\")\n @AccessLimit()\n @ApiOperation(\"通过主键删除数据\")\n @DeleteMapping(\"/{{=beanVarName}}/{id}\")\n public SaResult deleteById(@ApiParam(\"对象ID\") @PathVariable {{=pkDataType}} id){\n {{=serviceVarName}}.removeById(id);\n return SaResult.data(\"success\");\n }\n}",
  235. "Service": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.service;\n$blankline\nimport com.baomidou.mybatisplus.extension.service.IService;\nimport com.njyunzhi.repository.entity.{{=beanClass}};\nimport com.njyunzhi.application.IBaseService;\n$blankline\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表服务接口\n * @author : http://njyunzhi.com\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\npublic interface {{=serviceClass}} extends IBaseService<{{=beanClass}}> {\n $blankline\n}",
  236. "ServiceImpl": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkVarNameU = \"UndefinedId\";\n var pkFieldKey = \"UNDEFINED\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkFieldKey = field.defKey;\n pkVarName = it.func.camel(field.defKey,false);\n pkVarNameU = it.func.camel(field.defKey,true);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n var mapperName = beanVarName+'Mapper';\n \n}}package {{=pkgName}}.service.impl;\n$blankline\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\nimport com.njyunzhi.application.BaseServiceImpl;\nimport com.njyunzhi.repository.entity.{{=beanClass}};\nimport com.njyunzhi.repository.mapper.{{=beanClass}}Mapper;\nimport {{=pkgName}}.service.{{=serviceClass}};\n$blankline\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表服务实现类\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Service\npublic class {{=serviceClass}}Impl extends BaseServiceImpl<{{=beanClass}}Mapper, {{=beanClass}}> implements {{=serviceClass}} {\n $blankline\n}",
  237. "Mapper": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.mapper;\n$blankline\n\nimport com.baomidou.mybatisplus.core.conditions.Wrapper;\nimport com.baomidou.mybatisplus.core.mapper.BaseMapper;\nimport com.baomidou.mybatisplus.core.metadata.IPage;\nimport com.baomidou.mybatisplus.core.toolkit.Constants;\nimport org.apache.ibatis.annotations.Mapper;\nimport org.apache.ibatis.annotations.Param;\nimport {{=pkgName}}.entity.{{=beanClass}};\n$blankline\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表数据库访问层\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Mapper\npublic interface {{=beanClass}}Mapper extends BaseMapper<{{=beanClass}}>{\n /** \n * 分页查询指定行数据\n *\n * @param page 分页参数\n * @param wrapper 动态查询条件\n * @return 分页对象列表\n */\n IPage<{{=beanClass}}> selectByPage(IPage<{{=beanClass}}> page , @Param(Constants.WRAPPER) Wrapper<{{=beanClass}}> wrapper);\n}",
  238. "Mapper.xml": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n var pkField = \"UNDEFINED_ID\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkField = field.defKey;\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE mapper PUBLIC \"-//mybatis.org//DTD Mapper 3.0//EN\" \"http://mybatis.org/dtd/mybatis-3-mapper.dtd\">\n$blankline\n\n<mapper namespace=\"{{=pkgName}}.mapper.{{=beanClass}}Mapper\">\n $blankline\n</mapper>\n\n",
  239. "Entity": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n var mustNotNull = function(str) {\n return str.includes('name');\n };\n \n var canFill = function(str) {\n return str.includes('created') || str.includes('updated') || str.includes('deleted');\n };\n \n var fillType = function(str) {\n return str.includes('created') || str.includes('deleted') ? 'FieldFill.INSERT' : 'FieldFill.INSERT_UPDATE';\n };\n \n}}package {{=pkgName}}.entity;\n$blankline\nimport io.swagger.annotations.ApiModel;\nimport io.swagger.annotations.ApiModelProperty;\nimport com.baomidou.mybatisplus.annotation.*;\nimport java.io.Serializable;\nimport java.time.LocalDateTime;\nimport lombok.Data;\nimport lombok.EqualsAndHashCode;\nimport lombok.experimental.Accessors;\nimport javax.validation.constraints.NotBlank;\n$blankline\n\n /**\n * {{=it.entity.defName}};{{=it.entity.comment}}\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Data\n@EqualsAndHashCode(callSuper = false)\n@Accessors(chain = true)\n@ApiModel(value = \"{{=it.entity.defName}}\",description = \"{{=it.entity.comment}}\")\n@TableName(\"{{=it.entity.defKey}}\")\npublic class {{=beanClass}} implements Serializable,Cloneable{\n{{~it.entity.fields:field:index}}\n $blankline\n {{? mustNotNull(field.defKey)}}\n @NotBlank(message = \"{{=field.defName}}不能为空\")\n {{?}}\n @ApiModelProperty(name = \"{{=field.defName}}\",notes = \"{{=field.comment}}\")\n {{? field.primaryKey }}\n @TableId(value = \"{{=field.defKey}}\", type = IdType.ASSIGN_UUID)\n {{?}}{{? canFill(field.defKey)}}\n @TableField(fill = {{=fillType(field.defKey)}})\n {{?}}\n private {{=field.type}} {{=it.func.camel(field.defKey,false)}} ;\n{{~}}\n$blankline\n}"
  240. },
  241. {
  242. "applyFor": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E",
  243. "type": "dbDDL",
  244. "createTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};\nCREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n `{{=field.defKey}}` {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}} {{= field.notNull ? 'NOT NULL' : '' }} {{= field.autoIncrement ? 'AUTO_INCREMENT' : '' }} {{= field.defaultValue ? it.func.join('DEFAULT',field.defaultValue,' ') : '' }} COMMENT '{{=it.func.join(field.defName,field.comment,';')}}' {{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n) COMMENT = '{{=it.func.join(it.entity.defName,it.entity.comment,';') }}';\n$blankline\n",
  245. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n",
  246. "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
  247. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  248. "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX IF EXISTS {{=index.defKey}} ;\n{{~}}",
  249. "message": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChanged(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('代码:'+(before.defKey||'NULL')+'->'+(after.defKey||'NULL'));\n }\n if(before.defName !== after.defName){\n ret.push('显示名称:'+(before.defName||'NULL')+'->'+(after.defName||'NULL'));\n }\n if(before.comment !== after.comment){\n ret.push('说明:'+(before.comment||'NULL')+'->'+(after.comment||'NULL'));\n }\n if(ret.length>0){\n return ' 基本信息:\\n\\t'+ret.join('\\n\\t');\n }\n return '';\n };\n \n function buildAddedDesc(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n \n for (let field of fieldAdded) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildRemovedDesc(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n \n for (let field of fieldRemoved) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildModifiedDesc(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n for (let field1 of fieldModified) { \n let row = [];\n let field = field1.before;\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n}}\n\n\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n{{? modifyEntities && modifyEntities.length > 0}}\n/* --------------- 修改表 --------------- */\n{{~ modifyEntities:entity}}\n{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]{{let changeText=baseChanged(entity.data.baseChanged);}}\n{{=baseChanged(entity.data.baseChanged)}}\n {{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n 修改字段:\n {{='\\t'}}{{=buildModifiedDesc(entity).join('\\n\\t')}}{{?}}{{\n /*计算是否调整了属性*/\n let propAdded = entity.data.propAdded || [];\n let propRemoved = entity.data.propRemoved || [];\n let propModified = entity.data.propModified || [];\n let changed = propAdded.length>0 || propRemoved.length>0 || propModified.length>0;\n /*计算关联是否调整*/\n let refEntityAdd = entity.data.refEntityAdd || [];\n let refEntityRemoved = entity.data.refEntityRemoved || [];\n let relaArray = [];\n for (let rela of refEntityAdd) {\n relaArray.push('建立关联:'+rela.defKey+'['+rela.defName+']');\n }\n for (let rela of refEntityRemoved) {\n relaArray.push('解除关联:'+rela.defKey+'['+rela.defName+']');\n }\n /*索引是否修改过*/\n let indexChanged = entity.data.indexChanged;\n }}{{=indexChanged?'\\n\\t更改了索引':''}}{{=changed?'\\n\\t更改了属性':''}}{{=relaArray.length>0?('\\n\\t'+relaArray.join('\\n\\t')):''}}\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n 添加字段:\n{{='\\t'}}{{=buildAddedDesc(entity).join('\\n\\t')}}\n{{?}}{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n 删除字段:\n{{='\\t'}}{{=buildRemovedDesc(entity).join('\\n\\t')}}\n{{?}}\n{{~}}\n{{?}}\n",
  250. "update": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChangedDDL(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('ALTER TABLE '+before.defKey+' RENAME TO '+after.defKey);\n }\n let commentText = '';\n let commentChanged = false;\n if(before.defName !== after.defName){\n commentText = after.defName;\n commentChanged = true;\n }\n if(before.comment !== after.comment){\n commentChanged = true;\n if(commentText){\n commentText = (commentText+ ';'+after.comment)\n }else{\n commentText = after.comment\n }\n }\n if(commentChanged){\n ret.push('ALTER TABLE '+after.defKey+' COMMENT \\''+commentText+'\\'');\n }\n let baseText = '-- 基本信息:\\n';\n return baseText+ret.join(';\\n')+';';\n };\n \n function buildAddedDDL(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n if(fieldAdded.length == 0){\n return '';\n }\n \n let firstDDL = 'ALTER TABLE '+entity.data.baseInfo.defKey;\n for (let field of fieldAdded) { \n let ddlItem = 'ADD COLUMN `'+field.defKey+'` '+field.dbType;\n /*处理数据类型长度*/\n if(field.len>0){\n ddlItem += ('('+field.len);\n if(parseInt(field.scale)>0){\n ddlItem += (','+field.scale);\n }\n ddlItem += ')';\n }\n if(field.notNull){\n ddlItem += ' NOT NULL';\n }\n if(field.autoIncrement){\n ddlItem += ' AUTO_INCREMENT';\n }\n if(field.defaultValue){\n ddlItem += (' DEFAULT ' + field.defaultValue);\n }\n ddlItem += (' COMMENT \\''+field.defName+';'+field.comment+'\\'');\n \n if(field.index>0 && field.afterFieldKey){\n ddlItem += (' AFTER '+field.afterFieldKey);\n }\n ret.push(ddlItem);\n }\n return firstDDL+'\\n'+ret.join(',\\n');\n };\n \n function buildRemovedDDL(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n if(fieldRemoved.length == 0){\n return '';\n }\n \n let firstDDL = 'ALTER TABLE '+entity.data.baseInfo.defKey;\n for (let field of fieldRemoved) { \n ret.push('DROP '+field.defKey);\n }\n return firstDDL+'\\n'+ret.join(',\\n');\n };\n \n function buildModifiedDDL(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n let firstDDL = 'ALTER TABLE '+entity.data.baseInfo.defKey;\n for (let field of fieldModified) { \n let changeDDL = '';\n let before = field.before || {};\n let after = field.after || {};\n if(before.defKey === after.defKey){\n changeDDL += (' MODIFY COLUMN `'+after.defKey+'`');\n }else{\n changeDDL += (' CHANGE COLUMN `'+before.defKey+'` `'+after.defKey+'`');\n }\n changeDDL += (' '+after.dbType);\n if(after.len>0){\n changeDDL += ('('+after.len);\n if(parseInt(after.scale)>0){\n changeDDL += (','+after.scale);\n }\n changeDDL += ')';\n }\n if(after.notNull){\n changeDDL += ' NOT NULL';\n }\n let defaultValue = '';\n if(after.defaultValue != null && after.defaultValue.length>0){\n defaultValue = (after.defaultValue);\n }else{\n defaultValue = 'NULL';\n }\n if(defaultValue != 'NULL'){\n changeDDL += (' DEFAULT ' + defaultValue);\n }\n\n let comment = after.defName;\n if(after.comment){\n comment = comment + ';' + (after.comment||'');\n }\n if(comment){\n changeDDL += (' COMMENT \\''+comment+'\\';');\n }\n \n ret.push(firstDDL+' '+changeDDL);\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=it.func.createDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=it.func.dropDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* --------------- 修改表 --------------- */\n-- 修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]\n{{=baseChangedDDL(entity.data.baseChanged)}}\n{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n-- 修改字段:\n{{=buildModifiedDDL(entity).join('\\n')}}\n{{?}}{{\n/*索引是否修改过*/\nlet indexChanged = entity.data.indexChanged;\n}}\n{{? indexChanged }}\n{{=it.func.indexRebuildDDL(entity.data.baseInfo,entity.data.newIndexes,entity.data.fullFields,entity['type'])}}\n{{?}}\n\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n-- 添加字段:\n{{=buildAddedDDL(entity)}};\n{{?}}\n\n{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n-- 删除字段:\n{{=buildRemovedDDL(entity)}};\n{{?}}\n{{~}}\n{{?}}"
  251. },
  252. {
  253. "applyFor": "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542",
  254. "type": "dbDDL",
  255. "createTable": "CREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.autoIncrement ? '' : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}COMMENT ON TABLE {{=it.entity.defKey}} IS '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}';{{?}}\n{{~it.entity.fields:field:index}}\n{{? field.defName || field.comment}}COMMENT ON COLUMN {{=it.entity.defKey}}.{{=field.defKey}} IS '{{=it.func.join(field.defName,field.comment,';')}}';{{?}}\n{{~}}",
  256. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n",
  257. "deleteTable": "DROP TABLE {{=it.entity.defKey}};",
  258. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  259. "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX {{=index.defKey}} ;\n{{~}}",
  260. "message": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChanged(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('代码:'+(before.defKey||'NULL')+'->'+(after.defKey||'NULL'));\n }\n if(before.defName !== after.defName){\n ret.push('显示名称:'+(before.defName||'NULL')+'->'+(after.defName||'NULL'));\n }\n if(before.comment !== after.comment){\n ret.push('说明:'+(before.comment||'NULL')+'->'+(after.comment||'NULL'));\n }\n if(ret.length>0){\n return ' 基本信息:\\n\\t'+ret.join('\\n\\t');\n }\n return '';\n };\n \n function buildAddedDesc(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n \n for (let field of fieldAdded) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildRemovedDesc(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n \n for (let field of fieldRemoved) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildModifiedDesc(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n for (let field1 of fieldModified) { \n let row = [];\n let field = field1.before;\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* -------------------------------------------------- */\n创建表:\n{{~ createEntities:entity}}\n {{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* -------------------------------------------------- */\n删除表:\n{{~ dropEntities:entity}}\n {{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* -------------------------------------------------- */\n修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]{{let changeText=baseChanged(entity.data.baseChanged);}}\n{{=baseChanged(entity.data.baseChanged)}}\n {{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n 添加字段:\n {{='\\t'}}{{=buildAddedDesc(entity).join('\\n\\t')}}\n {{?}}{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n 删除字段:\n {{='\\t'}}{{=buildRemovedDesc(entity).join('\\n\\t')}}\n {{?}}{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n 修改字段:\n {{='\\t'}}{{=buildModifiedDesc(entity).join('\\n\\t')}}\n {{?}}{{\n /*计算是否调整了属性*/\n let propAdded = entity.data.propAdded || [];\n let propRemoved = entity.data.propRemoved || [];\n let propModified = entity.data.propModified || [];\n let changed = propAdded.length>0 || propRemoved.length>0 || propModified.length>0;\n /*计算关联是否调整*/\n let refEntityAdd = entity.data.refEntityAdd || [];\n let refEntityRemoved = entity.data.refEntityRemoved || [];\n let relaArray = [];\n for (let rela of refEntityAdd) {\n relaArray.push('\\n\\t建立关联:'+rela.defKey+'['+rela.defName+']');\n }\n for (let rela of refEntityRemoved) {\n relaArray.push('\\n\\t解除关联:'+rela.defKey+'['+rela.defName+']');\n }\n /*索引是否修改过*/\n let indexChanged = entity.data.indexChanged;\n }}\n{{=indexChanged?'\\n\\t更改了索引':''}}\n{{=changed?'\\n\\t更改了属性':''}}\n{{=relaArray.length>0?relaArray.join(''):''}}\n{{~}}\n{{?}}",
  261. "update": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChangedDDL(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push(`ALTER TABLE ${before.defKey} RENAME TO ${after.defKey}`);\n }\n let commentText = '';\n let commentChanged = false;\n if(before.defName !== after.defName){\n commentText = after.defName;\n commentChanged = true;\n }\n if(before.comment !== after.comment){\n commentChanged = true;\n if(commentText){\n commentText = (commentText+ ';'+after.comment)\n }else{\n commentText = after.comment\n }\n }\n if(commentChanged){\n let myText = `COMMENT ON TABLE ${after.defKey} IS '${commentText}'`;\n ret.push(myText);\n }\n let baseText = '-- 基本信息:\\n';\n return baseText+ret.join(';\\n')+';';\n };\n \n function buildAddedDDL(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n if(fieldAdded.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldAdded) { \n let ddlItem = `ADD (${field.defKey} ${field.dbType}`;\n /*处理数据类型长度*/\n if(field.len>0){\n ddlItem += ('('+field.len);\n if(parseInt(field.scale)>0){\n ddlItem += (','+field.scale);\n }\n ddlItem += ')';\n }\n let defaultValue = field.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n ddlItem += (' DEFAULT ' + defaultValue);\n }\n if(field.notNull){\n ddlItem += ' NOT NULL';\n }\n ddlItem += ')';\n ret.push(`${firstDDL} ${ddlItem}`);\n \n /*处理字段注释*/\n let fieldComments = [];\n if(field.defName != null &&field.defName.length>0){\n fieldComments.push(field.defName);\n }\n if(field.comment != null &&field.comment.length>0){\n fieldComments.push(field.comment);\n }\n let commentText = fieldComments.join(';');\n if(commentText != null && commentText.length > 0){\n let commentDDL = `COMMENT ON COLUMN ${entity.data.baseInfo.defKey}.${field.defKey} IS '${commentText}'`;\n ret.push(commentDDL);\n }\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildRemovedDDL(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n if(fieldRemoved.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldRemoved) { \n ret.push(`${firstDDL} DROP COLUMN ${field.defKey}`);\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildModifiedDDL(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldModified) { \n let changeDDL = '';\n let before = field.before || {};\n let after = field.after || {};\n if(before.defKey !== after.defKey){\n let renameText = `ALTER TABLE ${entity.data.baseInfo.defKey} RENAME COLUMN ${before.defKey} TO ${after.defKey};`;\n ret.push(renameText);\n }\n /*如果没有变化,则不生成变更语句*/\n if(before.dbType === after.dbType \n && before['len'] === after['len'] \n && before.scale === after.scale\n && before.primaryKey === after.primaryKey\n && before.notNull === after.notNull\n && before.autoIncrement === after.autoIncrement\n && before.defaultValue === after.defaultValue){\n continue;\n }\n changeDDL += ('MODIFY ('+after.defKey+'');\n changeDDL += (' '+after.dbType);\n if(after.len>0){\n changeDDL += ('('+after.len);\n if(parseInt(after.scale)>0){\n changeDDL += (','+after.scale);\n }\n changeDDL += ')';\n }\n let defaultValue = after.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n changeDDL += (' DEFAULT ' + defaultValue);\n }\n \n if(after.notNull){\n changeDDL += ' NOT NULL';\n }\n changeDDL += ')';\n ret.push(`${firstDDL} ${changeDDL};`);\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=it.func.createDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=it.func.dropDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* --------------- 修改表 --------------- */\n-- 修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]\n{{=baseChangedDDL(entity.data.baseChanged)}}\n{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n-- 修改字段:\n{{=buildModifiedDDL(entity).join('\\n')}}\n{{?}}{{\n/*索引是否修改过*/\nlet indexChanged = entity.data.indexChanged;\n}}\n{{? indexChanged }}\n{{=it.func.indexRebuildDDL(entity.data.baseInfo,entity.data.newIndexes,entity.data.fullFields,entity['type'])}}\n{{?}}\n\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n-- 添加字段:\n{{=buildAddedDDL(entity)}};\n{{?}}\n\n{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n-- 删除字段:\n{{=buildRemovedDDL(entity)}};\n{{?}}\n{{~}}\n{{?}}"
  262. },
  263. {
  264. "applyFor": "BFC87171-C74F-494A-B7C2-76B9C55FACC9",
  265. "type": "dbDDL",
  266. "createTable": "IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[{{=it.entity.defKey}}]') AND type in (N'U')) DROP TABLE [dbo].[{{=it.entity.defKey}}];\n\nCREATE TABLE [dbo].[{{=it.entity.defKey}}](\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.autoIncrement ? ' IDENTITY(1,1)' : '' }}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}EXEC sp_addextendedproperty 'MS_Description', '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}', 'SCHEMA', dbo, 'table', {{=it.entity.defKey}}, null, null;{{?}}\n{{~it.entity.fields:field:index}}\nEXEC sp_addextendedproperty 'MS_Description', '{{=it.func.join(field.defName,field.comment,';')}}', 'SCHEMA', dbo, 'table', {{=it.entity.defKey}}, 'column', {{=field.defKey}};\n{{~}}\n",
  267. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n",
  268. "deleteTable": "IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[{{=it.entity.defKey}}]') AND type in (N'U')) DROP TABLE [dbo].[{{=it.entity.defKey}}];",
  269. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  270. "deleteIndex": "",
  271. "message": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChanged(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('代码:'+(before.defKey||'NULL')+'->'+(after.defKey||'NULL'));\n }\n if(before.defName !== after.defName){\n ret.push('显示名称:'+(before.defName||'NULL')+'->'+(after.defName||'NULL'));\n }\n if(before.comment !== after.comment){\n ret.push('说明:'+(before.comment||'NULL')+'->'+(after.comment||'NULL'));\n }\n if(ret.length>0){\n return ' 基本信息:\\n\\t'+ret.join('\\n\\t');\n }\n return '';\n };\n \n function buildAddedDesc(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n \n for (let field of fieldAdded) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildRemovedDesc(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n \n for (let field of fieldRemoved) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildModifiedDesc(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n for (let field1 of fieldModified) { \n let row = [];\n let field = field1.before;\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n}}\n\n\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n{{? modifyEntities && modifyEntities.length > 0}}\n/* --------------- 修改表 --------------- */\n{{~ modifyEntities:entity}}\n{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]{{let changeText=baseChanged(entity.data.baseChanged);}}\n{{=baseChanged(entity.data.baseChanged)}}\n {{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n 修改字段:\n {{='\\t'}}{{=buildModifiedDesc(entity).join('\\n\\t')}}{{?}}{{\n /*计算是否调整了属性*/\n let propAdded = entity.data.propAdded || [];\n let propRemoved = entity.data.propRemoved || [];\n let propModified = entity.data.propModified || [];\n let changed = propAdded.length>0 || propRemoved.length>0 || propModified.length>0;\n /*计算关联是否调整*/\n let refEntityAdd = entity.data.refEntityAdd || [];\n let refEntityRemoved = entity.data.refEntityRemoved || [];\n let relaArray = [];\n for (let rela of refEntityAdd) {\n relaArray.push('建立关联:'+rela.defKey+'['+rela.defName+']');\n }\n for (let rela of refEntityRemoved) {\n relaArray.push('解除关联:'+rela.defKey+'['+rela.defName+']');\n }\n /*索引是否修改过*/\n let indexChanged = entity.data.indexChanged;\n }}{{=indexChanged?'\\n\\t更改了索引':''}}{{=changed?'\\n\\t更改了属性':''}}{{=relaArray.length>0?('\\n\\t'+relaArray.join('\\n\\t')):''}}\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n 添加字段:\n{{='\\t'}}{{=buildAddedDesc(entity).join('\\n\\t')}}\n{{?}}{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n 删除字段:\n{{='\\t'}}{{=buildRemovedDesc(entity).join('\\n\\t')}}\n{{?}}\n{{~}}\n{{?}}",
  272. "update": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChangedDDL(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push(`EXEC sp_rename '${before.defKey}','${after.defKey}'`);\n }\n let commentText = '';\n let commentChanged = false;\n if(before.defName !== after.defName){\n commentText = after.defName;\n commentChanged = true;\n }\n if(before.comment !== after.comment){\n commentChanged = true;\n if(commentText){\n commentText = (commentText+ ';'+after.comment)\n }else{\n commentText = after.comment\n }\n }\n if(commentChanged){\n let myText = `IF ((SELECT COUNT(*) FROM ::fn_listextendedproperty('MS_Description','SCHEMA', 'dbo','TABLE', '${after.defKey}', NULL, NULL)) > 0)\n \\n\\tEXEC sp_updateextendedproperty 'MS_Description', '${commentText}','SCHEMA', 'dbo','TABLE', '${after.defKey}'\n \\nELSE\n \\n\\tEXEC sp_addextendedproperty 'MS_Description', '${commentText}', 'SCHEMA', 'dbo','TABLE', '${after.defKey}'\n `;\n ret.push(myText);\n /*ret.push('ALTER TABLE '+after.defKey+' COMMENT \\''+commentText+'\\'');*/\n }\n let baseText = '-- 基本信息:\\n';\n return baseText+ret.join(';\\n')+';';\n };\n \n function buildAddedDDL(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n if(fieldAdded.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE [dbo].[${entity.data.baseInfo.defKey}]`;\n for (let field of fieldAdded) { \n let ddlItem = `ADD [${field.defKey}] ${field.dbType}`;\n /*处理数据类型长度*/\n if(field.len>0){\n ddlItem += ('('+field.len);\n if(parseInt(field.scale)>0){\n ddlItem += (','+field.scale);\n }\n ddlItem += ')';\n }\n let defaultValue = field.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n ddlItem += (' DEFAULT ' + defaultValue);\n }\n if(field.notNull){\n ddlItem += ' NOT NULL';\n }\n ret.push(`${firstDDL} ${ddlItem}`);\n \n /*处理字段注释*/\n let fieldComments = [];\n if(field.defName != null &&field.defName.length>0){\n fieldComments.push(field.defName);\n }\n if(field.comment != null &&field.comment.length>0){\n fieldComments.push(field.comment);\n }\n let commentText = fieldComments.join(';');\n if(commentText != null && commentText.length > 0){\n let commentDDL = `EXEC sp_addextendedproperty 'MS_Description', N'${commentText}','SCHEMA', N'dbo','TABLE', N'${entity.data.baseInfo.defKey}','COLUMN', N'${field.defKey}'`;\n ret.push(commentDDL);\n }\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildRemovedDDL(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n if(fieldRemoved.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE [dbo].[${entity.data.baseInfo.defKey}]`;\n for (let field of fieldRemoved) { \n ret.push(`${firstDDL} DROP COLUMN [${field.defKey}]`);\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildModifiedDDL(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n let firstDDL = `ALTER TABLE [dbo].[${entity.data.baseInfo.defKey}]`;\n for (let field of fieldModified) { \n let changeDDL = '';\n let before = field.before || {};\n let after = field.after || {};\n if(before.defKey === after.defKey){\n changeDDL += (' ALTER COLUMN ['+after.defKey+']');\n }else{\n let renameText = `EXEC sp_rename '[dbo].[${entity.data.baseInfo.defKey}].[${before.defKey}]','${after.defKey}','COLUMN';`;\n ret.push(renameText);\n continue;\n }\n changeDDL += (' '+after.dbType);\n if(after.len>0){\n changeDDL += ('('+after.len);\n if(parseInt(after.scale)>0){\n changeDDL += (','+after.scale);\n }\n changeDDL += ')';\n }\n let defaultValue = after.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n changeDDL += (' DEFAULT ' + defaultValue);\n }\n \n if(after.notNull){\n changeDDL += ' NOT NULL';\n }\n ret.push(`${firstDDL} ${changeDDL};`);\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=it.func.createDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=it.func.dropDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* --------------- 修改表 --------------- */\n-- 修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]\n{{=baseChangedDDL(entity.data.baseChanged)}}\n{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n-- 修改字段:\n{{=buildModifiedDDL(entity).join('\\n')}}\n{{?}}{{\n/*索引是否修改过*/\nlet indexChanged = entity.data.indexChanged;\n}}\n{{? indexChanged }}\n{{=it.func.indexRebuildDDL(entity.data.baseInfo,entity.data.newIndexes,entity.data.fullFields,entity['type'])}}\n{{?}}\n\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n-- 添加字段:\n{{=buildAddedDDL(entity)}};\n{{?}}\n\n{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n-- 删除字段:\n{{=buildRemovedDDL(entity)}};\n{{?}}\n{{~}}\n{{?}}"
  273. },
  274. {
  275. "applyFor": "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022",
  276. "type": "dbDDL",
  277. "createTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};\nCREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{? field.autoIncrement}}SERIAL{{??}}{{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}}{{?}}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}COMMENT ON TABLE {{=it.entity.defKey}} IS '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}';{{?}}\n{{~it.entity.fields:field:index}}\n{{? field.defName || field.comment}}COMMENT ON COLUMN {{=it.entity.defKey}}.{{=field.defKey}} IS '{{=it.func.join(field.defName,field.comment,';')}}';{{?}}\n{{~}}",
  278. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n",
  279. "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
  280. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  281. "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX {{=index.defKey}} ;\n{{~}}",
  282. "message": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChanged(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('代码:'+(before.defKey||'NULL')+'->'+(after.defKey||'NULL'));\n }\n if(before.defName !== after.defName){\n ret.push('显示名称:'+(before.defName||'NULL')+'->'+(after.defName||'NULL'));\n }\n if(before.comment !== after.comment){\n ret.push('说明:'+(before.comment||'NULL')+'->'+(after.comment||'NULL'));\n }\n if(ret.length>0){\n return ' 基本信息:\\n\\t'+ret.join('\\n\\t');\n }\n return '';\n };\n \n function buildAddedDesc(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n \n for (let field of fieldAdded) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildRemovedDesc(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n \n for (let field of fieldRemoved) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildModifiedDesc(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n for (let field1 of fieldModified) { \n let row = [];\n let field = field1.before;\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n}}\n\n\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n{{? modifyEntities && modifyEntities.length > 0}}\n/* --------------- 修改表 --------------- */\n{{~ modifyEntities:entity}}\n{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]{{let changeText=baseChanged(entity.data.baseChanged);}}\n{{=baseChanged(entity.data.baseChanged)}}\n {{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n 修改字段:\n {{='\\t'}}{{=buildModifiedDesc(entity).join('\\n\\t')}}{{?}}{{\n /*计算是否调整了属性*/\n let propAdded = entity.data.propAdded || [];\n let propRemoved = entity.data.propRemoved || [];\n let propModified = entity.data.propModified || [];\n let changed = propAdded.length>0 || propRemoved.length>0 || propModified.length>0;\n /*计算关联是否调整*/\n let refEntityAdd = entity.data.refEntityAdd || [];\n let refEntityRemoved = entity.data.refEntityRemoved || [];\n let relaArray = [];\n for (let rela of refEntityAdd) {\n relaArray.push('建立关联:'+rela.defKey+'['+rela.defName+']');\n }\n for (let rela of refEntityRemoved) {\n relaArray.push('解除关联:'+rela.defKey+'['+rela.defName+']');\n }\n /*索引是否修改过*/\n let indexChanged = entity.data.indexChanged;\n }}{{=indexChanged?'\\n\\t更改了索引':''}}{{=changed?'\\n\\t更改了属性':''}}{{=relaArray.length>0?('\\n\\t'+relaArray.join('\\n\\t')):''}}\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n 添加字段:\n{{='\\t'}}{{=buildAddedDesc(entity).join('\\n\\t')}}\n{{?}}{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n 删除字段:\n{{='\\t'}}{{=buildRemovedDesc(entity).join('\\n\\t')}}\n{{?}}\n{{~}}\n{{?}}",
  283. "update": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChangedDDL(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push(`ALTER TABLE ${before.defKey} RENAME TO ${after.defKey}`);\n }\n let commentText = '';\n let commentChanged = false;\n if(before.defName !== after.defName){\n commentText = after.defName;\n commentChanged = true;\n }\n if(before.comment !== after.comment){\n commentChanged = true;\n if(commentText){\n commentText = (commentText+ ';'+after.comment)\n }else{\n commentText = after.comment\n }\n }\n if(commentChanged){\n let myText = `COMMENT ON TABLE ${after.defKey} IS '${commentText}'`;\n ret.push(myText);\n }\n let baseText = '-- 基本信息:\\n';\n return baseText+ret.join(';\\n')+';';\n };\n \n function buildAddedDDL(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n if(fieldAdded.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldAdded) { \n let ddlItem = `ADD COLUMN ${field.defKey} ${field.dbType}`;\n /*处理数据类型长度*/\n if(field.len>0){\n ddlItem += ('('+field.len);\n if(parseInt(field.scale)>0){\n ddlItem += (','+field.scale);\n }\n ddlItem += ')';\n }\n if(field.notNull){\n ddlItem += ' NOT NULL';\n } \n let defaultValue = field.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n ddlItem += (' DEFAULT ' + defaultValue);\n }\n\n ret.push(`${firstDDL} ${ddlItem}`);\n \n /*处理字段注释*/\n let fieldComments = [];\n if(field.defName != null &&field.defName.length>0){\n fieldComments.push(field.defName);\n }\n if(field.comment != null &&field.comment.length>0){\n fieldComments.push(field.comment);\n }\n let commentText = fieldComments.join(';');\n if(commentText != null && commentText.length > 0){\n let commentDDL = `COMMENT ON COLUMN ${entity.data.baseInfo.defKey}.${field.defKey} IS '${commentText}'`;\n ret.push(commentDDL);\n }\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildRemovedDDL(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n if(fieldRemoved.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldRemoved) { \n ret.push(`${firstDDL} DROP COLUMN ${field.defKey}`);\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildModifiedDDL(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldModified) { \n let before = field.before || {};\n let after = field.after || {};\n if(before.defKey !== after.defKey){\n let renameText = `ALTER TABLE ${entity.data.baseInfo.defKey} RENAME COLUMN ${before.defKey} TO ${after.defKey};`;\n ret.push(renameText);\n }\n /*如果没有变化,则不生成变更语句*/\n if(before.dbType === after.dbType \n && before['len'] === after['len'] \n && before.scale === after.scale\n && before.primaryKey === after.primaryKey\n && before.notNull === after.notNull\n && before.autoIncrement === after.autoIncrement\n && before.defaultValue === after.defaultValue){\n continue;\n }\n if(before.dbType !== after.dbType || before.len !== after.len || before.scale !== after.scale){\n let dbTypeDDL = `ALTER TABLE ${entity.data.baseInfo.defKey} ALTER COLUMN ${after.defKey} TYPE ${before.dbType}`;\n if(after.len>0){\n dbTypeDDL += ('('+after.len);\n if(parseInt(after.scale)>0){\n dbTypeDDL += (','+after.scale);\n }\n dbTypeDDL += ')';\n }\n ret.push(dbTypeDDL+';');\n }\n \n if(before.defaultValue !== after.defaultValue){\n let defaultDDL = '';\n let defaultValue = after.defaultValue;\n defaultValue = (defaultValue==null)?\"NULL\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n defaultDDL += ('SET DEFAULT ' + defaultValue);\n }\n let defaultTpl = `ALTER TABLE ${entity.data.baseInfo.defKey} ALTER COLUMN ${defaultDDL};`;\n ret.push(defaultTpl);\n }\n \n if(before.notNull !== after.notNull){\n let notNullDDL= 'SET NULL';\n if(after.notNull){\n let notNullDDL= 'SET NOT NULL';\n }\n let notNullTpl = `ALTER TABLE ${entity.data.baseInfo.defKey} ALTER COLUMN ${notNullDDL};`;\n ret.push(notNullTpl);\n }\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=it.func.createDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=it.func.dropDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* --------------- 修改表 --------------- */\n-- 修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]\n{{=baseChangedDDL(entity.data.baseChanged)}}\n{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n-- 修改字段:\n{{=buildModifiedDDL(entity).join('\\n')}}\n{{?}}{{\n/*索引是否修改过*/\nlet indexChanged = entity.data.indexChanged;\n}}\n{{? indexChanged }}\n-- 索引重建\n{{=it.func.indexRebuildDDL(entity.data.baseInfo,entity.data.newIndexes,entity.data.fullFields,entity['type'])}}\n{{?}}\n\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n-- 添加字段:\n{{=buildAddedDDL(entity)}};\n{{?}}\n\n{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n-- 删除字段:\n{{=buildRemovedDDL(entity)}};\n{{?}}\n{{~}}\n{{?}}"
  284. },
  285. {
  286. "type": "dbDDL",
  287. "applyFor": "89504F5D-94BF-4C9E-8B2E-44F37305FED5",
  288. "createTable": "CREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.autoIncrement ? '' : '' }}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}COMMENT ON TABLE {{=it.entity.defKey}} IS '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}';{{?}}\n{{~it.entity.fields:field:index}}\n{{? field.defName || field.comment}}COMMENT ON COLUMN {{=it.entity.defKey}}.{{=field.defKey}} IS '{{=it.func.join(field.defName,field.comment,';')}}';{{?}}\n{{~}}",
  289. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  290. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n"
  291. },
  292. {
  293. "applyFor": "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307",
  294. "type": "dbDDL",
  295. "createTable": "CREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}} {{= field.notNull ? 'NOT NULL' : '' }} {{= field.autoIncrement ? 'IDENTITY(1,1)' : '' }}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }} COMMENT '{{=it.func.join(field.defName,field.comment,';')}}'{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline",
  296. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n",
  297. "deleteTable": "",
  298. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  299. "deleteIndex": "",
  300. "message": "",
  301. "update": ""
  302. },
  303. {
  304. "type": "dbDDL",
  305. "applyFor": "592C7013-143D-4E7B-AF64-0D7BF1E28230",
  306. "createTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};\nCREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.autoIncrement ? ' AUTO_INCREMENT' : '' }}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}COMMENT ON TABLE {{=it.entity.defKey}} IS '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}';{{?}}\n{{~it.entity.fields:field:index}}\n{{? field.defName || field.comment}}COMMENT ON COLUMN {{=it.entity.defKey}}.{{=field.defKey}} IS '{{=it.func.join(field.defName,field.comment,';')}}';{{?}}\n{{~}}",
  307. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  308. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n"
  309. },
  310. {
  311. "type": "dbDDL",
  312. "applyFor": "77BD85E5-9D0D-4096-8427-CBA306FC9C6A",
  313. "createTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};\nCREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{?}}{{= field.notNull ? ' NOT NULL' : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}COMMENT ON TABLE {{=it.entity.defKey}} IS '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}';{{?}}\n{{~it.entity.fields:field:index}}\n{{? field.defName || field.comment}}COMMENT ON COLUMN {{=it.entity.defKey}}.{{=field.defKey}} IS '{{=it.func.join(field.defName,field.comment,';')}}';{{?}}\n{{~}}",
  314. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  315. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n"
  316. },
  317. {
  318. "applyFor": "11D1FB71-A587-4217-89BA-611B8A1F83E0",
  319. "type": "dbDDL",
  320. "createTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};\nCREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}} {{= field.notNull ? 'NOT NULL' : '' }} {{= field.autoIncrement ? 'AUTO_INCREMENT' : '' }} {{= field.defaultValue ? it.func.join('DEFAULT',field.defaultValue,' ') : '' }} COMMENT '{{=it.func.join(field.defName,field.comment,';')}}' {{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n) COMMENT '{{=it.func.join(it.entity.defName,it.entity.comment,';') }}';\n$blankline\n",
  321. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n",
  322. "deleteTable": "",
  323. "createIndex": "",
  324. "deleteIndex": "",
  325. "message": "",
  326. "update": ""
  327. },
  328. {
  329. "applyFor": "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1",
  330. "type": "dbDDL",
  331. "createTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};\nCREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}} {{= field.notNull ? 'NOT NULL' : '' }} {{= field.autoIncrement ? 'AUTOINCREMENT' : '' }} {{= field.defaultValue ? it.func.join('DEFAULT',field.defaultValue,' ') : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }} --{{=it.func.join(field.defName,field.comment,';')}}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n) ; --{{=it.func.join(it.entity.defName,it.entity.comment,';') }}\n$blankline\n",
  332. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  333. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n"
  334. },
  335. {
  336. "type": "dbDDL",
  337. "applyFor": "dictSQLTemplate",
  338. "content": "/* 插入字典总表[{{=it.dict.defKey}}-{{=it.dict.defName}}] */\nINSERT INTO SYS_DICT(KEY_,LABEL,INTRO,REVISION) VALUES('{{=it.dict.defKey}}','{{=it.dict.defName}}','{{=it.dict.intro}}',1);\n/* 插入字典明细表 */\n{{~it.dict.items:item:index}}\nINSERT INTO SYS_DICT_ITEM(DICT_KEY,KEY_,LABEL,SORT_,INTRO,REVISION) VALUES('{{=it.dict.defKey}}','{{=item.defKey}}','{{=item.defName}}','{{=item.sort}}','{{=item.intro}}',1);\n{{~}}"
  339. },
  340. {
  341. "applyFor": "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2",
  342. "type": "dbDDL",
  343. "createTable": "/**字段名,关键字等全部用的小写*/\ndrop table if exists {{=it.entity.defKey}};\n/**补充上库名,external关键字根据建表规范看是否添加*/\ncreate [external] table if not exists {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n/**这里把varchar,char,text,date,datetime字段全部映射为string类型.tinyint unsigned,bit,Integer,tinyint,smallint,mediumint映射为int类型,int unsigned映射为bigint.其它自定义映射规则根据自己情况修改*/\n/**当长度>0只有为decimal类型或double类型时才保留长度和小数的位数*/\n{{~it.entity.fields:field:index}}\n {{=it.func.lowerCase(field.defKey)}} {{=it.func.lowerCase(field.type)=='varchar'||it.func.lowerCase(field.type)=='char'||it.func.lowerCase(field.type)=='text'||it.func.lowerCase(field.type)=='date'||it.func.lowerCase(field.type)=='datetime' ? 'string':it.func.lowerCase(field.type)=='tinyint unsigned'||it.func.lowerCase(field.type)=='bit'||it.func.lowerCase(field.type)=='integer'||it.func.lowerCase(field.type)=='tinyint'||it.func.lowerCase(field.type)=='smallint'||it.func.lowerCase(field.type)=='mediumint' ? 'int':it.func.lowerCase(field.type)=='int unsigned' ? 'bigint':it.func.lowerCase(field.type)}}{{?field.len>0&&(it.func.lowerCase(field.type)=='decimal'||it.func.lowerCase(field.type)=='double')}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{=')'}}{{?}}{{?}} comment '{{=it.func.join(field.defName,field.comment,'')}}' {{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n{{?}}\n)\n{{\n let partitionedBy = it.entity.properties['partitioned by'];\n partitionedBy = partitionedBy?partitionedBy:'请在扩展属性中配置[partitioned by]属性';\n}}\ncomment '{{=it.func.join(it.entity.defName,';') }}'\n/**是否分区表,分区字段名和字段注释自定义*/\n[partitioned by {{=partitionedBy}}]\n/**文件存储格式自定义*/\n[stored as orc]\n/**hdfs上的地址自定义*/\n[location xxx]\n;",
  344. "createView": "",
  345. "deleteTable": "",
  346. "createIndex": "",
  347. "deleteIndex": "",
  348. "message": "",
  349. "update": ""
  350. },
  351. {
  352. "applyFor": "B91D99E0-9B7C-416C-8737-B760957DAF09",
  353. "type": "appCode",
  354. "content": "{{\n var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1<10?\"0\"+today.getMonth():today.getMonth();\n var days=today.getDate()<10?\"0\"+today.getDate():today.getDate();\n var hours = today.getHours()<10?\"0\"+today.getHours():today.getHours(); \n\tvar minutes = today.getMinutes()<10?\"0\"+today.getMinutes():today.getMinutes(); \n\tvar seconds = today.getSeconds()<10?\"0\"+today.getSeconds():today.getSeconds(); \n}}\n// Package models {{=it.func.join(it.entity.defName,it.entity.comment,',')}}\n// author : http://www.liyang.love\n// date : {{=fullYear}}-{{=month}}-{{=days}} {{=hours}}:{{=minutes}}\n// desc : {{=it.func.join(it.entity.defName,it.entity.comment,',')}}\npackage models\n\n$blankline\n\n// {{=it.func.camel(it.entity.defKey,true) }} {{=it.func.join(it.entity.defName,it.entity.comment,',')}}。\n// 说明:{{=it.entity.comment}}\n// 表名:{{=it.entity.defKey}}\n// group: {{=it.func.camel(it.entity.defKey,true) }}\n// obsolete:\n// appliesto:go 1.8+;\n// namespace:hongmouer.his.models.{{=it.func.camel(it.entity.defKey,true) }}\n// assembly: hongmouer.his.models.go\n// class:HongMouer.HIS.Models.{{=it.func.camel(it.entity.defKey,true) }}\n// version:{{=fullYear}}-{{=month}}-{{=days}} {{=hours}}:{{=minutes}}\ntype {{=it.func.camel(it.entity.defKey,true) }} struct {\n {{~it.entity.fields:field:index}}\n {{=formatGoLang(it.func.camel(field.defKey,true),null,field,it.entity.fields,null,1)}} {{=formatGoLang(field.type,\"type\",field,it.entity.fields,10,3)}} `gorm:\"column:{{=field.primaryKey?\"primaryKey;\":\"\"}}{{=field.defKey}}\" json:\"{{=it.func.camel(field.defKey,true)}}\"` {{=formatGoLang(\"gorm:column:\"+field.defKey+\" json:\"+it.func.camel(field.defKey,true),null,field,it.entity.fields,null,2)}} //type:{{=formatGoLang(field.type,\"type\",field,it.entity.fields,null,3)}} comment:{{=formatGoLang(it.func.join(field.defName,field.comment,';'),\"defName\",field,it.entity.fields,null,4)}} version:{{=fullYear}}-{{=month}}-{{=days}} {{=hours}}:{{=minutes}}\n {{~}}\n}\n\n\n$blankline\n// TableName 表名:{{=it.entity.defKey}},{{=it.entity.defName}}。\n// 说明:{{=it.entity.comment}}\nfunc (ZentaoUserInfo) TableName() string {\n\treturn \"{{=it.entity.defKey}}\"\n}\n\n{{\n\nfunction formatGoLang(str, fieldName, field, fileds, emptLength, isFiled) {\n var maxLength = 0;\n\n if (isFiled == 1) {\n for (var i = 0; i < fileds.length; i++) {\n if (getBlength(it.func.camel(fileds[i].defKey, true)) > maxLength) {\n maxLength = getBlength(it.func.camel(fileds[i].defKey, true)) + 2;\n }\n }\n } else if (isFiled == 2) {\n for (var i = 0; i < fileds.length; i++) {\n var newStr = \"gorm:column:\" + fileds[i].defKey + \" json:\" + it.func.camel(fileds[i].defKey, true);\n if (getBlength(newStr) > maxLength) {\n maxLength = getBlength(newStr) + 2;\n }\n }\n var empt = \"\";\n var strLength = getBlength(str);\n if (field.primaryKey) {\n strLength += getBlength(\"primaryKey;\");\n }\n for (var j = 0; j < maxLength - strLength; j++) {\n empt += ' ';\n }\n return empt;\n } else if (isFiled == 3) {\n /*获取某个字段的最大长度*/\n for (var i = 0; i < fileds.length; i++) {\n var newStr = eval(\"fileds[\" + i + \"].\" + fieldName);\n if (getBlength(newStr) > maxLength) {\n maxLength = getBlength(newStr) + 1;\n }\n }\n } else if (isFiled == 4) {\n /*获取某个字段的最大长度*/\n for (var i = 0; i < fileds.length; i++) {\n var newStr = fileds[i].comment + \";\" + fileds[i].defName;\n if (getBlength(newStr) > maxLength) {\n maxLength = getBlength(newStr) + 1;\n }\n }\n }\n else {\n maxLength = emptLength;\n }\n\n var strLength = getBlength(str);\n for (var j = 0; j < maxLength - strLength; j++) {\n str += ' ';\n }\n return str;\n}\n\nfunction getBlength(str) {\n var n = 0;\n for (var i = str.length; i--;) {\n n += str.charCodeAt(i) > 255 ? 2 : 1;\n }\n return n;\n} \n\n}}"
  355. },
  356. {
  357. "applyFor": "BDF457FD-9F98-4AC3-A705-7587B00A3BAB",
  358. "type": "appCode",
  359. "struct": "use chrono::{DateTime, Local};\nuse serde::{Deserialize, Serialize};\n$blankline\n/// {{=it.entity.defName}}\n#[derive(Serialize, Deserialize, Debug, Clone)]\n{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n \n}}\npub struct {{=beanClass}} {\n {{~it.entity.fields:field:index}}\n {{\n let fieldDateType = field.type;\n if(!field.notNull){\n fieldDateType = 'Option<'+fieldDateType+'>';\n }\n }}/// {{=field.defName}}\n pub {{=it.func.camel(field.defKey,false)}}: {{=fieldDateType}},\n {{~}}\n}\n"
  360. },
  361. {
  362. "applyFor": "56F4B55B-F0B8-4049-9E6B-50B95C1D793A",
  363. "type": "dbDDL",
  364. "createTable": "CREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.autoIncrement ? '' : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}COMMENT ON TABLE {{=it.entity.defKey}} IS '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}';{{?}}\n{{~it.entity.fields:field:index}}\n{{? field.defName || field.comment}}COMMENT ON COLUMN {{=it.entity.defKey}}.{{=field.defKey}} IS '{{=it.func.join(field.defName,field.comment,';')}}';{{?}}\n{{~}}",
  365. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline",
  366. "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
  367. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  368. "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX {{=index.defKey}} ;\n{{~}}",
  369. "message": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChanged(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('代码:'+(before.defKey||'NULL')+'->'+(after.defKey||'NULL'));\n }\n if(before.defName !== after.defName){\n ret.push('显示名称:'+(before.defName||'NULL')+'->'+(after.defName||'NULL'));\n }\n if(before.comment !== after.comment){\n ret.push('说明:'+(before.comment||'NULL')+'->'+(after.comment||'NULL'));\n }\n if(ret.length>0){\n return ' 基本信息:\\n\\t'+ret.join('\\n\\t');\n }\n return '';\n };\n \n function buildAddedDesc(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n \n for (let field of fieldAdded) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildRemovedDesc(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n \n for (let field of fieldRemoved) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildModifiedDesc(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n for (let field1 of fieldModified) { \n let row = [];\n let field = field1.before;\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* -------------------------------------------------- */\n创建表:\n{{~ createEntities:entity}}\n {{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* -------------------------------------------------- */\n删除表:\n{{~ dropEntities:entity}}\n {{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* -------------------------------------------------- */\n修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]{{let changeText=baseChanged(entity.data.baseChanged);}}\n{{=baseChanged(entity.data.baseChanged)}}\n {{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n 添加字段:\n {{='\\t'}}{{=buildAddedDesc(entity).join('\\n\\t')}}\n {{?}}{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n 删除字段:\n {{='\\t'}}{{=buildRemovedDesc(entity).join('\\n\\t')}}\n {{?}}{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n 修改字段:\n {{='\\t'}}{{=buildModifiedDesc(entity).join('\\n\\t')}}\n {{?}}{{\n /*计算是否调整了属性*/\n let propAdded = entity.data.propAdded || [];\n let propRemoved = entity.data.propRemoved || [];\n let propModified = entity.data.propModified || [];\n let changed = propAdded.length>0 || propRemoved.length>0 || propModified.length>0;\n /*计算关联是否调整*/\n let refEntityAdd = entity.data.refEntityAdd || [];\n let refEntityRemoved = entity.data.refEntityRemoved || [];\n let relaArray = [];\n for (let rela of refEntityAdd) {\n relaArray.push('\\n\\t建立关联:'+rela.defKey+'['+rela.defName+']');\n }\n for (let rela of refEntityRemoved) {\n relaArray.push('\\n\\t解除关联:'+rela.defKey+'['+rela.defName+']');\n }\n /*索引是否修改过*/\n let indexChanged = entity.data.indexChanged;\n }}\n{{=indexChanged?'\\n\\t更改了索引':''}}\n{{=changed?'\\n\\t更改了属性':''}}\n{{=relaArray.length>0?relaArray.join(''):''}}\n{{~}}\n{{?}}",
  370. "update": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChangedDDL(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push(`ALTER TABLE ${before.defKey} RENAME TO ${after.defKey}`);\n }\n let commentText = '';\n let commentChanged = false;\n if(before.defName !== after.defName){\n commentText = after.defName;\n commentChanged = true;\n }\n if(before.comment !== after.comment){\n commentChanged = true;\n if(commentText){\n commentText = (commentText+ ';'+after.comment)\n }else{\n commentText = after.comment\n }\n }\n if(commentChanged){\n let myText = `COMMENT ON TABLE ${after.defKey} IS '${commentText}'`;\n ret.push(myText);\n }\n let baseText = '-- 基本信息:\\n';\n return baseText+ret.join(';\\n')+';';\n };\n \n function buildAddedDDL(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n if(fieldAdded.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldAdded) { \n let ddlItem = `ADD (${field.defKey} ${field.dbType}`;\n /*处理数据类型长度*/\n if(field.len>0){\n ddlItem += ('('+field.len);\n if(parseInt(field.scale)>0){\n ddlItem += (','+field.scale);\n }\n ddlItem += ')';\n }\n let defaultValue = field.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n ddlItem += (' DEFAULT ' + defaultValue);\n }\n if(field.notNull){\n ddlItem += ' NOT NULL';\n }\n ddlItem += ')';\n ret.push(`${firstDDL} ${ddlItem}`);\n \n /*处理字段注释*/\n let fieldComments = [];\n if(field.defName != null &&field.defName.length>0){\n fieldComments.push(field.defName);\n }\n if(field.comment != null &&field.comment.length>0){\n fieldComments.push(field.comment);\n }\n let commentText = fieldComments.join(';');\n if(commentText != null && commentText.length > 0){\n let commentDDL = `COMMENT ON COLUMN ${entity.data.baseInfo.defKey}.${field.defKey} IS '${commentText}'`;\n ret.push(commentDDL);\n }\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildRemovedDDL(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n if(fieldRemoved.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldRemoved) { \n ret.push(`${firstDDL} DROP COLUMN ${field.defKey}`);\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildModifiedDDL(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldModified) { \n let changeDDL = '';\n let before = field.before || {};\n let after = field.after || {};\n if(before.defKey !== after.defKey){\n let renameText = `ALTER TABLE ${entity.data.baseInfo.defKey} RENAME COLUMN ${before.defKey} TO ${after.defKey};`;\n ret.push(renameText);\n }\n /*如果没有变化,则不生成变更语句*/\n if(before.dbType === after.dbType \n && before['len'] === after['len'] \n && before.scale === after.scale\n && before.primaryKey === after.primaryKey\n && before.notNull === after.notNull\n && before.autoIncrement === after.autoIncrement\n && before.defaultValue === after.defaultValue){\n continue;\n }\n changeDDL += ('MODIFY ('+after.defKey+'');\n changeDDL += (' '+after.dbType);\n if(after.len>0){\n changeDDL += ('('+after.len);\n if(parseInt(after.scale)>0){\n changeDDL += (','+after.scale);\n }\n changeDDL += ')';\n }\n let defaultValue = after.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n changeDDL += (' DEFAULT ' + defaultValue);\n }\n \n if(after.notNull){\n changeDDL += ' NOT NULL';\n }\n changeDDL += ')';\n ret.push(`${firstDDL} ${changeDDL};`);\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=it.func.createDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=it.func.dropDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* --------------- 修改表 --------------- */\n-- 修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]\n{{=baseChangedDDL(entity.data.baseChanged)}}\n{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n-- 修改字段:\n{{=buildModifiedDDL(entity).join('\\n')}}\n{{?}}{{\n/*索引是否修改过*/\nlet indexChanged = entity.data.indexChanged;\n}}\n{{? indexChanged }}\n{{=it.func.indexRebuildDDL(entity.data.baseInfo,entity.data.newIndexes,entity.data.fullFields,entity['type'])}}\n{{?}}\n\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n-- 添加字段:\n{{=buildAddedDDL(entity)}};\n{{?}}\n\n{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n-- 删除字段:\n{{=buildRemovedDDL(entity)}};\n{{?}}\n{{~}}\n{{?}}"
  371. },
  372. {
  373. "applyFor": "483F9346-C99E-4014-A1D2-A554606BD8A3",
  374. "type": "dbDDL",
  375. "createTable": "{{let dorisDistributedBy = it.entity.properties['dorisDistributedBy'];\n dorisDistributedBy = dorisDistributedBy?dorisDistributedBy:'请在表的扩展属性中配置[dorisDistributedBy]属性';\n}}CREATE TABLE IF NOT EXISTS {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n `{{=field.defKey}}` {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}} {{= field.notNull ? 'NOT NULL' : '' }} COMMENT '{{=it.func.join(field.defName,field.comment,';')}}' {{= index < it.entity.fields.length-1 ? ',' : '' }}\n{{~}}\n) COMMENT '{{=it.func.join(it.entity.defName,it.entity.comment,';') }}'\n{{=dorisDistributedBy}} ;\n$blankline\n",
  376. "createView": "",
  377. "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
  378. "createIndex": "",
  379. "deleteIndex": "",
  380. "message": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChanged(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('代码:'+(before.defKey||'NULL')+'->'+(after.defKey||'NULL'));\n }\n if(before.defName !== after.defName){\n ret.push('显示名称:'+(before.defName||'NULL')+'->'+(after.defName||'NULL'));\n }\n if(before.comment !== after.comment){\n ret.push('说明:'+(before.comment||'NULL')+'->'+(after.comment||'NULL'));\n }\n if(ret.length>0){\n return ' 基本信息:\\n\\t'+ret.join('\\n\\t');\n }\n return '';\n };\n \n function buildAddedDesc(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n \n for (let field of fieldAdded) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildRemovedDesc(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n \n for (let field of fieldRemoved) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildModifiedDesc(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n for (let field1 of fieldModified) { \n let row = [];\n let field = field1.before;\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n}}\n\n\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n{{? modifyEntities && modifyEntities.length > 0}}\n/* --------------- 修改表 --------------- */\n{{~ modifyEntities:entity}}\n{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]{{let changeText=baseChanged(entity.data.baseChanged);}}\n{{=baseChanged(entity.data.baseChanged)}}\n {{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n 修改字段:\n {{='\\t'}}{{=buildModifiedDesc(entity).join('\\n\\t')}}{{?}}{{\n /*计算是否调整了属性*/\n let propAdded = entity.data.propAdded || [];\n let propRemoved = entity.data.propRemoved || [];\n let propModified = entity.data.propModified || [];\n let changed = propAdded.length>0 || propRemoved.length>0 || propModified.length>0;\n /*计算关联是否调整*/\n let refEntityAdd = entity.data.refEntityAdd || [];\n let refEntityRemoved = entity.data.refEntityRemoved || [];\n let relaArray = [];\n for (let rela of refEntityAdd) {\n relaArray.push('建立关联:'+rela.defKey+'['+rela.defName+']');\n }\n for (let rela of refEntityRemoved) {\n relaArray.push('解除关联:'+rela.defKey+'['+rela.defName+']');\n }\n /*索引是否修改过*/\n let indexChanged = entity.data.indexChanged;\n }}{{=indexChanged?'\\n\\t更改了索引':''}}{{=changed?'\\n\\t更改了属性':''}}{{=relaArray.length>0?('\\n\\t'+relaArray.join('\\n\\t')):''}}\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n 添加字段:\n{{='\\t'}}{{=buildAddedDesc(entity).join('\\n\\t')}}\n{{?}}{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n 删除字段:\n{{='\\t'}}{{=buildRemovedDesc(entity).join('\\n\\t')}}\n{{?}}\n{{~}}\n{{?}}\n",
  381. "update": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChangedDDL(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('ALTER TABLE '+before.defKey+' RENAME TO '+after.defKey);\n }\n let commentText = '';\n let commentChanged = false;\n if(before.defName !== after.defName){\n commentText = after.defName;\n commentChanged = true;\n }\n if(before.comment !== after.comment){\n commentChanged = true;\n if(commentText){\n commentText = (commentText+ ';'+after.comment)\n }else{\n commentText = after.comment\n }\n }\n if(commentChanged){\n ret.push('ALTER TABLE '+after.defKey+' COMMENT \\''+commentText+'\\'');\n }\n let baseText = '-- 基本信息:\\n';\n return baseText+ret.join(';\\n')+';';\n };\n \n function buildAddedDDL(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n if(fieldAdded.length == 0){\n return '';\n }\n \n let firstDDL = 'ALTER TABLE '+entity.data.baseInfo.defKey;\n for (let field of fieldAdded) { \n let ddlItem = 'ADD COLUMN `'+field.defKey+'` '+field.dbType;\n /*处理数据类型长度*/\n if(field.len>0){\n ddlItem += ('('+field.len);\n if(parseInt(field.scale)>0){\n ddlItem += (','+field.scale);\n }\n ddlItem += ')';\n }\n if(field.notNull){\n ddlItem += ' NOT NULL';\n }\n if(field.autoIncrement){\n ddlItem += ' AUTO_INCREMENT';\n }\n if(field.defaultValue){\n ddlItem += (' DEFAULT ' + field.defaultValue);\n }\n ddlItem += (' COMMENT \\''+field.defName+';'+field.comment+'\\'');\n \n if(field.index>0 && field.afterFieldKey){\n ddlItem += (' AFTER '+field.afterFieldKey);\n }\n ret.push(ddlItem);\n }\n return firstDDL+'\\n'+ret.join(',\\n');\n };\n \n function buildRemovedDDL(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n if(fieldRemoved.length == 0){\n return '';\n }\n \n let firstDDL = 'ALTER TABLE '+entity.data.baseInfo.defKey;\n for (let field of fieldRemoved) { \n ret.push('DROP '+field.defKey);\n }\n return firstDDL+'\\n'+ret.join(',\\n');\n };\n \n function buildModifiedDDL(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n let firstDDL = 'ALTER TABLE '+entity.data.baseInfo.defKey;\n for (let field of fieldModified) { \n let changeDDL = '';\n let before = field.before || {};\n let after = field.after || {};\n if(before.defKey === after.defKey){\n changeDDL += (' MODIFY COLUMN `'+after.defKey+'`');\n }else{\n changeDDL += (' CHANGE COLUMN `'+before.defKey+'` `'+after.defKey+'`');\n }\n changeDDL += (' '+after.dbType);\n if(after.len>0){\n changeDDL += ('('+after.len);\n if(parseInt(after.scale)>0){\n changeDDL += (','+after.scale);\n }\n changeDDL += ')';\n }\n if(after.notNull){\n changeDDL += ' NOT NULL';\n }\n let defaultValue = '';\n if(after.defaultValue != null && after.defaultValue.length>0){\n defaultValue = (after.defaultValue);\n }else{\n defaultValue = 'NULL';\n }\n if(defaultValue != 'NULL'){\n changeDDL += (' DEFAULT ' + defaultValue);\n }\n\n let comment = after.defName;\n if(after.comment){\n comment = comment + ';' + (after.comment||'');\n }\n if(comment){\n changeDDL += (' COMMENT \\''+comment+'\\';');\n }\n \n ret.push(firstDDL+' '+changeDDL);\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=it.func.createDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=it.func.dropDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* --------------- 修改表 --------------- */\n-- 修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]\n{{=baseChangedDDL(entity.data.baseChanged)}}\n{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n-- 修改字段:\n{{=buildModifiedDDL(entity).join('\\n')}}\n{{?}}{{\n/*索引是否修改过*/\nlet indexChanged = entity.data.indexChanged;\n}}\n{{? indexChanged }}\n{{=it.func.indexRebuildDDL(entity.data.baseInfo,entity.data.newIndexes,entity.data.fullFields,entity['type'])}}\n{{?}}\n\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n-- 添加字段:\n{{=buildAddedDDL(entity)}};\n{{?}}\n\n{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n-- 删除字段:\n{{=buildRemovedDDL(entity)}};\n{{?}}\n{{~}}\n{{?}}"
  382. }
  383. ],
  384. "generatorDoc": {
  385. "docTemplate": ""
  386. },
  387. "relationFieldSize": "15",
  388. "uiHint": [
  389. {
  390. "defKey": "Input",
  391. "defName": "普通输入框",
  392. "id": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  393. },
  394. {
  395. "defKey": "Select",
  396. "defName": "下拉输入框",
  397. "id": "FB111359-2B73-4443-926C-08A98E446448"
  398. },
  399. {
  400. "defKey": "CheckBox",
  401. "defName": "复选框",
  402. "id": "0CB8A6C9-1115-4FC0-B51E-5C028065082F"
  403. },
  404. {
  405. "defKey": "RadioBox",
  406. "defName": "单选框",
  407. "id": "5C04987A-260F-4B7C-A5D5-22A181AAE9CA"
  408. },
  409. {
  410. "defKey": "Double",
  411. "defName": "小数输入",
  412. "id": "8D5BAFE4-E15C-4707-A047-8EE59C58E70F"
  413. },
  414. {
  415. "defKey": "Integer",
  416. "defName": "整数输入",
  417. "id": "9999AF2A-A44E-415C-A2DC-D7C613BD0073"
  418. },
  419. {
  420. "defKey": "Money",
  421. "defName": "金额输入",
  422. "id": "2B0C3D0C-7BAF-4B36-81AD-9362B5E5DC2E"
  423. },
  424. {
  425. "defKey": "Date",
  426. "defName": "日期输入",
  427. "id": "E4D94E14-F695-487F-AFC2-4D888009B7DA"
  428. },
  429. {
  430. "defKey": "DataYearMonth",
  431. "defName": "年月输入",
  432. "id": "936927E3-DD2D-4096-87FD-074CDE278D59"
  433. },
  434. {
  435. "defKey": "Text",
  436. "defName": "长文本输入",
  437. "id": "D89DD4F1-ADAC-4469-BF8D-B3FF41AE7963"
  438. },
  439. {
  440. "defKey": "RichText",
  441. "defName": "富文本输入",
  442. "id": "C134EB1F-4CFF-49E0-882F-2C6FB275CB20"
  443. }
  444. ],
  445. "headers": [
  446. {
  447. "refKey": "defKey",
  448. "hideInGraph": false,
  449. "value": "字段代码",
  450. "freeze": false
  451. },
  452. {
  453. "refKey": "defName",
  454. "hideInGraph": false,
  455. "value": "显示名称",
  456. "freeze": false
  457. },
  458. {
  459. "refKey": "primaryKey",
  460. "hideInGraph": false,
  461. "value": "主键",
  462. "freeze": false
  463. },
  464. {
  465. "refKey": "notNull",
  466. "hideInGraph": true,
  467. "value": "不为空",
  468. "freeze": false
  469. },
  470. {
  471. "refKey": "autoIncrement",
  472. "hideInGraph": true,
  473. "value": "自增",
  474. "freeze": false
  475. },
  476. {
  477. "refKey": "domain",
  478. "hideInGraph": true,
  479. "value": "数据域",
  480. "freeze": false
  481. },
  482. {
  483. "refKey": "type",
  484. "hideInGraph": false,
  485. "value": "数据类型",
  486. "freeze": false
  487. },
  488. {
  489. "refKey": "len",
  490. "hideInGraph": false,
  491. "value": "长度",
  492. "freeze": false
  493. },
  494. {
  495. "refKey": "scale",
  496. "hideInGraph": false,
  497. "value": "小数位数",
  498. "freeze": false
  499. },
  500. {
  501. "refKey": "comment",
  502. "hideInGraph": true,
  503. "value": "说明",
  504. "freeze": false
  505. },
  506. {
  507. "refKey": "refDict",
  508. "hideInGraph": true,
  509. "value": "数据字典",
  510. "freeze": false
  511. },
  512. {
  513. "refKey": "defaultValue",
  514. "hideInGraph": true,
  515. "value": "默认值",
  516. "freeze": false
  517. },
  518. {
  519. "refKey": "isStandard",
  520. "hideInGraph": false,
  521. "value": "标准字段",
  522. "enable": false,
  523. "freeze": false
  524. },
  525. {
  526. "refKey": "uiHint",
  527. "hideInGraph": true,
  528. "value": "UI建议",
  529. "enable": true,
  530. "freeze": false
  531. },
  532. {
  533. "refKey": "extProps",
  534. "hideInGraph": true,
  535. "value": "拓展属性",
  536. "enable": true,
  537. "freeze": false
  538. },
  539. {
  540. "refKey": "attr1",
  541. "value": "属性1",
  542. "hideInGraph": true,
  543. "enable": true,
  544. "freeze": false
  545. },
  546. {
  547. "refKey": "attr2",
  548. "value": "属性2",
  549. "hideInGraph": true,
  550. "enable": false,
  551. "freeze": false
  552. },
  553. {
  554. "refKey": "attr3",
  555. "value": "属性3",
  556. "hideInGraph": true,
  557. "enable": false,
  558. "freeze": false
  559. },
  560. {
  561. "refKey": "attr4",
  562. "value": "属性4",
  563. "hideInGraph": true,
  564. "enable": false,
  565. "freeze": false
  566. },
  567. {
  568. "refKey": "attr5",
  569. "value": "属性5",
  570. "hideInGraph": true,
  571. "enable": false,
  572. "freeze": false
  573. },
  574. {
  575. "refKey": "attr6",
  576. "value": "属性6",
  577. "hideInGraph": true,
  578. "enable": false,
  579. "freeze": false
  580. },
  581. {
  582. "refKey": "attr7",
  583. "value": "属性7",
  584. "hideInGraph": true,
  585. "enable": false,
  586. "freeze": false
  587. },
  588. {
  589. "refKey": "attr8",
  590. "value": "属性8",
  591. "hideInGraph": true,
  592. "enable": false,
  593. "freeze": false
  594. },
  595. {
  596. "refKey": "attr9",
  597. "value": "属性9",
  598. "hideInGraph": true,
  599. "enable": false,
  600. "freeze": false
  601. }
  602. ],
  603. "modelType": "modalAll",
  604. "recentColors": [
  605. "#d148d1",
  606. "#ce4bce",
  607. "#831b83",
  608. "#dd31dd",
  609. "#da2fda",
  610. "#e988e9",
  611. "#000000",
  612. "#DDE5FF"
  613. ],
  614. "DDLToggleCase": "L",
  615. "menuWidth": "315px"
  616. },
  617. "entities": [
  618. {
  619. "id": "58D62115-9E44-4887-8299-7B4694476966",
  620. "defKey": "fx_login",
  621. "defName": "登录信息表",
  622. "comment": "",
  623. "properties": {},
  624. "fields": [
  625. {
  626. "defKey": "login_id",
  627. "defName": "登录ID",
  628. "comment": "",
  629. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  630. "type": "VARCHAR",
  631. "len": "",
  632. "scale": "",
  633. "primaryKey": true,
  634. "notNull": true,
  635. "autoIncrement": false,
  636. "defaultValue": "",
  637. "hideInGraph": false,
  638. "refDict": "",
  639. "attr1": "",
  640. "attr2": "",
  641. "attr3": "",
  642. "attr4": "",
  643. "attr5": "",
  644. "attr6": "",
  645. "attr7": "",
  646. "attr8": "",
  647. "attr9": "",
  648. "id": "B17EFE29-1654-45E8-BCF1-A486AED74CC7",
  649. "extProps": {}
  650. },
  651. {
  652. "defKey": "user_id",
  653. "defName": "用户ID",
  654. "comment": "",
  655. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  656. "type": "VARCHAR",
  657. "len": "",
  658. "scale": "",
  659. "primaryKey": false,
  660. "notNull": false,
  661. "autoIncrement": false,
  662. "defaultValue": "",
  663. "hideInGraph": false,
  664. "refDict": "",
  665. "attr1": "",
  666. "attr2": "",
  667. "attr3": "",
  668. "attr4": "",
  669. "attr5": "",
  670. "attr6": "",
  671. "attr7": "",
  672. "attr8": "",
  673. "attr9": "",
  674. "id": "E1E80966-B829-4CF1-A7D2-1FCA9101E362",
  675. "extProps": {}
  676. },
  677. {
  678. "defKey": "login_type",
  679. "defName": "登录类型",
  680. "comment": "",
  681. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  682. "type": "VARCHAR",
  683. "len": "",
  684. "scale": "",
  685. "primaryKey": false,
  686. "notNull": false,
  687. "autoIncrement": false,
  688. "defaultValue": "",
  689. "hideInGraph": false,
  690. "refDict": "",
  691. "attr1": "",
  692. "attr2": "",
  693. "attr3": "",
  694. "attr4": "",
  695. "attr5": "",
  696. "attr6": "",
  697. "attr7": "",
  698. "attr8": "",
  699. "attr9": "",
  700. "id": "ABF23A18-A87B-46D1-B5B7-8524ED1466E5",
  701. "extProps": {}
  702. },
  703. {
  704. "defKey": "login_name",
  705. "defName": "登录名",
  706. "comment": "",
  707. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  708. "type": "VARCHAR",
  709. "len": "",
  710. "scale": "",
  711. "primaryKey": false,
  712. "notNull": false,
  713. "autoIncrement": false,
  714. "defaultValue": "",
  715. "hideInGraph": false,
  716. "refDict": "",
  717. "attr1": "",
  718. "attr2": "",
  719. "attr3": "",
  720. "attr4": "",
  721. "attr5": "",
  722. "attr6": "",
  723. "attr7": "",
  724. "attr8": "",
  725. "attr9": "",
  726. "id": "C35D4DC7-7F4F-4FF3-9B08-551FE9273ACE",
  727. "extProps": {}
  728. },
  729. {
  730. "defKey": "password",
  731. "defName": "密码",
  732. "comment": "",
  733. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  734. "type": "VARCHAR",
  735. "len": "",
  736. "scale": "",
  737. "primaryKey": false,
  738. "notNull": false,
  739. "autoIncrement": false,
  740. "defaultValue": "",
  741. "hideInGraph": false,
  742. "refDict": "",
  743. "attr1": "",
  744. "attr2": "",
  745. "attr3": "",
  746. "attr4": "",
  747. "attr5": "",
  748. "attr6": "",
  749. "attr7": "",
  750. "attr8": "",
  751. "attr9": "",
  752. "id": "3F4C18E5-DC0A-493A-90A2-4349784375D1",
  753. "extProps": {}
  754. },
  755. {
  756. "defKey": "status",
  757. "defName": "状态",
  758. "comment": "1正常",
  759. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  760. "type": "INT",
  761. "len": "",
  762. "scale": "",
  763. "primaryKey": false,
  764. "notNull": false,
  765. "autoIncrement": false,
  766. "defaultValue": "1",
  767. "hideInGraph": false,
  768. "refDict": "",
  769. "attr1": "",
  770. "attr2": "",
  771. "attr3": "",
  772. "attr4": "",
  773. "attr5": "",
  774. "attr6": "",
  775. "attr7": "",
  776. "attr8": "",
  777. "attr9": "",
  778. "id": "519BE847-4FD4-40A3-B60D-5ED1CBE9A79F",
  779. "extProps": {}
  780. },
  781. {
  782. "defKey": "created_by",
  783. "defName": "创建人",
  784. "comment": "",
  785. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  786. "type": "VARCHAR",
  787. "len": "",
  788. "scale": "",
  789. "primaryKey": false,
  790. "notNull": false,
  791. "autoIncrement": false,
  792. "defaultValue": "",
  793. "hideInGraph": false,
  794. "refDict": "",
  795. "attr1": "",
  796. "attr2": "",
  797. "attr3": "",
  798. "attr4": "",
  799. "attr5": "",
  800. "attr6": "",
  801. "attr7": "",
  802. "attr8": "",
  803. "attr9": "",
  804. "id": "C2A30C83-1E9C-447B-94E7-C99B234E8DC0",
  805. "extProps": {}
  806. },
  807. {
  808. "defKey": "created_at",
  809. "defName": "创建时间",
  810. "comment": "",
  811. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  812. "type": "DATETIME",
  813. "len": "",
  814. "scale": "",
  815. "primaryKey": false,
  816. "notNull": false,
  817. "autoIncrement": false,
  818. "defaultValue": "'CURRENT_TIMESTAMP'",
  819. "hideInGraph": false,
  820. "refDict": "",
  821. "attr1": "",
  822. "attr2": "",
  823. "attr3": "",
  824. "attr4": "",
  825. "attr5": "",
  826. "attr6": "",
  827. "attr7": "",
  828. "attr8": "",
  829. "attr9": "",
  830. "id": "B47498B8-8AAF-48F1-B785-2EE68F25E05F",
  831. "extProps": {}
  832. },
  833. {
  834. "defKey": "updated_by",
  835. "defName": "更新人",
  836. "comment": "",
  837. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  838. "type": "VARCHAR",
  839. "len": "",
  840. "scale": "",
  841. "primaryKey": false,
  842. "notNull": false,
  843. "autoIncrement": false,
  844. "defaultValue": "",
  845. "hideInGraph": false,
  846. "refDict": "",
  847. "attr1": "",
  848. "attr2": "",
  849. "attr3": "",
  850. "attr4": "",
  851. "attr5": "",
  852. "attr6": "",
  853. "attr7": "",
  854. "attr8": "",
  855. "attr9": "",
  856. "id": "E5E59D73-95B2-469B-841F-871AC3A96ABA",
  857. "extProps": {}
  858. },
  859. {
  860. "defKey": "updated_at",
  861. "defName": "更新时间",
  862. "comment": "",
  863. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  864. "type": "DATETIME",
  865. "len": "",
  866. "scale": "",
  867. "primaryKey": false,
  868. "notNull": false,
  869. "autoIncrement": false,
  870. "defaultValue": "",
  871. "hideInGraph": false,
  872. "refDict": "",
  873. "attr1": "",
  874. "attr2": "",
  875. "attr3": "",
  876. "attr4": "",
  877. "attr5": "",
  878. "attr6": "",
  879. "attr7": "",
  880. "attr8": "",
  881. "attr9": "",
  882. "id": "B3DBBCCE-84E2-4141-9E2B-E5432DAC999B",
  883. "extProps": {}
  884. },
  885. {
  886. "defKey": "deleted",
  887. "defName": "删除标志",
  888. "comment": "1删除,0正常",
  889. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  890. "type": "INT",
  891. "len": "",
  892. "scale": "",
  893. "primaryKey": false,
  894. "notNull": false,
  895. "autoIncrement": false,
  896. "defaultValue": "0",
  897. "hideInGraph": false,
  898. "refDict": "",
  899. "attr1": "",
  900. "attr2": "",
  901. "attr3": "",
  902. "attr4": "",
  903. "attr5": "",
  904. "attr6": "",
  905. "attr7": "",
  906. "attr8": "",
  907. "attr9": "",
  908. "id": "1F9BB164-7B4D-413E-9775-85E5C511C2E0",
  909. "extProps": {}
  910. }
  911. ],
  912. "indexes": [],
  913. "nameTemplate": "{defKey}[{defName}]",
  914. "headers": [
  915. {
  916. "freeze": false,
  917. "refKey": "hideInGraph",
  918. "hideInGraph": true
  919. },
  920. {
  921. "freeze": true,
  922. "refKey": "defKey",
  923. "hideInGraph": false
  924. },
  925. {
  926. "freeze": true,
  927. "refKey": "defName",
  928. "hideInGraph": false
  929. },
  930. {
  931. "freeze": false,
  932. "refKey": "primaryKey",
  933. "hideInGraph": false
  934. },
  935. {
  936. "freeze": false,
  937. "refKey": "notNull",
  938. "hideInGraph": true
  939. },
  940. {
  941. "freeze": false,
  942. "refKey": "autoIncrement",
  943. "hideInGraph": true
  944. },
  945. {
  946. "freeze": false,
  947. "refKey": "domain",
  948. "hideInGraph": true
  949. },
  950. {
  951. "freeze": false,
  952. "refKey": "type",
  953. "hideInGraph": false
  954. },
  955. {
  956. "freeze": false,
  957. "refKey": "len",
  958. "hideInGraph": false
  959. },
  960. {
  961. "freeze": false,
  962. "refKey": "scale",
  963. "hideInGraph": false
  964. },
  965. {
  966. "freeze": false,
  967. "refKey": "comment",
  968. "hideInGraph": true
  969. },
  970. {
  971. "freeze": false,
  972. "refKey": "refDict",
  973. "hideInGraph": true
  974. },
  975. {
  976. "freeze": false,
  977. "refKey": "defaultValue",
  978. "hideInGraph": true
  979. },
  980. {
  981. "freeze": false,
  982. "refKey": "isStandard",
  983. "hideInGraph": false
  984. },
  985. {
  986. "freeze": false,
  987. "refKey": "uiHint",
  988. "hideInGraph": true
  989. },
  990. {
  991. "freeze": false,
  992. "refKey": "extProps",
  993. "hideInGraph": true
  994. }
  995. ],
  996. "correlations": []
  997. },
  998. {
  999. "id": "2F4EC6AE-3AD7-4DF8-B529-32A1876170CC",
  1000. "defKey": "fx_menu",
  1001. "defName": "菜单表",
  1002. "comment": "",
  1003. "properties": {},
  1004. "fields": [
  1005. {
  1006. "defKey": "menu_id",
  1007. "defName": "菜单ID",
  1008. "comment": "",
  1009. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  1010. "type": "VARCHAR",
  1011. "len": "",
  1012. "scale": "",
  1013. "primaryKey": true,
  1014. "notNull": true,
  1015. "autoIncrement": false,
  1016. "defaultValue": "",
  1017. "hideInGraph": false,
  1018. "refDict": "",
  1019. "attr1": "",
  1020. "attr2": "",
  1021. "attr3": "",
  1022. "attr4": "",
  1023. "attr5": "",
  1024. "attr6": "",
  1025. "attr7": "",
  1026. "attr8": "",
  1027. "attr9": "",
  1028. "id": "3192D1E1-E4E8-4E05-A9AA-15A7CBA05100",
  1029. "extProps": {}
  1030. },
  1031. {
  1032. "defKey": "menu_code",
  1033. "defName": "菜单编码",
  1034. "comment": "",
  1035. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  1036. "type": "VARCHAR",
  1037. "len": "",
  1038. "scale": "",
  1039. "primaryKey": false,
  1040. "notNull": false,
  1041. "autoIncrement": false,
  1042. "defaultValue": "",
  1043. "hideInGraph": false,
  1044. "refDict": "",
  1045. "attr1": "",
  1046. "attr2": "",
  1047. "attr3": "",
  1048. "attr4": "",
  1049. "attr5": "",
  1050. "attr6": "",
  1051. "attr7": "",
  1052. "attr8": "",
  1053. "attr9": "",
  1054. "id": "5406844E-4BB2-4C84-B41C-00B18FB9EBAC",
  1055. "extProps": {}
  1056. },
  1057. {
  1058. "defKey": "menu_name",
  1059. "defName": "菜单名称",
  1060. "comment": "",
  1061. "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
  1062. "type": "VARCHAR",
  1063. "len": "",
  1064. "scale": "",
  1065. "primaryKey": false,
  1066. "notNull": false,
  1067. "autoIncrement": false,
  1068. "defaultValue": "",
  1069. "hideInGraph": false,
  1070. "refDict": "",
  1071. "attr1": "",
  1072. "attr2": "",
  1073. "attr3": "",
  1074. "attr4": "",
  1075. "attr5": "",
  1076. "attr6": "",
  1077. "attr7": "",
  1078. "attr8": "",
  1079. "attr9": "",
  1080. "id": "112EC434-9570-42C9-8A78-31E1D107DD63",
  1081. "extProps": {}
  1082. },
  1083. {
  1084. "defKey": "parent_id",
  1085. "defName": "上级ID",
  1086. "comment": "",
  1087. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  1088. "type": "VARCHAR",
  1089. "len": "",
  1090. "scale": "",
  1091. "primaryKey": false,
  1092. "notNull": false,
  1093. "autoIncrement": false,
  1094. "defaultValue": "",
  1095. "hideInGraph": false,
  1096. "refDict": "",
  1097. "attr1": "",
  1098. "attr2": "",
  1099. "attr3": "",
  1100. "attr4": "",
  1101. "attr5": "",
  1102. "attr6": "",
  1103. "attr7": "",
  1104. "attr8": "",
  1105. "attr9": "",
  1106. "id": "E355E8B2-CFC6-4610-B6D0-0EE2CD829E65",
  1107. "extProps": {}
  1108. },
  1109. {
  1110. "defKey": "sort_no",
  1111. "defName": "排序",
  1112. "comment": "",
  1113. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  1114. "type": "INT",
  1115. "len": "",
  1116. "scale": "",
  1117. "primaryKey": false,
  1118. "notNull": false,
  1119. "autoIncrement": false,
  1120. "defaultValue": "",
  1121. "hideInGraph": false,
  1122. "refDict": "",
  1123. "attr1": "",
  1124. "attr2": "",
  1125. "attr3": "",
  1126. "attr4": "",
  1127. "attr5": "",
  1128. "attr6": "",
  1129. "attr7": "",
  1130. "attr8": "",
  1131. "attr9": "",
  1132. "id": "7AC99E16-71CC-4910-9CD7-20144787B0DE",
  1133. "extProps": {}
  1134. },
  1135. {
  1136. "defKey": "status",
  1137. "defName": "状态",
  1138. "comment": "",
  1139. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  1140. "type": "INT",
  1141. "len": "",
  1142. "scale": "",
  1143. "primaryKey": false,
  1144. "notNull": false,
  1145. "autoIncrement": false,
  1146. "defaultValue": "1",
  1147. "hideInGraph": false,
  1148. "refDict": "",
  1149. "attr1": "",
  1150. "attr2": "",
  1151. "attr3": "",
  1152. "attr4": "",
  1153. "attr5": "",
  1154. "attr6": "",
  1155. "attr7": "",
  1156. "attr8": "",
  1157. "attr9": "",
  1158. "id": "EEBDAF16-0CC8-447E-893A-52945568D549",
  1159. "extProps": {}
  1160. },
  1161. {
  1162. "defKey": "client_type",
  1163. "defName": "终端类型",
  1164. "comment": "",
  1165. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  1166. "type": "VARCHAR",
  1167. "len": "",
  1168. "scale": "",
  1169. "primaryKey": false,
  1170. "notNull": false,
  1171. "autoIncrement": false,
  1172. "defaultValue": "",
  1173. "hideInGraph": false,
  1174. "refDict": "",
  1175. "attr1": "",
  1176. "attr2": "",
  1177. "attr3": "",
  1178. "attr4": "",
  1179. "attr5": "",
  1180. "attr6": "",
  1181. "attr7": "",
  1182. "attr8": "",
  1183. "attr9": "",
  1184. "id": "157D2AC1-9134-4228-8198-F099C435F013",
  1185. "extProps": {}
  1186. },
  1187. {
  1188. "defKey": "created_by",
  1189. "defName": "创建人",
  1190. "comment": "",
  1191. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1192. "type": "VARCHAR",
  1193. "len": "",
  1194. "scale": "",
  1195. "primaryKey": false,
  1196. "notNull": false,
  1197. "autoIncrement": false,
  1198. "defaultValue": "",
  1199. "hideInGraph": false,
  1200. "refDict": "",
  1201. "attr1": "",
  1202. "attr2": "",
  1203. "attr3": "",
  1204. "attr4": "",
  1205. "attr5": "",
  1206. "attr6": "",
  1207. "attr7": "",
  1208. "attr8": "",
  1209. "attr9": "",
  1210. "id": "45C89595-31DF-4F10-9830-E3E5E72314F2",
  1211. "extProps": {}
  1212. },
  1213. {
  1214. "defKey": "created_at",
  1215. "defName": "创建时间",
  1216. "comment": "",
  1217. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  1218. "type": "DATETIME",
  1219. "len": "",
  1220. "scale": "",
  1221. "primaryKey": false,
  1222. "notNull": false,
  1223. "autoIncrement": false,
  1224. "defaultValue": "'CURRENT_TIMESTAMP'",
  1225. "hideInGraph": false,
  1226. "refDict": "",
  1227. "attr1": "",
  1228. "attr2": "",
  1229. "attr3": "",
  1230. "attr4": "",
  1231. "attr5": "",
  1232. "attr6": "",
  1233. "attr7": "",
  1234. "attr8": "",
  1235. "attr9": "",
  1236. "id": "098F2A5B-6C2D-431C-A0D6-FD75101087D4",
  1237. "extProps": {}
  1238. },
  1239. {
  1240. "defKey": "updated_by",
  1241. "defName": "更新人",
  1242. "comment": "",
  1243. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1244. "type": "VARCHAR",
  1245. "len": "",
  1246. "scale": "",
  1247. "primaryKey": false,
  1248. "notNull": false,
  1249. "autoIncrement": false,
  1250. "defaultValue": "",
  1251. "hideInGraph": false,
  1252. "refDict": "",
  1253. "attr1": "",
  1254. "attr2": "",
  1255. "attr3": "",
  1256. "attr4": "",
  1257. "attr5": "",
  1258. "attr6": "",
  1259. "attr7": "",
  1260. "attr8": "",
  1261. "attr9": "",
  1262. "id": "AD3805FE-0A30-4FC6-A2F8-0918D073950B",
  1263. "extProps": {}
  1264. },
  1265. {
  1266. "defKey": "updated_at",
  1267. "defName": "更新时间",
  1268. "comment": "",
  1269. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  1270. "type": "DATETIME",
  1271. "len": "",
  1272. "scale": "",
  1273. "primaryKey": false,
  1274. "notNull": false,
  1275. "autoIncrement": false,
  1276. "defaultValue": "",
  1277. "hideInGraph": false,
  1278. "refDict": "",
  1279. "attr1": "",
  1280. "attr2": "",
  1281. "attr3": "",
  1282. "attr4": "",
  1283. "attr5": "",
  1284. "attr6": "",
  1285. "attr7": "",
  1286. "attr8": "",
  1287. "attr9": "",
  1288. "id": "9D799E5D-B344-4FB8-A555-EB5AB9EC1FD8",
  1289. "extProps": {}
  1290. },
  1291. {
  1292. "defKey": "deleted",
  1293. "defName": "删除标志",
  1294. "comment": "1删除,0正常",
  1295. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  1296. "type": "INT",
  1297. "len": "",
  1298. "scale": "",
  1299. "primaryKey": false,
  1300. "notNull": false,
  1301. "autoIncrement": false,
  1302. "defaultValue": "0",
  1303. "hideInGraph": false,
  1304. "refDict": "",
  1305. "attr1": "",
  1306. "attr2": "",
  1307. "attr3": "",
  1308. "attr4": "",
  1309. "attr5": "",
  1310. "attr6": "",
  1311. "attr7": "",
  1312. "attr8": "",
  1313. "attr9": "",
  1314. "id": "216CB4D9-7FDA-4030-A20C-78B76E8777DC",
  1315. "extProps": {}
  1316. }
  1317. ],
  1318. "indexes": [],
  1319. "nameTemplate": "{defKey}[{defName}]",
  1320. "headers": [
  1321. {
  1322. "freeze": false,
  1323. "refKey": "hideInGraph",
  1324. "hideInGraph": true
  1325. },
  1326. {
  1327. "freeze": true,
  1328. "refKey": "defKey",
  1329. "hideInGraph": false
  1330. },
  1331. {
  1332. "freeze": true,
  1333. "refKey": "defName",
  1334. "hideInGraph": false
  1335. },
  1336. {
  1337. "freeze": false,
  1338. "refKey": "primaryKey",
  1339. "hideInGraph": false
  1340. },
  1341. {
  1342. "freeze": false,
  1343. "refKey": "notNull",
  1344. "hideInGraph": true
  1345. },
  1346. {
  1347. "freeze": false,
  1348. "refKey": "autoIncrement",
  1349. "hideInGraph": true
  1350. },
  1351. {
  1352. "freeze": false,
  1353. "refKey": "domain",
  1354. "hideInGraph": true
  1355. },
  1356. {
  1357. "freeze": false,
  1358. "refKey": "type",
  1359. "hideInGraph": false
  1360. },
  1361. {
  1362. "freeze": false,
  1363. "refKey": "len",
  1364. "hideInGraph": false
  1365. },
  1366. {
  1367. "freeze": false,
  1368. "refKey": "scale",
  1369. "hideInGraph": false
  1370. },
  1371. {
  1372. "freeze": false,
  1373. "refKey": "comment",
  1374. "hideInGraph": true
  1375. },
  1376. {
  1377. "freeze": false,
  1378. "refKey": "refDict",
  1379. "hideInGraph": true
  1380. },
  1381. {
  1382. "freeze": false,
  1383. "refKey": "defaultValue",
  1384. "hideInGraph": true
  1385. },
  1386. {
  1387. "freeze": false,
  1388. "refKey": "isStandard",
  1389. "hideInGraph": false
  1390. },
  1391. {
  1392. "freeze": false,
  1393. "refKey": "uiHint",
  1394. "hideInGraph": true
  1395. },
  1396. {
  1397. "freeze": false,
  1398. "refKey": "extProps",
  1399. "hideInGraph": true
  1400. }
  1401. ],
  1402. "correlations": []
  1403. },
  1404. {
  1405. "id": "EA79AAAF-A9AA-4134-AD73-B8B3B997792E",
  1406. "defKey": "fx_tenant",
  1407. "defName": "租户表",
  1408. "comment": "",
  1409. "properties": {},
  1410. "fields": [
  1411. {
  1412. "defKey": "tenant_id",
  1413. "defName": "租户号",
  1414. "comment": "",
  1415. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  1416. "type": "VARCHAR",
  1417. "len": "",
  1418. "scale": "",
  1419. "primaryKey": true,
  1420. "notNull": true,
  1421. "autoIncrement": false,
  1422. "defaultValue": "",
  1423. "hideInGraph": false,
  1424. "refDict": "",
  1425. "attr1": "",
  1426. "attr2": "",
  1427. "attr3": "",
  1428. "attr4": "",
  1429. "attr5": "",
  1430. "attr6": "",
  1431. "attr7": "",
  1432. "attr8": "",
  1433. "attr9": "",
  1434. "id": "043CD81C-74E7-4081-B558-5414B9394013",
  1435. "extProps": {}
  1436. },
  1437. {
  1438. "defKey": "tenant_code",
  1439. "defName": "租户编号",
  1440. "comment": "",
  1441. "domain": "",
  1442. "type": "VARCHAR",
  1443. "len": 64,
  1444. "scale": "",
  1445. "primaryKey": false,
  1446. "notNull": false,
  1447. "autoIncrement": false,
  1448. "defaultValue": "",
  1449. "hideInGraph": false,
  1450. "refDict": "",
  1451. "attr1": "",
  1452. "attr2": "",
  1453. "attr3": "",
  1454. "attr4": "",
  1455. "attr5": "",
  1456. "attr6": "",
  1457. "attr7": "",
  1458. "attr8": "",
  1459. "attr9": "",
  1460. "id": "2B98465F-6973-441F-A32C-E8D7C5428512",
  1461. "extProps": {}
  1462. },
  1463. {
  1464. "defKey": "tenant_name",
  1465. "defName": "租户名称",
  1466. "comment": "",
  1467. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1468. "type": "VARCHAR",
  1469. "len": "",
  1470. "scale": "",
  1471. "primaryKey": false,
  1472. "notNull": false,
  1473. "autoIncrement": false,
  1474. "defaultValue": "",
  1475. "hideInGraph": false,
  1476. "refDict": "",
  1477. "attr1": "",
  1478. "attr2": "",
  1479. "attr3": "",
  1480. "attr4": "",
  1481. "attr5": "",
  1482. "attr6": "",
  1483. "attr7": "",
  1484. "attr8": "",
  1485. "attr9": "",
  1486. "id": "CE3DEC93-7440-49E6-BFA6-3374560D9CAF",
  1487. "extProps": {}
  1488. },
  1489. {
  1490. "defKey": "start_time",
  1491. "defName": "开始时间",
  1492. "comment": "",
  1493. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  1494. "type": "DATETIME",
  1495. "len": "",
  1496. "scale": "",
  1497. "primaryKey": false,
  1498. "notNull": false,
  1499. "autoIncrement": false,
  1500. "defaultValue": "",
  1501. "hideInGraph": false,
  1502. "refDict": "",
  1503. "attr1": "",
  1504. "attr2": "",
  1505. "attr3": "",
  1506. "attr4": "",
  1507. "attr5": "",
  1508. "attr6": "",
  1509. "attr7": "",
  1510. "attr8": "",
  1511. "attr9": "",
  1512. "id": "D79F457A-1645-42AC-A94B-36BB092E3FAC",
  1513. "extProps": {}
  1514. },
  1515. {
  1516. "defKey": "end_time",
  1517. "defName": "结束时间",
  1518. "comment": "",
  1519. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  1520. "type": "DATETIME",
  1521. "len": "",
  1522. "scale": "",
  1523. "primaryKey": false,
  1524. "notNull": false,
  1525. "autoIncrement": false,
  1526. "defaultValue": "",
  1527. "hideInGraph": false,
  1528. "refDict": "",
  1529. "attr1": "",
  1530. "attr2": "",
  1531. "attr3": "",
  1532. "attr4": "",
  1533. "attr5": "",
  1534. "attr6": "",
  1535. "attr7": "",
  1536. "attr8": "",
  1537. "attr9": "",
  1538. "id": "61A3C820-29CB-41AB-8CF4-2A3A7CFD6B6D",
  1539. "extProps": {}
  1540. },
  1541. {
  1542. "defKey": "manager",
  1543. "defName": "管理员名称",
  1544. "comment": "",
  1545. "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
  1546. "type": "VARCHAR",
  1547. "len": "",
  1548. "scale": "",
  1549. "primaryKey": false,
  1550. "notNull": false,
  1551. "autoIncrement": false,
  1552. "defaultValue": "",
  1553. "hideInGraph": false,
  1554. "refDict": "",
  1555. "attr1": "",
  1556. "attr2": "",
  1557. "attr3": "",
  1558. "attr4": "",
  1559. "attr5": "",
  1560. "attr6": "",
  1561. "attr7": "",
  1562. "attr8": "",
  1563. "attr9": "",
  1564. "id": "747D07EB-99AE-44DF-8CB2-12E8A6FDB7E3",
  1565. "extProps": {}
  1566. },
  1567. {
  1568. "defKey": "phone",
  1569. "defName": "手机号",
  1570. "comment": "",
  1571. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  1572. "type": "VARCHAR",
  1573. "len": "",
  1574. "scale": "",
  1575. "primaryKey": false,
  1576. "notNull": false,
  1577. "autoIncrement": false,
  1578. "defaultValue": "",
  1579. "hideInGraph": false,
  1580. "refDict": "",
  1581. "attr1": "",
  1582. "attr2": "",
  1583. "attr3": "",
  1584. "attr4": "",
  1585. "attr5": "",
  1586. "attr6": "",
  1587. "attr7": "",
  1588. "attr8": "",
  1589. "attr9": "",
  1590. "id": "23EAE826-8169-49E5-A231-36816879B7AD",
  1591. "extProps": {}
  1592. },
  1593. {
  1594. "defKey": "login_id",
  1595. "defName": "关联登录主键",
  1596. "comment": "",
  1597. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  1598. "type": "VARCHAR",
  1599. "len": "",
  1600. "scale": "",
  1601. "primaryKey": false,
  1602. "notNull": false,
  1603. "autoIncrement": false,
  1604. "defaultValue": "",
  1605. "hideInGraph": false,
  1606. "refDict": "",
  1607. "attr1": "",
  1608. "attr2": "",
  1609. "attr3": "",
  1610. "attr4": "",
  1611. "attr5": "",
  1612. "attr6": "",
  1613. "attr7": "",
  1614. "attr8": "",
  1615. "attr9": "",
  1616. "id": "DCA97593-7BD0-4C5F-862D-F03ACBDD0F60",
  1617. "extProps": {}
  1618. },
  1619. {
  1620. "defKey": "sort_no",
  1621. "defName": "排序",
  1622. "comment": "",
  1623. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  1624. "type": "INT",
  1625. "len": "",
  1626. "scale": "",
  1627. "primaryKey": false,
  1628. "notNull": false,
  1629. "autoIncrement": false,
  1630. "defaultValue": "",
  1631. "hideInGraph": false,
  1632. "refDict": "",
  1633. "attr1": "",
  1634. "attr2": "",
  1635. "attr3": "",
  1636. "attr4": "",
  1637. "attr5": "",
  1638. "attr6": "",
  1639. "attr7": "",
  1640. "attr8": "",
  1641. "attr9": "",
  1642. "id": "A332DA9E-4804-4085-81E2-11D45B05E264",
  1643. "extProps": {}
  1644. },
  1645. {
  1646. "defKey": "status",
  1647. "defName": "状态",
  1648. "comment": "1正常,0未激活,2停用",
  1649. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  1650. "type": "INT",
  1651. "len": "",
  1652. "scale": "",
  1653. "primaryKey": false,
  1654. "notNull": false,
  1655. "autoIncrement": false,
  1656. "defaultValue": "",
  1657. "hideInGraph": false,
  1658. "refDict": "",
  1659. "attr1": "",
  1660. "attr2": "",
  1661. "attr3": "",
  1662. "attr4": "",
  1663. "attr5": "",
  1664. "attr6": "",
  1665. "attr7": "",
  1666. "attr8": "",
  1667. "attr9": "",
  1668. "id": "F27BC7F2-36B7-4C40-A3A4-408283B933ED",
  1669. "extProps": {}
  1670. },
  1671. {
  1672. "defKey": "created_by",
  1673. "defName": "创建人",
  1674. "comment": "",
  1675. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1676. "type": "VARCHAR",
  1677. "len": "",
  1678. "scale": "",
  1679. "primaryKey": false,
  1680. "notNull": false,
  1681. "autoIncrement": false,
  1682. "defaultValue": "",
  1683. "hideInGraph": false,
  1684. "refDict": "",
  1685. "attr1": "",
  1686. "attr2": "",
  1687. "attr3": "",
  1688. "attr4": "",
  1689. "attr5": "",
  1690. "attr6": "",
  1691. "attr7": "",
  1692. "attr8": "",
  1693. "attr9": "",
  1694. "id": "4A4481BC-C5E8-48D2-AAF9-B5CD74EC412C",
  1695. "extProps": {}
  1696. },
  1697. {
  1698. "defKey": "created_at",
  1699. "defName": "创建时间",
  1700. "comment": "",
  1701. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  1702. "type": "DATETIME",
  1703. "len": "",
  1704. "scale": "",
  1705. "primaryKey": false,
  1706. "notNull": false,
  1707. "autoIncrement": false,
  1708. "defaultValue": "'CURRENT_TIMESTAMP'",
  1709. "hideInGraph": false,
  1710. "refDict": "",
  1711. "attr1": "",
  1712. "attr2": "",
  1713. "attr3": "",
  1714. "attr4": "",
  1715. "attr5": "",
  1716. "attr6": "",
  1717. "attr7": "",
  1718. "attr8": "",
  1719. "attr9": "",
  1720. "id": "EB7D47FB-9FA9-4917-A2B2-B6F7809B708F",
  1721. "extProps": {}
  1722. },
  1723. {
  1724. "defKey": "updated_by",
  1725. "defName": "更新人",
  1726. "comment": "",
  1727. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1728. "type": "VARCHAR",
  1729. "len": "",
  1730. "scale": "",
  1731. "primaryKey": false,
  1732. "notNull": false,
  1733. "autoIncrement": false,
  1734. "defaultValue": "",
  1735. "hideInGraph": false,
  1736. "refDict": "",
  1737. "attr1": "",
  1738. "attr2": "",
  1739. "attr3": "",
  1740. "attr4": "",
  1741. "attr5": "",
  1742. "attr6": "",
  1743. "attr7": "",
  1744. "attr8": "",
  1745. "attr9": "",
  1746. "id": "D83F2A02-132C-40E7-A059-BBB9D7644D58",
  1747. "extProps": {}
  1748. },
  1749. {
  1750. "defKey": "updated_at",
  1751. "defName": "更新时间",
  1752. "comment": "",
  1753. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  1754. "type": "DATETIME",
  1755. "len": "",
  1756. "scale": "",
  1757. "primaryKey": false,
  1758. "notNull": false,
  1759. "autoIncrement": false,
  1760. "defaultValue": "",
  1761. "hideInGraph": false,
  1762. "refDict": "",
  1763. "attr1": "",
  1764. "attr2": "",
  1765. "attr3": "",
  1766. "attr4": "",
  1767. "attr5": "",
  1768. "attr6": "",
  1769. "attr7": "",
  1770. "attr8": "",
  1771. "attr9": "",
  1772. "id": "2C712352-A6FE-4760-AE3F-C33014836FB3",
  1773. "extProps": {}
  1774. },
  1775. {
  1776. "defKey": "deleted",
  1777. "defName": "删除标志",
  1778. "comment": "1删除,0正常",
  1779. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  1780. "type": "INT",
  1781. "len": "",
  1782. "scale": "",
  1783. "primaryKey": false,
  1784. "notNull": false,
  1785. "autoIncrement": false,
  1786. "defaultValue": "0",
  1787. "hideInGraph": false,
  1788. "refDict": "",
  1789. "attr1": "",
  1790. "attr2": "",
  1791. "attr3": "",
  1792. "attr4": "",
  1793. "attr5": "",
  1794. "attr6": "",
  1795. "attr7": "",
  1796. "attr8": "",
  1797. "attr9": "",
  1798. "id": "34D007AA-7FB5-4635-94EE-253891622D79",
  1799. "extProps": {}
  1800. }
  1801. ],
  1802. "indexes": [],
  1803. "nameTemplate": "{defKey}[{defName}]",
  1804. "headers": [
  1805. {
  1806. "freeze": false,
  1807. "refKey": "hideInGraph",
  1808. "hideInGraph": true
  1809. },
  1810. {
  1811. "freeze": true,
  1812. "refKey": "defKey",
  1813. "hideInGraph": false
  1814. },
  1815. {
  1816. "freeze": true,
  1817. "refKey": "defName",
  1818. "hideInGraph": false
  1819. },
  1820. {
  1821. "freeze": false,
  1822. "refKey": "primaryKey",
  1823. "hideInGraph": false
  1824. },
  1825. {
  1826. "freeze": false,
  1827. "refKey": "notNull",
  1828. "hideInGraph": true
  1829. },
  1830. {
  1831. "freeze": false,
  1832. "refKey": "autoIncrement",
  1833. "hideInGraph": true
  1834. },
  1835. {
  1836. "freeze": false,
  1837. "refKey": "domain",
  1838. "hideInGraph": true
  1839. },
  1840. {
  1841. "freeze": false,
  1842. "refKey": "type",
  1843. "hideInGraph": false
  1844. },
  1845. {
  1846. "freeze": false,
  1847. "refKey": "len",
  1848. "hideInGraph": false
  1849. },
  1850. {
  1851. "freeze": false,
  1852. "refKey": "scale",
  1853. "hideInGraph": false
  1854. },
  1855. {
  1856. "freeze": false,
  1857. "refKey": "comment",
  1858. "hideInGraph": true
  1859. },
  1860. {
  1861. "freeze": false,
  1862. "refKey": "refDict",
  1863. "hideInGraph": true
  1864. },
  1865. {
  1866. "freeze": false,
  1867. "refKey": "defaultValue",
  1868. "hideInGraph": true
  1869. },
  1870. {
  1871. "freeze": false,
  1872. "refKey": "isStandard",
  1873. "hideInGraph": false
  1874. },
  1875. {
  1876. "freeze": false,
  1877. "refKey": "uiHint",
  1878. "hideInGraph": true
  1879. },
  1880. {
  1881. "freeze": false,
  1882. "refKey": "extProps",
  1883. "hideInGraph": true
  1884. }
  1885. ],
  1886. "correlations": []
  1887. },
  1888. {
  1889. "id": "C0E5A961-364C-4D34-ADC3-D0C8817EAF07",
  1890. "defKey": "fx_user",
  1891. "defName": "用户表",
  1892. "comment": "",
  1893. "properties": {},
  1894. "fields": [
  1895. {
  1896. "defKey": "user_id",
  1897. "defName": "用户ID",
  1898. "comment": "",
  1899. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  1900. "type": "VARCHAR",
  1901. "len": "",
  1902. "scale": "",
  1903. "primaryKey": true,
  1904. "notNull": true,
  1905. "autoIncrement": false,
  1906. "defaultValue": "",
  1907. "hideInGraph": false,
  1908. "refDict": "",
  1909. "attr1": "",
  1910. "attr2": "",
  1911. "attr3": "",
  1912. "attr4": "",
  1913. "attr5": "",
  1914. "attr6": "",
  1915. "attr7": "",
  1916. "attr8": "",
  1917. "attr9": "",
  1918. "id": "C249BFBF-4F64-4E88-8A3E-37B8AF9CC41F",
  1919. "extProps": {}
  1920. },
  1921. {
  1922. "defKey": "user_name",
  1923. "defName": "用户名称",
  1924. "comment": "",
  1925. "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
  1926. "type": "VARCHAR",
  1927. "len": "",
  1928. "scale": "",
  1929. "primaryKey": false,
  1930. "notNull": false,
  1931. "autoIncrement": false,
  1932. "defaultValue": "",
  1933. "hideInGraph": false,
  1934. "refDict": "",
  1935. "attr1": "",
  1936. "attr2": "",
  1937. "attr3": "",
  1938. "attr4": "",
  1939. "attr5": "",
  1940. "attr6": "",
  1941. "attr7": "",
  1942. "attr8": "",
  1943. "attr9": "",
  1944. "id": "1F2BCAAD-F83F-402D-9656-7DA3B091A395",
  1945. "extProps": {}
  1946. },
  1947. {
  1948. "defKey": "avatar",
  1949. "defName": "头像",
  1950. "comment": "",
  1951. "domain": "3E948CEC-3070-472C-AF92-F3CA11EC9D15",
  1952. "type": "VARCHAR",
  1953. "len": "",
  1954. "scale": "",
  1955. "primaryKey": false,
  1956. "notNull": false,
  1957. "autoIncrement": false,
  1958. "defaultValue": "",
  1959. "hideInGraph": false,
  1960. "refDict": "",
  1961. "attr1": "",
  1962. "attr2": "",
  1963. "attr3": "",
  1964. "attr4": "",
  1965. "attr5": "",
  1966. "attr6": "",
  1967. "attr7": "",
  1968. "attr8": "",
  1969. "attr9": "",
  1970. "id": "3D26ABFA-CA23-4E23-A8D6-44C64391C8D1",
  1971. "extProps": {}
  1972. },
  1973. {
  1974. "defKey": "phone",
  1975. "defName": "手机",
  1976. "comment": "",
  1977. "domain": "",
  1978. "type": "VARCHAR",
  1979. "len": 20,
  1980. "scale": "",
  1981. "primaryKey": false,
  1982. "notNull": false,
  1983. "autoIncrement": false,
  1984. "defaultValue": "",
  1985. "hideInGraph": false,
  1986. "refDict": "",
  1987. "attr1": "",
  1988. "attr2": "",
  1989. "attr3": "",
  1990. "attr4": "",
  1991. "attr5": "",
  1992. "attr6": "",
  1993. "attr7": "",
  1994. "attr8": "",
  1995. "attr9": "",
  1996. "id": "955C6DA0-EE42-4C61-A615-C84A65BFEBE4",
  1997. "extProps": {}
  1998. },
  1999. {
  2000. "defKey": "position_id",
  2001. "defName": "岗位ID",
  2002. "comment": "",
  2003. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  2004. "type": "VARCHAR",
  2005. "len": "",
  2006. "scale": "",
  2007. "primaryKey": false,
  2008. "notNull": false,
  2009. "autoIncrement": false,
  2010. "defaultValue": "",
  2011. "hideInGraph": false,
  2012. "refDict": "",
  2013. "attr1": "",
  2014. "attr2": "",
  2015. "attr3": "",
  2016. "attr4": "",
  2017. "attr5": "",
  2018. "attr6": "",
  2019. "attr7": "",
  2020. "attr8": "",
  2021. "attr9": "",
  2022. "id": "4EE1EBB0-4DE2-46E5-A684-263773596B68",
  2023. "extProps": {}
  2024. },
  2025. {
  2026. "defKey": "dept_id",
  2027. "defName": "部门ID",
  2028. "comment": "",
  2029. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  2030. "type": "VARCHAR",
  2031. "len": "",
  2032. "scale": "",
  2033. "primaryKey": false,
  2034. "notNull": false,
  2035. "autoIncrement": false,
  2036. "defaultValue": "",
  2037. "hideInGraph": false,
  2038. "refDict": "",
  2039. "attr1": "",
  2040. "attr2": "",
  2041. "attr3": "",
  2042. "attr4": "",
  2043. "attr5": "",
  2044. "attr6": "",
  2045. "attr7": "",
  2046. "attr8": "",
  2047. "attr9": "",
  2048. "id": "275C2F60-822D-42C3-A3A8-EA549E4131C0",
  2049. "extProps": {}
  2050. },
  2051. {
  2052. "defKey": "status",
  2053. "defName": "状态",
  2054. "comment": "",
  2055. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  2056. "type": "INT",
  2057. "len": "",
  2058. "scale": "",
  2059. "primaryKey": false,
  2060. "notNull": false,
  2061. "autoIncrement": false,
  2062. "defaultValue": "1",
  2063. "hideInGraph": false,
  2064. "refDict": "",
  2065. "attr1": "",
  2066. "attr2": "",
  2067. "attr3": "",
  2068. "attr4": "",
  2069. "attr5": "",
  2070. "attr6": "",
  2071. "attr7": "",
  2072. "attr8": "",
  2073. "attr9": "",
  2074. "id": "E8B6AB82-64FC-4917-A0AD-5944537213E8",
  2075. "extProps": {}
  2076. },
  2077. {
  2078. "defKey": "created_by",
  2079. "defName": "创建人",
  2080. "comment": "",
  2081. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2082. "type": "VARCHAR",
  2083. "len": "",
  2084. "scale": "",
  2085. "primaryKey": false,
  2086. "notNull": false,
  2087. "autoIncrement": false,
  2088. "defaultValue": "",
  2089. "hideInGraph": false,
  2090. "refDict": "",
  2091. "attr1": "",
  2092. "attr2": "",
  2093. "attr3": "",
  2094. "attr4": "",
  2095. "attr5": "",
  2096. "attr6": "",
  2097. "attr7": "",
  2098. "attr8": "",
  2099. "attr9": "",
  2100. "id": "85AE3ACC-AA47-4D30-9477-C50276AF997B",
  2101. "extProps": {}
  2102. },
  2103. {
  2104. "defKey": "created_at",
  2105. "defName": "创建时间",
  2106. "comment": "",
  2107. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  2108. "type": "DATETIME",
  2109. "len": "",
  2110. "scale": "",
  2111. "primaryKey": false,
  2112. "notNull": false,
  2113. "autoIncrement": false,
  2114. "defaultValue": "'CURRENT_TIMESTAMP'",
  2115. "hideInGraph": false,
  2116. "refDict": "",
  2117. "attr1": "",
  2118. "attr2": "",
  2119. "attr3": "",
  2120. "attr4": "",
  2121. "attr5": "",
  2122. "attr6": "",
  2123. "attr7": "",
  2124. "attr8": "",
  2125. "attr9": "",
  2126. "id": "853E319F-37A1-45FD-AE32-7F7A1BEEBE3F",
  2127. "extProps": {}
  2128. },
  2129. {
  2130. "defKey": "updated_by",
  2131. "defName": "更新人",
  2132. "comment": "",
  2133. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2134. "type": "VARCHAR",
  2135. "len": "",
  2136. "scale": "",
  2137. "primaryKey": false,
  2138. "notNull": false,
  2139. "autoIncrement": false,
  2140. "defaultValue": "",
  2141. "hideInGraph": false,
  2142. "refDict": "",
  2143. "attr1": "",
  2144. "attr2": "",
  2145. "attr3": "",
  2146. "attr4": "",
  2147. "attr5": "",
  2148. "attr6": "",
  2149. "attr7": "",
  2150. "attr8": "",
  2151. "attr9": "",
  2152. "id": "7697B59E-3265-40DF-8AC5-243718C669AE",
  2153. "extProps": {}
  2154. },
  2155. {
  2156. "defKey": "updated_at",
  2157. "defName": "更新时间",
  2158. "comment": "",
  2159. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  2160. "type": "DATETIME",
  2161. "len": "",
  2162. "scale": "",
  2163. "primaryKey": false,
  2164. "notNull": false,
  2165. "autoIncrement": false,
  2166. "defaultValue": "",
  2167. "hideInGraph": false,
  2168. "refDict": "",
  2169. "attr1": "",
  2170. "attr2": "",
  2171. "attr3": "",
  2172. "attr4": "",
  2173. "attr5": "",
  2174. "attr6": "",
  2175. "attr7": "",
  2176. "attr8": "",
  2177. "attr9": "",
  2178. "id": "66EBFE25-3A0A-476E-AC85-FB2036302AEF",
  2179. "extProps": {}
  2180. },
  2181. {
  2182. "defKey": "deleted",
  2183. "defName": "删除标志",
  2184. "comment": "1删除,0正常",
  2185. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  2186. "type": "INT",
  2187. "len": "",
  2188. "scale": "",
  2189. "primaryKey": false,
  2190. "notNull": false,
  2191. "autoIncrement": false,
  2192. "defaultValue": "0",
  2193. "hideInGraph": false,
  2194. "refDict": "",
  2195. "attr1": "",
  2196. "attr2": "",
  2197. "attr3": "",
  2198. "attr4": "",
  2199. "attr5": "",
  2200. "attr6": "",
  2201. "attr7": "",
  2202. "attr8": "",
  2203. "attr9": "",
  2204. "id": "1D37C9BC-9535-4594-9488-FE0F85266AEE",
  2205. "extProps": {}
  2206. }
  2207. ],
  2208. "indexes": [],
  2209. "nameTemplate": "{defKey}[{defName}]",
  2210. "headers": [
  2211. {
  2212. "freeze": false,
  2213. "refKey": "hideInGraph",
  2214. "hideInGraph": true
  2215. },
  2216. {
  2217. "freeze": true,
  2218. "refKey": "defKey",
  2219. "hideInGraph": false
  2220. },
  2221. {
  2222. "freeze": true,
  2223. "refKey": "defName",
  2224. "hideInGraph": false
  2225. },
  2226. {
  2227. "freeze": false,
  2228. "refKey": "primaryKey",
  2229. "hideInGraph": false
  2230. },
  2231. {
  2232. "freeze": false,
  2233. "refKey": "notNull",
  2234. "hideInGraph": true
  2235. },
  2236. {
  2237. "freeze": false,
  2238. "refKey": "autoIncrement",
  2239. "hideInGraph": true
  2240. },
  2241. {
  2242. "freeze": false,
  2243. "refKey": "domain",
  2244. "hideInGraph": true
  2245. },
  2246. {
  2247. "freeze": false,
  2248. "refKey": "type",
  2249. "hideInGraph": false
  2250. },
  2251. {
  2252. "freeze": false,
  2253. "refKey": "len",
  2254. "hideInGraph": false
  2255. },
  2256. {
  2257. "freeze": false,
  2258. "refKey": "scale",
  2259. "hideInGraph": false
  2260. },
  2261. {
  2262. "freeze": false,
  2263. "refKey": "comment",
  2264. "hideInGraph": true
  2265. },
  2266. {
  2267. "freeze": false,
  2268. "refKey": "refDict",
  2269. "hideInGraph": true
  2270. },
  2271. {
  2272. "freeze": false,
  2273. "refKey": "defaultValue",
  2274. "hideInGraph": true
  2275. },
  2276. {
  2277. "freeze": false,
  2278. "refKey": "isStandard",
  2279. "hideInGraph": false
  2280. },
  2281. {
  2282. "freeze": false,
  2283. "refKey": "uiHint",
  2284. "hideInGraph": true
  2285. },
  2286. {
  2287. "freeze": false,
  2288. "refKey": "extProps",
  2289. "hideInGraph": true
  2290. }
  2291. ],
  2292. "correlations": []
  2293. },
  2294. {
  2295. "id": "A313DF48-DC14-4DE3-9C7B-FD9E89DAB5D3",
  2296. "defKey": "sys_log",
  2297. "defName": "系统日志",
  2298. "comment": "",
  2299. "properties": {},
  2300. "fields": [
  2301. {
  2302. "defKey": "log_id",
  2303. "defName": "日志ID",
  2304. "comment": "",
  2305. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  2306. "type": "VARCHAR",
  2307. "len": "",
  2308. "scale": "",
  2309. "primaryKey": true,
  2310. "notNull": true,
  2311. "autoIncrement": false,
  2312. "defaultValue": "",
  2313. "hideInGraph": false,
  2314. "refDict": "",
  2315. "attr1": "",
  2316. "attr2": "",
  2317. "attr3": "",
  2318. "attr4": "",
  2319. "attr5": "",
  2320. "attr6": "",
  2321. "attr7": "",
  2322. "attr8": "",
  2323. "attr9": "",
  2324. "id": "1D3145C9-D492-4D89-BFF0-64A920AF1990",
  2325. "extProps": {}
  2326. },
  2327. {
  2328. "defKey": "login_id",
  2329. "defName": "登录ID",
  2330. "comment": "",
  2331. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2332. "type": "VARCHAR",
  2333. "len": "",
  2334. "scale": "",
  2335. "primaryKey": false,
  2336. "notNull": false,
  2337. "autoIncrement": false,
  2338. "defaultValue": "",
  2339. "hideInGraph": false,
  2340. "refDict": "",
  2341. "attr1": "",
  2342. "attr2": "",
  2343. "attr3": "",
  2344. "attr4": "",
  2345. "attr5": "",
  2346. "attr6": "",
  2347. "attr7": "",
  2348. "attr8": "",
  2349. "attr9": "",
  2350. "id": "BE0E477C-239C-49E4-AAD8-8636B8B82511",
  2351. "extProps": {}
  2352. },
  2353. {
  2354. "defKey": "user_name",
  2355. "defName": "用户名",
  2356. "comment": "",
  2357. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2358. "type": "VARCHAR",
  2359. "len": "",
  2360. "scale": "",
  2361. "primaryKey": false,
  2362. "notNull": false,
  2363. "autoIncrement": false,
  2364. "defaultValue": "",
  2365. "hideInGraph": false,
  2366. "refDict": "",
  2367. "attr1": "",
  2368. "attr2": "",
  2369. "attr3": "",
  2370. "attr4": "",
  2371. "attr5": "",
  2372. "attr6": "",
  2373. "attr7": "",
  2374. "attr8": "",
  2375. "attr9": "",
  2376. "id": "43D4A717-CF29-4237-BB87-F2F9A1307EB5",
  2377. "extProps": {}
  2378. },
  2379. {
  2380. "defKey": "module_name",
  2381. "defName": "模块名称",
  2382. "comment": "",
  2383. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2384. "type": "VARCHAR",
  2385. "len": "",
  2386. "scale": "",
  2387. "primaryKey": false,
  2388. "notNull": false,
  2389. "autoIncrement": false,
  2390. "defaultValue": "",
  2391. "hideInGraph": false,
  2392. "refDict": "",
  2393. "attr1": "",
  2394. "attr2": "",
  2395. "attr3": "",
  2396. "attr4": "",
  2397. "attr5": "",
  2398. "attr6": "",
  2399. "attr7": "",
  2400. "attr8": "",
  2401. "attr9": "",
  2402. "id": "628EE5A3-2A4E-4252-A49B-71B4B4C6A95F",
  2403. "extProps": {}
  2404. },
  2405. {
  2406. "defKey": "uri",
  2407. "defName": "访问路径",
  2408. "comment": "",
  2409. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2410. "type": "VARCHAR",
  2411. "len": "",
  2412. "scale": "",
  2413. "primaryKey": false,
  2414. "notNull": false,
  2415. "autoIncrement": false,
  2416. "defaultValue": "",
  2417. "hideInGraph": false,
  2418. "refDict": "",
  2419. "attr1": "",
  2420. "attr2": "",
  2421. "attr3": "",
  2422. "attr4": "",
  2423. "attr5": "",
  2424. "attr6": "",
  2425. "attr7": "",
  2426. "attr8": "",
  2427. "attr9": "",
  2428. "id": "F81E02B4-7FC2-4239-AADA-C8BE8659D8B2",
  2429. "extProps": {}
  2430. },
  2431. {
  2432. "defKey": "action",
  2433. "defName": "操作内容",
  2434. "comment": "",
  2435. "domain": "3E948CEC-3070-472C-AF92-F3CA11EC9D15",
  2436. "type": "VARCHAR",
  2437. "len": "",
  2438. "scale": "",
  2439. "primaryKey": false,
  2440. "notNull": false,
  2441. "autoIncrement": false,
  2442. "defaultValue": "",
  2443. "hideInGraph": false,
  2444. "refDict": "",
  2445. "attr1": "",
  2446. "attr2": "",
  2447. "attr3": "",
  2448. "attr4": "",
  2449. "attr5": "",
  2450. "attr6": "",
  2451. "attr7": "",
  2452. "attr8": "",
  2453. "attr9": "",
  2454. "id": "21A9D0FF-EB9B-4AA9-A628-2F0C114AD552",
  2455. "extProps": {}
  2456. },
  2457. {
  2458. "defKey": "desc",
  2459. "defName": "操作详情",
  2460. "comment": "",
  2461. "domain": "",
  2462. "type": "TEXT",
  2463. "len": "",
  2464. "scale": "",
  2465. "primaryKey": false,
  2466. "notNull": false,
  2467. "autoIncrement": false,
  2468. "defaultValue": "",
  2469. "hideInGraph": false,
  2470. "refDict": "",
  2471. "attr1": "",
  2472. "attr2": "",
  2473. "attr3": "",
  2474. "attr4": "",
  2475. "attr5": "",
  2476. "attr6": "",
  2477. "attr7": "",
  2478. "attr8": "",
  2479. "attr9": "",
  2480. "id": "CCAD859F-0E38-4E65-9176-60C57F850088",
  2481. "extProps": {}
  2482. },
  2483. {
  2484. "defKey": "ip",
  2485. "defName": "用户ID",
  2486. "comment": "",
  2487. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2488. "type": "VARCHAR",
  2489. "len": "",
  2490. "scale": "",
  2491. "primaryKey": false,
  2492. "notNull": false,
  2493. "autoIncrement": false,
  2494. "defaultValue": "",
  2495. "hideInGraph": false,
  2496. "refDict": "",
  2497. "attr1": "",
  2498. "attr2": "",
  2499. "attr3": "",
  2500. "attr4": "",
  2501. "attr5": "",
  2502. "attr6": "",
  2503. "attr7": "",
  2504. "attr8": "",
  2505. "attr9": "",
  2506. "id": "4058AE6B-DF62-4A2F-9858-7AE78B153262",
  2507. "extProps": {}
  2508. },
  2509. {
  2510. "defKey": "ua",
  2511. "defName": "User Agent",
  2512. "comment": "",
  2513. "domain": "",
  2514. "type": "VARCHAR",
  2515. "len": 2000,
  2516. "scale": "",
  2517. "primaryKey": false,
  2518. "notNull": false,
  2519. "autoIncrement": false,
  2520. "defaultValue": "",
  2521. "hideInGraph": false,
  2522. "refDict": "",
  2523. "attr1": "",
  2524. "attr2": "",
  2525. "attr3": "",
  2526. "attr4": "",
  2527. "attr5": "",
  2528. "attr6": "",
  2529. "attr7": "",
  2530. "attr8": "",
  2531. "attr9": "",
  2532. "id": "E5AE5D5A-FABE-4996-B0BC-31354CE8EE76",
  2533. "extProps": {}
  2534. },
  2535. {
  2536. "defKey": "client_type",
  2537. "defName": "终端类型",
  2538. "comment": "",
  2539. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  2540. "type": "VARCHAR",
  2541. "len": "",
  2542. "scale": "",
  2543. "primaryKey": false,
  2544. "notNull": false,
  2545. "autoIncrement": false,
  2546. "defaultValue": "",
  2547. "hideInGraph": false,
  2548. "refDict": "",
  2549. "attr1": "",
  2550. "attr2": "",
  2551. "attr3": "",
  2552. "attr4": "",
  2553. "attr5": "",
  2554. "attr6": "",
  2555. "attr7": "",
  2556. "attr8": "",
  2557. "attr9": "",
  2558. "id": "CF29589C-02DC-4D50-AE13-1B75953DEDB9",
  2559. "extProps": {}
  2560. },
  2561. {
  2562. "defKey": "tenant_id",
  2563. "defName": "租户号",
  2564. "comment": "没有租户则代表是平台",
  2565. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  2566. "type": "VARCHAR",
  2567. "len": "",
  2568. "scale": "",
  2569. "primaryKey": false,
  2570. "notNull": false,
  2571. "autoIncrement": false,
  2572. "defaultValue": "",
  2573. "hideInGraph": false,
  2574. "refDict": "",
  2575. "attr1": "",
  2576. "attr2": "",
  2577. "attr3": "",
  2578. "attr4": "",
  2579. "attr5": "",
  2580. "attr6": "",
  2581. "attr7": "",
  2582. "attr8": "",
  2583. "attr9": "",
  2584. "id": "FD880F42-C6CB-4277-B6B3-452CBA864F24",
  2585. "extProps": {}
  2586. },
  2587. {
  2588. "defKey": "created_by",
  2589. "defName": "创建人",
  2590. "comment": "",
  2591. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2592. "type": "VARCHAR",
  2593. "len": "",
  2594. "scale": "",
  2595. "primaryKey": false,
  2596. "notNull": false,
  2597. "autoIncrement": false,
  2598. "defaultValue": "",
  2599. "hideInGraph": false,
  2600. "refDict": "",
  2601. "attr1": "",
  2602. "attr2": "",
  2603. "attr3": "",
  2604. "attr4": "",
  2605. "attr5": "",
  2606. "attr6": "",
  2607. "attr7": "",
  2608. "attr8": "",
  2609. "attr9": "",
  2610. "id": "48464932-E82B-4140-B1E8-BD51F8C1BEC0",
  2611. "extProps": {}
  2612. },
  2613. {
  2614. "defKey": "created_at",
  2615. "defName": "创建时间",
  2616. "comment": "",
  2617. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  2618. "type": "DATETIME",
  2619. "len": "",
  2620. "scale": "",
  2621. "primaryKey": false,
  2622. "notNull": false,
  2623. "autoIncrement": false,
  2624. "defaultValue": "'CURRENT_TIMESTAMP'",
  2625. "hideInGraph": false,
  2626. "refDict": "",
  2627. "attr1": "",
  2628. "attr2": "",
  2629. "attr3": "",
  2630. "attr4": "",
  2631. "attr5": "",
  2632. "attr6": "",
  2633. "attr7": "",
  2634. "attr8": "",
  2635. "attr9": "",
  2636. "id": "5FF5F277-C515-486D-A55B-16C1A3921F6C",
  2637. "extProps": {}
  2638. },
  2639. {
  2640. "defKey": "updated_by",
  2641. "defName": "更新人",
  2642. "comment": "",
  2643. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2644. "type": "VARCHAR",
  2645. "len": "",
  2646. "scale": "",
  2647. "primaryKey": false,
  2648. "notNull": false,
  2649. "autoIncrement": false,
  2650. "defaultValue": "",
  2651. "hideInGraph": false,
  2652. "refDict": "",
  2653. "attr1": "",
  2654. "attr2": "",
  2655. "attr3": "",
  2656. "attr4": "",
  2657. "attr5": "",
  2658. "attr6": "",
  2659. "attr7": "",
  2660. "attr8": "",
  2661. "attr9": "",
  2662. "id": "CB1D11CB-F225-4239-9547-255F456B9332",
  2663. "extProps": {}
  2664. },
  2665. {
  2666. "defKey": "updated_at",
  2667. "defName": "更新时间",
  2668. "comment": "",
  2669. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  2670. "type": "DATETIME",
  2671. "len": "",
  2672. "scale": "",
  2673. "primaryKey": false,
  2674. "notNull": false,
  2675. "autoIncrement": false,
  2676. "defaultValue": "",
  2677. "hideInGraph": false,
  2678. "refDict": "",
  2679. "attr1": "",
  2680. "attr2": "",
  2681. "attr3": "",
  2682. "attr4": "",
  2683. "attr5": "",
  2684. "attr6": "",
  2685. "attr7": "",
  2686. "attr8": "",
  2687. "attr9": "",
  2688. "id": "2D12F12B-3301-44F4-A871-75CE2FC16072",
  2689. "extProps": {}
  2690. },
  2691. {
  2692. "defKey": "deleted",
  2693. "defName": "删除标志",
  2694. "comment": "1删除,0正常",
  2695. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  2696. "type": "INT",
  2697. "len": "",
  2698. "scale": "",
  2699. "primaryKey": false,
  2700. "notNull": false,
  2701. "autoIncrement": false,
  2702. "defaultValue": "0",
  2703. "hideInGraph": false,
  2704. "refDict": "",
  2705. "attr1": "",
  2706. "attr2": "",
  2707. "attr3": "",
  2708. "attr4": "",
  2709. "attr5": "",
  2710. "attr6": "",
  2711. "attr7": "",
  2712. "attr8": "",
  2713. "attr9": "",
  2714. "id": "8138D8CF-7758-415D-8237-7FA4F9AA5BA7",
  2715. "extProps": {}
  2716. }
  2717. ],
  2718. "indexes": [],
  2719. "nameTemplate": "{defKey}[{defName}]",
  2720. "headers": [
  2721. {
  2722. "freeze": false,
  2723. "refKey": "hideInGraph",
  2724. "hideInGraph": true
  2725. },
  2726. {
  2727. "freeze": true,
  2728. "refKey": "defKey",
  2729. "hideInGraph": false
  2730. },
  2731. {
  2732. "freeze": true,
  2733. "refKey": "defName",
  2734. "hideInGraph": false
  2735. },
  2736. {
  2737. "freeze": false,
  2738. "refKey": "primaryKey",
  2739. "hideInGraph": false
  2740. },
  2741. {
  2742. "freeze": false,
  2743. "refKey": "notNull",
  2744. "hideInGraph": true
  2745. },
  2746. {
  2747. "freeze": false,
  2748. "refKey": "autoIncrement",
  2749. "hideInGraph": true
  2750. },
  2751. {
  2752. "freeze": false,
  2753. "refKey": "domain",
  2754. "hideInGraph": true
  2755. },
  2756. {
  2757. "freeze": false,
  2758. "refKey": "type",
  2759. "hideInGraph": false
  2760. },
  2761. {
  2762. "freeze": false,
  2763. "refKey": "len",
  2764. "hideInGraph": false
  2765. },
  2766. {
  2767. "freeze": false,
  2768. "refKey": "scale",
  2769. "hideInGraph": false
  2770. },
  2771. {
  2772. "freeze": false,
  2773. "refKey": "comment",
  2774. "hideInGraph": true
  2775. },
  2776. {
  2777. "freeze": false,
  2778. "refKey": "refDict",
  2779. "hideInGraph": true
  2780. },
  2781. {
  2782. "freeze": false,
  2783. "refKey": "defaultValue",
  2784. "hideInGraph": true
  2785. },
  2786. {
  2787. "freeze": false,
  2788. "refKey": "isStandard",
  2789. "hideInGraph": false
  2790. },
  2791. {
  2792. "freeze": false,
  2793. "refKey": "uiHint",
  2794. "hideInGraph": true
  2795. },
  2796. {
  2797. "freeze": false,
  2798. "refKey": "extProps",
  2799. "hideInGraph": true
  2800. }
  2801. ],
  2802. "correlations": []
  2803. },
  2804. {
  2805. "id": "B4638DE9-1E79-4C27-BCC2-59EC4D2BE9F1",
  2806. "defKey": "sys_login",
  2807. "defName": "登录信息表",
  2808. "comment": "",
  2809. "properties": {},
  2810. "fields": [
  2811. {
  2812. "defKey": "login_id",
  2813. "defName": "登录ID",
  2814. "comment": "",
  2815. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  2816. "type": "VARCHAR",
  2817. "len": "",
  2818. "scale": "",
  2819. "primaryKey": true,
  2820. "notNull": true,
  2821. "autoIncrement": false,
  2822. "defaultValue": "",
  2823. "hideInGraph": false,
  2824. "refDict": "",
  2825. "attr1": "",
  2826. "attr2": "",
  2827. "attr3": "",
  2828. "attr4": "",
  2829. "attr5": "",
  2830. "attr6": "",
  2831. "attr7": "",
  2832. "attr8": "",
  2833. "attr9": "",
  2834. "id": "5DBAF5F5-AD7F-4E42-9F44-71AACAE4118F",
  2835. "extProps": {}
  2836. },
  2837. {
  2838. "defKey": "user_id",
  2839. "defName": "用户ID",
  2840. "comment": "",
  2841. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  2842. "type": "VARCHAR",
  2843. "len": "",
  2844. "scale": "",
  2845. "primaryKey": false,
  2846. "notNull": false,
  2847. "autoIncrement": false,
  2848. "defaultValue": "",
  2849. "hideInGraph": false,
  2850. "refDict": "",
  2851. "attr1": "",
  2852. "attr2": "",
  2853. "attr3": "",
  2854. "attr4": "",
  2855. "attr5": "",
  2856. "attr6": "",
  2857. "attr7": "",
  2858. "attr8": "",
  2859. "attr9": "",
  2860. "id": "BA9A5B79-78E0-4F36-81E1-07611A2D3E11",
  2861. "extProps": {}
  2862. },
  2863. {
  2864. "defKey": "login_type",
  2865. "defName": "登录类型",
  2866. "comment": "",
  2867. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  2868. "type": "VARCHAR",
  2869. "len": "",
  2870. "scale": "",
  2871. "primaryKey": false,
  2872. "notNull": false,
  2873. "autoIncrement": false,
  2874. "defaultValue": "",
  2875. "hideInGraph": false,
  2876. "refDict": "",
  2877. "attr1": "",
  2878. "attr2": "",
  2879. "attr3": "",
  2880. "attr4": "",
  2881. "attr5": "",
  2882. "attr6": "",
  2883. "attr7": "",
  2884. "attr8": "",
  2885. "attr9": "",
  2886. "id": "6B55E272-DAC0-402D-B30B-5133CD210DD2",
  2887. "extProps": {}
  2888. },
  2889. {
  2890. "defKey": "login_name",
  2891. "defName": "登录名",
  2892. "comment": "",
  2893. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2894. "type": "VARCHAR",
  2895. "len": "",
  2896. "scale": "",
  2897. "primaryKey": false,
  2898. "notNull": false,
  2899. "autoIncrement": false,
  2900. "defaultValue": "",
  2901. "hideInGraph": false,
  2902. "refDict": "",
  2903. "attr1": "",
  2904. "attr2": "",
  2905. "attr3": "",
  2906. "attr4": "",
  2907. "attr5": "",
  2908. "attr6": "",
  2909. "attr7": "",
  2910. "attr8": "",
  2911. "attr9": "",
  2912. "id": "D6CE68E3-2DC2-4F0F-A529-39F6F01E2DA3",
  2913. "extProps": {}
  2914. },
  2915. {
  2916. "defKey": "password",
  2917. "defName": "密码",
  2918. "comment": "",
  2919. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2920. "type": "VARCHAR",
  2921. "len": "",
  2922. "scale": "",
  2923. "primaryKey": false,
  2924. "notNull": false,
  2925. "autoIncrement": false,
  2926. "defaultValue": "",
  2927. "hideInGraph": false,
  2928. "refDict": "",
  2929. "attr1": "",
  2930. "attr2": "",
  2931. "attr3": "",
  2932. "attr4": "",
  2933. "attr5": "",
  2934. "attr6": "",
  2935. "attr7": "",
  2936. "attr8": "",
  2937. "attr9": "",
  2938. "id": "4361FDB9-4BA6-4FDE-A925-6D121B44C93E",
  2939. "extProps": {}
  2940. },
  2941. {
  2942. "defKey": "status",
  2943. "defName": "状态",
  2944. "comment": "1正常",
  2945. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  2946. "type": "INT",
  2947. "len": "",
  2948. "scale": "",
  2949. "primaryKey": false,
  2950. "notNull": false,
  2951. "autoIncrement": false,
  2952. "defaultValue": "1",
  2953. "hideInGraph": false,
  2954. "refDict": "",
  2955. "attr1": "",
  2956. "attr2": "",
  2957. "attr3": "",
  2958. "attr4": "",
  2959. "attr5": "",
  2960. "attr6": "",
  2961. "attr7": "",
  2962. "attr8": "",
  2963. "attr9": "",
  2964. "id": "364C540E-21E6-42D6-BEBC-E152AA257DBF",
  2965. "extProps": {}
  2966. },
  2967. {
  2968. "defKey": "tenant_id",
  2969. "defName": "租户号",
  2970. "comment": "",
  2971. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  2972. "type": "VARCHAR",
  2973. "len": "",
  2974. "scale": "",
  2975. "primaryKey": false,
  2976. "notNull": false,
  2977. "autoIncrement": false,
  2978. "defaultValue": "",
  2979. "hideInGraph": false,
  2980. "refDict": "",
  2981. "attr1": "",
  2982. "attr2": "",
  2983. "attr3": "",
  2984. "attr4": "",
  2985. "attr5": "",
  2986. "attr6": "",
  2987. "attr7": "",
  2988. "attr8": "",
  2989. "attr9": "",
  2990. "id": "CA5F245C-53F1-45A3-B918-22F3AFA5F7A9",
  2991. "extProps": {}
  2992. },
  2993. {
  2994. "defKey": "created_by",
  2995. "defName": "创建人",
  2996. "comment": "",
  2997. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2998. "type": "VARCHAR",
  2999. "len": "",
  3000. "scale": "",
  3001. "primaryKey": false,
  3002. "notNull": false,
  3003. "autoIncrement": false,
  3004. "defaultValue": "",
  3005. "hideInGraph": false,
  3006. "refDict": "",
  3007. "attr1": "",
  3008. "attr2": "",
  3009. "attr3": "",
  3010. "attr4": "",
  3011. "attr5": "",
  3012. "attr6": "",
  3013. "attr7": "",
  3014. "attr8": "",
  3015. "attr9": "",
  3016. "id": "D1EEEBCA-FFC0-4E39-973A-A6244C1F0195",
  3017. "extProps": {}
  3018. },
  3019. {
  3020. "defKey": "created_at",
  3021. "defName": "创建时间",
  3022. "comment": "",
  3023. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  3024. "type": "DATETIME",
  3025. "len": "",
  3026. "scale": "",
  3027. "primaryKey": false,
  3028. "notNull": false,
  3029. "autoIncrement": false,
  3030. "defaultValue": "'CURRENT_TIMESTAMP'",
  3031. "hideInGraph": false,
  3032. "refDict": "",
  3033. "attr1": "",
  3034. "attr2": "",
  3035. "attr3": "",
  3036. "attr4": "",
  3037. "attr5": "",
  3038. "attr6": "",
  3039. "attr7": "",
  3040. "attr8": "",
  3041. "attr9": "",
  3042. "id": "9B4F3541-3F80-44F9-92B9-434425A53C4A",
  3043. "extProps": {}
  3044. },
  3045. {
  3046. "defKey": "updated_by",
  3047. "defName": "更新人",
  3048. "comment": "",
  3049. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3050. "type": "VARCHAR",
  3051. "len": "",
  3052. "scale": "",
  3053. "primaryKey": false,
  3054. "notNull": false,
  3055. "autoIncrement": false,
  3056. "defaultValue": "",
  3057. "hideInGraph": false,
  3058. "refDict": "",
  3059. "attr1": "",
  3060. "attr2": "",
  3061. "attr3": "",
  3062. "attr4": "",
  3063. "attr5": "",
  3064. "attr6": "",
  3065. "attr7": "",
  3066. "attr8": "",
  3067. "attr9": "",
  3068. "id": "2CDB20E7-259E-4140-A3E7-A4EE561EA901",
  3069. "extProps": {}
  3070. },
  3071. {
  3072. "defKey": "updated_at",
  3073. "defName": "更新时间",
  3074. "comment": "",
  3075. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  3076. "type": "DATETIME",
  3077. "len": "",
  3078. "scale": "",
  3079. "primaryKey": false,
  3080. "notNull": false,
  3081. "autoIncrement": false,
  3082. "defaultValue": "",
  3083. "hideInGraph": false,
  3084. "refDict": "",
  3085. "attr1": "",
  3086. "attr2": "",
  3087. "attr3": "",
  3088. "attr4": "",
  3089. "attr5": "",
  3090. "attr6": "",
  3091. "attr7": "",
  3092. "attr8": "",
  3093. "attr9": "",
  3094. "id": "BB35B7D3-44DE-4862-829E-9241256A8A51",
  3095. "extProps": {}
  3096. },
  3097. {
  3098. "defKey": "deleted",
  3099. "defName": "删除标志",
  3100. "comment": "1删除,0正常",
  3101. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3102. "type": "INT",
  3103. "len": "",
  3104. "scale": "",
  3105. "primaryKey": false,
  3106. "notNull": false,
  3107. "autoIncrement": false,
  3108. "defaultValue": "0",
  3109. "hideInGraph": false,
  3110. "refDict": "",
  3111. "attr1": "",
  3112. "attr2": "",
  3113. "attr3": "",
  3114. "attr4": "",
  3115. "attr5": "",
  3116. "attr6": "",
  3117. "attr7": "",
  3118. "attr8": "",
  3119. "attr9": "",
  3120. "id": "24DC53EC-F6CD-44A2-82A8-162F2B30831C",
  3121. "extProps": {}
  3122. }
  3123. ],
  3124. "indexes": [],
  3125. "nameTemplate": "{defKey}[{defName}]",
  3126. "headers": [
  3127. {
  3128. "freeze": false,
  3129. "refKey": "hideInGraph",
  3130. "hideInGraph": true
  3131. },
  3132. {
  3133. "freeze": true,
  3134. "refKey": "defKey",
  3135. "hideInGraph": false
  3136. },
  3137. {
  3138. "freeze": true,
  3139. "refKey": "defName",
  3140. "hideInGraph": false
  3141. },
  3142. {
  3143. "freeze": false,
  3144. "refKey": "primaryKey",
  3145. "hideInGraph": false
  3146. },
  3147. {
  3148. "freeze": false,
  3149. "refKey": "notNull",
  3150. "hideInGraph": true
  3151. },
  3152. {
  3153. "freeze": false,
  3154. "refKey": "autoIncrement",
  3155. "hideInGraph": true
  3156. },
  3157. {
  3158. "freeze": false,
  3159. "refKey": "domain",
  3160. "hideInGraph": true
  3161. },
  3162. {
  3163. "freeze": false,
  3164. "refKey": "type",
  3165. "hideInGraph": false
  3166. },
  3167. {
  3168. "freeze": false,
  3169. "refKey": "len",
  3170. "hideInGraph": false
  3171. },
  3172. {
  3173. "freeze": false,
  3174. "refKey": "scale",
  3175. "hideInGraph": false
  3176. },
  3177. {
  3178. "freeze": false,
  3179. "refKey": "comment",
  3180. "hideInGraph": true
  3181. },
  3182. {
  3183. "freeze": false,
  3184. "refKey": "refDict",
  3185. "hideInGraph": true
  3186. },
  3187. {
  3188. "freeze": false,
  3189. "refKey": "defaultValue",
  3190. "hideInGraph": true
  3191. },
  3192. {
  3193. "freeze": false,
  3194. "refKey": "isStandard",
  3195. "hideInGraph": false
  3196. },
  3197. {
  3198. "freeze": false,
  3199. "refKey": "uiHint",
  3200. "hideInGraph": true
  3201. },
  3202. {
  3203. "freeze": false,
  3204. "refKey": "extProps",
  3205. "hideInGraph": true
  3206. }
  3207. ],
  3208. "correlations": []
  3209. },
  3210. {
  3211. "id": "A2FA1930-2C9C-4138-8F4B-21463BC85858",
  3212. "defKey": "sys_user",
  3213. "defName": "用户管理",
  3214. "comment": "",
  3215. "properties": {},
  3216. "fields": [
  3217. {
  3218. "defKey": "user_id",
  3219. "defName": "用户ID",
  3220. "comment": "",
  3221. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  3222. "type": "VARCHAR",
  3223. "len": "",
  3224. "scale": "",
  3225. "primaryKey": true,
  3226. "notNull": true,
  3227. "autoIncrement": false,
  3228. "defaultValue": "",
  3229. "hideInGraph": false,
  3230. "refDict": "",
  3231. "attr1": "",
  3232. "attr2": "",
  3233. "attr3": "",
  3234. "attr4": "",
  3235. "attr5": "",
  3236. "attr6": "",
  3237. "attr7": "",
  3238. "attr8": "",
  3239. "attr9": "",
  3240. "id": "EBE1E630-EFB9-40E2-9C5D-3861490478FE",
  3241. "extProps": {}
  3242. },
  3243. {
  3244. "defKey": "user_name",
  3245. "defName": "用户名称",
  3246. "comment": "",
  3247. "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
  3248. "type": "VARCHAR",
  3249. "len": "",
  3250. "scale": "",
  3251. "primaryKey": false,
  3252. "notNull": false,
  3253. "autoIncrement": false,
  3254. "defaultValue": "",
  3255. "hideInGraph": false,
  3256. "refDict": "",
  3257. "attr1": "",
  3258. "attr2": "",
  3259. "attr3": "",
  3260. "attr4": "",
  3261. "attr5": "",
  3262. "attr6": "",
  3263. "attr7": "",
  3264. "attr8": "",
  3265. "attr9": "",
  3266. "id": "3A7163D6-776E-4723-B605-7961C1FCDCCE",
  3267. "extProps": {}
  3268. },
  3269. {
  3270. "defKey": "avatar",
  3271. "defName": "头像",
  3272. "comment": "",
  3273. "domain": "3E948CEC-3070-472C-AF92-F3CA11EC9D15",
  3274. "type": "VARCHAR",
  3275. "len": "",
  3276. "scale": "",
  3277. "primaryKey": false,
  3278. "notNull": false,
  3279. "autoIncrement": false,
  3280. "defaultValue": "",
  3281. "hideInGraph": false,
  3282. "refDict": "",
  3283. "attr1": "",
  3284. "attr2": "",
  3285. "attr3": "",
  3286. "attr4": "",
  3287. "attr5": "",
  3288. "attr6": "",
  3289. "attr7": "",
  3290. "attr8": "",
  3291. "attr9": "",
  3292. "id": "C32AC37A-0A50-4F09-9895-8552B68B4D51",
  3293. "extProps": {}
  3294. },
  3295. {
  3296. "defKey": "email",
  3297. "defName": "邮箱",
  3298. "comment": "",
  3299. "type": "",
  3300. "len": "",
  3301. "scale": "",
  3302. "primaryKey": false,
  3303. "notNull": false,
  3304. "autoIncrement": false,
  3305. "defaultValue": "",
  3306. "hideInGraph": false,
  3307. "refDict": "",
  3308. "extProps": {},
  3309. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3310. "id": "6ADFA1B7-B0B7-490F-B59C-DACCD5A2500E"
  3311. },
  3312. {
  3313. "defKey": "phone",
  3314. "defName": "手机",
  3315. "comment": "",
  3316. "domain": "",
  3317. "type": "VARCHAR",
  3318. "len": 20,
  3319. "scale": "",
  3320. "primaryKey": false,
  3321. "notNull": false,
  3322. "autoIncrement": false,
  3323. "defaultValue": "",
  3324. "hideInGraph": false,
  3325. "refDict": "",
  3326. "attr1": "",
  3327. "attr2": "",
  3328. "attr3": "",
  3329. "attr4": "",
  3330. "attr5": "",
  3331. "attr6": "",
  3332. "attr7": "",
  3333. "attr8": "",
  3334. "attr9": "",
  3335. "id": "524F92E6-A6D2-4839-AC3D-52CCEEF4E0F6",
  3336. "extProps": {}
  3337. },
  3338. {
  3339. "defKey": "position_id",
  3340. "defName": "岗位ID",
  3341. "comment": "",
  3342. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  3343. "type": "VARCHAR",
  3344. "len": "",
  3345. "scale": "",
  3346. "primaryKey": false,
  3347. "notNull": false,
  3348. "autoIncrement": false,
  3349. "defaultValue": "",
  3350. "hideInGraph": false,
  3351. "refDict": "",
  3352. "attr1": "",
  3353. "attr2": "",
  3354. "attr3": "",
  3355. "attr4": "",
  3356. "attr5": "",
  3357. "attr6": "",
  3358. "attr7": "",
  3359. "attr8": "",
  3360. "attr9": "",
  3361. "id": "50B16BBA-E3A9-428C-B995-02C45C647612",
  3362. "extProps": {}
  3363. },
  3364. {
  3365. "defKey": "dept_id",
  3366. "defName": "部门ID",
  3367. "comment": "",
  3368. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  3369. "type": "VARCHAR",
  3370. "len": "",
  3371. "scale": "",
  3372. "primaryKey": false,
  3373. "notNull": false,
  3374. "autoIncrement": false,
  3375. "defaultValue": "",
  3376. "hideInGraph": false,
  3377. "refDict": "",
  3378. "attr1": "",
  3379. "attr2": "",
  3380. "attr3": "",
  3381. "attr4": "",
  3382. "attr5": "",
  3383. "attr6": "",
  3384. "attr7": "",
  3385. "attr8": "",
  3386. "attr9": "",
  3387. "id": "E80481DC-8E32-4D26-A34D-3F3CD8E31748",
  3388. "extProps": {}
  3389. },
  3390. {
  3391. "defKey": "tag",
  3392. "defName": "标签",
  3393. "comment": "",
  3394. "domain": "",
  3395. "type": "TEXT",
  3396. "len": "",
  3397. "scale": "",
  3398. "primaryKey": false,
  3399. "notNull": false,
  3400. "autoIncrement": false,
  3401. "defaultValue": "",
  3402. "hideInGraph": false,
  3403. "refDict": "",
  3404. "attr1": "",
  3405. "attr2": "",
  3406. "attr3": "",
  3407. "attr4": "",
  3408. "attr5": "",
  3409. "attr6": "",
  3410. "attr7": "",
  3411. "attr8": "",
  3412. "attr9": "",
  3413. "id": "1CF99698-D732-4BA2-9925-437B8CA22ED1",
  3414. "extProps": {}
  3415. },
  3416. {
  3417. "defKey": "status",
  3418. "defName": "状态",
  3419. "comment": "",
  3420. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3421. "type": "INT",
  3422. "len": "",
  3423. "scale": "",
  3424. "primaryKey": false,
  3425. "notNull": false,
  3426. "autoIncrement": false,
  3427. "defaultValue": "1",
  3428. "hideInGraph": false,
  3429. "refDict": "",
  3430. "attr1": "",
  3431. "attr2": "",
  3432. "attr3": "",
  3433. "attr4": "",
  3434. "attr5": "",
  3435. "attr6": "",
  3436. "attr7": "",
  3437. "attr8": "",
  3438. "attr9": "",
  3439. "id": "C9A4B1FC-E64B-40C5-89A1-ADEAAD3E5663",
  3440. "extProps": {}
  3441. },
  3442. {
  3443. "defKey": "is_admin",
  3444. "defName": "是否管理员",
  3445. "comment": "",
  3446. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3447. "type": "INT",
  3448. "len": "",
  3449. "scale": "",
  3450. "primaryKey": false,
  3451. "notNull": false,
  3452. "autoIncrement": false,
  3453. "defaultValue": "0",
  3454. "hideInGraph": false,
  3455. "refDict": "",
  3456. "attr1": "",
  3457. "attr2": "",
  3458. "attr3": "",
  3459. "attr4": "",
  3460. "attr5": "",
  3461. "attr6": "",
  3462. "attr7": "",
  3463. "attr8": "",
  3464. "attr9": "",
  3465. "id": "02A7A625-01FD-4562-8F90-E0F1B903C581",
  3466. "extProps": {}
  3467. },
  3468. {
  3469. "defKey": "tenant_id",
  3470. "defName": "租户号",
  3471. "comment": "",
  3472. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  3473. "type": "VARCHAR",
  3474. "len": "",
  3475. "scale": "",
  3476. "primaryKey": false,
  3477. "notNull": false,
  3478. "autoIncrement": false,
  3479. "defaultValue": "",
  3480. "hideInGraph": false,
  3481. "refDict": "",
  3482. "attr1": "",
  3483. "attr2": "",
  3484. "attr3": "",
  3485. "attr4": "",
  3486. "attr5": "",
  3487. "attr6": "",
  3488. "attr7": "",
  3489. "attr8": "",
  3490. "attr9": "",
  3491. "id": "50B693DA-2B3B-45F6-AA6A-7F90AC854C65",
  3492. "extProps": {}
  3493. },
  3494. {
  3495. "defKey": "created_by",
  3496. "defName": "创建人",
  3497. "comment": "",
  3498. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3499. "type": "VARCHAR",
  3500. "len": "",
  3501. "scale": "",
  3502. "primaryKey": false,
  3503. "notNull": false,
  3504. "autoIncrement": false,
  3505. "defaultValue": "",
  3506. "hideInGraph": false,
  3507. "refDict": "",
  3508. "attr1": "",
  3509. "attr2": "",
  3510. "attr3": "",
  3511. "attr4": "",
  3512. "attr5": "",
  3513. "attr6": "",
  3514. "attr7": "",
  3515. "attr8": "",
  3516. "attr9": "",
  3517. "id": "0E4BE40A-1D25-4DFD-802A-61AB96FA7C58",
  3518. "extProps": {}
  3519. },
  3520. {
  3521. "defKey": "created_at",
  3522. "defName": "创建时间",
  3523. "comment": "",
  3524. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  3525. "type": "DATETIME",
  3526. "len": "",
  3527. "scale": "",
  3528. "primaryKey": false,
  3529. "notNull": false,
  3530. "autoIncrement": false,
  3531. "defaultValue": "'CURRENT_TIMESTAMP'",
  3532. "hideInGraph": false,
  3533. "refDict": "",
  3534. "attr1": "",
  3535. "attr2": "",
  3536. "attr3": "",
  3537. "attr4": "",
  3538. "attr5": "",
  3539. "attr6": "",
  3540. "attr7": "",
  3541. "attr8": "",
  3542. "attr9": "",
  3543. "id": "0FD0CB9B-ED9D-42EF-84C9-F721C874BBC6",
  3544. "extProps": {}
  3545. },
  3546. {
  3547. "defKey": "updated_by",
  3548. "defName": "更新人",
  3549. "comment": "",
  3550. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3551. "type": "VARCHAR",
  3552. "len": "",
  3553. "scale": "",
  3554. "primaryKey": false,
  3555. "notNull": false,
  3556. "autoIncrement": false,
  3557. "defaultValue": "",
  3558. "hideInGraph": false,
  3559. "refDict": "",
  3560. "attr1": "",
  3561. "attr2": "",
  3562. "attr3": "",
  3563. "attr4": "",
  3564. "attr5": "",
  3565. "attr6": "",
  3566. "attr7": "",
  3567. "attr8": "",
  3568. "attr9": "",
  3569. "id": "1D187A2B-6698-4032-8EEC-FDC8193BE7E4",
  3570. "extProps": {}
  3571. },
  3572. {
  3573. "defKey": "updated_at",
  3574. "defName": "更新时间",
  3575. "comment": "",
  3576. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  3577. "type": "DATETIME",
  3578. "len": "",
  3579. "scale": "",
  3580. "primaryKey": false,
  3581. "notNull": false,
  3582. "autoIncrement": false,
  3583. "defaultValue": "",
  3584. "hideInGraph": false,
  3585. "refDict": "",
  3586. "attr1": "",
  3587. "attr2": "",
  3588. "attr3": "",
  3589. "attr4": "",
  3590. "attr5": "",
  3591. "attr6": "",
  3592. "attr7": "",
  3593. "attr8": "",
  3594. "attr9": "",
  3595. "id": "7F1BA6B0-FFCC-41C9-8444-C630A60DE9DF",
  3596. "extProps": {}
  3597. },
  3598. {
  3599. "defKey": "deleted",
  3600. "defName": "删除标志",
  3601. "comment": "1删除,0正常",
  3602. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3603. "type": "INT",
  3604. "len": "",
  3605. "scale": "",
  3606. "primaryKey": false,
  3607. "notNull": false,
  3608. "autoIncrement": false,
  3609. "defaultValue": "0",
  3610. "hideInGraph": false,
  3611. "refDict": "",
  3612. "attr1": "",
  3613. "attr2": "",
  3614. "attr3": "",
  3615. "attr4": "",
  3616. "attr5": "",
  3617. "attr6": "",
  3618. "attr7": "",
  3619. "attr8": "",
  3620. "attr9": "",
  3621. "id": "3E5F54DB-F97B-4613-BBFE-7DC6E018CE4F",
  3622. "extProps": {}
  3623. }
  3624. ],
  3625. "indexes": [],
  3626. "nameTemplate": "{defKey}[{defName}]",
  3627. "headers": [
  3628. {
  3629. "freeze": false,
  3630. "refKey": "hideInGraph",
  3631. "hideInGraph": true
  3632. },
  3633. {
  3634. "freeze": true,
  3635. "refKey": "defKey",
  3636. "hideInGraph": false
  3637. },
  3638. {
  3639. "freeze": true,
  3640. "refKey": "defName",
  3641. "hideInGraph": false
  3642. },
  3643. {
  3644. "freeze": false,
  3645. "refKey": "primaryKey",
  3646. "hideInGraph": false
  3647. },
  3648. {
  3649. "freeze": false,
  3650. "refKey": "notNull",
  3651. "hideInGraph": true
  3652. },
  3653. {
  3654. "freeze": false,
  3655. "refKey": "autoIncrement",
  3656. "hideInGraph": true
  3657. },
  3658. {
  3659. "freeze": false,
  3660. "refKey": "domain",
  3661. "hideInGraph": true
  3662. },
  3663. {
  3664. "freeze": false,
  3665. "refKey": "type",
  3666. "hideInGraph": false
  3667. },
  3668. {
  3669. "freeze": false,
  3670. "refKey": "len",
  3671. "hideInGraph": false
  3672. },
  3673. {
  3674. "freeze": false,
  3675. "refKey": "scale",
  3676. "hideInGraph": false
  3677. },
  3678. {
  3679. "freeze": false,
  3680. "refKey": "comment",
  3681. "hideInGraph": true
  3682. },
  3683. {
  3684. "freeze": false,
  3685. "refKey": "refDict",
  3686. "hideInGraph": true
  3687. },
  3688. {
  3689. "freeze": false,
  3690. "refKey": "defaultValue",
  3691. "hideInGraph": true
  3692. },
  3693. {
  3694. "freeze": false,
  3695. "refKey": "isStandard",
  3696. "hideInGraph": false
  3697. },
  3698. {
  3699. "freeze": false,
  3700. "refKey": "uiHint",
  3701. "hideInGraph": true
  3702. },
  3703. {
  3704. "freeze": false,
  3705. "refKey": "extProps",
  3706. "hideInGraph": true
  3707. }
  3708. ],
  3709. "correlations": [],
  3710. "notes": {}
  3711. },
  3712. {
  3713. "id": "880FA077-9E05-4DC0-BA00-560116009D16",
  3714. "env": {
  3715. "base": {
  3716. "nameSpace": "com.njyunzhi.repository",
  3717. "codeRoot": "SysMenu"
  3718. },
  3719. "template": {
  3720. "JavaMybatisPlus": {
  3721. "Controller": {
  3722. "suffix": "controller/{{=it.codeRoot}}Controller.java",
  3723. "enable": true
  3724. },
  3725. "Service": {
  3726. "suffix": "service/{{=it.codeRoot}}Service.java",
  3727. "enable": true
  3728. },
  3729. "ServiceImpl": {
  3730. "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
  3731. "enable": true
  3732. },
  3733. "Mapper": {
  3734. "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
  3735. "enable": true
  3736. },
  3737. "Mapper.xml": {
  3738. "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
  3739. "enable": true
  3740. },
  3741. "Entity": {
  3742. "suffix": "entity/{{=it.codeRoot}}.java",
  3743. "enable": true
  3744. }
  3745. }
  3746. },
  3747. "custom": {}
  3748. },
  3749. "defKey": "sys_menu",
  3750. "defName": "菜单表",
  3751. "comment": "",
  3752. "properties": {},
  3753. "nameTemplate": "{defKey}[{defName}]",
  3754. "headers": [
  3755. {
  3756. "refKey": "hideInGraph",
  3757. "hideInGraph": true
  3758. },
  3759. {
  3760. "refKey": "defKey",
  3761. "hideInGraph": false
  3762. },
  3763. {
  3764. "refKey": "defName",
  3765. "hideInGraph": false
  3766. },
  3767. {
  3768. "refKey": "primaryKey",
  3769. "hideInGraph": false
  3770. },
  3771. {
  3772. "refKey": "notNull",
  3773. "hideInGraph": true
  3774. },
  3775. {
  3776. "refKey": "autoIncrement",
  3777. "hideInGraph": true
  3778. },
  3779. {
  3780. "refKey": "domain",
  3781. "hideInGraph": true
  3782. },
  3783. {
  3784. "refKey": "type",
  3785. "hideInGraph": false
  3786. },
  3787. {
  3788. "refKey": "len",
  3789. "hideInGraph": false
  3790. },
  3791. {
  3792. "refKey": "scale",
  3793. "hideInGraph": false
  3794. },
  3795. {
  3796. "refKey": "comment",
  3797. "hideInGraph": true
  3798. },
  3799. {
  3800. "refKey": "refDict",
  3801. "hideInGraph": true
  3802. },
  3803. {
  3804. "refKey": "defaultValue",
  3805. "hideInGraph": true
  3806. },
  3807. {
  3808. "refKey": "isStandard",
  3809. "hideInGraph": false
  3810. },
  3811. {
  3812. "refKey": "uiHint",
  3813. "hideInGraph": true
  3814. },
  3815. {
  3816. "refKey": "extProps",
  3817. "hideInGraph": true
  3818. }
  3819. ],
  3820. "fields": [
  3821. {
  3822. "defKey": "menu_id",
  3823. "defName": "菜单ID",
  3824. "comment": "",
  3825. "type": "",
  3826. "len": "",
  3827. "scale": "",
  3828. "primaryKey": true,
  3829. "notNull": true,
  3830. "autoIncrement": false,
  3831. "defaultValue": "",
  3832. "hideInGraph": false,
  3833. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  3834. "refDict": null,
  3835. "uiHint": null,
  3836. "id": "659D15F4-01B1-474D-9880-1A56B7F5A075"
  3837. },
  3838. {
  3839. "defKey": "fx_menu_id",
  3840. "defName": "标准菜单ID",
  3841. "comment": "",
  3842. "type": "",
  3843. "len": "",
  3844. "scale": "",
  3845. "primaryKey": false,
  3846. "notNull": false,
  3847. "autoIncrement": false,
  3848. "defaultValue": "",
  3849. "hideInGraph": false,
  3850. "refDict": null,
  3851. "extProps": {},
  3852. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  3853. "id": "4E5BB180-0C4F-4CD1-BE82-6483E7F39361",
  3854. "uiHint": null
  3855. },
  3856. {
  3857. "defKey": "menu_code",
  3858. "defName": "菜单编码",
  3859. "comment": "",
  3860. "type": "",
  3861. "len": "",
  3862. "scale": "",
  3863. "primaryKey": false,
  3864. "notNull": false,
  3865. "autoIncrement": false,
  3866. "defaultValue": "",
  3867. "hideInGraph": false,
  3868. "refDict": null,
  3869. "extProps": {},
  3870. "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
  3871. "id": "7D7BEA34-8227-461C-8630-E48A2F69B494",
  3872. "uiHint": null
  3873. },
  3874. {
  3875. "defKey": "menu_name",
  3876. "defName": "菜单名称",
  3877. "comment": "",
  3878. "type": "",
  3879. "len": "",
  3880. "scale": "",
  3881. "primaryKey": false,
  3882. "notNull": false,
  3883. "autoIncrement": false,
  3884. "defaultValue": "",
  3885. "hideInGraph": false,
  3886. "refDict": null,
  3887. "extProps": {},
  3888. "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
  3889. "id": "9C2E61A3-D18E-4558-9290-B6D1C37BEF92",
  3890. "uiHint": null
  3891. },
  3892. {
  3893. "defKey": "parent_id",
  3894. "defName": "上级ID",
  3895. "comment": "",
  3896. "type": "",
  3897. "len": "",
  3898. "scale": "",
  3899. "primaryKey": false,
  3900. "notNull": false,
  3901. "autoIncrement": false,
  3902. "defaultValue": "",
  3903. "hideInGraph": false,
  3904. "refDict": null,
  3905. "extProps": {},
  3906. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  3907. "id": "806EB8CA-AE20-4745-8359-E8EAE88071DB",
  3908. "uiHint": null
  3909. },
  3910. {
  3911. "defKey": "sort_no",
  3912. "defName": "排序",
  3913. "comment": "",
  3914. "type": "",
  3915. "len": "",
  3916. "scale": "",
  3917. "primaryKey": false,
  3918. "notNull": false,
  3919. "autoIncrement": false,
  3920. "defaultValue": "",
  3921. "hideInGraph": false,
  3922. "refDict": null,
  3923. "extProps": {},
  3924. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3925. "id": "04130FCC-9AC2-46FE-BB64-D62C0DF42A2F",
  3926. "uiHint": null
  3927. },
  3928. {
  3929. "defKey": "status",
  3930. "defName": "状态",
  3931. "comment": "",
  3932. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3933. "type": "",
  3934. "len": "",
  3935. "scale": "",
  3936. "primaryKey": false,
  3937. "notNull": false,
  3938. "autoIncrement": false,
  3939. "defaultValue": "1",
  3940. "hideInGraph": true,
  3941. "refDict": null,
  3942. "uiHint": null,
  3943. "id": "2C9585D5-7F88-42C3-8A71-0799668C494D"
  3944. },
  3945. {
  3946. "defKey": "module_id",
  3947. "defName": "模块ID",
  3948. "comment": "",
  3949. "type": "",
  3950. "len": "",
  3951. "scale": "",
  3952. "primaryKey": false,
  3953. "notNull": false,
  3954. "autoIncrement": false,
  3955. "defaultValue": "",
  3956. "hideInGraph": true,
  3957. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  3958. "refDict": null,
  3959. "extProps": {},
  3960. "notes": {},
  3961. "attr1": "",
  3962. "attr2": "",
  3963. "attr3": "",
  3964. "attr4": "",
  3965. "attr5": "",
  3966. "attr6": "",
  3967. "attr7": "",
  3968. "attr8": "",
  3969. "attr9": "",
  3970. "id": "56D16821-043E-467C-9931-FD15C97F1132",
  3971. "uiHint": null
  3972. },
  3973. {
  3974. "defKey": "tenant_id",
  3975. "defName": "租户号",
  3976. "comment": "",
  3977. "type": "",
  3978. "len": "",
  3979. "scale": "",
  3980. "primaryKey": false,
  3981. "notNull": false,
  3982. "autoIncrement": false,
  3983. "defaultValue": "",
  3984. "hideInGraph": true,
  3985. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  3986. "refDict": null,
  3987. "extProps": {},
  3988. "notes": {},
  3989. "attr1": "",
  3990. "attr2": "",
  3991. "attr3": "",
  3992. "attr4": "",
  3993. "attr5": "",
  3994. "attr6": "",
  3995. "attr7": "",
  3996. "attr8": "",
  3997. "attr9": "",
  3998. "id": "C1215BF8-268A-4129-B5B7-56F4627C73C5",
  3999. "uiHint": null
  4000. },
  4001. {
  4002. "defKey": "created_by",
  4003. "defName": "创建人",
  4004. "comment": "",
  4005. "type": "VARCHAR",
  4006. "len": 255,
  4007. "scale": "",
  4008. "primaryKey": false,
  4009. "notNull": false,
  4010. "autoIncrement": false,
  4011. "defaultValue": "",
  4012. "hideInGraph": true,
  4013. "refDict": null,
  4014. "extProps": {},
  4015. "notes": {},
  4016. "attr1": "",
  4017. "attr2": "",
  4018. "attr3": "",
  4019. "attr4": "",
  4020. "attr5": "",
  4021. "attr6": "",
  4022. "attr7": "",
  4023. "attr8": "",
  4024. "attr9": "",
  4025. "id": "62F2998A-D5B2-4FDA-B959-19A470663A18",
  4026. "domain": null,
  4027. "uiHint": null
  4028. },
  4029. {
  4030. "defKey": "created_at",
  4031. "defName": "创建时间",
  4032. "comment": "",
  4033. "type": "",
  4034. "len": "",
  4035. "scale": "",
  4036. "primaryKey": false,
  4037. "notNull": false,
  4038. "autoIncrement": false,
  4039. "defaultValue": "CURRENT_TIMESTAMP",
  4040. "hideInGraph": true,
  4041. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  4042. "refDict": null,
  4043. "extProps": {},
  4044. "notes": {},
  4045. "attr1": "",
  4046. "attr2": "",
  4047. "attr3": "",
  4048. "attr4": "",
  4049. "attr5": "",
  4050. "attr6": "",
  4051. "attr7": "",
  4052. "attr8": "",
  4053. "attr9": "",
  4054. "id": "3DEC5089-C3F7-46DF-B726-E61C450A3F7A",
  4055. "uiHint": null
  4056. },
  4057. {
  4058. "defKey": "updated_by",
  4059. "defName": "更新人",
  4060. "comment": "",
  4061. "type": "VARCHAR",
  4062. "len": 255,
  4063. "scale": "",
  4064. "primaryKey": false,
  4065. "notNull": false,
  4066. "autoIncrement": false,
  4067. "defaultValue": "",
  4068. "hideInGraph": true,
  4069. "refDict": null,
  4070. "extProps": {},
  4071. "notes": {},
  4072. "attr1": "",
  4073. "attr2": "",
  4074. "attr3": "",
  4075. "attr4": "",
  4076. "attr5": "",
  4077. "attr6": "",
  4078. "attr7": "",
  4079. "attr8": "",
  4080. "attr9": "",
  4081. "id": "48EB692B-74BC-42BE-903E-FE2720DBBC30",
  4082. "domain": null,
  4083. "uiHint": null
  4084. },
  4085. {
  4086. "defKey": "updated_at",
  4087. "defName": "更新时间",
  4088. "comment": "",
  4089. "type": "",
  4090. "len": "",
  4091. "scale": "",
  4092. "primaryKey": false,
  4093. "notNull": false,
  4094. "autoIncrement": false,
  4095. "defaultValue": "",
  4096. "hideInGraph": true,
  4097. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  4098. "refDict": null,
  4099. "extProps": {},
  4100. "notes": {},
  4101. "attr1": "",
  4102. "attr2": "",
  4103. "attr3": "",
  4104. "attr4": "",
  4105. "attr5": "",
  4106. "attr6": "",
  4107. "attr7": "",
  4108. "attr8": "",
  4109. "attr9": "",
  4110. "id": "5F14C6AE-1FDD-40FF-882A-8A9BA1A1E9BE",
  4111. "uiHint": null
  4112. },
  4113. {
  4114. "defKey": "deleted",
  4115. "defName": "删除标志",
  4116. "comment": "1删除,0正常",
  4117. "type": "",
  4118. "len": "",
  4119. "scale": "",
  4120. "primaryKey": false,
  4121. "notNull": false,
  4122. "autoIncrement": false,
  4123. "defaultValue": "0",
  4124. "hideInGraph": true,
  4125. "refDict": null,
  4126. "extProps": {},
  4127. "notes": {},
  4128. "attr1": "",
  4129. "attr2": "",
  4130. "attr3": "",
  4131. "attr4": "",
  4132. "attr5": "",
  4133. "attr6": "",
  4134. "attr7": "",
  4135. "attr8": "",
  4136. "attr9": "",
  4137. "id": "A4C1F3D7-9BF2-4E7B-8C38-03F286183D9A",
  4138. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  4139. "uiHint": null
  4140. }
  4141. ],
  4142. "correlations": [],
  4143. "indexes": [],
  4144. "notes": {}
  4145. },
  4146. {
  4147. "id": "B638B903-6CF8-4697-8E8E-2A851B30FEE6",
  4148. "env": {
  4149. "base": {
  4150. "nameSpace": "com.njyunzhi.repository",
  4151. "codeRoot": "SysRole"
  4152. },
  4153. "template": {
  4154. "JavaMybatisPlus": {
  4155. "Controller": {
  4156. "suffix": "controller/{{=it.codeRoot}}Controller.java",
  4157. "enable": true
  4158. },
  4159. "Service": {
  4160. "suffix": "service/{{=it.codeRoot}}Service.java",
  4161. "enable": true
  4162. },
  4163. "ServiceImpl": {
  4164. "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
  4165. "enable": true
  4166. },
  4167. "Mapper": {
  4168. "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
  4169. "enable": true
  4170. },
  4171. "Mapper.xml": {
  4172. "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
  4173. "enable": true
  4174. },
  4175. "Entity": {
  4176. "suffix": "entity/{{=it.codeRoot}}.java",
  4177. "enable": true
  4178. }
  4179. }
  4180. },
  4181. "custom": {}
  4182. },
  4183. "defKey": "sys_role",
  4184. "defName": "系统角色",
  4185. "comment": "",
  4186. "properties": {},
  4187. "nameTemplate": "{defKey}[{defName}]",
  4188. "headers": [
  4189. {
  4190. "refKey": "hideInGraph",
  4191. "hideInGraph": true
  4192. },
  4193. {
  4194. "refKey": "defKey",
  4195. "hideInGraph": false
  4196. },
  4197. {
  4198. "refKey": "defName",
  4199. "hideInGraph": false
  4200. },
  4201. {
  4202. "refKey": "primaryKey",
  4203. "hideInGraph": false
  4204. },
  4205. {
  4206. "refKey": "notNull",
  4207. "hideInGraph": true
  4208. },
  4209. {
  4210. "refKey": "autoIncrement",
  4211. "hideInGraph": true
  4212. },
  4213. {
  4214. "refKey": "domain",
  4215. "hideInGraph": true
  4216. },
  4217. {
  4218. "refKey": "type",
  4219. "hideInGraph": false
  4220. },
  4221. {
  4222. "refKey": "len",
  4223. "hideInGraph": false
  4224. },
  4225. {
  4226. "refKey": "scale",
  4227. "hideInGraph": false
  4228. },
  4229. {
  4230. "refKey": "comment",
  4231. "hideInGraph": true
  4232. },
  4233. {
  4234. "refKey": "refDict",
  4235. "hideInGraph": true
  4236. },
  4237. {
  4238. "refKey": "defaultValue",
  4239. "hideInGraph": true
  4240. },
  4241. {
  4242. "refKey": "isStandard",
  4243. "hideInGraph": false
  4244. },
  4245. {
  4246. "refKey": "uiHint",
  4247. "hideInGraph": true
  4248. },
  4249. {
  4250. "refKey": "extProps",
  4251. "hideInGraph": true
  4252. }
  4253. ],
  4254. "fields": [
  4255. {
  4256. "defKey": "role_id",
  4257. "defName": "角色ID",
  4258. "comment": "",
  4259. "type": "",
  4260. "len": "",
  4261. "scale": "",
  4262. "primaryKey": true,
  4263. "notNull": true,
  4264. "autoIncrement": false,
  4265. "defaultValue": "",
  4266. "hideInGraph": false,
  4267. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  4268. "refDict": null,
  4269. "uiHint": null,
  4270. "id": "F3630C24-6E14-4067-8B73-5D3FED63C767"
  4271. },
  4272. {
  4273. "defKey": "role_name",
  4274. "defName": "角色名称",
  4275. "comment": "",
  4276. "type": "",
  4277. "len": "",
  4278. "scale": "",
  4279. "primaryKey": false,
  4280. "notNull": false,
  4281. "autoIncrement": false,
  4282. "defaultValue": "",
  4283. "hideInGraph": false,
  4284. "refDict": null,
  4285. "extProps": {},
  4286. "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
  4287. "id": "A2A41541-B97C-445B-BD41-C8E9166EF279",
  4288. "uiHint": null
  4289. },
  4290. {
  4291. "defKey": "sort_no",
  4292. "defName": "排序",
  4293. "comment": "",
  4294. "type": "",
  4295. "len": "",
  4296. "scale": "",
  4297. "primaryKey": false,
  4298. "notNull": false,
  4299. "autoIncrement": false,
  4300. "defaultValue": "",
  4301. "hideInGraph": false,
  4302. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  4303. "refDict": null,
  4304. "extProps": {},
  4305. "notes": {},
  4306. "attr1": "",
  4307. "attr2": "",
  4308. "attr3": "",
  4309. "attr4": "",
  4310. "attr5": "",
  4311. "attr6": "",
  4312. "attr7": "",
  4313. "attr8": "",
  4314. "attr9": "",
  4315. "id": "DE7FDC56-7CC7-4C6F-BFEF-F8D02188BC58",
  4316. "uiHint": null
  4317. },
  4318. {
  4319. "defKey": "status",
  4320. "defName": "状态",
  4321. "comment": "",
  4322. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  4323. "type": "",
  4324. "len": "",
  4325. "scale": "",
  4326. "primaryKey": false,
  4327. "notNull": false,
  4328. "autoIncrement": false,
  4329. "defaultValue": "1",
  4330. "hideInGraph": true,
  4331. "refDict": null,
  4332. "uiHint": null,
  4333. "id": "A3E8230C-29A1-4DD4-9F6C-7EA13F5E1431"
  4334. },
  4335. {
  4336. "defKey": "tenant_id",
  4337. "defName": "租户号",
  4338. "comment": "",
  4339. "type": "",
  4340. "len": "",
  4341. "scale": "",
  4342. "primaryKey": false,
  4343. "notNull": false,
  4344. "autoIncrement": false,
  4345. "defaultValue": "",
  4346. "hideInGraph": true,
  4347. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  4348. "refDict": null,
  4349. "extProps": {},
  4350. "notes": {},
  4351. "attr1": "",
  4352. "attr2": "",
  4353. "attr3": "",
  4354. "attr4": "",
  4355. "attr5": "",
  4356. "attr6": "",
  4357. "attr7": "",
  4358. "attr8": "",
  4359. "attr9": "",
  4360. "id": "93B1CFD7-6276-40DB-BA40-586E45E100D6",
  4361. "uiHint": null
  4362. },
  4363. {
  4364. "defKey": "created_by",
  4365. "defName": "创建人",
  4366. "comment": "",
  4367. "type": "VARCHAR",
  4368. "len": 255,
  4369. "scale": "",
  4370. "primaryKey": false,
  4371. "notNull": false,
  4372. "autoIncrement": false,
  4373. "defaultValue": "",
  4374. "hideInGraph": true,
  4375. "refDict": null,
  4376. "extProps": {},
  4377. "notes": {},
  4378. "attr1": "",
  4379. "attr2": "",
  4380. "attr3": "",
  4381. "attr4": "",
  4382. "attr5": "",
  4383. "attr6": "",
  4384. "attr7": "",
  4385. "attr8": "",
  4386. "attr9": "",
  4387. "id": "813CFCCF-97A2-4424-99CC-1B597BEF6C5A",
  4388. "domain": null,
  4389. "uiHint": null
  4390. },
  4391. {
  4392. "defKey": "created_at",
  4393. "defName": "创建时间",
  4394. "comment": "",
  4395. "type": "",
  4396. "len": "",
  4397. "scale": "",
  4398. "primaryKey": false,
  4399. "notNull": false,
  4400. "autoIncrement": false,
  4401. "defaultValue": "CURRENT_TIMESTAMP",
  4402. "hideInGraph": true,
  4403. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  4404. "refDict": null,
  4405. "extProps": {},
  4406. "notes": {},
  4407. "attr1": "",
  4408. "attr2": "",
  4409. "attr3": "",
  4410. "attr4": "",
  4411. "attr5": "",
  4412. "attr6": "",
  4413. "attr7": "",
  4414. "attr8": "",
  4415. "attr9": "",
  4416. "id": "DB75FD7F-F0C2-4325-8890-DEEDA4990E42",
  4417. "uiHint": null
  4418. },
  4419. {
  4420. "defKey": "updated_by",
  4421. "defName": "更新人",
  4422. "comment": "",
  4423. "type": "VARCHAR",
  4424. "len": 255,
  4425. "scale": "",
  4426. "primaryKey": false,
  4427. "notNull": false,
  4428. "autoIncrement": false,
  4429. "defaultValue": "",
  4430. "hideInGraph": true,
  4431. "refDict": null,
  4432. "extProps": {},
  4433. "notes": {},
  4434. "attr1": "",
  4435. "attr2": "",
  4436. "attr3": "",
  4437. "attr4": "",
  4438. "attr5": "",
  4439. "attr6": "",
  4440. "attr7": "",
  4441. "attr8": "",
  4442. "attr9": "",
  4443. "id": "9B7518A1-D2CE-4E28-A8DA-29F7F656D1BF",
  4444. "domain": null,
  4445. "uiHint": null
  4446. },
  4447. {
  4448. "defKey": "updated_at",
  4449. "defName": "更新时间",
  4450. "comment": "",
  4451. "type": "",
  4452. "len": "",
  4453. "scale": "",
  4454. "primaryKey": false,
  4455. "notNull": false,
  4456. "autoIncrement": false,
  4457. "defaultValue": "",
  4458. "hideInGraph": true,
  4459. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  4460. "refDict": null,
  4461. "extProps": {},
  4462. "notes": {},
  4463. "attr1": "",
  4464. "attr2": "",
  4465. "attr3": "",
  4466. "attr4": "",
  4467. "attr5": "",
  4468. "attr6": "",
  4469. "attr7": "",
  4470. "attr8": "",
  4471. "attr9": "",
  4472. "id": "07E692EC-B4DC-4BEF-B1D8-1D7498316A36",
  4473. "uiHint": null
  4474. },
  4475. {
  4476. "defKey": "deleted",
  4477. "defName": "删除标志",
  4478. "comment": "1删除,0正常",
  4479. "type": "",
  4480. "len": "",
  4481. "scale": "",
  4482. "primaryKey": false,
  4483. "notNull": false,
  4484. "autoIncrement": false,
  4485. "defaultValue": "0",
  4486. "hideInGraph": true,
  4487. "refDict": null,
  4488. "extProps": {},
  4489. "notes": {},
  4490. "attr1": "",
  4491. "attr2": "",
  4492. "attr3": "",
  4493. "attr4": "",
  4494. "attr5": "",
  4495. "attr6": "",
  4496. "attr7": "",
  4497. "attr8": "",
  4498. "attr9": "",
  4499. "id": "6A9FACC3-5814-45BE-864E-FD33AC1CAE03",
  4500. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  4501. "uiHint": null
  4502. }
  4503. ],
  4504. "correlations": [],
  4505. "indexes": [],
  4506. "notes": {}
  4507. },
  4508. {
  4509. "id": "22C32AB9-51C1-421F-8E38-363C9A1C00A7",
  4510. "env": {
  4511. "base": {
  4512. "nameSpace": "com.njyunzhi.repository",
  4513. "codeRoot": "SysUserRole"
  4514. },
  4515. "template": {
  4516. "JavaMybatisPlus": {
  4517. "Controller": {
  4518. "suffix": "controller/{{=it.codeRoot}}Controller.java",
  4519. "enable": true
  4520. },
  4521. "Service": {
  4522. "suffix": "service/{{=it.codeRoot}}Service.java",
  4523. "enable": true
  4524. },
  4525. "ServiceImpl": {
  4526. "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
  4527. "enable": true
  4528. },
  4529. "Mapper": {
  4530. "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
  4531. "enable": true
  4532. },
  4533. "Mapper.xml": {
  4534. "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
  4535. "enable": true
  4536. },
  4537. "Entity": {
  4538. "suffix": "entity/{{=it.codeRoot}}.java",
  4539. "enable": true
  4540. }
  4541. }
  4542. },
  4543. "custom": {}
  4544. },
  4545. "defKey": "sys_user_role",
  4546. "defName": "角色授权",
  4547. "comment": "",
  4548. "properties": {},
  4549. "nameTemplate": "{defKey}[{defName}]",
  4550. "headers": [
  4551. {
  4552. "refKey": "hideInGraph",
  4553. "hideInGraph": true
  4554. },
  4555. {
  4556. "refKey": "defKey",
  4557. "hideInGraph": false
  4558. },
  4559. {
  4560. "refKey": "defName",
  4561. "hideInGraph": false
  4562. },
  4563. {
  4564. "refKey": "primaryKey",
  4565. "hideInGraph": false
  4566. },
  4567. {
  4568. "refKey": "notNull",
  4569. "hideInGraph": true
  4570. },
  4571. {
  4572. "refKey": "autoIncrement",
  4573. "hideInGraph": true
  4574. },
  4575. {
  4576. "refKey": "domain",
  4577. "hideInGraph": true
  4578. },
  4579. {
  4580. "refKey": "type",
  4581. "hideInGraph": false
  4582. },
  4583. {
  4584. "refKey": "len",
  4585. "hideInGraph": false
  4586. },
  4587. {
  4588. "refKey": "scale",
  4589. "hideInGraph": false
  4590. },
  4591. {
  4592. "refKey": "comment",
  4593. "hideInGraph": true
  4594. },
  4595. {
  4596. "refKey": "refDict",
  4597. "hideInGraph": true
  4598. },
  4599. {
  4600. "refKey": "defaultValue",
  4601. "hideInGraph": true
  4602. },
  4603. {
  4604. "refKey": "isStandard",
  4605. "hideInGraph": false
  4606. },
  4607. {
  4608. "refKey": "uiHint",
  4609. "hideInGraph": true
  4610. },
  4611. {
  4612. "refKey": "extProps",
  4613. "hideInGraph": true
  4614. }
  4615. ],
  4616. "fields": [
  4617. {
  4618. "defKey": "id",
  4619. "defName": "id",
  4620. "comment": "",
  4621. "type": "",
  4622. "len": "",
  4623. "scale": "",
  4624. "primaryKey": true,
  4625. "notNull": true,
  4626. "autoIncrement": false,
  4627. "defaultValue": "",
  4628. "hideInGraph": false,
  4629. "refDict": null,
  4630. "extProps": {},
  4631. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  4632. "id": "68A8E7DB-D146-45C1-8550-FE836F1BFD12",
  4633. "uiHint": null
  4634. },
  4635. {
  4636. "defKey": "role_id",
  4637. "defName": "角色ID",
  4638. "comment": "",
  4639. "type": "",
  4640. "len": "",
  4641. "scale": "",
  4642. "primaryKey": false,
  4643. "notNull": false,
  4644. "autoIncrement": false,
  4645. "defaultValue": "",
  4646. "hideInGraph": false,
  4647. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  4648. "refDict": null,
  4649. "uiHint": null,
  4650. "id": "2CA67B0F-A33D-4F8F-9E25-04E6B6DB284C"
  4651. },
  4652. {
  4653. "defKey": "user_id",
  4654. "defName": "用户ID",
  4655. "comment": "",
  4656. "type": "",
  4657. "len": "",
  4658. "scale": "",
  4659. "primaryKey": false,
  4660. "notNull": false,
  4661. "autoIncrement": false,
  4662. "defaultValue": "",
  4663. "hideInGraph": false,
  4664. "refDict": null,
  4665. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  4666. "id": "13AB12C1-CEE9-4F80-8921-478CF765D520",
  4667. "uiHint": null
  4668. }
  4669. ],
  4670. "correlations": [],
  4671. "indexes": [],
  4672. "notes": {}
  4673. },
  4674. {
  4675. "id": "A10C5772-7D4F-4A1C-AF3B-34D3AA5FAA09",
  4676. "env": {
  4677. "base": {
  4678. "nameSpace": "com.njyunzhi.repository",
  4679. "codeRoot": "TaPerson"
  4680. },
  4681. "template": {
  4682. "JavaMybatisPlus": {
  4683. "Controller": {
  4684. "suffix": "controller/{{=it.codeRoot}}Controller.java",
  4685. "enable": false
  4686. },
  4687. "Service": {
  4688. "suffix": "service/{{=it.codeRoot}}Service.java",
  4689. "enable": false
  4690. },
  4691. "ServiceImpl": {
  4692. "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
  4693. "enable": false
  4694. },
  4695. "Mapper": {
  4696. "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
  4697. "enable": false
  4698. },
  4699. "Mapper.xml": {
  4700. "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
  4701. "enable": true
  4702. },
  4703. "Entity": {
  4704. "suffix": "entity/{{=it.codeRoot}}.java",
  4705. "enable": false
  4706. }
  4707. }
  4708. },
  4709. "custom": {}
  4710. },
  4711. "defKey": "ta_person",
  4712. "defName": "人员表",
  4713. "comment": "",
  4714. "properties": {},
  4715. "nameTemplate": "{defKey}[{defName}]",
  4716. "notes": {},
  4717. "headers": [
  4718. {
  4719. "refKey": "hideInGraph",
  4720. "hideInGraph": true
  4721. },
  4722. {
  4723. "refKey": "defKey",
  4724. "hideInGraph": false
  4725. },
  4726. {
  4727. "refKey": "defName",
  4728. "hideInGraph": false
  4729. },
  4730. {
  4731. "refKey": "primaryKey",
  4732. "hideInGraph": false
  4733. },
  4734. {
  4735. "refKey": "notNull",
  4736. "hideInGraph": true
  4737. },
  4738. {
  4739. "refKey": "autoIncrement",
  4740. "hideInGraph": true
  4741. },
  4742. {
  4743. "refKey": "domain",
  4744. "hideInGraph": true
  4745. },
  4746. {
  4747. "refKey": "type",
  4748. "hideInGraph": false
  4749. },
  4750. {
  4751. "refKey": "len",
  4752. "hideInGraph": false
  4753. },
  4754. {
  4755. "refKey": "scale",
  4756. "hideInGraph": false
  4757. },
  4758. {
  4759. "refKey": "comment",
  4760. "hideInGraph": true
  4761. },
  4762. {
  4763. "refKey": "refDict",
  4764. "hideInGraph": true
  4765. },
  4766. {
  4767. "refKey": "defaultValue",
  4768. "hideInGraph": true
  4769. },
  4770. {
  4771. "refKey": "isStandard",
  4772. "hideInGraph": false
  4773. },
  4774. {
  4775. "refKey": "uiHint",
  4776. "hideInGraph": true
  4777. },
  4778. {
  4779. "refKey": "extProps",
  4780. "hideInGraph": true
  4781. }
  4782. ],
  4783. "fields": [
  4784. {
  4785. "defKey": "person_id",
  4786. "defName": "人员ID",
  4787. "comment": "",
  4788. "type": "",
  4789. "len": "",
  4790. "scale": "",
  4791. "primaryKey": true,
  4792. "notNull": true,
  4793. "autoIncrement": false,
  4794. "defaultValue": "",
  4795. "hideInGraph": false,
  4796. "refDict": null,
  4797. "extProps": {},
  4798. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  4799. "id": "4EBE8C1E-45FE-424E-AB94-AE56E6AF18A3",
  4800. "uiHint": null
  4801. },
  4802. {
  4803. "defKey": "person_name",
  4804. "defName": "人员名称",
  4805. "comment": "",
  4806. "type": "",
  4807. "len": "",
  4808. "scale": "",
  4809. "primaryKey": false,
  4810. "notNull": false,
  4811. "autoIncrement": false,
  4812. "defaultValue": "",
  4813. "hideInGraph": false,
  4814. "refDict": null,
  4815. "extProps": {},
  4816. "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
  4817. "id": "A78FCCB3-D3A5-4002-BF98-CCAF6888B35C",
  4818. "uiHint": null
  4819. },
  4820. {
  4821. "defKey": "avatar",
  4822. "defName": "头像",
  4823. "comment": "",
  4824. "type": "TEXT",
  4825. "len": "",
  4826. "scale": "",
  4827. "primaryKey": false,
  4828. "notNull": false,
  4829. "autoIncrement": false,
  4830. "defaultValue": "",
  4831. "hideInGraph": false,
  4832. "refDict": null,
  4833. "extProps": {},
  4834. "domain": null,
  4835. "id": "277B1F46-06EE-49D2-B78F-A2C6AF653C0C",
  4836. "uiHint": null
  4837. },
  4838. {
  4839. "defKey": "phone",
  4840. "defName": "手机",
  4841. "comment": "",
  4842. "type": "VARCHAR",
  4843. "len": 20,
  4844. "scale": "",
  4845. "primaryKey": false,
  4846. "notNull": false,
  4847. "autoIncrement": false,
  4848. "defaultValue": "",
  4849. "hideInGraph": false,
  4850. "refDict": null,
  4851. "extProps": {},
  4852. "domain": null,
  4853. "id": "2FB14EF4-EFDD-4661-B6D5-FF3226CFC850",
  4854. "uiHint": null
  4855. },
  4856. {
  4857. "defKey": "email",
  4858. "defName": "邮箱",
  4859. "comment": "",
  4860. "type": "",
  4861. "len": "",
  4862. "scale": "",
  4863. "primaryKey": false,
  4864. "notNull": false,
  4865. "autoIncrement": false,
  4866. "defaultValue": "",
  4867. "hideInGraph": false,
  4868. "refDict": null,
  4869. "extProps": {},
  4870. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  4871. "id": "3F36F4E0-372F-4A76-84CC-6BEF505B5E58",
  4872. "uiHint": null
  4873. },
  4874. {
  4875. "defKey": "open_id",
  4876. "defName": "用户openid",
  4877. "comment": "",
  4878. "type": "",
  4879. "len": "",
  4880. "scale": "",
  4881. "primaryKey": false,
  4882. "notNull": false,
  4883. "autoIncrement": false,
  4884. "defaultValue": "",
  4885. "hideInGraph": false,
  4886. "refDict": null,
  4887. "extProps": {},
  4888. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  4889. "id": "288688B4-64D1-4AA8-8144-23B5A45C661E",
  4890. "uiHint": null
  4891. },
  4892. {
  4893. "defKey": "created_by",
  4894. "defName": "创建人",
  4895. "comment": "",
  4896. "type": "VARCHAR",
  4897. "len": 255,
  4898. "scale": "",
  4899. "primaryKey": false,
  4900. "notNull": false,
  4901. "autoIncrement": false,
  4902. "defaultValue": "",
  4903. "hideInGraph": true,
  4904. "refDict": null,
  4905. "extProps": {},
  4906. "notes": {},
  4907. "attr1": "",
  4908. "attr2": "",
  4909. "attr3": "",
  4910. "attr4": "",
  4911. "attr5": "",
  4912. "attr6": "",
  4913. "attr7": "",
  4914. "attr8": "",
  4915. "attr9": "",
  4916. "id": "A2F5EB2B-574F-467D-B8F4-C3E343665356",
  4917. "domain": null,
  4918. "uiHint": null
  4919. },
  4920. {
  4921. "defKey": "created_at",
  4922. "defName": "创建时间",
  4923. "comment": "",
  4924. "type": "",
  4925. "len": "",
  4926. "scale": "",
  4927. "primaryKey": false,
  4928. "notNull": false,
  4929. "autoIncrement": false,
  4930. "defaultValue": "CURRENT_TIMESTAMP",
  4931. "hideInGraph": true,
  4932. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  4933. "refDict": null,
  4934. "extProps": {},
  4935. "notes": {},
  4936. "attr1": "",
  4937. "attr2": "",
  4938. "attr3": "",
  4939. "attr4": "",
  4940. "attr5": "",
  4941. "attr6": "",
  4942. "attr7": "",
  4943. "attr8": "",
  4944. "attr9": "",
  4945. "id": "ADA5A8D6-D17A-4A35-92AA-6A342654CE10",
  4946. "uiHint": null
  4947. },
  4948. {
  4949. "defKey": "updated_by",
  4950. "defName": "更新人",
  4951. "comment": "",
  4952. "type": "VARCHAR",
  4953. "len": 255,
  4954. "scale": "",
  4955. "primaryKey": false,
  4956. "notNull": false,
  4957. "autoIncrement": false,
  4958. "defaultValue": "",
  4959. "hideInGraph": true,
  4960. "refDict": null,
  4961. "extProps": {},
  4962. "notes": {},
  4963. "attr1": "",
  4964. "attr2": "",
  4965. "attr3": "",
  4966. "attr4": "",
  4967. "attr5": "",
  4968. "attr6": "",
  4969. "attr7": "",
  4970. "attr8": "",
  4971. "attr9": "",
  4972. "id": "13C5D275-000A-4936-B5E8-146D878AD098",
  4973. "domain": null,
  4974. "uiHint": null
  4975. },
  4976. {
  4977. "defKey": "updated_at",
  4978. "defName": "更新时间",
  4979. "comment": "",
  4980. "type": "",
  4981. "len": "",
  4982. "scale": "",
  4983. "primaryKey": false,
  4984. "notNull": false,
  4985. "autoIncrement": false,
  4986. "defaultValue": "",
  4987. "hideInGraph": true,
  4988. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  4989. "refDict": null,
  4990. "extProps": {},
  4991. "notes": {},
  4992. "attr1": "",
  4993. "attr2": "",
  4994. "attr3": "",
  4995. "attr4": "",
  4996. "attr5": "",
  4997. "attr6": "",
  4998. "attr7": "",
  4999. "attr8": "",
  5000. "attr9": "",
  5001. "id": "8762C1B5-BAF2-4E10-9AFB-11869D6E6B1D",
  5002. "uiHint": null
  5003. },
  5004. {
  5005. "defKey": "deleted",
  5006. "defName": "删除标志",
  5007. "comment": "1删除,0正常",
  5008. "type": "",
  5009. "len": "",
  5010. "scale": "",
  5011. "primaryKey": false,
  5012. "notNull": false,
  5013. "autoIncrement": false,
  5014. "defaultValue": "0",
  5015. "hideInGraph": false,
  5016. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  5017. "refDict": null,
  5018. "extProps": {},
  5019. "notes": {},
  5020. "attr1": "",
  5021. "attr2": "",
  5022. "attr3": "",
  5023. "attr4": "",
  5024. "attr5": "",
  5025. "attr6": "",
  5026. "attr7": "",
  5027. "attr8": "",
  5028. "attr9": "",
  5029. "id": "42038846-566C-40EB-B6D2-8964E694791A",
  5030. "uiHint": null
  5031. }
  5032. ],
  5033. "correlations": [],
  5034. "indexes": []
  5035. },
  5036. {
  5037. "id": "E681CB95-A1DC-4B07-859C-10232F89EA4E",
  5038. "env": {
  5039. "base": {
  5040. "nameSpace": "com.njyunzhi.admin",
  5041. "codeRoot": "SysDept"
  5042. },
  5043. "template": {
  5044. "JavaMybatisPlus": {
  5045. "Controller": {
  5046. "suffix": "controller/{{=it.codeRoot}}Controller.java",
  5047. "enable": true
  5048. },
  5049. "Service": {
  5050. "suffix": "service/{{=it.codeRoot}}Service.java",
  5051. "enable": true
  5052. },
  5053. "ServiceImpl": {
  5054. "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
  5055. "enable": true
  5056. },
  5057. "Mapper": {
  5058. "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
  5059. "enable": false
  5060. },
  5061. "Mapper.xml": {
  5062. "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
  5063. "enable": false
  5064. },
  5065. "Entity": {
  5066. "suffix": "entity/{{=it.codeRoot}}.java",
  5067. "enable": false
  5068. }
  5069. }
  5070. },
  5071. "custom": {}
  5072. },
  5073. "defKey": "sys_dept",
  5074. "defName": "部门表",
  5075. "comment": "",
  5076. "properties": {},
  5077. "nameTemplate": "{defKey}[{defName}]",
  5078. "headers": [
  5079. {
  5080. "refKey": "hideInGraph",
  5081. "hideInGraph": true
  5082. },
  5083. {
  5084. "refKey": "defKey",
  5085. "hideInGraph": false
  5086. },
  5087. {
  5088. "refKey": "defName",
  5089. "hideInGraph": false
  5090. },
  5091. {
  5092. "refKey": "primaryKey",
  5093. "hideInGraph": false
  5094. },
  5095. {
  5096. "refKey": "notNull",
  5097. "hideInGraph": true
  5098. },
  5099. {
  5100. "refKey": "autoIncrement",
  5101. "hideInGraph": true
  5102. },
  5103. {
  5104. "refKey": "domain",
  5105. "hideInGraph": true
  5106. },
  5107. {
  5108. "refKey": "type",
  5109. "hideInGraph": false
  5110. },
  5111. {
  5112. "refKey": "len",
  5113. "hideInGraph": false
  5114. },
  5115. {
  5116. "refKey": "scale",
  5117. "hideInGraph": false
  5118. },
  5119. {
  5120. "refKey": "comment",
  5121. "hideInGraph": true
  5122. },
  5123. {
  5124. "refKey": "refDict",
  5125. "hideInGraph": true
  5126. },
  5127. {
  5128. "refKey": "defaultValue",
  5129. "hideInGraph": true
  5130. },
  5131. {
  5132. "refKey": "isStandard",
  5133. "hideInGraph": false
  5134. },
  5135. {
  5136. "refKey": "uiHint",
  5137. "hideInGraph": true
  5138. },
  5139. {
  5140. "refKey": "extProps",
  5141. "hideInGraph": true
  5142. }
  5143. ],
  5144. "fields": [
  5145. {
  5146. "defKey": "dept_id",
  5147. "defName": "机构ID",
  5148. "comment": "",
  5149. "type": "",
  5150. "len": "",
  5151. "scale": "",
  5152. "primaryKey": true,
  5153. "notNull": true,
  5154. "autoIncrement": false,
  5155. "defaultValue": "",
  5156. "hideInGraph": false,
  5157. "refDict": null,
  5158. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  5159. "id": "726DF23D-B389-482C-8A83-CD882FB21B8F",
  5160. "uiHint": null
  5161. },
  5162. {
  5163. "defKey": "dept_code",
  5164. "defName": "机构编码",
  5165. "comment": "",
  5166. "type": "VARCHAR",
  5167. "len": 64,
  5168. "scale": "",
  5169. "primaryKey": false,
  5170. "notNull": false,
  5171. "autoIncrement": false,
  5172. "defaultValue": "",
  5173. "hideInGraph": false,
  5174. "refDict": null,
  5175. "extProps": {},
  5176. "domain": null,
  5177. "id": "F8BA4F99-125F-4249-9678-A8BBAB3F352B",
  5178. "uiHint": null
  5179. },
  5180. {
  5181. "defKey": "dept_name",
  5182. "defName": "机构名称",
  5183. "comment": "",
  5184. "type": "",
  5185. "len": "",
  5186. "scale": "",
  5187. "primaryKey": false,
  5188. "notNull": false,
  5189. "autoIncrement": false,
  5190. "defaultValue": "",
  5191. "hideInGraph": false,
  5192. "refDict": null,
  5193. "extProps": {},
  5194. "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
  5195. "id": "940B4065-3A04-42F6-B7CB-265742DD38C1",
  5196. "uiHint": null
  5197. },
  5198. {
  5199. "defKey": "parent_id",
  5200. "defName": "上级单位",
  5201. "comment": "-1为根级目录",
  5202. "type": "",
  5203. "len": "",
  5204. "scale": "",
  5205. "primaryKey": false,
  5206. "notNull": false,
  5207. "autoIncrement": false,
  5208. "defaultValue": "",
  5209. "hideInGraph": false,
  5210. "refDict": null,
  5211. "extProps": {},
  5212. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  5213. "id": "A893979D-88C9-402E-A601-18E4D7872FCF",
  5214. "uiHint": null
  5215. },
  5216. {
  5217. "defKey": "sort_no",
  5218. "defName": "排序",
  5219. "comment": "",
  5220. "type": "",
  5221. "len": "",
  5222. "scale": "",
  5223. "primaryKey": false,
  5224. "notNull": false,
  5225. "autoIncrement": false,
  5226. "defaultValue": "",
  5227. "hideInGraph": false,
  5228. "refDict": null,
  5229. "extProps": {},
  5230. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  5231. "id": "A20379C0-271E-4E48-9375-05561D29E496",
  5232. "uiHint": null
  5233. },
  5234. {
  5235. "defKey": "status",
  5236. "defName": "状态",
  5237. "comment": "",
  5238. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  5239. "type": "",
  5240. "len": "",
  5241. "scale": "",
  5242. "primaryKey": false,
  5243. "notNull": false,
  5244. "autoIncrement": false,
  5245. "defaultValue": "1",
  5246. "hideInGraph": true,
  5247. "refDict": null,
  5248. "uiHint": null,
  5249. "id": "76D66252-B46B-4FCA-B2F3-0EA78F744C94"
  5250. },
  5251. {
  5252. "defKey": "tenant_id",
  5253. "defName": "租户号",
  5254. "comment": "",
  5255. "type": "",
  5256. "len": "",
  5257. "scale": "",
  5258. "primaryKey": false,
  5259. "notNull": false,
  5260. "autoIncrement": false,
  5261. "defaultValue": "",
  5262. "hideInGraph": true,
  5263. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  5264. "refDict": null,
  5265. "extProps": {},
  5266. "notes": {},
  5267. "attr1": "",
  5268. "attr2": "",
  5269. "attr3": "",
  5270. "attr4": "",
  5271. "attr5": "",
  5272. "attr6": "",
  5273. "attr7": "",
  5274. "attr8": "",
  5275. "attr9": "",
  5276. "id": "459A4C24-D208-4C5B-A3FD-0E8F555A6233",
  5277. "uiHint": null
  5278. },
  5279. {
  5280. "defKey": "tenant_name",
  5281. "defName": "租户名称",
  5282. "comment": "",
  5283. "type": "",
  5284. "len": "",
  5285. "scale": "",
  5286. "primaryKey": false,
  5287. "notNull": false,
  5288. "autoIncrement": false,
  5289. "defaultValue": "",
  5290. "hideInGraph": true,
  5291. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5292. "refDict": null,
  5293. "extProps": {},
  5294. "notes": {},
  5295. "attr1": "",
  5296. "attr2": "",
  5297. "attr3": "",
  5298. "attr4": "",
  5299. "attr5": "",
  5300. "attr6": "",
  5301. "attr7": "",
  5302. "attr8": "",
  5303. "attr9": "",
  5304. "id": "F2E965FE-A1AA-4F24-92BB-79F1DF4451F3",
  5305. "uiHint": null
  5306. },
  5307. {
  5308. "defKey": "created_by",
  5309. "defName": "创建人",
  5310. "comment": "",
  5311. "type": "VARCHAR",
  5312. "len": 255,
  5313. "scale": "",
  5314. "primaryKey": false,
  5315. "notNull": false,
  5316. "autoIncrement": false,
  5317. "defaultValue": "",
  5318. "hideInGraph": true,
  5319. "refDict": null,
  5320. "extProps": {},
  5321. "notes": {},
  5322. "attr1": "",
  5323. "attr2": "",
  5324. "attr3": "",
  5325. "attr4": "",
  5326. "attr5": "",
  5327. "attr6": "",
  5328. "attr7": "",
  5329. "attr8": "",
  5330. "attr9": "",
  5331. "id": "3BF9CDFA-F632-4DA0-9DBB-FCCE207290F4",
  5332. "domain": null,
  5333. "uiHint": null
  5334. },
  5335. {
  5336. "defKey": "created_at",
  5337. "defName": "创建时间",
  5338. "comment": "",
  5339. "type": "",
  5340. "len": "",
  5341. "scale": "",
  5342. "primaryKey": false,
  5343. "notNull": false,
  5344. "autoIncrement": false,
  5345. "defaultValue": "CURRENT_TIMESTAMP",
  5346. "hideInGraph": true,
  5347. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  5348. "refDict": null,
  5349. "extProps": {},
  5350. "notes": {},
  5351. "attr1": "",
  5352. "attr2": "",
  5353. "attr3": "",
  5354. "attr4": "",
  5355. "attr5": "",
  5356. "attr6": "",
  5357. "attr7": "",
  5358. "attr8": "",
  5359. "attr9": "",
  5360. "id": "F4377BE1-22DD-4D6F-A3DD-2C94C3E0329D",
  5361. "uiHint": null
  5362. },
  5363. {
  5364. "defKey": "updated_by",
  5365. "defName": "更新人",
  5366. "comment": "",
  5367. "type": "VARCHAR",
  5368. "len": 255,
  5369. "scale": "",
  5370. "primaryKey": false,
  5371. "notNull": false,
  5372. "autoIncrement": false,
  5373. "defaultValue": "",
  5374. "hideInGraph": true,
  5375. "refDict": null,
  5376. "extProps": {},
  5377. "notes": {},
  5378. "attr1": "",
  5379. "attr2": "",
  5380. "attr3": "",
  5381. "attr4": "",
  5382. "attr5": "",
  5383. "attr6": "",
  5384. "attr7": "",
  5385. "attr8": "",
  5386. "attr9": "",
  5387. "id": "397FFAB8-3494-493F-A507-7E5C540D4B5F",
  5388. "domain": null,
  5389. "uiHint": null
  5390. },
  5391. {
  5392. "defKey": "updated_at",
  5393. "defName": "更新时间",
  5394. "comment": "",
  5395. "type": "",
  5396. "len": "",
  5397. "scale": "",
  5398. "primaryKey": false,
  5399. "notNull": false,
  5400. "autoIncrement": false,
  5401. "defaultValue": "",
  5402. "hideInGraph": true,
  5403. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  5404. "refDict": null,
  5405. "extProps": {},
  5406. "notes": {},
  5407. "attr1": "",
  5408. "attr2": "",
  5409. "attr3": "",
  5410. "attr4": "",
  5411. "attr5": "",
  5412. "attr6": "",
  5413. "attr7": "",
  5414. "attr8": "",
  5415. "attr9": "",
  5416. "id": "C134F08D-E36F-489E-B480-91E9B75291C4",
  5417. "uiHint": null
  5418. },
  5419. {
  5420. "defKey": "deleted",
  5421. "defName": "删除标志",
  5422. "comment": "1删除,0正常",
  5423. "type": "",
  5424. "len": "",
  5425. "scale": "",
  5426. "primaryKey": false,
  5427. "notNull": false,
  5428. "autoIncrement": false,
  5429. "defaultValue": "0",
  5430. "hideInGraph": true,
  5431. "refDict": null,
  5432. "extProps": {},
  5433. "notes": {},
  5434. "attr1": "",
  5435. "attr2": "",
  5436. "attr3": "",
  5437. "attr4": "",
  5438. "attr5": "",
  5439. "attr6": "",
  5440. "attr7": "",
  5441. "attr8": "",
  5442. "attr9": "",
  5443. "id": "78EDFB66-F20B-4EC1-9384-5DFF01899543",
  5444. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  5445. "uiHint": null
  5446. }
  5447. ],
  5448. "correlations": [],
  5449. "indexes": [],
  5450. "notes": {}
  5451. },
  5452. {
  5453. "id": "13BC5E46-E946-48B3-AC7F-41CDB70BE12B",
  5454. "env": {
  5455. "base": {
  5456. "nameSpace": "",
  5457. "codeRoot": ""
  5458. }
  5459. },
  5460. "defKey": "ta_company_info",
  5461. "defName": "公司基本信息",
  5462. "comment": "",
  5463. "properties": {
  5464. "partitioned by": "(date string)",
  5465. "row format delimited": "",
  5466. "fields terminated by ','": "",
  5467. "collection items terminated by '-'": "",
  5468. "map keys terminated by ':'": "",
  5469. "store as textfile;": ""
  5470. },
  5471. "nameTemplate": "{defKey}[{defName}]",
  5472. "notes": {},
  5473. "headers": [
  5474. {
  5475. "refKey": "hideInGraph",
  5476. "hideInGraph": true
  5477. },
  5478. {
  5479. "refKey": "defKey",
  5480. "freeze": false,
  5481. "hideInGraph": false
  5482. },
  5483. {
  5484. "refKey": "defName",
  5485. "freeze": false,
  5486. "hideInGraph": false
  5487. },
  5488. {
  5489. "refKey": "primaryKey",
  5490. "freeze": false,
  5491. "hideInGraph": false
  5492. },
  5493. {
  5494. "refKey": "notNull",
  5495. "freeze": false,
  5496. "hideInGraph": true
  5497. },
  5498. {
  5499. "refKey": "autoIncrement",
  5500. "freeze": false,
  5501. "hideInGraph": true
  5502. },
  5503. {
  5504. "refKey": "domain",
  5505. "freeze": false,
  5506. "hideInGraph": true
  5507. },
  5508. {
  5509. "refKey": "type",
  5510. "freeze": false,
  5511. "hideInGraph": false
  5512. },
  5513. {
  5514. "refKey": "len",
  5515. "freeze": false,
  5516. "hideInGraph": false
  5517. },
  5518. {
  5519. "refKey": "scale",
  5520. "freeze": false,
  5521. "hideInGraph": false
  5522. },
  5523. {
  5524. "refKey": "comment",
  5525. "freeze": false,
  5526. "hideInGraph": true
  5527. },
  5528. {
  5529. "refKey": "refDict",
  5530. "freeze": false,
  5531. "hideInGraph": true
  5532. },
  5533. {
  5534. "refKey": "defaultValue",
  5535. "freeze": false,
  5536. "hideInGraph": true
  5537. },
  5538. {
  5539. "refKey": "isStandard",
  5540. "freeze": false,
  5541. "hideInGraph": false
  5542. },
  5543. {
  5544. "refKey": "uiHint",
  5545. "freeze": false,
  5546. "hideInGraph": true
  5547. },
  5548. {
  5549. "refKey": "extProps",
  5550. "freeze": false,
  5551. "hideInGraph": true
  5552. },
  5553. {
  5554. "refKey": "attr1",
  5555. "freeze": false,
  5556. "hideInGraph": true
  5557. },
  5558. {
  5559. "refKey": "attr2",
  5560. "freeze": false,
  5561. "hideInGraph": true
  5562. },
  5563. {
  5564. "refKey": "attr3",
  5565. "freeze": false,
  5566. "hideInGraph": true
  5567. },
  5568. {
  5569. "refKey": "attr4",
  5570. "freeze": false,
  5571. "hideInGraph": true
  5572. },
  5573. {
  5574. "refKey": "attr5",
  5575. "freeze": false,
  5576. "hideInGraph": true
  5577. },
  5578. {
  5579. "refKey": "attr6",
  5580. "freeze": false,
  5581. "hideInGraph": true
  5582. },
  5583. {
  5584. "refKey": "attr7",
  5585. "freeze": false,
  5586. "hideInGraph": true
  5587. },
  5588. {
  5589. "refKey": "attr8",
  5590. "freeze": false,
  5591. "hideInGraph": true
  5592. },
  5593. {
  5594. "refKey": "attr9",
  5595. "freeze": false,
  5596. "hideInGraph": true
  5597. }
  5598. ],
  5599. "fields": [
  5600. {
  5601. "defKey": "company_id",
  5602. "defName": "公司id",
  5603. "comment": "",
  5604. "type": "",
  5605. "len": "",
  5606. "scale": "",
  5607. "primaryKey": true,
  5608. "notNull": true,
  5609. "autoIncrement": false,
  5610. "defaultValue": "",
  5611. "hideInGraph": false,
  5612. "refDict": "",
  5613. "extProps": {},
  5614. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5615. "id": "3BFB5D5C-21FE-4F50-B894-D3385D7D2866"
  5616. },
  5617. {
  5618. "defKey": "tenant_id",
  5619. "defName": "租户号",
  5620. "comment": "",
  5621. "type": "",
  5622. "len": 32,
  5623. "scale": "",
  5624. "primaryKey": false,
  5625. "notNull": false,
  5626. "autoIncrement": false,
  5627. "defaultValue": "",
  5628. "hideInGraph": false,
  5629. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  5630. "refDict": "",
  5631. "uiHint": "",
  5632. "id": "3BF98C7C-6E18-4729-84AA-DEC5D69C25D3"
  5633. },
  5634. {
  5635. "defKey": "registration_location",
  5636. "defName": "企业注册地",
  5637. "comment": "",
  5638. "type": "",
  5639. "len": "",
  5640. "scale": "",
  5641. "primaryKey": false,
  5642. "notNull": false,
  5643. "autoIncrement": false,
  5644. "defaultValue": "",
  5645. "hideInGraph": false,
  5646. "refDict": "",
  5647. "extProps": {},
  5648. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5649. "id": "DBA26520-3D32-460F-9CF0-B0726E6EC641"
  5650. },
  5651. {
  5652. "defKey": "company_name_cn",
  5653. "defName": "企业中文名",
  5654. "comment": "",
  5655. "type": "",
  5656. "len": "",
  5657. "scale": "",
  5658. "primaryKey": false,
  5659. "notNull": false,
  5660. "autoIncrement": false,
  5661. "defaultValue": "",
  5662. "hideInGraph": false,
  5663. "refDict": "",
  5664. "extProps": {},
  5665. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5666. "id": "6E6E31B7-5EC0-41D3-9A05-C56B28A8F586"
  5667. },
  5668. {
  5669. "defKey": "company_name_en",
  5670. "defName": "企业英文名",
  5671. "comment": "",
  5672. "type": "",
  5673. "len": "",
  5674. "scale": "",
  5675. "primaryKey": false,
  5676. "notNull": false,
  5677. "autoIncrement": false,
  5678. "defaultValue": "",
  5679. "hideInGraph": false,
  5680. "refDict": "",
  5681. "extProps": {},
  5682. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5683. "id": "2D91B267-271B-4379-A72D-B7536502F06E"
  5684. },
  5685. {
  5686. "defKey": "is_listed _company",
  5687. "defName": "是否为上市企业",
  5688. "comment": "",
  5689. "type": "",
  5690. "len": "",
  5691. "scale": "",
  5692. "primaryKey": false,
  5693. "notNull": false,
  5694. "autoIncrement": false,
  5695. "defaultValue": "",
  5696. "hideInGraph": false,
  5697. "refDict": "",
  5698. "extProps": {},
  5699. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5700. "id": "FD568544-7D86-4EF5-93BE-B4A4401B6724"
  5701. },
  5702. {
  5703. "defKey": "certificate_incorporation",
  5704. "defName": "公司注册证书",
  5705. "comment": "",
  5706. "type": "BLOB",
  5707. "len": 255,
  5708. "scale": "",
  5709. "primaryKey": false,
  5710. "notNull": false,
  5711. "autoIncrement": false,
  5712. "defaultValue": "",
  5713. "hideInGraph": false,
  5714. "refDict": "",
  5715. "extProps": {},
  5716. "domain": "",
  5717. "id": "D515D25A-4FC1-4CC5-BDD3-A7CEB6FC541B"
  5718. },
  5719. {
  5720. "defKey": "company_business_registration",
  5721. "defName": "公司商业登记证",
  5722. "comment": "",
  5723. "type": "BLOB",
  5724. "len": 255,
  5725. "scale": "",
  5726. "primaryKey": false,
  5727. "notNull": false,
  5728. "autoIncrement": false,
  5729. "defaultValue": "",
  5730. "hideInGraph": false,
  5731. "refDict": "",
  5732. "extProps": {},
  5733. "domain": "",
  5734. "id": "984E4A5F-2983-49D9-A033-13167F8FABCA"
  5735. },
  5736. {
  5737. "defKey": "nnc1/nar1",
  5738. "defName": "nnc1/最新nar1",
  5739. "comment": "",
  5740. "type": "BLOB",
  5741. "len": 255,
  5742. "scale": "",
  5743. "primaryKey": false,
  5744. "notNull": false,
  5745. "autoIncrement": false,
  5746. "defaultValue": "",
  5747. "hideInGraph": false,
  5748. "refDict": "",
  5749. "extProps": {},
  5750. "domain": "",
  5751. "id": "E10EA273-EA88-4E15-9B79-C087CFB0C9A9"
  5752. },
  5753. {
  5754. "defKey": "other_annex",
  5755. "defName": "其他附件",
  5756. "comment": "",
  5757. "type": "BLOB",
  5758. "len": 255,
  5759. "scale": "",
  5760. "primaryKey": false,
  5761. "notNull": false,
  5762. "autoIncrement": false,
  5763. "defaultValue": "",
  5764. "hideInGraph": false,
  5765. "refDict": "",
  5766. "extProps": {},
  5767. "domain": "",
  5768. "id": "8B2BF6CF-6CDA-45D2-9FA9-47B00CF3DF54"
  5769. },
  5770. {
  5771. "defKey": "company_type",
  5772. "defName": "企业类型 1:私人股份有限公司,2公众股份有限公司,3有股本的公众无限公司,4有股本的私人无限公司",
  5773. "comment": "",
  5774. "type": "VARCHAR",
  5775. "len": 2,
  5776. "scale": "",
  5777. "primaryKey": false,
  5778. "notNull": false,
  5779. "autoIncrement": false,
  5780. "defaultValue": "",
  5781. "hideInGraph": false,
  5782. "refDict": "",
  5783. "extProps": {},
  5784. "domain": "",
  5785. "id": "884871A5-4B26-402E-A795-9440CF323114"
  5786. },
  5787. {
  5788. "defKey": "business_registration_num",
  5789. "defName": "商业登记号",
  5790. "comment": "",
  5791. "type": "",
  5792. "len": "",
  5793. "scale": "",
  5794. "primaryKey": false,
  5795. "notNull": false,
  5796. "autoIncrement": false,
  5797. "defaultValue": "",
  5798. "hideInGraph": false,
  5799. "refDict": "",
  5800. "extProps": {},
  5801. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5802. "id": "AD0C2BF4-14BE-47E8-8697-7E723FF1F5DD"
  5803. },
  5804. {
  5805. "defKey": "register_country",
  5806. "defName": "注册 国家",
  5807. "comment": "",
  5808. "type": "",
  5809. "len": "",
  5810. "scale": "",
  5811. "primaryKey": false,
  5812. "notNull": false,
  5813. "autoIncrement": false,
  5814. "defaultValue": "",
  5815. "hideInGraph": false,
  5816. "refDict": "",
  5817. "extProps": {},
  5818. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5819. "id": "475E80D5-78C5-4D62-AEC7-CECC9B52899B"
  5820. },
  5821. {
  5822. "defKey": "register_province_region",
  5823. "defName": "注册 省/地区",
  5824. "comment": "",
  5825. "type": "",
  5826. "len": "",
  5827. "scale": "",
  5828. "primaryKey": false,
  5829. "notNull": false,
  5830. "autoIncrement": false,
  5831. "defaultValue": "",
  5832. "hideInGraph": false,
  5833. "refDict": "",
  5834. "extProps": {},
  5835. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5836. "id": "D160F872-813A-4EA9-A703-14FB6649275C"
  5837. },
  5838. {
  5839. "defKey": "register_city",
  5840. "defName": "注册 市",
  5841. "comment": "",
  5842. "type": "",
  5843. "len": "",
  5844. "scale": "",
  5845. "primaryKey": false,
  5846. "notNull": false,
  5847. "autoIncrement": false,
  5848. "defaultValue": "",
  5849. "hideInGraph": false,
  5850. "refDict": "",
  5851. "extProps": {},
  5852. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5853. "id": "59508E46-E61F-4CAD-BD8E-7962A18CD82A"
  5854. },
  5855. {
  5856. "defKey": "register_specific_address",
  5857. "defName": "注册具体地址",
  5858. "comment": "",
  5859. "type": "",
  5860. "len": "",
  5861. "scale": "",
  5862. "primaryKey": false,
  5863. "notNull": false,
  5864. "autoIncrement": false,
  5865. "defaultValue": "",
  5866. "hideInGraph": false,
  5867. "refDict": "",
  5868. "extProps": {},
  5869. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5870. "id": "976347F6-3256-4A2E-A0B2-7C73D082A372"
  5871. },
  5872. {
  5873. "defKey": "register_postal_code",
  5874. "defName": "注册 邮政编码",
  5875. "comment": "",
  5876. "type": "",
  5877. "len": "",
  5878. "scale": "",
  5879. "primaryKey": false,
  5880. "notNull": false,
  5881. "autoIncrement": false,
  5882. "defaultValue": "",
  5883. "hideInGraph": false,
  5884. "refDict": "",
  5885. "extProps": {},
  5886. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5887. "id": "4C6B451E-AD8B-41C0-B6B8-F17496B6A8E3"
  5888. },
  5889. {
  5890. "defKey": "reality_country",
  5891. "defName": "实际经营 国家",
  5892. "comment": "",
  5893. "type": "",
  5894. "len": "",
  5895. "scale": "",
  5896. "primaryKey": false,
  5897. "notNull": false,
  5898. "autoIncrement": false,
  5899. "defaultValue": "",
  5900. "hideInGraph": false,
  5901. "refDict": "",
  5902. "extProps": {},
  5903. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5904. "id": "F3E6DDC2-7DDB-4EA1-A88B-CD7DDCF3EE9F"
  5905. },
  5906. {
  5907. "defKey": "reality_province_region",
  5908. "defName": "实际经营 省/地区",
  5909. "comment": "",
  5910. "type": "",
  5911. "len": "",
  5912. "scale": "",
  5913. "primaryKey": false,
  5914. "notNull": false,
  5915. "autoIncrement": false,
  5916. "defaultValue": "",
  5917. "hideInGraph": false,
  5918. "refDict": "",
  5919. "extProps": {},
  5920. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5921. "id": "449EB676-75A3-414F-AFCC-F7DDE27D05DA"
  5922. },
  5923. {
  5924. "defKey": "reality_city",
  5925. "defName": "实际经营 市",
  5926. "comment": "",
  5927. "type": "",
  5928. "len": "",
  5929. "scale": "",
  5930. "primaryKey": false,
  5931. "notNull": false,
  5932. "autoIncrement": false,
  5933. "defaultValue": "",
  5934. "hideInGraph": false,
  5935. "refDict": "",
  5936. "extProps": {},
  5937. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5938. "id": "F77892B0-3D58-475C-977E-5A8A6B0EA83E"
  5939. },
  5940. {
  5941. "defKey": "reality_specific_address",
  5942. "defName": "实际经营 具体地址",
  5943. "comment": "",
  5944. "type": "",
  5945. "len": "",
  5946. "scale": "",
  5947. "primaryKey": false,
  5948. "notNull": false,
  5949. "autoIncrement": false,
  5950. "defaultValue": "",
  5951. "hideInGraph": false,
  5952. "refDict": "",
  5953. "extProps": {},
  5954. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5955. "id": "1A6270A3-6D32-49FB-90EF-8D2CECEAD870"
  5956. },
  5957. {
  5958. "defKey": "reality_postal_code",
  5959. "defName": "实际经营 邮政编码",
  5960. "comment": "",
  5961. "type": "",
  5962. "len": "",
  5963. "scale": "",
  5964. "primaryKey": false,
  5965. "notNull": false,
  5966. "autoIncrement": false,
  5967. "defaultValue": "",
  5968. "hideInGraph": false,
  5969. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5970. "refDict": "",
  5971. "extProps": {},
  5972. "notes": {},
  5973. "attr1": "",
  5974. "attr2": "",
  5975. "attr3": "",
  5976. "attr4": "",
  5977. "attr5": "",
  5978. "attr6": "",
  5979. "attr7": "",
  5980. "attr8": "",
  5981. "attr9": "",
  5982. "id": "FB983D20-B1C4-4DF3-B5C9-65ED2B90DC9D"
  5983. },
  5984. {
  5985. "defKey": "num_employees",
  5986. "defName": "雇员人数 1:员工人数超过200人,2员工人数50-200人,3员工人数少于50人",
  5987. "comment": "",
  5988. "type": "VARCHAR",
  5989. "len": 2,
  5990. "scale": "",
  5991. "primaryKey": false,
  5992. "notNull": false,
  5993. "autoIncrement": false,
  5994. "defaultValue": "",
  5995. "hideInGraph": false,
  5996. "refDict": "",
  5997. "extProps": {},
  5998. "domain": "",
  5999. "id": "2B021ABF-E76E-4629-A378-8E5F00A58C2F"
  6000. },
  6001. {
  6002. "defKey": "business_premises_type",
  6003. "defName": "经营场所类型 1:自有办公场所,2:较大租用办公场所 (大于500平方),3:较小租用办公场所 (小于500平方),4:无固定办公场所",
  6004. "comment": "",
  6005. "type": "VARCHAR",
  6006. "len": 2,
  6007. "scale": "",
  6008. "primaryKey": false,
  6009. "notNull": false,
  6010. "autoIncrement": false,
  6011. "defaultValue": "",
  6012. "hideInGraph": false,
  6013. "refDict": "",
  6014. "extProps": {},
  6015. "domain": "",
  6016. "id": "D09A0972-0DEA-44A3-BEAB-D22064D8FE19"
  6017. },
  6018. {
  6019. "defKey": "created_by",
  6020. "defName": "创建人",
  6021. "comment": "",
  6022. "type": "VARCHAR",
  6023. "len": 255,
  6024. "scale": "",
  6025. "primaryKey": false,
  6026. "notNull": false,
  6027. "autoIncrement": false,
  6028. "defaultValue": "",
  6029. "hideInGraph": false,
  6030. "refDict": "",
  6031. "extProps": {},
  6032. "notes": {},
  6033. "attr1": "",
  6034. "attr2": "",
  6035. "attr3": "",
  6036. "attr4": "",
  6037. "attr5": "",
  6038. "attr6": "",
  6039. "attr7": "",
  6040. "attr8": "",
  6041. "attr9": "",
  6042. "id": "D01F93BB-633A-4A3A-A843-3A63EFF76F8A"
  6043. },
  6044. {
  6045. "defKey": "created_at",
  6046. "defName": "创建时间",
  6047. "comment": "",
  6048. "type": "",
  6049. "len": "",
  6050. "scale": "",
  6051. "primaryKey": false,
  6052. "notNull": false,
  6053. "autoIncrement": false,
  6054. "defaultValue": "CURRENT_TIMESTAMP",
  6055. "hideInGraph": false,
  6056. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  6057. "refDict": "",
  6058. "extProps": {},
  6059. "notes": {},
  6060. "attr1": "",
  6061. "attr2": "",
  6062. "attr3": "",
  6063. "attr4": "",
  6064. "attr5": "",
  6065. "attr6": "",
  6066. "attr7": "",
  6067. "attr8": "",
  6068. "attr9": "",
  6069. "id": "9474081A-ACB2-4D9C-A953-446AB072BA96"
  6070. },
  6071. {
  6072. "defKey": "updated_by",
  6073. "defName": "更新人",
  6074. "comment": "",
  6075. "type": "VARCHAR",
  6076. "len": 255,
  6077. "scale": "",
  6078. "primaryKey": false,
  6079. "notNull": false,
  6080. "autoIncrement": false,
  6081. "defaultValue": "",
  6082. "hideInGraph": false,
  6083. "refDict": "",
  6084. "extProps": {},
  6085. "notes": {},
  6086. "attr1": "",
  6087. "attr2": "",
  6088. "attr3": "",
  6089. "attr4": "",
  6090. "attr5": "",
  6091. "attr6": "",
  6092. "attr7": "",
  6093. "attr8": "",
  6094. "attr9": "",
  6095. "id": "ED51E875-143F-42D6-BC93-61CDBFCE68BA"
  6096. },
  6097. {
  6098. "defKey": "updated_at",
  6099. "defName": "更新时间",
  6100. "comment": "",
  6101. "type": "",
  6102. "len": "",
  6103. "scale": "",
  6104. "primaryKey": false,
  6105. "notNull": false,
  6106. "autoIncrement": false,
  6107. "defaultValue": "",
  6108. "hideInGraph": false,
  6109. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  6110. "refDict": "",
  6111. "extProps": {},
  6112. "notes": {},
  6113. "attr1": "",
  6114. "attr2": "",
  6115. "attr3": "",
  6116. "attr4": "",
  6117. "attr5": "",
  6118. "attr6": "",
  6119. "attr7": "",
  6120. "attr8": "",
  6121. "attr9": "",
  6122. "id": "2633F340-56C2-4560-AC42-00C81EDC67F1"
  6123. }
  6124. ],
  6125. "correlations": [],
  6126. "indexes": []
  6127. },
  6128. {
  6129. "id": "46C7A2EC-9B28-47D7-A508-A6B4A8A901D6",
  6130. "env": {
  6131. "base": {
  6132. "nameSpace": "",
  6133. "codeRoot": ""
  6134. }
  6135. },
  6136. "defKey": "ta_company_legal_info",
  6137. "defName": "公司法人代表信息",
  6138. "comment": "",
  6139. "properties": {
  6140. "partitioned by": "(date string)",
  6141. "row format delimited": "",
  6142. "fields terminated by ','": "",
  6143. "collection items terminated by '-'": "",
  6144. "map keys terminated by ':'": "",
  6145. "store as textfile;": ""
  6146. },
  6147. "nameTemplate": "{defKey}[{defName}]",
  6148. "notes": {},
  6149. "headers": [
  6150. {
  6151. "refKey": "hideInGraph",
  6152. "hideInGraph": true
  6153. },
  6154. {
  6155. "refKey": "defKey",
  6156. "freeze": false,
  6157. "hideInGraph": false
  6158. },
  6159. {
  6160. "refKey": "defName",
  6161. "freeze": false,
  6162. "hideInGraph": false
  6163. },
  6164. {
  6165. "refKey": "primaryKey",
  6166. "freeze": false,
  6167. "hideInGraph": false
  6168. },
  6169. {
  6170. "refKey": "notNull",
  6171. "freeze": false,
  6172. "hideInGraph": true
  6173. },
  6174. {
  6175. "refKey": "autoIncrement",
  6176. "freeze": false,
  6177. "hideInGraph": true
  6178. },
  6179. {
  6180. "refKey": "domain",
  6181. "freeze": false,
  6182. "hideInGraph": true
  6183. },
  6184. {
  6185. "refKey": "type",
  6186. "freeze": false,
  6187. "hideInGraph": false
  6188. },
  6189. {
  6190. "refKey": "len",
  6191. "freeze": false,
  6192. "hideInGraph": false
  6193. },
  6194. {
  6195. "refKey": "scale",
  6196. "freeze": false,
  6197. "hideInGraph": false
  6198. },
  6199. {
  6200. "refKey": "comment",
  6201. "freeze": false,
  6202. "hideInGraph": true
  6203. },
  6204. {
  6205. "refKey": "refDict",
  6206. "freeze": false,
  6207. "hideInGraph": true
  6208. },
  6209. {
  6210. "refKey": "defaultValue",
  6211. "freeze": false,
  6212. "hideInGraph": true
  6213. },
  6214. {
  6215. "refKey": "isStandard",
  6216. "freeze": false,
  6217. "hideInGraph": false
  6218. },
  6219. {
  6220. "refKey": "uiHint",
  6221. "freeze": false,
  6222. "hideInGraph": true
  6223. },
  6224. {
  6225. "refKey": "extProps",
  6226. "freeze": false,
  6227. "hideInGraph": true
  6228. },
  6229. {
  6230. "refKey": "attr1",
  6231. "freeze": false,
  6232. "hideInGraph": true
  6233. },
  6234. {
  6235. "refKey": "attr2",
  6236. "freeze": false,
  6237. "hideInGraph": true
  6238. },
  6239. {
  6240. "refKey": "attr3",
  6241. "freeze": false,
  6242. "hideInGraph": true
  6243. },
  6244. {
  6245. "refKey": "attr4",
  6246. "freeze": false,
  6247. "hideInGraph": true
  6248. },
  6249. {
  6250. "refKey": "attr5",
  6251. "freeze": false,
  6252. "hideInGraph": true
  6253. },
  6254. {
  6255. "refKey": "attr6",
  6256. "freeze": false,
  6257. "hideInGraph": true
  6258. },
  6259. {
  6260. "refKey": "attr7",
  6261. "freeze": false,
  6262. "hideInGraph": true
  6263. },
  6264. {
  6265. "refKey": "attr8",
  6266. "freeze": false,
  6267. "hideInGraph": true
  6268. },
  6269. {
  6270. "refKey": "attr9",
  6271. "freeze": false,
  6272. "hideInGraph": true
  6273. }
  6274. ],
  6275. "fields": [
  6276. {
  6277. "defKey": "company_legal_id",
  6278. "defName": "公司法人代表信息id",
  6279. "comment": "",
  6280. "type": "",
  6281. "len": "",
  6282. "scale": "",
  6283. "primaryKey": true,
  6284. "notNull": true,
  6285. "autoIncrement": false,
  6286. "defaultValue": "",
  6287. "hideInGraph": false,
  6288. "refDict": null,
  6289. "extProps": {},
  6290. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6291. "id": "3BFB5D5C-21FE-4F50-B894-D3385D7D2866",
  6292. "uiHint": null
  6293. },
  6294. {
  6295. "defKey": "company_id",
  6296. "defName": "公司id",
  6297. "comment": "",
  6298. "type": "",
  6299. "len": "",
  6300. "scale": "",
  6301. "primaryKey": false,
  6302. "notNull": false,
  6303. "autoIncrement": false,
  6304. "defaultValue": "",
  6305. "hideInGraph": false,
  6306. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6307. "refDict": "",
  6308. "extProps": {},
  6309. "notes": {},
  6310. "attr1": "",
  6311. "attr2": "",
  6312. "attr3": "",
  6313. "attr4": "",
  6314. "attr5": "",
  6315. "attr6": "",
  6316. "attr7": "",
  6317. "attr8": "",
  6318. "attr9": "",
  6319. "id": "C525F473-B472-4539-AE6C-6914140F44DE"
  6320. },
  6321. {
  6322. "defKey": "tenant_id",
  6323. "defName": "租户号",
  6324. "comment": "",
  6325. "type": "",
  6326. "len": "",
  6327. "scale": "",
  6328. "primaryKey": false,
  6329. "notNull": false,
  6330. "autoIncrement": false,
  6331. "defaultValue": "",
  6332. "hideInGraph": false,
  6333. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  6334. "refDict": null,
  6335. "uiHint": null,
  6336. "id": "3BF98C7C-6E18-4729-84AA-DEC5D69C25D3"
  6337. },
  6338. {
  6339. "defKey": "identity",
  6340. "defName": "身份 conpanyDirector:企业董事,authorizedPerson:授权人",
  6341. "comment": "",
  6342. "type": "",
  6343. "len": "",
  6344. "scale": "",
  6345. "primaryKey": false,
  6346. "notNull": false,
  6347. "autoIncrement": false,
  6348. "defaultValue": "",
  6349. "hideInGraph": false,
  6350. "refDict": null,
  6351. "extProps": {},
  6352. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6353. "id": "DBA26520-3D32-460F-9CF0-B0726E6EC641",
  6354. "uiHint": null
  6355. },
  6356. {
  6357. "defKey": "director_country",
  6358. "defName": "企业董事国家",
  6359. "comment": "",
  6360. "type": "",
  6361. "len": "",
  6362. "scale": "",
  6363. "primaryKey": false,
  6364. "notNull": false,
  6365. "autoIncrement": false,
  6366. "defaultValue": "",
  6367. "hideInGraph": false,
  6368. "refDict": null,
  6369. "extProps": {},
  6370. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6371. "id": "6E6E31B7-5EC0-41D3-9A05-C56B28A8F586",
  6372. "uiHint": null
  6373. },
  6374. {
  6375. "defKey": "director_id_type",
  6376. "defName": "企业董事证件类型",
  6377. "comment": "",
  6378. "type": "",
  6379. "len": "",
  6380. "scale": "",
  6381. "primaryKey": false,
  6382. "notNull": false,
  6383. "autoIncrement": false,
  6384. "defaultValue": "",
  6385. "hideInGraph": false,
  6386. "refDict": null,
  6387. "extProps": {},
  6388. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6389. "id": "2D91B267-271B-4379-A72D-B7536502F06E",
  6390. "uiHint": null
  6391. },
  6392. {
  6393. "defKey": "director_id_front",
  6394. "defName": "企业董事证件正面",
  6395. "comment": "",
  6396. "type": "BLOB",
  6397. "len": 255,
  6398. "scale": "",
  6399. "primaryKey": false,
  6400. "notNull": false,
  6401. "autoIncrement": false,
  6402. "defaultValue": "",
  6403. "hideInGraph": false,
  6404. "refDict": null,
  6405. "extProps": {},
  6406. "domain": "",
  6407. "id": "FD568544-7D86-4EF5-93BE-B4A4401B6724",
  6408. "uiHint": null
  6409. },
  6410. {
  6411. "defKey": "director_id_back",
  6412. "defName": "企业董事证件反面",
  6413. "comment": "",
  6414. "type": "BLOB",
  6415. "len": 255,
  6416. "scale": "",
  6417. "primaryKey": false,
  6418. "notNull": false,
  6419. "autoIncrement": false,
  6420. "defaultValue": "",
  6421. "hideInGraph": false,
  6422. "domain": "",
  6423. "refDict": "",
  6424. "extProps": {},
  6425. "notes": {},
  6426. "attr1": "",
  6427. "attr2": "",
  6428. "attr3": "",
  6429. "attr4": "",
  6430. "attr5": "",
  6431. "attr6": "",
  6432. "attr7": "",
  6433. "attr8": "",
  6434. "attr9": "",
  6435. "id": "27CEED93-2A24-4399-9439-F8C03E3512F9"
  6436. },
  6437. {
  6438. "defKey": "director_name_cn",
  6439. "defName": "董事中文名",
  6440. "comment": "",
  6441. "type": "BLOB",
  6442. "len": 255,
  6443. "scale": "",
  6444. "primaryKey": false,
  6445. "notNull": false,
  6446. "autoIncrement": false,
  6447. "defaultValue": "",
  6448. "hideInGraph": false,
  6449. "refDict": null,
  6450. "extProps": {},
  6451. "domain": null,
  6452. "id": "D515D25A-4FC1-4CC5-BDD3-A7CEB6FC541B",
  6453. "uiHint": null
  6454. },
  6455. {
  6456. "defKey": "director_id_no",
  6457. "defName": "董事证件号码",
  6458. "comment": "",
  6459. "type": "BLOB",
  6460. "len": 255,
  6461. "scale": "",
  6462. "primaryKey": false,
  6463. "notNull": false,
  6464. "autoIncrement": false,
  6465. "defaultValue": "",
  6466. "hideInGraph": false,
  6467. "refDict": null,
  6468. "extProps": {},
  6469. "domain": null,
  6470. "id": "984E4A5F-2983-49D9-A033-13167F8FABCA",
  6471. "uiHint": null
  6472. },
  6473. {
  6474. "defKey": "created_by",
  6475. "defName": "创建人",
  6476. "comment": "",
  6477. "type": "VARCHAR",
  6478. "len": 255,
  6479. "scale": "",
  6480. "primaryKey": false,
  6481. "notNull": false,
  6482. "autoIncrement": false,
  6483. "defaultValue": "",
  6484. "hideInGraph": false,
  6485. "refDict": null,
  6486. "extProps": {},
  6487. "notes": {},
  6488. "attr1": "",
  6489. "attr2": "",
  6490. "attr3": "",
  6491. "attr4": "",
  6492. "attr5": "",
  6493. "attr6": "",
  6494. "attr7": "",
  6495. "attr8": "",
  6496. "attr9": "",
  6497. "id": "D01F93BB-633A-4A3A-A843-3A63EFF76F8A",
  6498. "domain": null,
  6499. "uiHint": null
  6500. },
  6501. {
  6502. "defKey": "created_at",
  6503. "defName": "创建时间",
  6504. "comment": "",
  6505. "type": "",
  6506. "len": "",
  6507. "scale": "",
  6508. "primaryKey": false,
  6509. "notNull": false,
  6510. "autoIncrement": false,
  6511. "defaultValue": "CURRENT_TIMESTAMP",
  6512. "hideInGraph": false,
  6513. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  6514. "refDict": null,
  6515. "extProps": {},
  6516. "notes": {},
  6517. "attr1": "",
  6518. "attr2": "",
  6519. "attr3": "",
  6520. "attr4": "",
  6521. "attr5": "",
  6522. "attr6": "",
  6523. "attr7": "",
  6524. "attr8": "",
  6525. "attr9": "",
  6526. "id": "9474081A-ACB2-4D9C-A953-446AB072BA96",
  6527. "uiHint": null
  6528. },
  6529. {
  6530. "defKey": "updated_by",
  6531. "defName": "更新人",
  6532. "comment": "",
  6533. "type": "VARCHAR",
  6534. "len": 255,
  6535. "scale": "",
  6536. "primaryKey": false,
  6537. "notNull": false,
  6538. "autoIncrement": false,
  6539. "defaultValue": "",
  6540. "hideInGraph": false,
  6541. "refDict": null,
  6542. "extProps": {},
  6543. "notes": {},
  6544. "attr1": "",
  6545. "attr2": "",
  6546. "attr3": "",
  6547. "attr4": "",
  6548. "attr5": "",
  6549. "attr6": "",
  6550. "attr7": "",
  6551. "attr8": "",
  6552. "attr9": "",
  6553. "id": "ED51E875-143F-42D6-BC93-61CDBFCE68BA",
  6554. "domain": null,
  6555. "uiHint": null
  6556. },
  6557. {
  6558. "defKey": "updated_at",
  6559. "defName": "更新时间",
  6560. "comment": "",
  6561. "type": "",
  6562. "len": "",
  6563. "scale": "",
  6564. "primaryKey": false,
  6565. "notNull": false,
  6566. "autoIncrement": false,
  6567. "defaultValue": "",
  6568. "hideInGraph": false,
  6569. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  6570. "refDict": null,
  6571. "extProps": {},
  6572. "notes": {},
  6573. "attr1": "",
  6574. "attr2": "",
  6575. "attr3": "",
  6576. "attr4": "",
  6577. "attr5": "",
  6578. "attr6": "",
  6579. "attr7": "",
  6580. "attr8": "",
  6581. "attr9": "",
  6582. "id": "2633F340-56C2-4560-AC42-00C81EDC67F1",
  6583. "uiHint": null
  6584. }
  6585. ],
  6586. "correlations": [],
  6587. "indexes": []
  6588. },
  6589. {
  6590. "id": "922F3404-054F-4388-AE10-C88F8487AECC",
  6591. "env": {
  6592. "base": {
  6593. "nameSpace": "",
  6594. "codeRoot": ""
  6595. }
  6596. },
  6597. "defKey": "ta_company_beneficiary_info",
  6598. "defName": "受益所有人信息",
  6599. "comment": "",
  6600. "properties": {
  6601. "partitioned by": "(date string)",
  6602. "row format delimited": "",
  6603. "fields terminated by ','": "",
  6604. "collection items terminated by '-'": "",
  6605. "map keys terminated by ':'": "",
  6606. "store as textfile;": ""
  6607. },
  6608. "nameTemplate": "{defKey}[{defName}]",
  6609. "notes": {},
  6610. "headers": [
  6611. {
  6612. "refKey": "hideInGraph",
  6613. "hideInGraph": true
  6614. },
  6615. {
  6616. "refKey": "defKey",
  6617. "freeze": false,
  6618. "hideInGraph": false
  6619. },
  6620. {
  6621. "refKey": "defName",
  6622. "freeze": false,
  6623. "hideInGraph": false
  6624. },
  6625. {
  6626. "refKey": "primaryKey",
  6627. "freeze": false,
  6628. "hideInGraph": false
  6629. },
  6630. {
  6631. "refKey": "notNull",
  6632. "freeze": false,
  6633. "hideInGraph": true
  6634. },
  6635. {
  6636. "refKey": "autoIncrement",
  6637. "freeze": false,
  6638. "hideInGraph": true
  6639. },
  6640. {
  6641. "refKey": "domain",
  6642. "freeze": false,
  6643. "hideInGraph": true
  6644. },
  6645. {
  6646. "refKey": "type",
  6647. "freeze": false,
  6648. "hideInGraph": false
  6649. },
  6650. {
  6651. "refKey": "len",
  6652. "freeze": false,
  6653. "hideInGraph": false
  6654. },
  6655. {
  6656. "refKey": "scale",
  6657. "freeze": false,
  6658. "hideInGraph": false
  6659. },
  6660. {
  6661. "refKey": "comment",
  6662. "freeze": false,
  6663. "hideInGraph": true
  6664. },
  6665. {
  6666. "refKey": "refDict",
  6667. "freeze": false,
  6668. "hideInGraph": true
  6669. },
  6670. {
  6671. "refKey": "defaultValue",
  6672. "freeze": false,
  6673. "hideInGraph": true
  6674. },
  6675. {
  6676. "refKey": "isStandard",
  6677. "freeze": false,
  6678. "hideInGraph": false
  6679. },
  6680. {
  6681. "refKey": "uiHint",
  6682. "freeze": false,
  6683. "hideInGraph": true
  6684. },
  6685. {
  6686. "refKey": "extProps",
  6687. "freeze": false,
  6688. "hideInGraph": true
  6689. },
  6690. {
  6691. "refKey": "attr1",
  6692. "freeze": false,
  6693. "hideInGraph": true
  6694. },
  6695. {
  6696. "refKey": "attr2",
  6697. "freeze": false,
  6698. "hideInGraph": true
  6699. },
  6700. {
  6701. "refKey": "attr3",
  6702. "freeze": false,
  6703. "hideInGraph": true
  6704. },
  6705. {
  6706. "refKey": "attr4",
  6707. "freeze": false,
  6708. "hideInGraph": true
  6709. },
  6710. {
  6711. "refKey": "attr5",
  6712. "freeze": false,
  6713. "hideInGraph": true
  6714. },
  6715. {
  6716. "refKey": "attr6",
  6717. "freeze": false,
  6718. "hideInGraph": true
  6719. },
  6720. {
  6721. "refKey": "attr7",
  6722. "freeze": false,
  6723. "hideInGraph": true
  6724. },
  6725. {
  6726. "refKey": "attr8",
  6727. "freeze": false,
  6728. "hideInGraph": true
  6729. },
  6730. {
  6731. "refKey": "attr9",
  6732. "freeze": false,
  6733. "hideInGraph": true
  6734. }
  6735. ],
  6736. "fields": [
  6737. {
  6738. "defKey": "company_id",
  6739. "defName": "公司id",
  6740. "comment": "",
  6741. "type": "",
  6742. "len": "",
  6743. "scale": "",
  6744. "primaryKey": true,
  6745. "notNull": true,
  6746. "autoIncrement": false,
  6747. "defaultValue": "",
  6748. "hideInGraph": false,
  6749. "refDict": null,
  6750. "extProps": {},
  6751. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6752. "id": "3BFB5D5C-21FE-4F50-B894-D3385D7D2866",
  6753. "uiHint": null
  6754. },
  6755. {
  6756. "defKey": "tenant_id",
  6757. "defName": "租户号",
  6758. "comment": "",
  6759. "type": "",
  6760. "len": "",
  6761. "scale": "",
  6762. "primaryKey": false,
  6763. "notNull": false,
  6764. "autoIncrement": false,
  6765. "defaultValue": "",
  6766. "hideInGraph": false,
  6767. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  6768. "refDict": null,
  6769. "uiHint": null,
  6770. "id": "3BF98C7C-6E18-4729-84AA-DEC5D69C25D3"
  6771. },
  6772. {
  6773. "defKey": "registration_location",
  6774. "defName": "企业注册地",
  6775. "comment": "",
  6776. "type": "",
  6777. "len": "",
  6778. "scale": "",
  6779. "primaryKey": false,
  6780. "notNull": false,
  6781. "autoIncrement": false,
  6782. "defaultValue": "",
  6783. "hideInGraph": false,
  6784. "refDict": null,
  6785. "extProps": {},
  6786. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6787. "id": "DBA26520-3D32-460F-9CF0-B0726E6EC641",
  6788. "uiHint": null
  6789. },
  6790. {
  6791. "defKey": "company_name_cn",
  6792. "defName": "企业中文名",
  6793. "comment": "",
  6794. "type": "",
  6795. "len": "",
  6796. "scale": "",
  6797. "primaryKey": false,
  6798. "notNull": false,
  6799. "autoIncrement": false,
  6800. "defaultValue": "",
  6801. "hideInGraph": false,
  6802. "refDict": null,
  6803. "extProps": {},
  6804. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6805. "id": "6E6E31B7-5EC0-41D3-9A05-C56B28A8F586",
  6806. "uiHint": null
  6807. },
  6808. {
  6809. "defKey": "company_name_en",
  6810. "defName": "企业英文名",
  6811. "comment": "",
  6812. "type": "",
  6813. "len": "",
  6814. "scale": "",
  6815. "primaryKey": false,
  6816. "notNull": false,
  6817. "autoIncrement": false,
  6818. "defaultValue": "",
  6819. "hideInGraph": false,
  6820. "refDict": null,
  6821. "extProps": {},
  6822. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6823. "id": "2D91B267-271B-4379-A72D-B7536502F06E",
  6824. "uiHint": null
  6825. },
  6826. {
  6827. "defKey": "is_listed _company",
  6828. "defName": "是否为上市企业",
  6829. "comment": "",
  6830. "type": "",
  6831. "len": "",
  6832. "scale": "",
  6833. "primaryKey": false,
  6834. "notNull": false,
  6835. "autoIncrement": false,
  6836. "defaultValue": "",
  6837. "hideInGraph": false,
  6838. "refDict": null,
  6839. "extProps": {},
  6840. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6841. "id": "FD568544-7D86-4EF5-93BE-B4A4401B6724",
  6842. "uiHint": null
  6843. },
  6844. {
  6845. "defKey": "certificate_of_incorporation",
  6846. "defName": "公司注册证书",
  6847. "comment": "",
  6848. "type": "BLOB",
  6849. "len": 255,
  6850. "scale": "",
  6851. "primaryKey": false,
  6852. "notNull": false,
  6853. "autoIncrement": false,
  6854. "defaultValue": "",
  6855. "hideInGraph": false,
  6856. "refDict": null,
  6857. "extProps": {},
  6858. "domain": null,
  6859. "id": "D515D25A-4FC1-4CC5-BDD3-A7CEB6FC541B",
  6860. "uiHint": null
  6861. },
  6862. {
  6863. "defKey": "company_business_registration",
  6864. "defName": "公司商业登记证",
  6865. "comment": "",
  6866. "type": "BLOB",
  6867. "len": 255,
  6868. "scale": "",
  6869. "primaryKey": false,
  6870. "notNull": false,
  6871. "autoIncrement": false,
  6872. "defaultValue": "",
  6873. "hideInGraph": false,
  6874. "refDict": null,
  6875. "extProps": {},
  6876. "domain": null,
  6877. "id": "984E4A5F-2983-49D9-A033-13167F8FABCA",
  6878. "uiHint": null
  6879. },
  6880. {
  6881. "defKey": "nnc1/nar1",
  6882. "defName": "nnc1/最新nar1",
  6883. "comment": "",
  6884. "type": "BLOB",
  6885. "len": 255,
  6886. "scale": "",
  6887. "primaryKey": false,
  6888. "notNull": false,
  6889. "autoIncrement": false,
  6890. "defaultValue": "",
  6891. "hideInGraph": false,
  6892. "refDict": null,
  6893. "extProps": {},
  6894. "domain": null,
  6895. "id": "E10EA273-EA88-4E15-9B79-C087CFB0C9A9",
  6896. "uiHint": null
  6897. },
  6898. {
  6899. "defKey": "other_annex",
  6900. "defName": "其他附件",
  6901. "comment": "",
  6902. "type": "BLOB",
  6903. "len": 255,
  6904. "scale": "",
  6905. "primaryKey": false,
  6906. "notNull": false,
  6907. "autoIncrement": false,
  6908. "defaultValue": "",
  6909. "hideInGraph": false,
  6910. "refDict": null,
  6911. "extProps": {},
  6912. "domain": null,
  6913. "id": "8B2BF6CF-6CDA-45D2-9FA9-47B00CF3DF54",
  6914. "uiHint": null
  6915. },
  6916. {
  6917. "defKey": "company_type",
  6918. "defName": "企业类型 1:私人股份有限公司,2公众股份有限公司,3有股本的公众无限公司,4有股本的私人无限公司",
  6919. "comment": "",
  6920. "type": "",
  6921. "len": "",
  6922. "scale": "",
  6923. "primaryKey": false,
  6924. "notNull": false,
  6925. "autoIncrement": false,
  6926. "defaultValue": "",
  6927. "hideInGraph": false,
  6928. "refDict": null,
  6929. "extProps": {},
  6930. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6931. "id": "884871A5-4B26-402E-A795-9440CF323114",
  6932. "uiHint": null
  6933. },
  6934. {
  6935. "defKey": "business_registration_num",
  6936. "defName": "商业登记号",
  6937. "comment": "",
  6938. "type": "",
  6939. "len": "",
  6940. "scale": "",
  6941. "primaryKey": false,
  6942. "notNull": false,
  6943. "autoIncrement": false,
  6944. "defaultValue": "",
  6945. "hideInGraph": false,
  6946. "refDict": null,
  6947. "extProps": {},
  6948. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6949. "id": "AD0C2BF4-14BE-47E8-8697-7E723FF1F5DD",
  6950. "uiHint": null
  6951. },
  6952. {
  6953. "defKey": "register_country",
  6954. "defName": "注册 国家",
  6955. "comment": "",
  6956. "type": "",
  6957. "len": "",
  6958. "scale": "",
  6959. "primaryKey": false,
  6960. "notNull": false,
  6961. "autoIncrement": false,
  6962. "defaultValue": "",
  6963. "hideInGraph": false,
  6964. "refDict": null,
  6965. "extProps": {},
  6966. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6967. "id": "475E80D5-78C5-4D62-AEC7-CECC9B52899B",
  6968. "uiHint": null
  6969. },
  6970. {
  6971. "defKey": "register_province_region",
  6972. "defName": "注册 省/地区",
  6973. "comment": "",
  6974. "type": "",
  6975. "len": "",
  6976. "scale": "",
  6977. "primaryKey": false,
  6978. "notNull": false,
  6979. "autoIncrement": false,
  6980. "defaultValue": "",
  6981. "hideInGraph": false,
  6982. "refDict": null,
  6983. "extProps": {},
  6984. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6985. "id": "D160F872-813A-4EA9-A703-14FB6649275C",
  6986. "uiHint": null
  6987. },
  6988. {
  6989. "defKey": "register_city",
  6990. "defName": "注册 市",
  6991. "comment": "",
  6992. "type": "",
  6993. "len": "",
  6994. "scale": "",
  6995. "primaryKey": false,
  6996. "notNull": false,
  6997. "autoIncrement": false,
  6998. "defaultValue": "",
  6999. "hideInGraph": false,
  7000. "refDict": null,
  7001. "extProps": {},
  7002. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7003. "id": "59508E46-E61F-4CAD-BD8E-7962A18CD82A",
  7004. "uiHint": null
  7005. },
  7006. {
  7007. "defKey": "register_specific_address",
  7008. "defName": "注册具体地址",
  7009. "comment": "",
  7010. "type": "",
  7011. "len": "",
  7012. "scale": "",
  7013. "primaryKey": false,
  7014. "notNull": false,
  7015. "autoIncrement": false,
  7016. "defaultValue": "",
  7017. "hideInGraph": false,
  7018. "refDict": null,
  7019. "extProps": {},
  7020. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7021. "id": "976347F6-3256-4A2E-A0B2-7C73D082A372",
  7022. "uiHint": null
  7023. },
  7024. {
  7025. "defKey": "register_postal_code",
  7026. "defName": "注册 邮政编码",
  7027. "comment": "",
  7028. "type": "",
  7029. "len": "",
  7030. "scale": "",
  7031. "primaryKey": false,
  7032. "notNull": false,
  7033. "autoIncrement": false,
  7034. "defaultValue": "",
  7035. "hideInGraph": false,
  7036. "refDict": null,
  7037. "extProps": {},
  7038. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7039. "id": "4C6B451E-AD8B-41C0-B6B8-F17496B6A8E3",
  7040. "uiHint": null
  7041. },
  7042. {
  7043. "defKey": "reality_country",
  7044. "defName": "实际经营 国家",
  7045. "comment": "",
  7046. "type": "",
  7047. "len": "",
  7048. "scale": "",
  7049. "primaryKey": false,
  7050. "notNull": false,
  7051. "autoIncrement": false,
  7052. "defaultValue": "",
  7053. "hideInGraph": false,
  7054. "refDict": null,
  7055. "extProps": {},
  7056. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7057. "id": "F3E6DDC2-7DDB-4EA1-A88B-CD7DDCF3EE9F",
  7058. "uiHint": null
  7059. },
  7060. {
  7061. "defKey": "reality_province_region",
  7062. "defName": "实际经营 省/地区",
  7063. "comment": "",
  7064. "type": "",
  7065. "len": "",
  7066. "scale": "",
  7067. "primaryKey": false,
  7068. "notNull": false,
  7069. "autoIncrement": false,
  7070. "defaultValue": "",
  7071. "hideInGraph": false,
  7072. "refDict": null,
  7073. "extProps": {},
  7074. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7075. "id": "449EB676-75A3-414F-AFCC-F7DDE27D05DA",
  7076. "uiHint": null
  7077. },
  7078. {
  7079. "defKey": "reality_city",
  7080. "defName": "实际经营 市",
  7081. "comment": "",
  7082. "type": "",
  7083. "len": "",
  7084. "scale": "",
  7085. "primaryKey": false,
  7086. "notNull": false,
  7087. "autoIncrement": false,
  7088. "defaultValue": "",
  7089. "hideInGraph": false,
  7090. "refDict": null,
  7091. "extProps": {},
  7092. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7093. "id": "F77892B0-3D58-475C-977E-5A8A6B0EA83E",
  7094. "uiHint": null
  7095. },
  7096. {
  7097. "defKey": "reality_specific_address",
  7098. "defName": "实际经营 具体地址",
  7099. "comment": "",
  7100. "type": "",
  7101. "len": "",
  7102. "scale": "",
  7103. "primaryKey": false,
  7104. "notNull": false,
  7105. "autoIncrement": false,
  7106. "defaultValue": "",
  7107. "hideInGraph": false,
  7108. "refDict": null,
  7109. "extProps": {},
  7110. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7111. "id": "1A6270A3-6D32-49FB-90EF-8D2CECEAD870",
  7112. "uiHint": null
  7113. },
  7114. {
  7115. "defKey": "reality_postal_code",
  7116. "defName": "实际经营 邮政编码",
  7117. "comment": "",
  7118. "type": "",
  7119. "len": "",
  7120. "scale": "",
  7121. "primaryKey": false,
  7122. "notNull": false,
  7123. "autoIncrement": false,
  7124. "defaultValue": "",
  7125. "hideInGraph": false,
  7126. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7127. "refDict": null,
  7128. "extProps": {},
  7129. "notes": {},
  7130. "attr1": "",
  7131. "attr2": "",
  7132. "attr3": "",
  7133. "attr4": "",
  7134. "attr5": "",
  7135. "attr6": "",
  7136. "attr7": "",
  7137. "attr8": "",
  7138. "attr9": "",
  7139. "id": "FB983D20-B1C4-4DF3-B5C9-65ED2B90DC9D",
  7140. "uiHint": null
  7141. },
  7142. {
  7143. "defKey": "num_of_employees",
  7144. "defName": "雇员人数 1:员工人数超过200人,2员工人数50-200人,3员工人数少于50人",
  7145. "comment": "",
  7146. "type": "",
  7147. "len": "",
  7148. "scale": "",
  7149. "primaryKey": false,
  7150. "notNull": false,
  7151. "autoIncrement": false,
  7152. "defaultValue": "",
  7153. "hideInGraph": false,
  7154. "refDict": null,
  7155. "extProps": {},
  7156. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7157. "id": "2B021ABF-E76E-4629-A378-8E5F00A58C2F",
  7158. "uiHint": null
  7159. },
  7160. {
  7161. "defKey": "created_by",
  7162. "defName": "创建人",
  7163. "comment": "",
  7164. "type": "VARCHAR",
  7165. "len": 255,
  7166. "scale": "",
  7167. "primaryKey": false,
  7168. "notNull": false,
  7169. "autoIncrement": false,
  7170. "defaultValue": "",
  7171. "hideInGraph": false,
  7172. "refDict": null,
  7173. "extProps": {},
  7174. "notes": {},
  7175. "attr1": "",
  7176. "attr2": "",
  7177. "attr3": "",
  7178. "attr4": "",
  7179. "attr5": "",
  7180. "attr6": "",
  7181. "attr7": "",
  7182. "attr8": "",
  7183. "attr9": "",
  7184. "id": "D01F93BB-633A-4A3A-A843-3A63EFF76F8A",
  7185. "domain": null,
  7186. "uiHint": null
  7187. },
  7188. {
  7189. "defKey": "created_at",
  7190. "defName": "创建时间",
  7191. "comment": "",
  7192. "type": "",
  7193. "len": "",
  7194. "scale": "",
  7195. "primaryKey": false,
  7196. "notNull": false,
  7197. "autoIncrement": false,
  7198. "defaultValue": "CURRENT_TIMESTAMP",
  7199. "hideInGraph": false,
  7200. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  7201. "refDict": null,
  7202. "extProps": {},
  7203. "notes": {},
  7204. "attr1": "",
  7205. "attr2": "",
  7206. "attr3": "",
  7207. "attr4": "",
  7208. "attr5": "",
  7209. "attr6": "",
  7210. "attr7": "",
  7211. "attr8": "",
  7212. "attr9": "",
  7213. "id": "9474081A-ACB2-4D9C-A953-446AB072BA96",
  7214. "uiHint": null
  7215. },
  7216. {
  7217. "defKey": "updated_by",
  7218. "defName": "更新人",
  7219. "comment": "",
  7220. "type": "VARCHAR",
  7221. "len": 255,
  7222. "scale": "",
  7223. "primaryKey": false,
  7224. "notNull": false,
  7225. "autoIncrement": false,
  7226. "defaultValue": "",
  7227. "hideInGraph": false,
  7228. "refDict": null,
  7229. "extProps": {},
  7230. "notes": {},
  7231. "attr1": "",
  7232. "attr2": "",
  7233. "attr3": "",
  7234. "attr4": "",
  7235. "attr5": "",
  7236. "attr6": "",
  7237. "attr7": "",
  7238. "attr8": "",
  7239. "attr9": "",
  7240. "id": "ED51E875-143F-42D6-BC93-61CDBFCE68BA",
  7241. "domain": null,
  7242. "uiHint": null
  7243. },
  7244. {
  7245. "defKey": "updated_at",
  7246. "defName": "更新时间",
  7247. "comment": "",
  7248. "type": "",
  7249. "len": "",
  7250. "scale": "",
  7251. "primaryKey": false,
  7252. "notNull": false,
  7253. "autoIncrement": false,
  7254. "defaultValue": "",
  7255. "hideInGraph": false,
  7256. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  7257. "refDict": null,
  7258. "extProps": {},
  7259. "notes": {},
  7260. "attr1": "",
  7261. "attr2": "",
  7262. "attr3": "",
  7263. "attr4": "",
  7264. "attr5": "",
  7265. "attr6": "",
  7266. "attr7": "",
  7267. "attr8": "",
  7268. "attr9": "",
  7269. "id": "2633F340-56C2-4560-AC42-00C81EDC67F1",
  7270. "uiHint": null
  7271. }
  7272. ],
  7273. "correlations": [],
  7274. "indexes": []
  7275. }
  7276. ],
  7277. "views": [],
  7278. "dicts": [],
  7279. "viewGroups": [],
  7280. "dataTypeMapping": {
  7281. "referURL": "",
  7282. "mappings": [
  7283. {
  7284. "defKey": "string",
  7285. "id": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7286. "defName": "字串",
  7287. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "VARCHAR",
  7288. "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "VARCHAR2",
  7289. "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "VARCHAR",
  7290. "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "VARCHAR",
  7291. "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "VARCHAR",
  7292. "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "VARCHAR2",
  7293. "592C7013-143D-4E7B-AF64-0D7BF1E28230": "VARCHAR",
  7294. "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "VARCHAR",
  7295. "11D1FB71-A587-4217-89BA-611B8A1F83E0": "STRING",
  7296. "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "TEXT",
  7297. "797A1496-D649-4261-89B4-544132EC3F36": "String",
  7298. "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "String",
  7299. "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "String",
  7300. "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "string",
  7301. "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "string",
  7302. "B91D99E0-9B7C-416C-8737-B760957DAF09": "string",
  7303. "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "String",
  7304. "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "VARCHAR",
  7305. "483F9346-C99E-4014-A1D2-A554606BD8A3": "VARCHAR"
  7306. },
  7307. {
  7308. "defKey": "double",
  7309. "id": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  7310. "defName": "小数",
  7311. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "DECIMAL",
  7312. "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "DECIMAL",
  7313. "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "DECIMAL",
  7314. "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "NUMERIC",
  7315. "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "DECIMAL",
  7316. "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "DECIMAL",
  7317. "592C7013-143D-4E7B-AF64-0D7BF1E28230": "NUMERIC",
  7318. "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "NUMERIC",
  7319. "11D1FB71-A587-4217-89BA-611B8A1F83E0": "DOUBLE",
  7320. "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "REAL",
  7321. "797A1496-D649-4261-89B4-544132EC3F36": "Double",
  7322. "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "Double",
  7323. "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "Double",
  7324. "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "decimal",
  7325. "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "double",
  7326. "B91D99E0-9B7C-416C-8737-B760957DAF09": "*float64",
  7327. "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "f64",
  7328. "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "DECIMAL",
  7329. "483F9346-C99E-4014-A1D2-A554606BD8A3": "DECIMAL"
  7330. },
  7331. {
  7332. "defKey": "int",
  7333. "id": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  7334. "defName": "整数",
  7335. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "INT",
  7336. "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "INT",
  7337. "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "INT",
  7338. "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "INTEGER",
  7339. "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "INT",
  7340. "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "INTEGER",
  7341. "592C7013-143D-4E7B-AF64-0D7BF1E28230": "INTEGER",
  7342. "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "INT4",
  7343. "11D1FB71-A587-4217-89BA-611B8A1F83E0": "INT",
  7344. "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "INTEGER",
  7345. "797A1496-D649-4261-89B4-544132EC3F36": "Integer",
  7346. "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "Integer",
  7347. "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "Integer",
  7348. "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "float",
  7349. "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "int",
  7350. "B91D99E0-9B7C-416C-8737-B760957DAF09": "*int",
  7351. "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "i32",
  7352. "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "INTEGER",
  7353. "483F9346-C99E-4014-A1D2-A554606BD8A3": "INT"
  7354. },
  7355. {
  7356. "defKey": "date",
  7357. "id": "89D69E81-EA34-42EE-9FA2-93B8BD27E098",
  7358. "defName": "日期",
  7359. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "DATETIME",
  7360. "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "DATE",
  7361. "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "DATETIME",
  7362. "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "TIMESTAMP",
  7363. "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "DATE",
  7364. "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "DATE",
  7365. "592C7013-143D-4E7B-AF64-0D7BF1E28230": "DATE",
  7366. "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "DATE",
  7367. "11D1FB71-A587-4217-89BA-611B8A1F83E0": "DATETIME",
  7368. "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "NUMERIC",
  7369. "797A1496-D649-4261-89B4-544132EC3F36": "Date",
  7370. "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "Date",
  7371. "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "Date",
  7372. "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "DateTime",
  7373. "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "timestamp",
  7374. "B91D99E0-9B7C-416C-8737-B760957DAF09": "*time.Time",
  7375. "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "DateTime<Local>",
  7376. "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "DATE",
  7377. "483F9346-C99E-4014-A1D2-A554606BD8A3": "DATETIME"
  7378. },
  7379. {
  7380. "defKey": "bytes",
  7381. "id": "D516E75B-90F5-4741-B9B3-A186A263F04C",
  7382. "defName": "二进制",
  7383. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "BLOB",
  7384. "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "BLOB",
  7385. "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "VARBINARY",
  7386. "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "BYTEA",
  7387. "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "BLOB",
  7388. "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "BLOB",
  7389. "592C7013-143D-4E7B-AF64-0D7BF1E28230": "BYTEA",
  7390. "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "BYTEA",
  7391. "11D1FB71-A587-4217-89BA-611B8A1F83E0": "BINARY",
  7392. "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "NONE",
  7393. "797A1496-D649-4261-89B4-544132EC3F36": "byte[]",
  7394. "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "byte[]",
  7395. "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "byte[]",
  7396. "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "binary",
  7397. "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "binary",
  7398. "B91D99E0-9B7C-416C-8737-B760957DAF09": "[]byte",
  7399. "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "BYTE"
  7400. },
  7401. {
  7402. "defKey": "largeText",
  7403. "id": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
  7404. "defName": "大文本",
  7405. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "TEXT",
  7406. "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "CLOB",
  7407. "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "TEXT",
  7408. "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "TEXT",
  7409. "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "CLOB",
  7410. "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "CLOB",
  7411. "592C7013-143D-4E7B-AF64-0D7BF1E28230": "TEXT",
  7412. "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "TEXT",
  7413. "11D1FB71-A587-4217-89BA-611B8A1F83E0": "STRING",
  7414. "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "TEXT",
  7415. "797A1496-D649-4261-89B4-544132EC3F36": "String",
  7416. "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "String",
  7417. "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "String",
  7418. "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "string",
  7419. "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "string",
  7420. "B91D99E0-9B7C-416C-8737-B760957DAF09": "string",
  7421. "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "String",
  7422. "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "TEXT",
  7423. "483F9346-C99E-4014-A1D2-A554606BD8A3": "STRING"
  7424. }
  7425. ]
  7426. },
  7427. "domains": [
  7428. {
  7429. "defKey": "DefaultString",
  7430. "defName": "默认字串",
  7431. "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7432. "len": 255,
  7433. "scale": "",
  7434. "uiHint": "",
  7435. "id": "9092C4E0-1A54-4859-ABBB-5B62DBC27573"
  7436. },
  7437. {
  7438. "defKey": "IdOrKey",
  7439. "defName": "主键标识",
  7440. "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7441. "len": 32,
  7442. "scale": "",
  7443. "uiHint": "",
  7444. "id": "16120F75-6AA7-4483-868D-F07F511BB081"
  7445. },
  7446. {
  7447. "defKey": "Name",
  7448. "defName": "名称",
  7449. "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7450. "len": 90,
  7451. "scale": "",
  7452. "uiHint": "",
  7453. "id": "54611CCC-CA4B-42E1-9F32-4944C85B85A6"
  7454. },
  7455. {
  7456. "defKey": "Int",
  7457. "defName": "整数",
  7458. "applyFor": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  7459. "len": "",
  7460. "scale": "",
  7461. "uiHint": "",
  7462. "id": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E"
  7463. },
  7464. {
  7465. "defKey": "Double",
  7466. "defName": "小数",
  7467. "applyFor": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  7468. "len": 24,
  7469. "scale": 6,
  7470. "uiHint": "",
  7471. "id": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4"
  7472. },
  7473. {
  7474. "defKey": "Money",
  7475. "defName": "金额",
  7476. "applyFor": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  7477. "len": 24,
  7478. "scale": 6,
  7479. "uiHint": "",
  7480. "id": "C3B1681B-99F9-4818-9E80-DE1652A51D85"
  7481. },
  7482. {
  7483. "defKey": "DateTime",
  7484. "defName": "日期时间",
  7485. "applyFor": "89D69E81-EA34-42EE-9FA2-93B8BD27E098",
  7486. "len": "",
  7487. "scale": "",
  7488. "uiHint": "",
  7489. "id": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC"
  7490. },
  7491. {
  7492. "defKey": "YesNo",
  7493. "defName": "是否",
  7494. "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7495. "len": "1",
  7496. "scale": "",
  7497. "uiHint": "",
  7498. "id": "6F7C1C5C-D159-41E6-BF9D-54DEEFA79AFF"
  7499. },
  7500. {
  7501. "defKey": "Dict",
  7502. "defName": "数据字典",
  7503. "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7504. "len": "32",
  7505. "scale": "",
  7506. "uiHint": "",
  7507. "id": "73FD2BAD-2358-4336-B96D-45DC897BD792"
  7508. },
  7509. {
  7510. "defKey": "DescText",
  7511. "defName": "描述文本",
  7512. "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7513. "len": "900",
  7514. "scale": "",
  7515. "uiHint": "",
  7516. "id": "3E948CEC-3070-472C-AF92-F3CA11EC9D15"
  7517. }
  7518. ],
  7519. "diagrams": [],
  7520. "standardFields": [
  7521. {
  7522. "defKey": "personInfo",
  7523. "defName": "个人基本信息要素",
  7524. "fields": [
  7525. {
  7526. "defKey": "ID_CARD_NO",
  7527. "defName": "身份证号",
  7528. "comment": "",
  7529. "type": "VARCHAR",
  7530. "len": "60",
  7531. "scale": "",
  7532. "primaryKey": false,
  7533. "notNull": false,
  7534. "autoIncrement": false,
  7535. "defaultValue": "",
  7536. "hideInGraph": false,
  7537. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7538. "refDict": "",
  7539. "uiHint": "",
  7540. "id": "A64A91C8-A41F-4113-92FB-7563D7EF054D"
  7541. },
  7542. {
  7543. "defKey": "MOBILE_PHONE",
  7544. "defName": "手机号",
  7545. "comment": "",
  7546. "type": "VARCHAR",
  7547. "len": "60",
  7548. "scale": "",
  7549. "primaryKey": false,
  7550. "notNull": false,
  7551. "autoIncrement": false,
  7552. "defaultValue": "",
  7553. "hideInGraph": false,
  7554. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7555. "refDict": "",
  7556. "uiHint": "",
  7557. "id": "479DA2AB-1974-411A-A81E-92FB939E75EB"
  7558. },
  7559. {
  7560. "defKey": "GENDER",
  7561. "defName": "性别",
  7562. "comment": "",
  7563. "type": "VARCHAR",
  7564. "len": "32",
  7565. "scale": "",
  7566. "primaryKey": false,
  7567. "notNull": false,
  7568. "autoIncrement": false,
  7569. "defaultValue": "",
  7570. "hideInGraph": false,
  7571. "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
  7572. "refDict": "BF9E20E0-80D3-486D-BD58-5FADCF3E4A1D",
  7573. "uiHint": "",
  7574. "id": "48473E29-6594-4912-AADE-C8AB44FCA3E9"
  7575. },
  7576. {
  7577. "defKey": "BIRTH",
  7578. "defName": "出生日期",
  7579. "comment": "",
  7580. "type": "DATETIME",
  7581. "len": "",
  7582. "scale": "",
  7583. "primaryKey": false,
  7584. "notNull": false,
  7585. "autoIncrement": false,
  7586. "defaultValue": "",
  7587. "hideInGraph": false,
  7588. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  7589. "refDict": "",
  7590. "uiHint": "",
  7591. "id": "2BD3D2EE-2411-49A6-983D-84B81057312F"
  7592. },
  7593. {
  7594. "defKey": "AVATAR",
  7595. "defName": "头像",
  7596. "comment": "",
  7597. "type": "VARCHAR",
  7598. "len": "60",
  7599. "scale": "",
  7600. "primaryKey": false,
  7601. "notNull": false,
  7602. "autoIncrement": false,
  7603. "defaultValue": "",
  7604. "hideInGraph": false,
  7605. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7606. "refDict": "",
  7607. "uiHint": "",
  7608. "id": "FDD67CEE-4B52-4BD1-A1A3-9C5EBC6037E6"
  7609. },
  7610. {
  7611. "defKey": "HEIGHT",
  7612. "defName": "身高",
  7613. "comment": "",
  7614. "type": "INT",
  7615. "len": "",
  7616. "scale": "",
  7617. "primaryKey": false,
  7618. "notNull": false,
  7619. "autoIncrement": false,
  7620. "defaultValue": "",
  7621. "hideInGraph": false,
  7622. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  7623. "refDict": "",
  7624. "uiHint": "",
  7625. "id": "CAAA0E79-41A1-4758-B481-D171168C4D68"
  7626. },
  7627. {
  7628. "defKey": "WEIGHT",
  7629. "defName": "体重",
  7630. "comment": "",
  7631. "type": "INT",
  7632. "len": "",
  7633. "scale": "",
  7634. "primaryKey": false,
  7635. "notNull": false,
  7636. "autoIncrement": false,
  7637. "defaultValue": "",
  7638. "hideInGraph": false,
  7639. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  7640. "refDict": "",
  7641. "uiHint": "",
  7642. "id": "575482CE-64A6-4CB9-99DC-8E126D190AAA"
  7643. },
  7644. {
  7645. "defKey": "NATION",
  7646. "defName": "名族",
  7647. "comment": "",
  7648. "type": "VARCHAR",
  7649. "len": "32",
  7650. "scale": "",
  7651. "primaryKey": false,
  7652. "notNull": false,
  7653. "autoIncrement": false,
  7654. "defaultValue": "",
  7655. "hideInGraph": false,
  7656. "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
  7657. "refDict": "115EDEFC-0323-410E-81AB-CCAB8879837A",
  7658. "uiHint": "",
  7659. "id": "15B0D75D-0B97-4985-A816-D0EAFA90446B"
  7660. },
  7661. {
  7662. "defKey": "POLITICAL",
  7663. "defName": "政治面貌",
  7664. "comment": "",
  7665. "type": "VARCHAR",
  7666. "len": "32",
  7667. "scale": "",
  7668. "primaryKey": false,
  7669. "notNull": false,
  7670. "autoIncrement": false,
  7671. "defaultValue": "",
  7672. "hideInGraph": false,
  7673. "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
  7674. "refDict": "06EED564-BBA9-4747-8D73-AF809A330CB8",
  7675. "uiHint": "",
  7676. "id": "F458E86D-84D6-45A1-9DD3-51E6C8170D7F"
  7677. },
  7678. {
  7679. "defKey": "MARITAL",
  7680. "defName": "婚姻状况",
  7681. "comment": "",
  7682. "type": "VARCHAR",
  7683. "len": "32",
  7684. "scale": "",
  7685. "primaryKey": false,
  7686. "notNull": false,
  7687. "autoIncrement": false,
  7688. "defaultValue": "",
  7689. "hideInGraph": false,
  7690. "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
  7691. "refDict": "EA1587B7-3954-437A-BFE0-FCB0453BCABA",
  7692. "uiHint": "",
  7693. "id": "7275E578-6893-4922-AC69-95B261BFBD61"
  7694. },
  7695. {
  7696. "defKey": "DOMICILE_PLACE_PROVINCE",
  7697. "defName": "籍贯(省)",
  7698. "comment": "",
  7699. "type": "VARCHAR",
  7700. "len": "60",
  7701. "scale": "",
  7702. "primaryKey": false,
  7703. "notNull": false,
  7704. "autoIncrement": false,
  7705. "defaultValue": "",
  7706. "hideInGraph": false,
  7707. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7708. "refDict": "",
  7709. "uiHint": "",
  7710. "id": "F04BF130-3EC1-4E02-9DED-3214CA88E352"
  7711. },
  7712. {
  7713. "defKey": "DOMICILE_PLACE_CITY",
  7714. "defName": "籍贯(市)",
  7715. "comment": "",
  7716. "type": "VARCHAR",
  7717. "len": "32",
  7718. "scale": "",
  7719. "primaryKey": false,
  7720. "notNull": false,
  7721. "autoIncrement": false,
  7722. "defaultValue": "",
  7723. "hideInGraph": false,
  7724. "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
  7725. "refDict": "",
  7726. "uiHint": "",
  7727. "id": "B97F5BC2-33DE-4857-9DB8-ECFD02C9040C"
  7728. },
  7729. {
  7730. "defKey": "DOMICILE_PLACE_ADDRESS",
  7731. "defName": "户籍地址",
  7732. "comment": "",
  7733. "type": "VARCHAR",
  7734. "len": "60",
  7735. "scale": "",
  7736. "primaryKey": false,
  7737. "notNull": false,
  7738. "autoIncrement": false,
  7739. "defaultValue": "",
  7740. "hideInGraph": false,
  7741. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7742. "refDict": "",
  7743. "uiHint": "",
  7744. "id": "812ADF1D-8C03-40CA-B030-E539838FB889"
  7745. }
  7746. ],
  7747. "id": "F30202B9-4B5D-4CE7-87CE-B3890C84D3F2"
  7748. }
  7749. ],
  7750. "dbConn": [
  7751. {
  7752. "defKey": "0FAC270E-2DD4-4BF5-A0E3-4DF927EB4AEC",
  7753. "defName": "global_funding",
  7754. "type": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E",
  7755. "properties": {
  7756. "driver_class_name": "com.mysql.cj.jdbc.Driver",
  7757. "url": "jdbc:mysql://192.168.89.10:3306/global_funding?characterEncoding=UTF-8&useSSL=false&useUnicode=true&serverTimezone=UTC",
  7758. "password": "li6sJd%H#Ik9lhwjH936bNzdTqfmJNFj",
  7759. "username": "root"
  7760. }
  7761. }
  7762. ]
  7763. }