123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779 |
- {
- "name": "小丁到家数据库设计",
- "describe": "小丁到家数据库设计",
- "avatar": "",
- "version": "4.9.4",
- "createdTime": "2024-10-24 16:46:36",
- "updatedTime": "2024-10-31 20:07:33",
- "dbConns": [],
- "profile": {
- "default": {
- "db": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E",
- "dbConn": "4C0586F9-A505-4EC2-B254-25F619FD64BE",
- "entityInitFields": [
- {
- "defKey": "tenant_id",
- "defName": "租户号",
- "comment": "",
- "type": "BIGINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "domain": "",
- "refDict": "",
- "uiHint": "",
- "id": "ADB3AD14-6603-43E2-8261-114E32442B5B",
- "baseType": ""
- },
- {
- "defKey": "created_by",
- "defName": "创建人",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "",
- "len": 32,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": "",
- "uiHint": "",
- "id": "C8BE2C7A-8251-4ADD-BB4F-411C5754DA62",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
- },
- {
- "defKey": "created_at",
- "defName": "创建时间",
- "comment": "",
- "domain": "",
- "type": "timestamp",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": "",
- "uiHint": "",
- "id": "4E471FD6-3E73-4A90-B660-51598A482409",
- "baseType": ""
- },
- {
- "defKey": "updated_by",
- "defName": "更新人",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "",
- "len": 32,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": "",
- "uiHint": "",
- "id": "0DC24AA9-4CD0-45D8-95CF-FA546BE343AB",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
- },
- {
- "defKey": "updated_at",
- "defName": "更新时间",
- "comment": "",
- "domain": "",
- "type": "timestamp",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": "",
- "uiHint": "",
- "id": "09F64AC4-4DEE-428F-AF64-4C103884E1AC",
- "baseType": ""
- }
- ],
- "entityInitProperties": {
- "partitioned by": "(date string)",
- "row format delimited": "",
- "fields terminated by ','": "",
- "collection items terminated by '-'": "",
- "map keys terminated by ':'": "",
- "store as textfile;": ""
- }
- },
- "javaHome": "",
- "sql": {
- "delimiter": ""
- },
- "dataTypeSupports": [
- {
- "defKey": "MYSQL",
- "id": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E"
- },
- {
- "defKey": "ORACLE",
- "id": "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542"
- },
- {
- "defKey": "SQLServer",
- "id": "BFC87171-C74F-494A-B7C2-76B9C55FACC9"
- },
- {
- "defKey": "PostgreSQL",
- "id": "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022"
- },
- {
- "defKey": "DB2",
- "id": "89504F5D-94BF-4C9E-8B2E-44F37305FED5"
- },
- {
- "defKey": "DM",
- "id": "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307"
- },
- {
- "defKey": "GaussDB",
- "id": "592C7013-143D-4E7B-AF64-0D7BF1E28230"
- },
- {
- "defKey": "Kingbase",
- "id": "77BD85E5-9D0D-4096-8427-CBA306FC9C6A"
- },
- {
- "defKey": "GBase",
- "id": "56F4B55B-F0B8-4049-9E6B-50B95C1D793A"
- },
- {
- "defKey": "MaxCompute",
- "id": "11D1FB71-A587-4217-89BA-611B8A1F83E0"
- },
- {
- "defKey": "SQLite",
- "id": "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1"
- },
- {
- "defKey": "Hive",
- "id": "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2"
- },
- {
- "defKey": "JAVA",
- "id": "797A1496-D649-4261-89B4-544132EC3F36"
- },
- {
- "defKey": "JavaMybatis",
- "id": "895CFD1D-4273-4D32-A2C4-CAC70200AB5B"
- },
- {
- "defKey": "JavaMybatisPlus",
- "id": "A2EE7B4A-CE62-4290-B00C-B26C1BF18073"
- },
- {
- "defKey": "C#",
- "id": "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30"
- },
- {
- "defKey": "Golang",
- "id": "B91D99E0-9B7C-416C-8737-B760957DAF09"
- },
- {
- "defKey": "Rust",
- "id": "BDF457FD-9F98-4AC3-A705-7587B00A3BAB"
- },
- {
- "defKey": "Doris",
- "id": "483F9346-C99E-4014-A1D2-A554606BD8A3"
- },
- {
- "defKey": "HighGo",
- "id": "ABF5836C-0B7C-4007-A41C-F869325E5842"
- }
- ],
- "codeTemplates": [
- {
- "type": "appCode",
- "applyFor": "797A1496-D649-4261-89B4-544132EC3F36",
- " 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}"
- },
- {
- "type": "appCode",
- "applyFor": "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30",
- "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}",
- "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}"
- },
- {
- "applyFor": "895CFD1D-4273-4D32-A2C4-CAC70200AB5B",
- "type": "appCode",
- "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}",
- "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}",
- "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}",
- "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}",
- "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",
- "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}"
- },
- {
- "applyFor": "A2EE7B4A-CE62-4290-B00C-B26C1BF18073",
- "type": "appCode",
- "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 java.util.List;\nimport io.swagger.annotations.Api;\nimport io.swagger.annotations.ApiOperation;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.data.domain.PageImpl;\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<PageImpl<{{=beanClass}}>> paginQuery({{=beanClass}} {{=beanVarName}}, PageRequest pageRequest){\n //1.分页参数\n long current = pageRequest.getPageNumber();\n long size = pageRequest.getPageSize();\n\n //2.分页查询\n /*把Mybatis的分页对象做封装转换,MP的分页对象上有一些SQL敏感信息,还是通过spring的分页模型来封装数据吧*/\n com.baomidou.mybatisplus.extension.plugins.pagination.Page<{{=beanClass}}> pageResult = {{=serviceVarName}}.paginQuery({{=beanVarName}}, current,size);\n\n //3. 分页结果组装\n List<{{=beanClass}}> dataList = pageResult.getRecords();\n long total = pageResult.getTotal();\n PageImpl<{{=beanClass}}> retPage = new PageImpl<{{=beanClass}}>(dataList,pageRequest,total);\n return ResponseEntity.ok(retPage);\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}",
- "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.plugins.pagination.Page;\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 $blankline\n /** \n * 通过ID查询单条数据 \n *\n * @param {{=pkVarName}} 主键\n * @return 实例对象\n */\n {{=beanClass}} queryById({{=pkDataType}} {{=pkVarName}});\n $blankline\n /**\n * 分页查询\n *\n * @param {{=beanVarName}} 筛选条件\n * @param current 当前页码\n * @param size 每页大小\n * @return\n */\n Page<{{=beanClass}}> paginQuery({{=beanClass}} {{=beanVarName}}, long current, long size);\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}",
- "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 cn.hutool.core.util.StrUtil;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\nimport com.baomidou.mybatisplus.core.metadata.IPage;\nimport com.baomidou.mybatisplus.extension.plugins.pagination.Page;\nimport com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;\nimport com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper;\n\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}}.selectById({{=pkVarName}});\n }\n $blankline\n /**\n * 分页查询\n *\n * @param {{=beanVarName}} 筛选条件\n * @param current 当前页码\n * @param size 每页大小\n * @return\n */\n public Page<{{=beanClass}}> paginQuery({{=beanClass}} {{=beanVarName}}, long current, long size){\n //1. 构建动态查询条件\n LambdaQueryWrapper<{{=beanClass}}> queryWrapper = new LambdaQueryWrapper<>();\n {{~it.entity.fields.filter(function(e){return e[\"type\"]===\"String\"&&e.defKey !== pkFieldKey}):field:index}}\n if(StrUtil.isNotBlank({{=beanVarName}}.get{{=it.func.camel(field.defKey,true)}}())){\n queryWrapper.eq({{=beanClass}}::get{{=it.func.camel(field.defKey,true)}}, {{=beanVarName}}.get{{=it.func.camel(field.defKey,true)}}());\n }\n {{~}}\n\n //2. 执行分页查询\n Page<{{=beanClass}}> pagin = new Page<>(current , size , true);\n IPage<{{=beanClass}}> selectResult = {{=mapperName}}.selectByPage(pagin , queryWrapper);\n pagin.setPages(selectResult.getPages());\n pagin.setTotal(selectResult.getTotal());\n pagin.setRecords(selectResult.getRecords());\n\n //3. 返回结果\n return pagin;\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 //1. 根据条件动态更新\n LambdaUpdateChainWrapper<{{=beanClass}}> chainWrapper = new LambdaUpdateChainWrapper<{{=beanClass}}>({{=mapperName}});\n {{~it.entity.fields.filter(function(e){return e[\"type\"]===\"String\"&&e.defKey !== pkFieldKey}):field:index}}\n if(StrUtil.isNotBlank({{=beanVarName}}.get{{=it.func.camel(field.defKey,true)}}())){\n chainWrapper.eq({{=beanClass}}::get{{=it.func.camel(field.defKey,true)}}, {{=beanVarName}}.get{{=it.func.camel(field.defKey,true)}}());\n }\n {{~}}\n //2. 设置主键,并更新\n chainWrapper.set({{=beanClass}}::get{{=pkVarNameU}}, {{=beanVarName}}.get{{=pkVarNameU}}());\n boolean ret = chainWrapper.update();\n //3. 更新成功了,查询最最对象返回\n if(ret){\n return queryById({{=beanVarName}}.get{{=pkVarNameU}}());\n }else{\n return {{=beanVarName}};\n }\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}",
- "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}",
- "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 <select id=\"selectByPage\" resultType=\"{{=pkgName}}.entity.{{=beanClass}}\">\n select * from user ${ew.customSqlSegment}\n </select>\n</mapper>\n\n",
- "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 com.baomidou.mybatisplus.annotation.TableName;\nimport com.baomidou.mybatisplus.annotation.TableId;\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@TableName(\"{{=it.entity.defKey}}\")\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 {{? field.primaryKey }}\n @TableId\n {{?}}\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}"
- },
- {
- "applyFor": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E",
- "type": "dbDDL",
- "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}}INT AUTO_INCREMENT{{??}}{{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}} {{= field.notNull ? 'NOT NULL' : '' }} {{= 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",
- "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",
- "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
- "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{{~}}",
- "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX IF EXISTS {{=index.defKey}} ;\n{{~}}",
- "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",
- "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{{?}}"
- },
- {
- "applyFor": "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542",
- "type": "dbDDL",
- "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.autoIncrement}}NUMBER(11) generated by default as IDENTITY, {{??}}{{=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{{~}}",
- "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",
- "deleteTable": "DROP TABLE {{=it.entity.defKey}};",
- "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{{~}}",
- "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX {{=index.defKey}} ;\n{{~}}",
- "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{{?}}",
- "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{{?}}"
- },
- {
- "applyFor": "BFC87171-C74F-494A-B7C2-76B9C55FACC9",
- "type": "dbDDL",
- "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.autoIncrement}}INT IDENTITY(1,1) {{??}}{{=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}}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",
- "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",
- "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}}];",
- "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{{~}}",
- "deleteIndex": "",
- "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{{?}}",
- "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{{?}}"
- },
- {
- "applyFor": "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022",
- "type": "dbDDL",
- "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{{~}}",
- "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",
- "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
- "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{{~}}",
- "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX {{=index.defKey}} ;\n{{~}}",
- "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{{?}}",
- "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{{?}}"
- },
- {
- "type": "dbDDL",
- "applyFor": "89504F5D-94BF-4C9E-8B2E-44F37305FED5",
- "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.autoIncrement}}DECIMAL(17) GENERATED ALWAYS AS IDENTITY(START WITH 1 INCREMENT BY 1),{{??}}{{=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{{~}}",
- "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{{~}}",
- "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"
- },
- {
- "applyFor": "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307",
- "type": "dbDDL",
- "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}}INT IDENTITY(1,1) {{??}}{{=field.dbType}}{{?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{{~}}",
- "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",
- "deleteTable": "",
- "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{{~}}",
- "deleteIndex": "",
- "message": "",
- "update": ""
- },
- {
- "type": "dbDDL",
- "applyFor": "592C7013-143D-4E7B-AF64-0D7BF1E28230",
- "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{{~}}",
- "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{{~}}",
- "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"
- },
- {
- "type": "dbDDL",
- "applyFor": "77BD85E5-9D0D-4096-8427-CBA306FC9C6A",
- "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{{~}}",
- "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{{~}}",
- "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"
- },
- {
- "applyFor": "11D1FB71-A587-4217-89BA-611B8A1F83E0",
- "type": "dbDDL",
- "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",
- "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",
- "deleteTable": "",
- "createIndex": "",
- "deleteIndex": "",
- "message": "",
- "update": ""
- },
- {
- "applyFor": "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1",
- "type": "dbDDL",
- "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",
- "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{{~}}",
- "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"
- },
- {
- "type": "dbDDL",
- "applyFor": "dictSQLTemplate",
- "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{{~}}"
- },
- {
- "applyFor": "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2",
- "type": "dbDDL",
- "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;",
- "createView": "",
- "deleteTable": "",
- "createIndex": "",
- "deleteIndex": "",
- "message": "",
- "update": ""
- },
- {
- "applyFor": "B91D99E0-9B7C-416C-8737-B760957DAF09",
- "type": "appCode",
- "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}}"
- },
- {
- "applyFor": "BDF457FD-9F98-4AC3-A705-7587B00A3BAB",
- "type": "appCode",
- "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"
- },
- {
- "applyFor": "56F4B55B-F0B8-4049-9E6B-50B95C1D793A",
- "type": "dbDDL",
- "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{{~}}",
- "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",
- "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
- "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{{~}}",
- "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX {{=index.defKey}} ;\n{{~}}",
- "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{{?}}",
- "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{{?}}"
- },
- {
- "applyFor": "483F9346-C99E-4014-A1D2-A554606BD8A3",
- "type": "dbDDL",
- "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",
- "createView": "",
- "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
- "createIndex": "",
- "deleteIndex": "",
- "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",
- "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{{?}}"
- },
- {
- "applyFor": "ABF5836C-0B7C-4007-A41C-F869325E5842",
- "type": "dbDDL",
- "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{{~}}",
- "createView": "",
- "deleteTable": "",
- "createIndex": "",
- "deleteIndex": "",
- "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{{?}}",
- "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{{?}}"
- }
- ],
- "generatorDoc": {
- "docTemplate": ""
- },
- "relationFieldSize": "15",
- "uiHint": [
- {
- "defKey": "Input",
- "defName": "普通输入框",
- "id": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "Select",
- "defName": "下拉输入框",
- "id": "FB111359-2B73-4443-926C-08A98E446448"
- },
- {
- "defKey": "CheckBox",
- "defName": "复选框",
- "id": "0CB8A6C9-1115-4FC0-B51E-5C028065082F"
- },
- {
- "defKey": "RadioBox",
- "defName": "单选框",
- "id": "5C04987A-260F-4B7C-A5D5-22A181AAE9CA"
- },
- {
- "defKey": "Double",
- "defName": "小数输入",
- "id": "8D5BAFE4-E15C-4707-A047-8EE59C58E70F"
- },
- {
- "defKey": "Integer",
- "defName": "整数输入",
- "id": "9999AF2A-A44E-415C-A2DC-D7C613BD0073"
- },
- {
- "defKey": "Money",
- "defName": "金额输入",
- "id": "2B0C3D0C-7BAF-4B36-81AD-9362B5E5DC2E"
- },
- {
- "defKey": "Date",
- "defName": "日期输入",
- "id": "E4D94E14-F695-487F-AFC2-4D888009B7DA"
- },
- {
- "defKey": "DataYearMonth",
- "defName": "年月输入",
- "id": "936927E3-DD2D-4096-87FD-074CDE278D59"
- },
- {
- "defKey": "Text",
- "defName": "长文本输入",
- "id": "D89DD4F1-ADAC-4469-BF8D-B3FF41AE7963"
- },
- {
- "defKey": "RichText",
- "defName": "富文本输入",
- "id": "C134EB1F-4CFF-49E0-882F-2C6FB275CB20"
- }
- ],
- "headers": [
- {
- "refKey": "defKey",
- "hideInGraph": false,
- "value": "字段代码",
- "freeze": false
- },
- {
- "refKey": "defName",
- "hideInGraph": false,
- "value": "显示名称",
- "freeze": false
- },
- {
- "refKey": "primaryKey",
- "hideInGraph": false,
- "value": "主键",
- "freeze": false
- },
- {
- "refKey": "notNull",
- "hideInGraph": true,
- "value": "不为空",
- "freeze": false
- },
- {
- "refKey": "autoIncrement",
- "hideInGraph": true,
- "value": "自增",
- "freeze": false
- },
- {
- "refKey": "domain",
- "hideInGraph": true,
- "value": "数据域",
- "freeze": false
- },
- {
- "refKey": "type",
- "hideInGraph": false,
- "value": "数据类型",
- "freeze": false
- },
- {
- "refKey": "len",
- "hideInGraph": false,
- "value": "长度",
- "freeze": false
- },
- {
- "refKey": "scale",
- "hideInGraph": false,
- "value": "小数位数",
- "freeze": false
- },
- {
- "refKey": "comment",
- "hideInGraph": true,
- "value": "说明",
- "freeze": false
- },
- {
- "refKey": "refDict",
- "hideInGraph": true,
- "value": "数据字典",
- "freeze": false
- },
- {
- "refKey": "defaultValue",
- "hideInGraph": true,
- "value": "默认值",
- "freeze": false
- },
- {
- "refKey": "isStandard",
- "hideInGraph": false,
- "value": "标准字段",
- "enable": false,
- "freeze": false
- },
- {
- "refKey": "uiHint",
- "hideInGraph": true,
- "value": "UI建议",
- "enable": true,
- "freeze": false
- },
- {
- "refKey": "extProps",
- "hideInGraph": true,
- "value": "拓展属性",
- "enable": true,
- "freeze": false
- },
- {
- "refKey": "attr1",
- "value": "属性1",
- "hideInGraph": true,
- "enable": true,
- "freeze": false
- },
- {
- "refKey": "attr2",
- "value": "属性2",
- "hideInGraph": true,
- "enable": false,
- "freeze": false
- },
- {
- "refKey": "attr3",
- "value": "属性3",
- "hideInGraph": true,
- "enable": false,
- "freeze": false
- },
- {
- "refKey": "attr4",
- "value": "属性4",
- "hideInGraph": true,
- "enable": false,
- "freeze": false
- },
- {
- "refKey": "attr5",
- "value": "属性5",
- "hideInGraph": true,
- "enable": false,
- "freeze": false
- },
- {
- "refKey": "attr6",
- "value": "属性6",
- "hideInGraph": true,
- "enable": false,
- "freeze": false
- },
- {
- "refKey": "attr7",
- "value": "属性7",
- "hideInGraph": true,
- "enable": false,
- "freeze": false
- },
- {
- "refKey": "attr8",
- "value": "属性8",
- "hideInGraph": true,
- "enable": false,
- "freeze": false
- },
- {
- "refKey": "attr9",
- "value": "属性9",
- "hideInGraph": true,
- "enable": false,
- "freeze": false
- }
- ],
- "modelType": "modalGroup",
- "recentColors": [
- "#d148d1",
- "#ce4bce",
- "#831b83",
- "#dd31dd",
- "#da2fda",
- "#e988e9",
- "#000000",
- "#DDE5FF"
- ],
- "DDLToggleCase": "L",
- "menuWidth": "380px"
- },
- "entities": [
- {
- "id": "0E22E910-FDFF-48B0-8E61-DA2A03F6ACDB",
- "defKey": "MEMBER_ADDRESS",
- "defName": "用户位置",
- "comment": "",
- "properties": {},
- "fields": [
- {
- "defKey": "ID",
- "defName": "",
- "comment": "",
- "domain": "",
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": true,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "5BBE44C7-0576-4B66-817F-46F40B149C4B",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "USER_ID",
- "defName": "用户外键",
- "comment": "",
- "domain": "",
- "type": "BIGINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "528E5C44-E84F-4C5F-96D4-BC7CE14583C4",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "MOBILE",
- "defName": "手机号",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "9A5DF88B-BB6D-43E0-8EC0-FEB215F04632",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PROVINCE",
- "defName": "省",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "36C6F44B-E20F-4597-9084-578B9D6C1082",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "CITY",
- "defName": "市",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1B8C9B7D-5062-4446-9647-A4A0C7E18646",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "DISTRICT",
- "defName": "区",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "9911D342-FBDE-40C6-8964-8C933CB440DE",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ADDRESS",
- "defName": "地址",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "7AB87102-1195-4B9C-B014-ADA7BB3E05D0",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "REAL_ADDRESS",
- "defName": "地址详情",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "B77F2726-B586-4485-97FE-E57405B0EDB5",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ADCODE",
- "defName": "地区编码",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "FBE0F69E-E3C6-4FC5-AD2D-CDE1AD7F200C",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "LNG",
- "defName": "经度",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "C3FF1404-5EB3-4C58-A680-55E219A89240",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "LAT",
- "defName": "纬度",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "871DF66B-A36B-4375-8602-A8B3DAFDAEA7",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "STATUS",
- "defName": "状态",
- "comment": "",
- "domain": "",
- "type": "TINYINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "5D2C2AF2-4F20-4E36-A394-281A87D0CB29",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "DA23E26D-834D-46FC-88DF-9D91126C9D38",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- }
- ],
- "indexes": [],
- "type": "P",
- "sysProps": {
- "nameTemplate": "{defKey}[{defName}]"
- },
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": [],
- "notes": {}
- },
- {
- "id": "356D354D-B0E8-40E7-82BA-E964485C7A73",
- "defKey": "MEMBER_CONFIG",
- "defName": "",
- "comment": "",
- "properties": {},
- "fields": [
- {
- "defKey": "ID",
- "defName": "",
- "comment": "",
- "domain": "",
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": true,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "0EF62CCD-C781-41B3-B287-65179D38FF90",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "POINT_TRADE_DEDUCT_ENABLE",
- "defName": "是否开启积分抵扣",
- "comment": "",
- "domain": "",
- "type": "TINYINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "F2771852-4301-48A6-9911-AD4871E4B6BF",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "POINT_TRADE_DEDUCT_UNIT_PRICE",
- "defName": "积分抵扣(单位:分)",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "9DB8B123-43F6-4AFB-8342-B6161C0AACB4",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "POINT_TRADE_DEDUCT_MAX_PRICE",
- "defName": "积分抵扣最大值",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "3D30DA70-7E82-48ED-A762-FA2A68E9DF2D",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "POINT_TRADE_GIVE_POINT",
- "defName": "1 元赠送多少分",
- "comment": "",
- "domain": "",
- "type": "BIGINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "A115D104-13DC-417A-895E-C65A7D6936CB",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "CREATOR",
- "defName": "创建者",
- "comment": "",
- "domain": "",
- "type": "VARCHAR",
- "len": 64,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "9EBECF45-13BE-4231-9A15-D65C39D84034",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "UPDATER",
- "defName": "更新者",
- "comment": "",
- "domain": "",
- "type": "VARCHAR",
- "len": 64,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "A63F7886-2FE5-4EBE-A939-6514EB1D6F60",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "CREATED_AT",
- "defName": "",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "31BF26B9-567F-4BF0-B4A0-188324489522",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "UPDATED_AT",
- "defName": "",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "579FBED0-0C2D-4773-ADFB-8F74D36DD484",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "DELETED_AT",
- "defName": "",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "AFFCDAAC-D475-4673-B8FB-D8DBC31725B0",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- }
- ],
- "indexes": [],
- "type": "P",
- "sysProps": {
- "nameTemplate": "{defKey}[{defName}]"
- },
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": []
- },
- {
- "id": "163F1074-272D-4BB4-B28F-E63D314E5581",
- "defKey": "MEMBER_USER",
- "defName": "用户表",
- "comment": "",
- "properties": {},
- "fields": [
- {
- "defKey": "ID",
- "defName": "主键",
- "comment": "",
- "domain": "",
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": true,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "FEBE7751-8C69-4553-BBF9-2AC9A8CF2D10",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "MOBILE",
- "defName": "手机号",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "09CB3976-CFCE-48BA-9363-6AFDDCFC09FC",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PASSWORD",
- "defName": "密码",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "32EF5BEA-F994-4888-BCCC-4E67DE5C0B2E",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "NICKNAME",
- "defName": "昵称",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "6E33E65B-6134-4057-8969-8F42FF05F52F",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "AVATAR",
- "defName": "头像",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "DE31497A-12E7-4939-BA2C-315ABB0B5E44",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "SEX",
- "defName": "性别",
- "comment": "",
- "type": "TINYINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "1",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "22DD4FDA-E59C-4B57-8308-C850E654517D",
- "baseType": ""
- },
- {
- "defKey": "TAGS",
- "defName": "标签",
- "comment": "主要客服使用",
- "domain": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "24C28F33-35E1-4579-89C0-2A30ED2AC80C",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "MARK",
- "defName": "备注",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "AEE299FB-9E7E-4354-8399-D8BAA6F65E4B",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "STATUS",
- "defName": "状态",
- "comment": "",
- "domain": "",
- "type": "TINYINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "5CFE1458-173D-4071-B556-2CF4A3EFDE90",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "8C3C5BBD-FCC6-402F-A104-463AD8D0D708",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- }
- ],
- "indexes": [],
- "type": "P",
- "sysProps": {
- "nameTemplate": "{defKey}[{defName}]"
- },
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": [],
- "notes": {}
- },
- {
- "id": "89235217-825A-473F-96A8-E8798445A0EA",
- "defKey": "COACH_USER",
- "defName": "技师",
- "comment": "todo list:\n1、欠缺审核his表",
- "properties": {},
- "fields": [
- {
- "defKey": "ID",
- "defName": "编号",
- "comment": "",
- "domain": "",
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": true,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1FA8A05F-CEDE-4BB5-A5C5-34DF0E37356D",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "USER_ID",
- "defName": "用户外键",
- "comment": "",
- "domain": "",
- "type": "BIGINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "51801BEC-6BA2-46B4-BE79-AA55971CFE67",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "NAME",
- "defName": "真实姓名",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "73C52C20-DCFC-4B4C-8C5D-CEC67A90EAFD",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "MOBILE",
- "defName": "手机号",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "AF31133B-84FF-4CB9-847E-5C79A50DF814",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "NICKNAME",
- "defName": "昵称",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "2824F2AB-A159-40FD-A0CD-3DDAD55A0CAE",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "AVATAR",
- "defName": "头像",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "A40CA2FA-F245-4F8A-8072-78944044D4FF",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "SEX",
- "defName": "性别",
- "comment": "",
- "domain": "",
- "type": "TINYINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "1",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "F9F73E2D-2CC9-4196-853E-9B1D92D0CAA8",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "BIRTHDAY",
- "defName": "出生日期",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "B616299D-C0CC-4E15-A9EC-B49A37609C17",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "WORK_TIME",
- "defName": "从业年份",
- "comment": "界面显示:从业时长,当前年份-从业年份",
- "domain": "",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "BBC5AF98-A492-48E2-A056-06FB1332731A",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "WORK_CITY",
- "defName": "意向城市",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "6DD9355D-715B-48C9-A472-88A0A9A499C0",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "introduce",
- "defName": "简介",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "65C02D48-5923-42D0-A8D8-BC7B385DBFB2",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ID_CODE",
- "defName": "身份证号",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "A4EC511C-58F2-4A8A-A4B6-BBABD811A785"
- },
- {
- "defKey": "ID_CARD_SHOU",
- "defName": "手持身份证",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "E3A9EA3B-09AE-491E-9E99-8CEC8CCFF111",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ID_CARD",
- "defName": "身份证正反面",
- "comment": "",
- "domain": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "50C910D0-0A21-45B6-AB7A-896D8826263A",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "WORK_IMG",
- "defName": "工作照",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "6A106B5E-DB84-4A1F-A28A-767B37169666",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
- },
- {
- "defKey": "WORK_IMG_THUMB",
- "defName": "工作照缩略图",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "EF032E2E-2461-4208-8050-CA5E811A22BD"
- },
- {
- "defKey": "SELF_IMG",
- "defName": "生活照",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "",
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "14EDC1CB-7E86-4860-AAAE-0C8F512A763F",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
- },
- {
- "defKey": "SELF_IMG_THUMB",
- "defName": "生活照缩略图",
- "comment": "",
- "domain": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "3E5A9541-7BC7-455B-AD84-51405258C4A6",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "LICENSE",
- "defName": "个体营业执照",
- "comment": "",
- "domain": "",
- "type": "TEXT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1F385150-B795-493B-8DB5-444FB6FC19F8",
- "baseType": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "health_cert",
- "defName": "健康证",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "CA80B47C-734F-434B-8944-619EE1FC6CE1"
- },
- {
- "defKey": "Qual_Cert",
- "defName": "从业资格证",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "F0FE065D-9371-483B-AFF7-813C8D3DECEF"
- },
- {
- "defKey": "ORDER_NUM",
- "defName": "虚拟订单量",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "942F29C2-2C42-4340-92B2-FBD4A4EA57C5",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "TAGS",
- "defName": "标签",
- "comment": "[手法、明星、新人]等,根据评论数据计算",
- "domain": "",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "F2013645-CD4C-44F8-9B89-73E1D298FE1D",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "STATUS_APPROVE",
- "defName": "认证状态",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "BDC62651-089D-4011-8694-93703CD7EE14",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "9284BE3D-40D1-4391-9A62-2C93BCA96CAA"
- },
- {
- "defKey": "STATUS_WORK",
- "defName": "工作状态",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "F9E7E9B5-5194-4AFF-97D2-4104DC18FAB9",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "67DE41C4-B7A0-4708-80E0-AD374C7DBE89"
- },
- {
- "defKey": "STATUS_AMOUNT",
- "defName": "账户状态",
- "comment": "",
- "domain": "",
- "type": "TINYINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "1",
- "hideInGraph": false,
- "refDict": "69393071-560F-4C68-B612-1C11FEFD4E3C",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1E136AD4-2114-40AA-B5DA-D23AB63EDC42",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "agreements",
- "defName": "合同",
- "comment": "[各种合同地址]",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "",
- "id": "DA2F0E4F-A35E-4CCB-8F49-A52A7888D141"
- }
- ],
- "indexes": [],
- "type": "P",
- "sysProps": {
- "nameTemplate": "{defKey}[{defName}]"
- },
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": [],
- "notes": {}
- },
- {
- "id": "0BB71B25-37DD-4BE2-B9C5-804995806979",
- "defKey": "SERVICE_ORDER",
- "defName": "",
- "comment": "",
- "properties": {},
- "fields": [
- {
- "defKey": "ID",
- "defName": "",
- "comment": "",
- "domain": "",
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": true,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "0A29DBA6-8113-4B03-86E6-109DD61C286D",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "USER_ID",
- "defName": "用户ID",
- "comment": "",
- "domain": "",
- "type": "BIGINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "ACC997C3-3EEF-4598-B6BA-251F410E185A",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ORDER_SN",
- "defName": "订单编号",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "733E9120-F3C3-4858-9DF7-354E321D4B74",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PAY_TYPE",
- "defName": "支付类型",
- "comment": "",
- "domain": "",
- "type": "TINYINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "815515CE-EA48-420A-959B-998AADBCA021",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "TRANSACTION_ID",
- "defName": "商户订单号",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "55C5098A-214C-458A-8257-501A4328A3DD",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PROJECT_ID",
- "defName": "项目ID",
- "comment": "",
- "domain": "",
- "type": "BIGINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "277C2CA3-81A4-423D-8C2B-B51A81E2CFE5",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "AREA_ID",
- "defName": "区域ID",
- "comment": "",
- "domain": "",
- "type": "BIGINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "830F0F32-8B9C-4A23-9180-86B2F6D6D0BB",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PROJECT_NAME",
- "defName": "项目名称",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "B3712D22-FDD9-4FFC-9FA2-1DC41A174398",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PROJECT_ICON",
- "defName": "项目图标",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "0718A900-A55B-4188-93FB-B9DF24967C74",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PAY_PRICE",
- "defName": "支付金额",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "A0E0F146-EF4E-4850-9693-E7CA3564F4E5",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "BALANCE_PRICE",
- "defName": "余额金额",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "FC0585EF-A16E-4301-A13D-AECA170060AF",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "DISCOUNT_PRICE",
- "defName": "折扣金额",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "B6BEA918-FFCD-4C60-BC65-666F54427218",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "COUPON_PRICE",
- "defName": "优惠金额",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "4537FCE2-09F2-42E5-B68E-E9B36CEEDB11",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "CAR_PRICE",
- "defName": "车费金额",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "8499A868-3E69-4D49-A0A3-C3C16FEADB05",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "MATERIAL_PRICE",
- "defName": "物料金额",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "A4B73E77-88C5-44C1-BF3F-D2CD19CF6FDB",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "SERVICE_PRICE",
- "defName": "服务金额",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "4BFB2FF4-37B3-4211-BCDD-B04863418B82",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "COACH_ID",
- "defName": "技师ID",
- "comment": "",
- "domain": "",
- "type": "BIGINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "005782A1-26FD-47F5-AB20-A43F46452FB3",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "START_TIME",
- "defName": "开始时间",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "D4260110-592F-433C-BFB3-306B33F2AAED",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "END_TIME",
- "defName": "结束时间",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "175C3388-7EFC-41EF-BAA8-6815E2A1B565",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "TIME_LONG",
- "defName": "服务时长",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "4B1F7598-4ACF-4E06-AD9B-232666A58FAC",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "TRUE_TIME_LONG",
- "defName": "真实服务时长",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "0A08CDFB-FDBD-4485-B54C-1F2BC859BC26",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PAYMENT_TIME",
- "defName": "入账时间",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "C723CE90-EFDF-4AC9-9B66-6C5E677A1281",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "REMARK",
- "defName": "备注",
- "comment": "",
- "domain": "",
- "type": "TEXT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1FF6A689-401B-417B-AEBF-FCFD66D51A44",
- "baseType": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PAY_TIME",
- "defName": "支付时间",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "80ECF055-6363-42E5-8745-009E4CE7A347",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "RECEIVING_TIME",
- "defName": "接单时间",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "48DCE7F1-2BC1-47DA-8D1E-B94488B6846D",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "DEPART_TIME",
- "defName": "出发时间",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "54DC58D3-78CC-45D5-9D34-E211DCFCC4D8",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ARRIVE_TIME",
- "defName": "到达时间",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "EFD7F0C3-C3B7-4F58-A4F9-FC0C7DD0CFFE",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "OVER_TIME",
- "defName": "撤离时间",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "2A79EA3F-A8AA-40E4-BA9E-5E84B5DB2944",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "REFUND_TIME",
- "defName": "退款时间",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1B23E57C-984C-49FD-8ECA-654587C80E86",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "REFUND_TEXT",
- "defName": "退款原因",
- "comment": "",
- "domain": "",
- "type": "TEXT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "E6459B70-FA70-4AD7-806B-57EB8B0D3729",
- "baseType": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "DISTANCE",
- "defName": "相隔距离",
- "comment": "",
- "domain": "",
- "type": "DECIMAL",
- "len": 10,
- "scale": 2,
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "9ED6C52C-4B77-4B55-A4FA-A1F333C93533",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "IS_SHOW",
- "defName": "展示订单",
- "comment": "",
- "domain": "",
- "type": "TINYINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "1",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "7BCF6778-B80D-4182-A472-22BA23A407DB",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "DEPART_LNG",
- "defName": "出发经度",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "A892A4B0-8231-48F9-853C-F0C0482ABB62",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "DEPART_LAT",
- "defName": "出发纬度",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "7922B249-3F34-40FA-BBA6-B5AD999875D2",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "DEPART_ADDRESS",
- "defName": "出发地址",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "9039FE16-2CC1-4BB1-A95A-BDFE8DB691B6",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ARRIVE_IMG",
- "defName": "到达图片",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "C371FD67-5FA4-48FF-88B6-929307E88157",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ARRIVE_LNG",
- "defName": "到达经度",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "2D846319-4760-4862-8D39-F70AC0B33B63",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ARRIVE_LAT",
- "defName": "到达纬度",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "E801A22F-99B3-4D3F-B7A4-BDF94F596B6B",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ARRIVE_ADDRESS",
- "defName": "到达地址",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "EA46A27F-0DF9-4CE1-AA7A-712F2CF77CE8",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ADDRESS",
- "defName": "目的地地址",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "4D303577-7283-49BF-8499-EA82E541419D",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "REAL_ADDRESS",
- "defName": "目的地真实地址",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1C5CB952-ECBA-45C3-85D1-1B5A43A10025",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ADDRESS_LNG",
- "defName": "目的地经度",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "90FE170B-F4E0-4343-856D-D35B52B3C234",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ADDRESS_LAT",
- "defName": "目的地纬度",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "DDC7A94B-D49A-4ED4-9BC8-28BAB48C3460",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "OVER_IMG",
- "defName": "撤离图片",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "0D70B566-A340-4D2D-AF53-64B802ACED52",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "OVER_LNG",
- "defName": "撤离经度",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "EAAFA76B-95C0-4228-BAA3-06DD753FF218",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "OVER_LAT",
- "defName": "撤离纬度",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "504183AD-2FA7-4E16-BF04-5316C85FC522",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "OVER_ADDRESS",
- "defName": "撤离地址",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "2873DBB5-44FB-47F4-A921-685FA64AD992",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "AGENT_COMMISSION_RATIO",
- "defName": "代理佣金比例",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "E22EAFAF-0635-4FF7-9FF7-23277D4D2B25",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "AGENT_COMMISSION_PRICE",
- "defName": "代理佣金金额",
- "comment": "",
- "domain": "",
- "type": "DECIMAL",
- "len": 10,
- "scale": 2,
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "56E27936-99DB-48CC-9A68-FE662F149F3E",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "COACH_COMMISSION_RATIO",
- "defName": "技师佣金比例",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "BD19EEFE-45D3-40A5-BEBC-550EB531ACAD",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "COACH_COMMISSION_PRICE",
- "defName": "技师佣金金额",
- "comment": "",
- "domain": "",
- "type": "DECIMAL",
- "len": 10,
- "scale": 2,
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "343DC4CB-6507-415D-86BD-FD147B551BE9",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "COMPANY_PRICE",
- "defName": "平台金额",
- "comment": "",
- "domain": "",
- "type": "DECIMAL",
- "len": 10,
- "scale": 2,
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "FC9B00D3-D4C5-4036-870F-47D44FEDB39A",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "RETAIL_PRICE",
- "defName": "分销金额",
- "comment": "",
- "domain": "",
- "type": "DECIMAL",
- "len": 10,
- "scale": 2,
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "21125577-08CA-42D4-8BDA-DC3EF55F866C",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "COUPON_ID",
- "defName": "优惠卷ID",
- "comment": "",
- "domain": "",
- "type": "BIGINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "5FF2303F-3FD5-4607-86CC-C62248133631",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "CHANNEL_ID",
- "defName": "渠道ID",
- "comment": "",
- "domain": "",
- "type": "BIGINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "C2C24DCC-98D4-45F6-B0F2-C83B7AB10149",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "CHANNEL_CATE_ID",
- "defName": "渠道ID",
- "comment": "",
- "domain": "",
- "type": "BIGINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "366E7AE8-ABE3-4082-84CD-8B15E1E1B837",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "EXTEND_ORDER",
- "defName": "加钟订单",
- "comment": "",
- "domain": "",
- "type": "TINYINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "E3669B02-E49A-4189-9A61-5B70C5ECC816",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "EXTEND_ORDER_ID",
- "defName": "加钟订单ID",
- "comment": "",
- "domain": "",
- "type": "TINYINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "F8F6C510-8003-4B37-B0AC-01CD4D062131",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "STORE_ID",
- "defName": "店铺ID",
- "comment": "",
- "domain": "",
- "type": "BIGINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "F1891C38-ECD7-4104-BAF6-A148968BEC48",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "TYPE",
- "defName": "订单类型",
- "comment": "",
- "domain": "",
- "type": "TINYINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "82B14131-EA45-4F8F-AD99-17A7D02293BD",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "STATUS",
- "defName": "订单状态 0:未支付 1:已支付(待接单) 2:已接单 3:已出发 4:已到达 5:开始服务(服务中) 6:服务结束 7:已撤离 8:已评价 9:取消订单(退款中) 10:已退款",
- "comment": "",
- "domain": "",
- "type": "TINYINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "4E8104E3-6A79-4775-B367-9F30CE95D90C",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "USER_DEL",
- "defName": "用户删除",
- "comment": "",
- "domain": "",
- "type": "TINYINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "35F31FD0-A395-46D5-BEAA-5EB1C869FE51",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "USER_END",
- "defName": "用户结束订单",
- "comment": "",
- "domain": "",
- "type": "TINYINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "0B9C6218-260D-4707-A147-CA3F8C243D21",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "CREATED_AT",
- "defName": "",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "A053C744-42EC-4DF9-B0C6-72B11DC60DE3",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "UPDATED_AT",
- "defName": "",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "03369748-C3E2-43D5-AE1A-323A6F6D909F",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- }
- ],
- "indexes": [],
- "type": "P",
- "sysProps": {
- "nameTemplate": "{defKey}[{defName}]"
- },
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": []
- },
- {
- "id": "6B94A1CA-9F5C-4B7E-8739-A4AD7E92EA54",
- "defKey": "SOCIAL_PROVIDERS",
- "defName": "社交登录表",
- "comment": "",
- "properties": {},
- "fields": [
- {
- "defKey": "ID",
- "defName": "",
- "comment": "",
- "domain": "",
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": true,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1EEC4ACD-9C10-4B8E-AA83-107B4EEBEFED",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "NAME",
- "defName": "",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "981AB45B-EDB1-4319-9DBF-94994A95C4C2",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "CLIENT_ID",
- "defName": "",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "D16ADFBE-EEC4-4846-A3CA-142710225ED9",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "CLIENT_SECRET",
- "defName": "",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "F70D0F4A-DABB-43EC-BA60-872AE60CE988",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "REDIRECT_URL",
- "defName": "",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "58B1A323-C079-4086-8545-2FEF54F7A4B6",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "IS_DEFAULT",
- "defName": "",
- "comment": "",
- "domain": "",
- "type": "BIT",
- "len": 1,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "2AF5B896-202C-41A5-A9C4-006FEBBA3FD1",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "MEMBER_USER_ID",
- "defName": "",
- "comment": "",
- "domain": "",
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "08FF20DC-2393-4709-B8F0-D17B9F45BAF5",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "CREATED_AT",
- "defName": "",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "7AB64A9E-35C5-4363-B920-E23522C791AB",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "UPDATED_AT",
- "defName": "",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "BA27EB58-569B-4146-B295-E61793C38611",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- }
- ],
- "indexes": [
- {
- "defKey": "name",
- "unique": true,
- "defName": null,
- "comment": "",
- "fields": [
- {
- "ascOrDesc": "A",
- "id": "788E811F-6036-425F-81A4-4A56A34D7F28",
- "fieldDefKey": "981AB45B-EDB1-4319-9DBF-94994A95C4C2"
- }
- ],
- "id": "6633CDD8-E7F7-4979-A298-3410891B727C"
- },
- {
- "defKey": "member_user_id",
- "unique": false,
- "defName": null,
- "comment": "",
- "fields": [
- {
- "ascOrDesc": "A",
- "id": "DAE99D03-790F-47FD-A3DA-06B7139190C1",
- "fieldDefKey": "08FF20DC-2393-4709-B8F0-D17B9F45BAF5"
- }
- ],
- "id": "13E33996-866A-4A3D-B310-EA589FE8EE4D"
- }
- ],
- "type": "P",
- "sysProps": {
- "nameTemplate": "{defKey}[{defName}]"
- },
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": [],
- "notes": {}
- },
- {
- "id": "1E811525-8696-4E1D-AAB4-1FE20CE546A4",
- "defKey": "COACH_CONFIG",
- "headers": [
- {
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "refKey": "defKey",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "defName",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "primaryKey",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "notNull",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "autoIncrement",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "domain",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "type",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "len",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "scale",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "comment",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "refDict",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "defaultValue",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "isStandard",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "uiHint",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "extProps",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr1",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr2",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr3",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr4",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr5",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr6",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr7",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr8",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr9",
- "freeze": false,
- "hideInGraph": true
- }
- ],
- "fields": [
- {
- "defKey": "id",
- "defName": "编号",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "394E95E0-AF07-4C84-899E-06F0F0FF52E1"
- },
- {
- "defKey": "coach_id",
- "defName": "技师外键",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "141C114B-571E-416F-97DB-F79FF8A8B2E0"
- },
- {
- "defKey": "label",
- "defName": "项",
- "comment": "开启后下面的设置才可以用",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "81450F38-938F-4B02-9FAE-3FC6EC8AA6C9",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
- },
- {
- "defKey": "value",
- "defName": "值",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "9DFEFC2A-AE76-4200-9C6D-9E1D34E14C62",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
- },
- {
- "defKey": "sort_kw",
- "defName": "顺序",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "89AE42B6-A85E-42DE-A930-F80FD2BDECE3"
- }
- ],
- "properties": {
- "partitioned by": "(date string)",
- "row format delimited": "",
- "fields terminated by ','": "",
- "collection items terminated by '-'": "",
- "map keys terminated by ':'": "",
- "store as textfile;": ""
- },
- "type": "P",
- "correlations": [],
- "defName": "技师设置",
- "notes": {}
- },
- {
- "id": "B18001A9-10A6-45AF-8601-D2A38A60D8A0",
- "defKey": "COACH_USER_APPROVE_HIS",
- "defName": "技师认证记录",
- "comment": "todo list:\n1、欠缺审核his表",
- "properties": {},
- "fields": [
- {
- "defKey": "ID",
- "defName": "编号",
- "comment": "",
- "domain": "",
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": true,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1FA8A05F-CEDE-4BB5-A5C5-34DF0E37356D",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "USER_ID",
- "defName": "用户外键",
- "comment": "",
- "domain": "",
- "type": "BIGINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "51801BEC-6BA2-46B4-BE79-AA55971CFE67",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "NAME",
- "defName": "真实姓名",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "73C52C20-DCFC-4B4C-8C5D-CEC67A90EAFD",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "MOBILE",
- "defName": "手机号",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "AF31133B-84FF-4CB9-847E-5C79A50DF814",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "NICKNAME",
- "defName": "昵称",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "2824F2AB-A159-40FD-A0CD-3DDAD55A0CAE",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "AVATAR",
- "defName": "头像",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "A40CA2FA-F245-4F8A-8072-78944044D4FF",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "SEX",
- "defName": "性别",
- "comment": "",
- "domain": "",
- "type": "TINYINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "1",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "F9F73E2D-2CC9-4196-853E-9B1D92D0CAA8",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "BIRTHDAY",
- "defName": "出生日期",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "B616299D-C0CC-4E15-A9EC-B49A37609C17",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "WORK_TIME",
- "defName": "从业年份",
- "comment": "界面显示:从业时长,当前年份-从业年份",
- "domain": "",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "BBC5AF98-A492-48E2-A056-06FB1332731A",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "WORK_CITY",
- "defName": "意向城市",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "6DD9355D-715B-48C9-A472-88A0A9A499C0",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "introduce",
- "defName": "简介",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "65C02D48-5923-42D0-A8D8-BC7B385DBFB2",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ID_CODE",
- "defName": "身份证号",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "A4EC511C-58F2-4A8A-A4B6-BBABD811A785"
- },
- {
- "defKey": "ID_CARD_SHOU",
- "defName": "手持身份证",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "E3A9EA3B-09AE-491E-9E99-8CEC8CCFF111",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ID_CARD",
- "defName": "身份证正反面",
- "comment": "",
- "domain": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "50C910D0-0A21-45B6-AB7A-896D8826263A",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "WORK_IMG",
- "defName": "工作照",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "6A106B5E-DB84-4A1F-A28A-767B37169666",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
- },
- {
- "defKey": "WORK_IMG_THUMB",
- "defName": "工作照缩略图",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "EF032E2E-2461-4208-8050-CA5E811A22BD"
- },
- {
- "defKey": "SELF_IMG",
- "defName": "生活照",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "",
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "14EDC1CB-7E86-4860-AAAE-0C8F512A763F",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
- },
- {
- "defKey": "SELF_IMG_THUMB",
- "defName": "生活照缩略图",
- "comment": "",
- "domain": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "3E5A9541-7BC7-455B-AD84-51405258C4A6",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "LICENSE",
- "defName": "个体营业执照",
- "comment": "",
- "domain": "",
- "type": "TEXT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1F385150-B795-493B-8DB5-444FB6FC19F8",
- "baseType": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "health_cert",
- "defName": "健康证",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "CA80B47C-734F-434B-8944-619EE1FC6CE1"
- },
- {
- "defKey": "Qual_Cert",
- "defName": "从业资格证",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "F0FE065D-9371-483B-AFF7-813C8D3DECEF"
- },
- {
- "defKey": "ORDER_NUM",
- "defName": "虚拟订单量",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "942F29C2-2C42-4340-92B2-FBD4A4EA57C5",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "TAGS",
- "defName": "标签",
- "comment": "[手法、明星、新人]等,根据评论数据计算",
- "domain": "",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "F2013645-CD4C-44F8-9B89-73E1D298FE1D",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "STATUS_APPROVE",
- "defName": "认证状态",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "BDC62651-089D-4011-8694-93703CD7EE14",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "9284BE3D-40D1-4391-9A62-2C93BCA96CAA"
- },
- {
- "defKey": "STATUS_WORK",
- "defName": "工作状态",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "F9E7E9B5-5194-4AFF-97D2-4104DC18FAB9",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "67DE41C4-B7A0-4708-80E0-AD374C7DBE89"
- },
- {
- "defKey": "STATUS_AMOUNT",
- "defName": "账户状态",
- "comment": "",
- "domain": "",
- "type": "TINYINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "1",
- "hideInGraph": false,
- "refDict": "69393071-560F-4C68-B612-1C11FEFD4E3C",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1E136AD4-2114-40AA-B5DA-D23AB63EDC42",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "agreements",
- "defName": "合同",
- "comment": "[各种合同地址]",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "",
- "id": "DA2F0E4F-A35E-4CCB-8F49-A52A7888D141"
- },
- {
- "defKey": "approver",
- "defName": "审核人",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "FDD1E609-EABD-4D74-91D5-7F69A618CD0E"
- },
- {
- "defKey": "approve_time",
- "defName": "审核时间",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "C70DADCB-0AE9-401C-928A-7FB11F44B6C8"
- },
- {
- "defKey": "approve_note",
- "defName": "审核回执",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "793B22B2-5B0A-4482-B7CA-EAB94F283A11"
- }
- ],
- "indexes": [],
- "type": "P",
- "sysProps": {
- "nameTemplate": "{defKey}[{defName}]"
- },
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": [],
- "notes": {}
- },
- {
- "id": "5A15F1DD-29CF-4AA9-81AD-BB8C875BC76D",
- "defKey": "SERVICE_CATEGORY",
- "defName": "服务分类",
- "comment": "",
- "properties": {},
- "fields": [
- {
- "defKey": "ID",
- "defName": "编号",
- "comment": "",
- "domain": null,
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": true,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "98C4796D-5DFE-4B0F-971B-135ACF9F5370",
- "baseType": null,
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "TITLE",
- "defName": "分类名称",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "D55C58B6-C29E-40BB-8FDD-5CBB2381DDE0",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "COVER",
- "defName": "封面图",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "45B94CC2-B63C-4B87-A00D-B69A0F975E76",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "SORT",
- "defName": "排序",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "'0'",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "D82F3908-A205-4E99-8D0B-277740D20D23",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "STATUS",
- "defName": "状态",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "2D1F9E98-0FD6-42F4-94FA-4956F448D4A7",
- "uiHint": null
- }
- ],
- "indexes": [],
- "type": "P",
- "sysProps": {
- "nameTemplate": "{defKey}[{defName}]"
- },
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": [],
- "notes": {}
- },
- {
- "id": "464BC16A-1A71-48AF-B7CC-CF4B316994B0",
- "defKey": "SERVICE_PROJECT",
- "defName": "服务项目",
- "comment": "",
- "properties": {},
- "fields": [
- {
- "defKey": "ID",
- "defName": "编号",
- "comment": "",
- "domain": null,
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": true,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "68C9F705-75F4-4C70-A6CF-1E9889278C32",
- "baseType": null,
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "CATEGORY_ID",
- "defName": "分类外键",
- "comment": "",
- "domain": null,
- "type": "BIGINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1E768608-A3B1-49D4-94DD-3A5969CC48A1",
- "baseType": null,
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "TITLE",
- "defName": "标题",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "5BF87800-DF42-41B9-85A9-A32EBCE6EE7E",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "SUB_TITLE",
- "defName": "副标题",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1088DE45-DCD8-476A-B1FA-46E9AABBAB41",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "IMG_COVER",
- "defName": "封面",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "EC7D80D0-0DD4-4BB3-AE59-5C68B95A0F7B",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PRICE",
- "defName": "价格",
- "comment": "",
- "domain": null,
- "type": "DOUBLE",
- "len": 22,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "FA06D097-C87B-4CDC-B742-5CA49936637C",
- "baseType": null,
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "INIT_PRICE",
- "defName": "原价",
- "comment": "",
- "domain": null,
- "type": "DOUBLE",
- "len": 22,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "8B644636-28A9-4E19-B66F-E92642074092",
- "baseType": null,
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "SALE",
- "defName": "虚拟销量",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "03D09A59-9E54-4F55-8124-40DAC849C185",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "TRUE_SALE",
- "defName": "实际销量",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "B212790D-B11E-4E37-873B-39B98DAACDA4",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "TIME_LONG",
- "defName": "服务时长",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "C863EB94-CBD1-46EA-B635-994290E6C8BB",
- "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "INTRODUCE",
- "defName": "介绍",
- "comment": "",
- "domain": null,
- "type": "TEXT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "78BB648E-3984-476D-95E6-7DE50B18805E",
- "baseType": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "EXPLAIN",
- "defName": "禁忌说明",
- "comment": "",
- "domain": null,
- "type": "TEXT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "834E7AE2-2DCE-4E1B-96B2-3ACBA1C0872C",
- "baseType": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "SORT_KW",
- "defName": "排序",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "'0'",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "0281EF20-07ED-428D-9EBD-82B72FBE2971",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "COM_BALANCE",
- "defName": "技师默认分佣比例",
- "comment": "",
- "domain": null,
- "type": "TINYINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "FD159B10-0FD9-4B07-9C34-A927D2D9E473",
- "baseType": null,
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "featureS",
- "defName": "服务特性",
- "comment": "[加钟、到店、上门]",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": null,
- "id": "BAD852D3-B3A7-450B-96BB-4794374E0160",
- "uiHint": null
- },
- {
- "defKey": "STATUS",
- "defName": "状态",
- "comment": "",
- "domain": null,
- "type": "TINYINT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": null,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "0971CE63-F3F7-495E-B795-CC51437AFDFF",
- "baseType": null,
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- }
- ],
- "indexes": [],
- "type": "P",
- "sysProps": {
- "nameTemplate": "{defKey}[{defName}]"
- },
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": [],
- "notes": {}
- },
- {
- "id": "C401B2CE-9BDB-4D59-BE8A-B22534BD3E68",
- "defKey": "SERVICE_PROJECT_COACH_CONFIG",
- "headers": [
- {
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "refKey": "defKey",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "defName",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "primaryKey",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "notNull",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "autoIncrement",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "domain",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "type",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "len",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "scale",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "comment",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "refDict",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "defaultValue",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "isStandard",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "uiHint",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "extProps",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr1",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr2",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr3",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr4",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr5",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr6",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr7",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr8",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr9",
- "freeze": false,
- "hideInGraph": true
- }
- ],
- "fields": [
- {
- "defKey": "id",
- "defName": "编号",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "0E7698B0-94EC-48BB-8158-538C7EDF4190",
- "uiHint": null
- },
- {
- "defKey": "project_id",
- "defName": "服务项目外键",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "88DBC0E7-30EE-491C-82E0-BC606B810DAC",
- "uiHint": null
- },
- {
- "defKey": "coach_id",
- "defName": "技师外键",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "58ECE99E-198A-439C-BD94-DA5555EDA284"
- },
- {
- "defKey": "label",
- "defName": "项",
- "comment": "开启后下面的设置才可以用",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "5AD12477-4C1E-420D-A0C7-DF29390F0373",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "uiHint": null
- },
- {
- "defKey": "value",
- "defName": "值",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "34969141-1042-48A3-9ADD-A182F6A30EF9",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "uiHint": null
- },
- {
- "defKey": "sort_kw",
- "defName": "顺序",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "E9EF86D5-8BFF-49F6-A800-3B8C22C56CFC",
- "uiHint": null
- }
- ],
- "properties": {
- "partitioned by": "(date string)",
- "row format delimited": "",
- "fields terminated by ','": "",
- "collection items terminated by '-'": "",
- "map keys terminated by ':'": "",
- "store as textfile;": ""
- },
- "type": "P",
- "correlations": [],
- "defName": "技师设置",
- "notes": {},
- "indexes": [],
- "sysProps": {},
- "comment": "todo list:\n1、如果project_id为null,则是技师全局设置\n2、如果coach_id为null,tenant_id不为null,则是代理商、店铺、业务员项目的设置\n"
- },
- {
- "id": "6361C898-7C2E-40E1-80E0-5F74895AD476",
- "defKey": "SERVICE_PROJECT_CONFIG",
- "headers": [
- {
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "refKey": "defKey",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "defName",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "primaryKey",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "notNull",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "autoIncrement",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "domain",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "type",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "len",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "scale",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "comment",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "refDict",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "defaultValue",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "isStandard",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "uiHint",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "extProps",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr1",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr2",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr3",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr4",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr5",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr6",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr7",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr8",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr9",
- "freeze": false,
- "hideInGraph": true
- }
- ],
- "fields": [
- {
- "defKey": "id",
- "defName": "编号",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "AD9ED98B-50B9-4673-8A5E-B0250342C18F",
- "uiHint": null
- },
- {
- "defKey": "project_id",
- "defName": "服务项目外键",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "A360ED63-2132-48E6-8660-901C42CFC454",
- "uiHint": null
- },
- {
- "defKey": "label",
- "defName": "项",
- "comment": "开启后下面的设置才可以用",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "81C84C53-5996-4E6F-B4F2-56B5A47DBB84",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "uiHint": null
- },
- {
- "defKey": "value",
- "defName": "值",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "C777E1EA-34D3-4C24-B037-361F8D49D568",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "uiHint": null
- },
- {
- "defKey": "sort_kw",
- "defName": "顺序",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "838367AB-BF15-422D-A5FE-EB58AFD5BEA1",
- "uiHint": null
- }
- ],
- "properties": {
- "partitioned by": "(date string)",
- "row format delimited": "",
- "fields terminated by ','": "",
- "collection items terminated by '-'": "",
- "map keys terminated by ':'": "",
- "store as textfile;": ""
- },
- "type": "P",
- "correlations": [],
- "defName": "技师设置",
- "notes": {},
- "indexes": [],
- "sysProps": {}
- },
- {
- "id": "F5D5A1F0-45DA-454E-A0C1-3422F5085850",
- "defKey": "ORDER_PROFITS",
- "defName": "订单分润表",
- "comment": "",
- "properties": {},
- "fields": [
- {
- "defKey": "ORDER_PROFIT_ID",
- "defName": "订单分润编号",
- "comment": "",
- "domain": "",
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": true,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "450A3CC4-927E-4BA7-A39A-BC4363B86EFB",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ORDER_ID",
- "defName": "订单编号",
- "comment": "",
- "domain": "",
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "104CFFB6-15AB-44D8-ABBB-38CFF9439342",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ACCOUNT_ID",
- "defName": "账户编号",
- "comment": "",
- "domain": "",
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "23EFBE2A-7C7E-414F-80C8-4ED4908855F3",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ACCOUNT_TYPE",
- "defName": "账户类型",
- "comment": "(用户、技师、平台、代理)",
- "domain": "",
- "type": "VARCHAR",
- "len": 50,
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "DA9BDFE3-50A8-4DA5-AAAE-BB42E5549C8E",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PROFIT_TYPE",
- "defName": "裂变层级",
- "comment": "(1、2)",
- "domain": "",
- "type": "VARCHAR",
- "len": 50,
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "8C39177B-EF96-4805-8AF4-6C2766D9B734",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PARTICIPATION_AMOUNT",
- "defName": "参与分润金额",
- "comment": "有可能 是 订单金额(去掉优惠、路费),有可能是剩余利润",
- "domain": "",
- "type": "DECIMAL",
- "len": 10,
- "scale": 2,
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "370F1614-EF31-4123-9DBE-6D84ECDCFC2E",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PROFIT_RATIO",
- "defName": "分润比例",
- "comment": "",
- "domain": "",
- "type": "DECIMAL",
- "len": 5,
- "scale": 2,
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "AEBD8D11-0827-45FF-91EC-5E44CC1D211F",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PROFIT_AMOUNT",
- "defName": "分润金额",
- "comment": "",
- "domain": "",
- "type": "DECIMAL",
- "len": 10,
- "scale": 2,
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "53B5E08B-FD07-4991-8884-64491B3AD96A",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PROFIT_TIME",
- "defName": "分润时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "8603863D-B20A-4FBE-A358-44946920DEAE",
- "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "sdf",
- "defName": "第三方支付接口相关信息记录",
- "comment": "todo:可备查、可追溯??",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "AAF10059-E921-4C0E-B9B7-7BDFB9FE7AEF"
- }
- ],
- "indexes": [
- {
- "defKey": "order_id",
- "unique": false,
- "defName": null,
- "comment": "",
- "fields": [
- {
- "ascOrDesc": "A",
- "id": "CB93ECB8-74F4-4887-8601-BDCF82CFFC49",
- "fieldDefKey": "104CFFB6-15AB-44D8-ABBB-38CFF9439342"
- }
- ],
- "id": "0EA61AB1-9940-48B2-BE7C-85E251CBD23E"
- }
- ],
- "type": "P",
- "sysProps": {
- "nameTemplate": "{defKey}[{defName}]"
- },
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": [],
- "notes": {}
- },
- {
- "id": "CC9B3822-EA7F-4A47-B07E-5AC16AFCB1C0",
- "defKey": "ORDER_SERVICES",
- "defName": "订单服务表",
- "comment": "",
- "properties": {},
- "fields": [
- {
- "defKey": "ORDER_SERVICE_ID",
- "defName": "订单服务编号",
- "comment": "",
- "domain": "",
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": true,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "F6E87C79-92B4-404F-9A9A-9E6FDFD11C3A",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ORDER_ID",
- "defName": "订单编号",
- "comment": "",
- "domain": "",
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "0E120DF7-1A43-4221-98E0-547B4A38D3C5",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "TECHNICIAN_ID",
- "defName": "技师编号",
- "comment": "",
- "domain": "",
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "FCC00FFD-73EB-422C-AC3B-3C06FBB99E86",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "SERVICE_STATUS",
- "defName": "订单状态(创建、接单、出发、到达、开始服务、服务结束、撤离)",
- "comment": "",
- "domain": "",
- "type": "VARCHAR",
- "len": 50,
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "7EA85A5E-0F72-40BB-99F7-B9CB97C1B19D",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "LATITUDE",
- "defName": "纬度",
- "comment": "",
- "domain": "",
- "type": "DECIMAL",
- "len": 9,
- "scale": 6,
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "702AB1B8-138A-4EC0-83D4-DE558A072E4E",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "LONGITUDE",
- "defName": "经度",
- "comment": "",
- "domain": "",
- "type": "DECIMAL",
- "len": 9,
- "scale": 6,
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "167B0D80-B42B-49F8-B332-57FEFAB75190",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ADDRESS",
- "defName": "地址",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "852297A6-5D0C-4700-B3C2-F30832A82B4F",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "IMAGE_PATH",
- "defName": "图片路径",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "B245D4EE-B080-4817-A070-9FEC25691199",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "CREATED_AT",
- "defName": "创建时间",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "A5AD5C31-CDFC-4272-BBE4-17BAFC6CBC5E",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "UPDATED_AT",
- "defName": "更新时间",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "BE0ECF77-B586-4660-8D30-218CA88A53D6",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- }
- ],
- "indexes": [
- {
- "defKey": "order_id",
- "unique": false,
- "defName": null,
- "comment": "",
- "fields": [
- {
- "ascOrDesc": "A",
- "id": "AE7CA208-9A37-47E4-B06A-5086D4BF9CA8",
- "fieldDefKey": "0E120DF7-1A43-4221-98E0-547B4A38D3C5"
- }
- ],
- "id": "372E9705-93D3-4249-85FB-AD24FEE513E3"
- }
- ],
- "type": "P",
- "sysProps": {
- "nameTemplate": "{defKey}[{defName}]"
- },
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": []
- },
- {
- "id": "8D568399-31F1-42C1-A7D1-73C51EE97315",
- "defKey": "ORDERS",
- "defName": "订单表",
- "comment": "",
- "properties": {},
- "fields": [
- {
- "defKey": "ID",
- "defName": "订单编号",
- "comment": "",
- "domain": "",
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": true,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "2CCF42CA-BBF7-4B7D-A6D0-2DAADF9FAD8E",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "MEMBER_ID",
- "defName": "会员编号",
- "comment": "",
- "domain": "",
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "8AB78C37-A009-452F-AD24-03D5928C5917",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "TECHNICIAN_ID",
- "defName": "技师编号",
- "comment": "",
- "domain": "",
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "C6B71FEA-39C4-4D46-BAE2-A1C28AEDF765",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "TYPE",
- "defName": "订单类型",
- "comment": "",
- "domain": "",
- "type": "VARCHAR",
- "len": 50,
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "10244888-A354-455C-A103-6132272ACF93",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PROJECT_AMOUNT",
- "defName": "项目费用(服务费)",
- "comment": "",
- "domain": "",
- "type": "DECIMAL",
- "len": 10,
- "scale": 2,
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "731B0C84-CB87-4EB5-AD75-FE65A5895680",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "TRAVEL_AMOUNT",
- "defName": "车费",
- "comment": "",
- "domain": "",
- "type": "DECIMAL",
- "len": 10,
- "scale": 2,
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "2411FA2E-720F-4A39-A9FC-5F7B19FED045",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "TIP_AMOUNT",
- "defName": "打赏金额",
- "comment": "",
- "domain": "",
- "type": "DECIMAL",
- "len": 10,
- "scale": 2,
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "86E6FA23-A291-42CC-B327-1505A8C1A9D7",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "DISCOUNT_AMOUNT",
- "defName": "优惠金额",
- "comment": "",
- "domain": "",
- "type": "DECIMAL",
- "len": 10,
- "scale": 2,
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "740DDC20-E920-4790-9CD9-403E96375533",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "AMOUNT",
- "defName": "订单金额(车费+服务费+打赏金额-优惠金额)",
- "comment": "",
- "domain": "",
- "type": "DECIMAL",
- "len": 10,
- "scale": 2,
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "4A36C01B-B456-4AFD-AEBB-5F10268BA4E0",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PAYMENT_AMOUNT",
- "defName": "支付金额",
- "comment": "",
- "domain": "",
- "type": "DECIMAL",
- "len": 10,
- "scale": 2,
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "6F42A868-42B8-4574-9835-29CA897E7328",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PAYMENT_BALANCE",
- "defName": "支付余额(余额抵扣金额)",
- "comment": "",
- "domain": "",
- "type": "DECIMAL",
- "len": 10,
- "scale": 2,
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "C93A639A-CD8F-4F32-B71A-5D699D96F960",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PROJECT_ID",
- "defName": "项目编号",
- "comment": "",
- "domain": "",
- "type": "BIGINT UNSIGNED",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "184C9E88-BD40-40AC-A2FC-E8199B3CA291",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "PROJECT_ICON",
- "defName": "项目(快照)",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "1AB7DD70-46A0-4838-9204-6BEB207FA953"
- },
- {
- "defKey": "PROJECT_TITLE",
- "defName": "项目标题(快照)",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "32BC8EEB-9D83-497B-83D6-D93044F52F4F"
- },
- {
- "defKey": "PROJECT_SUB_TITLE",
- "defName": "项目副标题(快照)",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "442CB3B2-7286-4D6E-9C7B-76A53F89EB65"
- },
- {
- "defKey": "PROJECT_DURATION",
- "defName": "项目时长(快照)",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "756F25A4-F6C1-45DD-B5AF-A78D34BD7AD3"
- },
- {
- "defKey": "APPT_TIME",
- "defName": "订单时间(预约时间)",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "DA050222-ED5C-42B3-BE8B-B3BFDF846EA6",
- "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "LATITUDE",
- "defName": "订单纬度",
- "comment": "",
- "domain": "",
- "type": "DECIMAL",
- "len": 9,
- "scale": 6,
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1081C700-D3CC-4DE6-93FE-DF2DE157ED48",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "LONGITUDE",
- "defName": "订单经度",
- "comment": "",
- "domain": "",
- "type": "DECIMAL",
- "len": 9,
- "scale": 6,
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "FD9182A9-B1F2-4868-9B38-606C9983E3B3",
- "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ADDRESS",
- "defName": "订单地址(地图地址)",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "0C2C6561-FBD3-4349-AFEE-83EF661540E0",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "ADDRESS_INFO",
- "defName": "订单地址详情(用户输入)",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "542E5A3C-BB68-43CB-AD02-D7A8ADA4FD2E"
- },
- {
- "defKey": "ADDRESS_CODE",
- "defName": "订单地址编码",
- "comment": "",
- "domain": "",
- "type": "VARCHAR",
- "len": 50,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "B2324CE6-78D9-4423-AA5A-FD7E1B0A1A82",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "REMARK",
- "defName": "订单备注",
- "comment": "",
- "domain": "",
- "type": "TEXT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "C59A99C6-AD67-4512-8F9A-CE9ED4F3D997",
- "baseType": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "STATUS",
- "defName": "订单状态",
- "comment": "",
- "domain": "",
- "type": "VARCHAR",
- "len": 50,
- "scale": "",
- "primaryKey": false,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "94CDDE6B-425D-4589-B28C-67446C6571A5",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "CREATED_AT",
- "defName": "创建时间",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "91152853-A41C-4533-85C0-F1370701A3D6",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "UPDATED_AT",
- "defName": "更新时间",
- "comment": "",
- "domain": "",
- "type": "TIMESTAMP",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "C6039710-2154-4968-9E1D-803146C6B318",
- "baseType": "",
- "extProps": {},
- "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- }
- ],
- "indexes": [],
- "type": "P",
- "sysProps": {
- "nameTemplate": "{defKey}[{defName}]"
- },
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": [],
- "notes": {}
- },
- {
- "id": "4C9221AA-4A5B-4D11-B8F3-DE353A5DAFBB",
- "env": {
- "base": {
- "nameSpace": "",
- "codeRoot": ""
- }
- },
- "defKey": "ACCOUNNT_WALLET",
- "defName": "钱包",
- "comment": "",
- "properties": {
- "partitioned by": "(date string)",
- "row format delimited": "",
- "fields terminated by ','": "",
- "collection items terminated by '-'": "",
- "map keys terminated by ':'": "",
- "store as textfile;": ""
- },
- "sysProps": {
- "nameTemplate": "{defKey}[{defName}]"
- },
- "notes": {},
- "headers": [
- {
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "refKey": "defKey",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "defName",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "primaryKey",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "notNull",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "autoIncrement",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "domain",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "type",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "len",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "scale",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "comment",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "refDict",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "defaultValue",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "isStandard",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "uiHint",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "extProps",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr1",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr2",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr3",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr4",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr5",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr6",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr7",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr8",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr9",
- "freeze": false,
- "hideInGraph": true
- }
- ],
- "fields": [
- {
- "defKey": "ACCOUNT_ID",
- "defName": "账户编号",
- "comment": "object_id",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "C1712F3B-6FDA-42A0-95CE-AE19A9DF8C14"
- },
- {
- "defKey": "ACCOUNT_TYPE",
- "defName": "账户类型",
- "comment": "(用户、技师、代理、分销商)",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "7CE669F1-DAB7-48B4-AC9F-99A1E211F064"
- },
- {
- "defKey": "BALANCE_AMOUNT",
- "defName": "钱包总额",
- "comment": "可用+冻结(不能提现 )",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "D7455D10-CD5A-4906-A705-CDD80EEDA8AB"
- },
- {
- "defKey": "FROZEN_AMOUNT",
- "defName": "冻结金额",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "0D118A6E-C976-4DBD-9141-E3DA72F81796"
- },
- {
- "defKey": "STATUS",
- "defName": "状态",
- "comment": "正常、冻结",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "13DC8FD6-1DA5-4D58-8512-D2EAB1D66C29"
- }
- ],
- "correlations": [],
- "indexes": [],
- "type": "P"
- },
- {
- "id": "8B1A81C2-CED5-4ADC-AEA0-23E8F225AB56",
- "env": {
- "base": {
- "nameSpace": "",
- "codeRoot": ""
- }
- },
- "defKey": "ACCOUNNT_WALLET_1",
- "defName": "钱包收支明细",
- "comment": "",
- "properties": {
- "partitioned by": "(date string)",
- "row format delimited": "",
- "fields terminated by ','": "",
- "collection items terminated by '-'": "",
- "map keys terminated by ':'": "",
- "store as textfile;": ""
- },
- "sysProps": {
- "nameTemplate": "{defKey}[{defName}]"
- },
- "notes": {},
- "headers": [
- {
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "refKey": "defKey",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "defName",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "primaryKey",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "notNull",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "autoIncrement",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "domain",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "type",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "len",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "scale",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "comment",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "refDict",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "defaultValue",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "isStandard",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "uiHint",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "extProps",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr1",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr2",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr3",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr4",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr5",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr6",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr7",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr8",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr9",
- "freeze": false,
- "hideInGraph": true
- }
- ],
- "fields": [
- {
- "defKey": "123",
- "defName": "钱包ID",
- "comment": "(用户、技师、代理、分销商)",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "7CE669F1-DAB7-48B4-AC9F-99A1E211F064"
- },
- {
- "defKey": "PROFIT_ID",
- "defName": "分账编号",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "595418DD-FF99-40AD-BF1D-867A2081E002"
- },
- {
- "defKey": "TRANSACTION_TYPE",
- "defName": "交易类型(提现、消费、退款、分账)",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "3DC3D6E5-EA08-407F-9642-5D53F65DF896"
- },
- {
- "defKey": "TRANSACTION_ORDER_ID",
- "defName": "交易单号",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "CACB019B-6167-4D1C-A005-85E905D101EC"
- },
- {
- "defKey": "TRANSACTION_AMOUNT",
- "defName": "交易金额(分润金额、提现金额、消费金额、退款金额)",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "74148CA3-DDA4-4959-82DD-CE9E0637388E"
- },
- {
- "defKey": "BALANCE_AMOUNT",
- "defName": "钱包余额",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "D7455D10-CD5A-4906-A705-CDD80EEDA8AB"
- },
- {
- "defKey": "FROZEN_AMOUNT",
- "defName": "冻结金额",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "0D118A6E-C976-4DBD-9141-E3DA72F81796"
- },
- {
- "defKey": "REMARK",
- "defName": "备注",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "8DFDAC0F-820D-47AC-8139-7875A8951031"
- },
- {
- "defKey": "STATUS",
- "defName": "状态",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "13DC8FD6-1DA5-4D58-8512-D2EAB1D66C29"
- },
- {
- "defKey": "APPROVED_TIME",
- "defName": "通过时间(发放时间)",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "91CB7CDC-7583-4683-8A8F-589DF486E316"
- }
- ],
- "correlations": [],
- "indexes": [],
- "type": "P"
- }
- ],
- "views": [],
- "dicts": [
- {
- "defKey": "status_user",
- "defName": "用户状态",
- "sort": "",
- "intro": "",
- "id": "5CFE1458-173D-4071-B556-2CF4A3EFDE90",
- "items": [
- {
- "defKey": "0",
- "defName": "禁用",
- "sort": "0",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "227B130D-D2E8-4185-B31F-66AEE8ED39D9"
- },
- {
- "defKey": "1",
- "defName": "开启",
- "sort": "1",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "EE5E69DE-B8B7-4AC4-9C90-451E5D5D668F"
- }
- ]
- },
- {
- "defKey": "status_address",
- "defName": "地址状态",
- "sort": "",
- "intro": "",
- "id": "5D2C2AF2-4F20-4E36-A394-281A87D0CB29",
- "items": [
- {
- "defKey": "0",
- "defName": "关闭",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "0A02971F-609D-44E1-924C-7871D3E7DB0C"
- },
- {
- "defKey": "1",
- "defName": "启用",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "6C85471C-8A0F-4360-B4B2-15E0A70C3A9D"
- }
- ]
- },
- {
- "defKey": "STATUS_COACH_AMOUNT",
- "defName": "技师账户状态",
- "sort": "",
- "intro": "",
- "id": "69393071-560F-4C68-B612-1C11FEFD4E3C",
- "items": [
- {
- "defKey": "0",
- "defName": "禁用",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "A0FA494B-BDCA-4E8D-B568-843C04086886"
- },
- {
- "defKey": "1",
- "defName": "开启",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "B02C461F-58DD-40CE-B1FD-764999958559"
- }
- ]
- },
- {
- "defKey": "STATUS_COACH_WORK",
- "defName": "技师工作状态",
- "sort": "",
- "intro": "",
- "id": "F9E7E9B5-5194-4AFF-97D2-4104DC18FAB9",
- "items": [
- {
- "defKey": "1",
- "defName": "空闲",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "25147B08-FAE7-4781-B344-973649F01B79"
- },
- {
- "defKey": "2",
- "defName": "忙碌",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "6F897C86-FCE7-4E96-9BFC-43253BD4BC13"
- },
- {
- "defKey": "3",
- "defName": "休息",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "C24E16F1-C8B0-4E36-98AF-96A524352D6E"
- }
- ]
- },
- {
- "defKey": "STATUS_COACH_APPROVE",
- "defName": "技师审核状态",
- "sort": "",
- "intro": "",
- "id": "BDC62651-089D-4011-8694-93703CD7EE14",
- "items": [
- {
- "defKey": "1",
- "defName": "待审核",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "AD9B7444-EB74-4DC6-B95A-F5701D39DFCF"
- },
- {
- "defKey": "2",
- "defName": "审核通过",
- "sort": "",
- "parentKey": "",
- "intro": "待认证",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "F464666F-1A2E-48F3-B0BF-C918E5482EAA"
- },
- {
- "defKey": "3",
- "defName": "审核失败",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "8B6484BC-7A44-4F71-9774-D9B4FA1E07AF"
- },
- {
- "defKey": "4",
- "defName": "认证中",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "8212E4E8-AACF-4101-ADAF-472AC3F13D52"
- },
- {
- "defKey": "5",
- "defName": "认证通过",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "B8B68CE3-7F44-402D-AE54-BE9CAB0098E0"
- },
- {
- "defKey": "6",
- "defName": "认证失败",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "EF6B63A6-7070-438F-AC00-16B3F32E34FB"
- }
- ]
- },
- {
- "defKey": "type_form_control",
- "defName": "控件显示类型",
- "sort": "",
- "intro": "",
- "id": "67B9FBEA-7F1F-4748-8718-85E1D067C334",
- "items": [
- {
- "defKey": "1",
- "defName": "input",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "C43F7802-16AF-4473-9202-6F7F2F78B37C"
- },
- {
- "defKey": "2",
- "defName": "radio",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "0536854E-BFE2-4DC2-84C1-E07191AAB52F"
- },
- {
- "defKey": "3",
- "defName": "select",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "4942ED29-60F3-4F19-ABFB-DB6C06EC5A1E"
- },
- {
- "defKey": "4",
- "defName": "range",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "9E4DA1E5-3D7A-4CFC-AE9B-C3A88B7A4146"
- },
- {
- "defKey": "5",
- "defName": "textarea",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "78685A0A-3461-4027-B9FC-61833B9F40B8"
- },
- {
- "defKey": "6",
- "defName": "number",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "05CF8D70-B31A-4B8D-97E6-7CD6E64FADD4"
- }
- ]
- },
- {
- "defKey": "status_take",
- "defName": "接单状态",
- "sort": "",
- "intro": "",
- "id": "41AB9A85-948F-4E1A-9E45-E8D0A13D5D80",
- "items": [
- {
- "defKey": "0",
- "defName": "关闭",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "002187BD-F389-423E-A269-5953DEBFAA3D"
- },
- {
- "defKey": "1",
- "defName": "开启",
- "sort": "",
- "parentKey": "",
- "intro": "",
- "enabled": true,
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "id": "6E7C4C40-C3E5-4672-B05D-8199EFECE055"
- }
- ]
- }
- ],
- "viewGroups": [
- {
- "defKey": "member",
- "defName": "会员",
- "refEntities": [
- "0E22E910-FDFF-48B0-8E61-DA2A03F6ACDB",
- "356D354D-B0E8-40E7-82BA-E964485C7A73",
- "163F1074-272D-4BB4-B28F-E63D314E5581",
- "6B94A1CA-9F5C-4B7E-8739-A4AD7E92EA54"
- ],
- "refViews": [],
- "refDiagrams": [
- "24296392-1C3A-401D-A4D2-DAB283542537"
- ],
- "refDicts": [
- "5CFE1458-173D-4071-B556-2CF4A3EFDE90",
- "5D2C2AF2-4F20-4E36-A394-281A87D0CB29"
- ],
- "id": "88DAC9D9-0A45-43E7-B2BE-018A7969B405",
- "refLogicEntities": []
- },
- {
- "defKey": "coach",
- "defName": "技师",
- "refEntities": [
- "89235217-825A-473F-96A8-E8798445A0EA",
- "1E811525-8696-4E1D-AAB4-1FE20CE546A4",
- "B18001A9-10A6-45AF-8601-D2A38A60D8A0",
- "5A15F1DD-29CF-4AA9-81AD-BB8C875BC76D",
- "464BC16A-1A71-48AF-B7CC-CF4B316994B0",
- "C401B2CE-9BDB-4D59-BE8A-B22534BD3E68",
- "6361C898-7C2E-40E1-80E0-5F74895AD476"
- ],
- "refViews": [],
- "refDiagrams": [
- "B818C969-B522-41DE-8671-5B92073C0805"
- ],
- "refDicts": [
- "69393071-560F-4C68-B612-1C11FEFD4E3C",
- "F9E7E9B5-5194-4AFF-97D2-4104DC18FAB9",
- "BDC62651-089D-4011-8694-93703CD7EE14",
- "67B9FBEA-7F1F-4748-8718-85E1D067C334",
- "41AB9A85-948F-4E1A-9E45-E8D0A13D5D80"
- ],
- "id": "432A8297-F096-47B3-AF67-DC3F3367B532",
- "refLogicEntities": []
- },
- {
- "defKey": "order",
- "defName": "订单",
- "refEntities": [
- "0BB71B25-37DD-4BE2-B9C5-804995806979",
- "F5D5A1F0-45DA-454E-A0C1-3422F5085850",
- "CC9B3822-EA7F-4A47-B07E-5AC16AFCB1C0",
- "8D568399-31F1-42C1-A7D1-73C51EE97315",
- "4C9221AA-4A5B-4D11-B8F3-DE353A5DAFBB",
- "8B1A81C2-CED5-4ADC-AEA0-23E8F225AB56"
- ],
- "refViews": [],
- "refDiagrams": [
- "C2FC4082-F5E8-48CF-984E-E00F49DA13EF"
- ],
- "refDicts": [],
- "id": "9095A025-9BEE-48F7-AB02-78BAFE68742C",
- "refLogicEntities": []
- }
- ],
- "dataTypeMapping": {
- "referURL": "",
- "mappings": [
- {
- "defKey": "string",
- "id": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "defName": "字串",
- "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "VARCHAR",
- "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "VARCHAR2",
- "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "VARCHAR",
- "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "VARCHAR",
- "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "VARCHAR",
- "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "VARCHAR2",
- "592C7013-143D-4E7B-AF64-0D7BF1E28230": "VARCHAR",
- "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "VARCHAR",
- "11D1FB71-A587-4217-89BA-611B8A1F83E0": "STRING",
- "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "TEXT",
- "797A1496-D649-4261-89B4-544132EC3F36": "String",
- "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "String",
- "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "String",
- "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "string",
- "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "string",
- "B91D99E0-9B7C-416C-8737-B760957DAF09": "string",
- "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "String",
- "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "VARCHAR",
- "483F9346-C99E-4014-A1D2-A554606BD8A3": "VARCHAR",
- "ABF5836C-0B7C-4007-A41C-F869325E5842": "VARCHAR"
- },
- {
- "defKey": "double",
- "id": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "defName": "小数",
- "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "DECIMAL",
- "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "DECIMAL",
- "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "DECIMAL",
- "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "NUMERIC",
- "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "DECIMAL",
- "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "DECIMAL",
- "592C7013-143D-4E7B-AF64-0D7BF1E28230": "NUMERIC",
- "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "NUMERIC",
- "11D1FB71-A587-4217-89BA-611B8A1F83E0": "DOUBLE",
- "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "REAL",
- "797A1496-D649-4261-89B4-544132EC3F36": "Double",
- "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "Double",
- "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "Double",
- "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "decimal",
- "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "double",
- "B91D99E0-9B7C-416C-8737-B760957DAF09": "*float64",
- "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "f64",
- "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "DECIMAL",
- "483F9346-C99E-4014-A1D2-A554606BD8A3": "DECIMAL",
- "ABF5836C-0B7C-4007-A41C-F869325E5842": "NUMERIC"
- },
- {
- "defKey": "int",
- "id": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "defName": "整数",
- "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "INT",
- "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "INT",
- "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "INT",
- "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "INTEGER",
- "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "INT",
- "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "INTEGER",
- "592C7013-143D-4E7B-AF64-0D7BF1E28230": "INTEGER",
- "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "INT4",
- "11D1FB71-A587-4217-89BA-611B8A1F83E0": "INT",
- "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "INTEGER",
- "797A1496-D649-4261-89B4-544132EC3F36": "Integer",
- "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "Integer",
- "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "Integer",
- "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "float",
- "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "int",
- "B91D99E0-9B7C-416C-8737-B760957DAF09": "*int",
- "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "i32",
- "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "INTEGER",
- "483F9346-C99E-4014-A1D2-A554606BD8A3": "INT",
- "ABF5836C-0B7C-4007-A41C-F869325E5842": "INTEGER"
- },
- {
- "defKey": "date",
- "id": "89D69E81-EA34-42EE-9FA2-93B8BD27E098",
- "defName": "日期",
- "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "DATETIME",
- "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "DATE",
- "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "DATETIME",
- "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "TIMESTAMP",
- "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "DATE",
- "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "DATE",
- "592C7013-143D-4E7B-AF64-0D7BF1E28230": "DATE",
- "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "DATE",
- "11D1FB71-A587-4217-89BA-611B8A1F83E0": "DATETIME",
- "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "NUMERIC",
- "797A1496-D649-4261-89B4-544132EC3F36": "Date",
- "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "Date",
- "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "Date",
- "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "DateTime",
- "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "timestamp",
- "B91D99E0-9B7C-416C-8737-B760957DAF09": "*time.Time",
- "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "DateTime<Local>",
- "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "DATE",
- "483F9346-C99E-4014-A1D2-A554606BD8A3": "DATETIME",
- "ABF5836C-0B7C-4007-A41C-F869325E5842": "DATE"
- },
- {
- "defKey": "bytes",
- "id": "D516E75B-90F5-4741-B9B3-A186A263F04C",
- "defName": "二进制",
- "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "BLOB",
- "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "BLOB",
- "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "VARBINARY",
- "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "BYTEA",
- "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "BLOB",
- "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "BLOB",
- "592C7013-143D-4E7B-AF64-0D7BF1E28230": "BYTEA",
- "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "BYTEA",
- "11D1FB71-A587-4217-89BA-611B8A1F83E0": "BINARY",
- "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "NONE",
- "797A1496-D649-4261-89B4-544132EC3F36": "byte[]",
- "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "byte[]",
- "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "byte[]",
- "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "binary",
- "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "binary",
- "B91D99E0-9B7C-416C-8737-B760957DAF09": "[]byte",
- "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "BYTE",
- "ABF5836C-0B7C-4007-A41C-F869325E5842": "BYTEA"
- },
- {
- "defKey": "largeText",
- "id": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
- "defName": "大文本",
- "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "TEXT",
- "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "CLOB",
- "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "TEXT",
- "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "TEXT",
- "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "CLOB",
- "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "CLOB",
- "592C7013-143D-4E7B-AF64-0D7BF1E28230": "TEXT",
- "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "TEXT",
- "11D1FB71-A587-4217-89BA-611B8A1F83E0": "STRING",
- "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "TEXT",
- "797A1496-D649-4261-89B4-544132EC3F36": "String",
- "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "String",
- "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "String",
- "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "string",
- "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "string",
- "B91D99E0-9B7C-416C-8737-B760957DAF09": "string",
- "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "String",
- "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "TEXT",
- "483F9346-C99E-4014-A1D2-A554606BD8A3": "STRING",
- "ABF5836C-0B7C-4007-A41C-F869325E5842": "TEXT"
- },
- {
- "defKey": "数组/对象",
- "id": "77023E85-ABEF-4D43-8808-9848810F3917",
- "defName": "JSON",
- "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "JSON"
- }
- ]
- },
- "domains": [
- {
- "defKey": "DefaultString",
- "defName": "默认字串",
- "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "len": 255,
- "scale": "",
- "uiHint": "",
- "id": "9092C4E0-1A54-4859-ABBB-5B62DBC27573"
- },
- {
- "defKey": "IdOrKey",
- "defName": "主键标识",
- "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "len": 32,
- "scale": "",
- "uiHint": "",
- "id": "16120F75-6AA7-4483-868D-F07F511BB081"
- },
- {
- "defKey": "Name",
- "defName": "名称",
- "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "len": 90,
- "scale": "",
- "uiHint": "",
- "id": "54611CCC-CA4B-42E1-9F32-4944C85B85A6"
- },
- {
- "defKey": "Int",
- "defName": "整数",
- "applyFor": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "len": "",
- "scale": "",
- "uiHint": "",
- "id": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E"
- },
- {
- "defKey": "Double",
- "defName": "小数",
- "applyFor": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "len": 24,
- "scale": 6,
- "uiHint": "",
- "id": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4"
- },
- {
- "defKey": "Money",
- "defName": "金额",
- "applyFor": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "len": 24,
- "scale": 6,
- "uiHint": "",
- "id": "C3B1681B-99F9-4818-9E80-DE1652A51D85"
- },
- {
- "defKey": "DateTime",
- "defName": "日期时间",
- "applyFor": "89D69E81-EA34-42EE-9FA2-93B8BD27E098",
- "len": "",
- "scale": "",
- "uiHint": "",
- "id": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC"
- },
- {
- "defKey": "YesNo",
- "defName": "是否",
- "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "len": "1",
- "scale": "",
- "uiHint": "",
- "id": "6F7C1C5C-D159-41E6-BF9D-54DEEFA79AFF"
- },
- {
- "defKey": "Dict",
- "defName": "数据字典",
- "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "len": "32",
- "scale": "",
- "uiHint": "",
- "id": "73FD2BAD-2358-4336-B96D-45DC897BD792"
- },
- {
- "defKey": "DescText",
- "defName": "描述文本",
- "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "len": "900",
- "scale": "",
- "uiHint": "",
- "id": "3E948CEC-3070-472C-AF92-F3CA11EC9D15"
- }
- ],
- "diagrams": [
- {
- "defKey": "会员物理模型",
- "defName": "member",
- "relationType": "field",
- "canvasData": {
- "cells": [
- {
- "id": "216cc9c7-1173-4035-962a-b10e5b1dd7ed",
- "shape": "erdRelation",
- "source": {
- "cell": "bf713e24-b10c-4a61-bd85-e4e9a4f9c3a3",
- "port": "FEBE7751-8C69-4553-BBF9-2AC9A8CF2D10%out"
- },
- "target": {
- "cell": "90f14da5-5adf-4e40-a44a-b627c4decd38",
- "port": "08FF20DC-2393-4709-B8F0-D17B9F45BAF5%in"
- },
- "relation": "1:n",
- "fillColor": "#ACDAFC",
- "attrs": {
- "line": {
- "strokeDasharray": ""
- }
- }
- },
- {
- "id": "9e6d5978-8b2a-4788-85f7-233627f7550b",
- "shape": "erdRelation",
- "source": {
- "cell": "bf713e24-b10c-4a61-bd85-e4e9a4f9c3a3",
- "port": "FEBE7751-8C69-4553-BBF9-2AC9A8CF2D10%out"
- },
- "target": {
- "cell": "6e241f66-8501-424f-87a8-ad295ddc556b",
- "port": "517D4C4F-48DB-4233-8124-59369ACE5ED6%out"
- },
- "relation": "1:1",
- "vertices": [
- {
- "x": 160,
- "y": -420
- },
- {
- "x": 160,
- "y": -442
- }
- ],
- "fillColor": "#ACDAFC",
- "attrs": {
- "line": {
- "strokeDasharray": ""
- }
- }
- },
- {
- "id": "2b104f9c-f5bf-4b7d-a874-2e9cdaf09175",
- "shape": "erdRelation",
- "source": {
- "cell": "bf713e24-b10c-4a61-bd85-e4e9a4f9c3a3",
- "port": "FEBE7751-8C69-4553-BBF9-2AC9A8CF2D10%in"
- },
- "target": {
- "cell": "ab75ebea-bb4e-4545-a213-eee6304b6f1a",
- "port": "528E5C44-E84F-4C5F-96D4-BC7CE14583C4%out"
- },
- "relation": "1:n",
- "vertices": [
- {
- "x": -596,
- "y": -230
- }
- ],
- "fillColor": "#ACDAFC",
- "router": {
- "name": "manhattan"
- },
- "attrs": {
- "line": {
- "strokeDasharray": ""
- }
- }
- },
- {
- "id": "90f14da5-5adf-4e40-a44a-b627c4decd38",
- "shape": "table",
- "position": {
- "x": 340,
- "y": -90
- },
- "count": 0,
- "originKey": "6B94A1CA-9F5C-4B7E-8739-A4AD7E92EA54",
- "type": "P",
- "size": {
- "width": 406,
- "height": 238
- }
- },
- {
- "id": "6e241f66-8501-424f-87a8-ad295ddc556b",
- "shape": "table",
- "position": {
- "x": -360,
- "y": -490
- },
- "count": 0,
- "originKey": "AE6B4994-AA06-4BE6-B0A7-652B58F21953",
- "type": "P",
- "size": {
- "width": 370,
- "height": 54
- },
- "autoSize": true
- },
- {
- "id": "bf713e24-b10c-4a61-bd85-e4e9a4f9c3a3",
- "shape": "table",
- "position": {
- "x": -450.00000000000085,
- "y": -309.99999999999886
- },
- "count": 0,
- "originKey": "163F1074-272D-4BB4-B28F-E63D314E5581",
- "type": "P",
- "size": {
- "width": 590,
- "height": 330
- }
- },
- {
- "id": "ab75ebea-bb4e-4545-a213-eee6304b6f1a",
- "shape": "table",
- "position": {
- "x": -1070,
- "y": -250
- },
- "count": 0,
- "originKey": "0E22E910-FDFF-48B0-8E61-DA2A03F6ACDB",
- "type": "P",
- "size": {
- "width": 424,
- "height": 307
- }
- },
- {
- "id": "54fca141-8f93-4d08-81dc-0476d42fd770",
- "shape": "table",
- "position": {
- "x": -660,
- "y": 170
- },
- "count": 0,
- "originKey": "356D354D-B0E8-40E7-82BA-E964485C7A73",
- "type": "P",
- "size": {
- "width": 625,
- "height": 261
- }
- }
- ]
- },
- "id": "24296392-1C3A-401D-A4D2-DAB283542537",
- "comment": ""
- },
- {
- "defKey": "技师物理模型",
- "defName": "coach",
- "relationType": "field",
- "canvasData": {
- "cells": [
- {
- "id": "d2a7f984-a3df-4373-986f-2fb5cbaf4c57",
- "shape": "erdRelation",
- "source": {
- "cell": "f19873d2-89d9-46ff-bff4-a6950ceebcde",
- "port": "98C4796D-5DFE-4B0F-971B-135ACF9F5370%out"
- },
- "target": {
- "cell": "0e888e0e-a788-4f03-8a1b-afb7a4bf95f6",
- "port": "1E768608-A3B1-49D4-94DD-3A5969CC48A1%in"
- },
- "relation": "1:n",
- "fillColor": "#ACDAFC",
- "router": {
- "name": "manhattan"
- },
- "attrs": {
- "line": {
- "strokeDasharray": ""
- }
- }
- },
- {
- "id": "0ec2d10c-1902-44c0-90ae-e6545b8979d4",
- "shape": "erdRelation",
- "source": {
- "cell": "2cb2712e-e4c9-478b-8d7a-8ccdd9b7c6a5",
- "port": "1FA8A05F-CEDE-4BB5-A5C5-34DF0E37356D%out"
- },
- "target": {
- "cell": "543f9428-886a-489d-b3da-0ac9dab4d7a8",
- "port": "58ECE99E-198A-439C-BD94-DA5555EDA284%in"
- },
- "relation": "1:n",
- "fillColor": "#ACDAFC",
- "router": {
- "name": "manhattan"
- },
- "attrs": {
- "line": {
- "strokeDasharray": ""
- }
- }
- },
- {
- "id": "141a1ab4-da7a-478c-a82c-e61e300c857b",
- "shape": "erdRelation",
- "source": {
- "cell": "0e888e0e-a788-4f03-8a1b-afb7a4bf95f6",
- "port": "68C9F705-75F4-4C70-A6CF-1E9889278C32%out"
- },
- "target": {
- "cell": "543f9428-886a-489d-b3da-0ac9dab4d7a8",
- "port": "88DBC0E7-30EE-491C-82E0-BC606B810DAC%out"
- },
- "relation": "1:n",
- "fillColor": "#ACDAFC",
- "router": {
- "name": "manhattan"
- },
- "attrs": {
- "line": {
- "strokeDasharray": ""
- }
- }
- },
- {
- "id": "f19873d2-89d9-46ff-bff4-a6950ceebcde",
- "shape": "table",
- "position": {
- "x": -950,
- "y": 536
- },
- "count": 0,
- "originKey": "5A15F1DD-29CF-4AA9-81AD-BB8C875BC76D",
- "type": "P",
- "size": {
- "width": 370,
- "height": 146
- }
- },
- {
- "id": "59a15069-f7e1-47e5-81ee-d85abefb42d6",
- "shape": "table",
- "position": {
- "x": 210,
- "y": -200
- },
- "count": 0,
- "originKey": "B18001A9-10A6-45AF-8601-D2A38A60D8A0",
- "type": "P",
- "size": {
- "width": 580,
- "height": 630
- }
- },
- {
- "id": "0e888e0e-a788-4f03-8a1b-afb7a4bf95f6",
- "shape": "table",
- "position": {
- "x": -400,
- "y": 536
- },
- "count": 0,
- "originKey": "464BC16A-1A71-48AF-B7CC-CF4B316994B0",
- "type": "P",
- "size": {
- "width": 467,
- "height": 399
- }
- },
- {
- "id": "2cb2712e-e4c9-478b-8d7a-8ccdd9b7c6a5",
- "shape": "table",
- "position": {
- "x": -990.0000000000002,
- "y": -189.99999999999977
- },
- "count": 0,
- "originKey": "89235217-825A-473F-96A8-E8798445A0EA",
- "type": "P",
- "size": {
- "width": 580,
- "height": 630
- }
- },
- {
- "id": "543f9428-886a-489d-b3da-0ac9dab4d7a8",
- "shape": "table",
- "position": {
- "x": -310,
- "y": 140
- },
- "count": 0,
- "originKey": "C401B2CE-9BDB-4D59-BE8A-B22534BD3E68",
- "type": "P",
- "size": {
- "width": 390,
- "height": 180
- }
- }
- ]
- },
- "id": "B818C969-B522-41DE-8671-5B92073C0805",
- "comment": ""
- },
- {
- "defKey": "订单物理模型",
- "defName": "order",
- "relationType": "field",
- "canvasData": {
- "cells": [
- {
- "id": "1eead8e8-dbc0-43a4-aa1e-355f64fcc83e",
- "shape": "erdRelation",
- "source": {
- "cell": "9fc201e3-0f7f-41a0-9a2f-a67b4b352ced",
- "port": "2CCF42CA-BBF7-4B7D-A6D0-2DAADF9FAD8E%out"
- },
- "target": {
- "cell": "fac8005e-7e77-4ff4-b847-ab2760aed209",
- "port": "0E120DF7-1A43-4221-98E0-547B4A38D3C5%out"
- },
- "relation": "1:n",
- "fillColor": "#ACDAFC",
- "attrs": {
- "line": {
- "strokeDasharray": ""
- }
- }
- },
- {
- "id": "fac8005e-7e77-4ff4-b847-ab2760aed209",
- "shape": "table",
- "position": {
- "x": 281.5,
- "y": 200
- },
- "count": 0,
- "originKey": "CC9B3822-EA7F-4A47-B07E-5AC16AFCB1C0",
- "type": "P",
- "size": {
- "width": 757,
- "height": 261
- }
- },
- {
- "id": "c5884f3b-883a-4693-b0ad-6d0791a523b8",
- "shape": "table",
- "position": {
- "x": 2090,
- "y": -340
- },
- "count": 0,
- "originKey": "0BB71B25-37DD-4BE2-B9C5-804995806979",
- "fillColor": "rgb(207, 172, 19)",
- "type": "P",
- "size": {
- "width": 300,
- "height": 1530
- }
- },
- {
- "id": "ef8ab857-eaff-4f8e-8131-b761f6e453e3",
- "shape": "table",
- "position": {
- "x": 1190,
- "y": 461
- },
- "count": 0,
- "originKey": "8B1A81C2-CED5-4ADC-AEA0-23E8F225AB56",
- "type": "P",
- "size": {
- "width": 676,
- "height": 307
- }
- },
- {
- "id": "9fc201e3-0f7f-41a0-9a2f-a67b4b352ced",
- "shape": "table",
- "position": {
- "x": 280,
- "y": -480
- },
- "count": 0,
- "originKey": "8D568399-31F1-42C1-A7D1-73C51EE97315",
- "type": "P",
- "size": {
- "width": 760,
- "height": 514
- }
- },
- {
- "id": "5dae0712-5222-4cdf-b195-fc320a701903",
- "shape": "table",
- "position": {
- "x": 1220,
- "y": -390
- },
- "count": 0,
- "originKey": "F5D5A1F0-45DA-454E-A0C1-3422F5085850",
- "type": "P",
- "size": {
- "width": 603,
- "height": 261
- },
- "autoSize": true
- },
- {
- "id": "b84b007e-8078-4437-b68b-a85e5d1d2343",
- "shape": "table",
- "position": {
- "x": 1220,
- "y": -10
- },
- "count": 0,
- "originKey": "4C9221AA-4A5B-4D11-B8F3-DE353A5DAFBB",
- "type": "P",
- "size": {
- "width": 385,
- "height": 146
- },
- "autoSize": true
- }
- ]
- },
- "id": "C2FC4082-F5E8-48CF-984E-E00F49DA13EF",
- "comment": ""
- }
- ],
- "standardFields": [],
- "dbConn": [
- {
- "defKey": "B06FA810-2E74-4872-B051-4C59A6B88D52",
- "defName": "192.168.110.5-massage-new",
- "type": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E",
- "properties": {
- "driver_class_name": "com.mysql.cj.jdbc.Driver",
- "url": "jdbc:mysql://192.168.110.5:3306/massage_new?characterEncoding=UTF-8&useSSL=false&useUnicode=true&serverTimezone=UTC+8",
- "password": "Dd.123456",
- "username": "dd"
- }
- },
- {
- "defKey": "4C0586F9-A505-4EC2-B254-25F619FD64BE",
- "defName": "192.168.110.5-dcat-admin",
- "type": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E",
- "properties": {
- "driver_class_name": "com.mysql.cj.jdbc.Driver",
- "url": "jdbc:mysql://192.168.110.5:3306/dcat-admin?characterEncoding=UTF-8&useSSL=false&useUnicode=true&serverTimezone=UTC+8",
- "password": "Dd.123456",
- "username": "dd"
- }
- }
- ],
- "logicEntities": [],
- "namingRules": [
- {
- "id": "63F1DC0E-6A76-4B75-B3DA-4B00657B4E1B",
- "defName": "属性代码不能超过32",
- "intro": "",
- "controlIntensity": "S",
- "applyObjectType": "L",
- "applyFieldType": "field",
- "programCode": "return (data.field.defName||\"\").length <= 32",
- "enable": true
- },
- {
- "id": "668CBEE6-E0B7-4ACE-B72E-63942963B191",
- "defName": "长度不能超过32位",
- "intro": "",
- "controlIntensity": "F",
- "applyObjectType": "P",
- "applyFieldType": "entity",
- "programCode": "return (data.entity.defName||\"\").length <= 32",
- "enable": true
- },
- {
- "id": "11BD987F-82E7-418E-A752-FDD84F1582A2",
- "defName": "长度不能超过32位",
- "intro": "",
- "controlIntensity": "F",
- "applyObjectType": "P",
- "applyFieldType": "field",
- "programCode": "return (data.field.defName||\"\").length <= 32",
- "enable": true
- },
- {
- "id": "29D0A8D9-ABE2-451F-8A39-52FAB02E62B9",
- "defName": "索引名-长度不超过32个字符",
- "intro": "",
- "controlIntensity": "S",
- "applyObjectType": "P",
- "applyFieldType": "index",
- "programCode": "return (data.index.defName||\"\").length <= 32",
- "enable": true
- },
- {
- "id": "B425A96F-6A31-4DBD-8743-A00DE28FB50F",
- "defName": "不能使用保留字",
- "intro": "",
- "controlIntensity": "S",
- "applyObjectType": "P",
- "applyFieldType": "index",
- "programCode": "let sysWords = \"action,add,aggregate,all,alter,after,and,as,asc,avg,avg_row_length,auto_increment,between,bigint,bit,binary,blob,bool,both,by,cascade,case,char,character,change,check,checksum,column,columns,comment,constraint,create,cross,current_date,current_time,current_timestamp,data,database,databases,date,datetime,day,day_hour,day_minute,day_second,dayofmonth,dayofweek,dayofyear,dec,decimal,default,delayed,delay_key_write,delete,desc,describe,distinct,distinctrow,double,drop,end,else,escape,escaped,enclosed,enum,explain,exists,fields,file,first,float,float4,float8,flush,foreign,from,for,full,function,global,grant,grants,group,having,heap,high_priority,hour,hour_minute,hour_second,hosts,identified,ignore,in,index,infile,inner,insert,insert_id,int,integer,interval,int1,int2,int3,int4,int8,into,if,is,isam,join,key,keys,kill,last_insert_id,leading,left,length,like,lines,limit,load,local,lock,logs,long,longblob,longtext,low_priority,max,max_rows,match,mediumblob,mediumtext,mediumint,middleint,min_rows,minute,minute_second,modify,month,monthname,myisam,natural,numeric,no,not,null,on,optimize,option,optionally,or,order,outer,outfile,pack_keys,partial,password,precision,primary,procedure,process,processlist,privileges,read,real,references,reload,regexp,rename,replace,restrict,returns,revoke,rlike,row,rows,second,select,set,show,shutdown,smallint,soname,sql_big_tables,sql_big_selects,sql_low_priority_updates,sql_log_off,sql_log_update,sql_select_limit,sql_small_result,sql_big_result,sql_warnings,straight_join,starting,status,string,table,tables,temporary,terminated,text,then,time,timestamp,tinyblob,tinytext,tinyint,trailing,to,type,use,using,unique,unlock,unsigned,update,usage,values,varchar,variables,varying,varbinary,with,write,when,where,year,year_month,zerofill\".split(\",\");\nreturn sysWords.indexOf(data.index.defKey.toLowerCase())<0;",
- "enable": true
- },
- {
- "id": "EF9E44D0-691A-4352-A079-CFF300107531",
- "defName": "索引名-全小写",
- "intro": "",
- "controlIntensity": "F",
- "applyObjectType": "P",
- "applyFieldType": "index",
- "programCode": "return !/[A-Z]+/.test(data.index.defKey);",
- "enable": true
- },
- {
- "id": "972EB2FB-4428-429D-8B0A-F082A8C7A94D",
- "defName": "名称不能为空",
- "intro": "",
- "controlIntensity": "F",
- "applyObjectType": "L",
- "applyFieldType": "entity",
- "programCode": "return data.logicEntity.defName",
- "enable": true
- },
- {
- "id": "EEAEB9C5-BB6C-4E92-949B-D27928690D85",
- "defName": "名称长度不超过32",
- "intro": "",
- "controlIntensity": "S",
- "applyObjectType": "L",
- "applyFieldType": "entity",
- "programCode": "return (data.logicEntity.defName||\"\").length <=32",
- "enable": true
- },
- {
- "id": "24E3F7E5-730D-4378-B72D-195D6B940352",
- "defName": "不能使用保留字",
- "intro": "",
- "controlIntensity": "F",
- "applyObjectType": "P",
- "applyFieldType": "entity",
- "programCode": "let sysWords = \"action,add,aggregate,all,alter,after,and,as,asc,avg,avg_row_length,auto_increment,between,bigint,bit,binary,blob,bool,both,by,cascade,case,char,character,change,check,checksum,column,columns,comment,constraint,create,cross,current_date,current_time,current_timestamp,data,database,databases,date,datetime,day,day_hour,day_minute,day_second,dayofmonth,dayofweek,dayofyear,dec,decimal,default,delayed,delay_key_write,delete,desc,describe,distinct,distinctrow,double,drop,end,else,escape,escaped,enclosed,enum,explain,exists,fields,file,first,float,float4,float8,flush,foreign,from,for,full,function,global,grant,grants,group,having,heap,high_priority,hour,hour_minute,hour_second,hosts,identified,ignore,in,index,infile,inner,insert,insert_id,int,integer,interval,int1,int2,int3,int4,int8,into,if,is,isam,join,key,keys,kill,last_insert_id,leading,left,length,like,lines,limit,load,local,lock,logs,long,longblob,longtext,low_priority,max,max_rows,match,mediumblob,mediumtext,mediumint,middleint,min_rows,minute,minute_second,modify,month,monthname,myisam,natural,numeric,no,not,null,on,optimize,option,optionally,or,order,outer,outfile,pack_keys,partial,password,precision,primary,procedure,process,processlist,privileges,read,real,references,reload,regexp,rename,replace,restrict,returns,revoke,rlike,row,rows,second,select,set,show,shutdown,smallint,soname,sql_big_tables,sql_big_selects,sql_low_priority_updates,sql_log_off,sql_log_update,sql_select_limit,sql_small_result,sql_big_result,sql_warnings,straight_join,starting,status,string,table,tables,temporary,terminated,text,then,time,timestamp,tinyblob,tinytext,tinyint,trailing,to,type,use,using,unique,unlock,unsigned,update,usage,values,varchar,variables,varying,varbinary,with,write,when,where,year,year_month,zerofill\".split(\",\");\nreturn sysWords.indexOf(data.entity.defKey.toLowerCase())<0;",
- "enable": true
- },
- {
- "id": "039BF435-DC77-4DA4-81C7-7F8076BF22BB",
- "defName": "表名-全小写",
- "intro": "",
- "controlIntensity": "S",
- "applyObjectType": "P",
- "applyFieldType": "entity",
- "programCode": "return !/[A-Z]+/.test(data.entity.defKey);",
- "enable": true
- },
- {
- "id": "CBEB0E30-19C6-427D-A8BF-61FF10E27A0B",
- "defName": "表名-不允许空格",
- "intro": "",
- "controlIntensity": "F",
- "applyObjectType": "P",
- "applyFieldType": "entity",
- "programCode": "return !/\\s+/.test(data.entity.defKey);",
- "enable": true
- },
- {
- "id": "1168C7C2-8E8E-4FB7-B639-B3DE839C395A",
- "defName": "表名-英文及下划线",
- "intro": "",
- "controlIntensity": "F",
- "applyObjectType": "P",
- "applyFieldType": "entity",
- "programCode": "return /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(data.entity.defKey);",
- "enable": true
- },
- {
- "id": "D373637C-D3A6-4621-B656-6841A5444A76",
- "defName": "表必须有comment注释",
- "intro": "",
- "controlIntensity": "S",
- "applyObjectType": "P",
- "applyFieldType": "entity",
- "programCode": "return (data.entity.defName||\"\").length > 0 || (data.entity.comment||\"\").length > 0",
- "enable": true
- },
- {
- "id": "2BAB122B-8811-40BB-89F3-CDC24B5862D3",
- "defName": "主键命名为 id,类型为 int 或 bigint,且为自增",
- "intro": "",
- "controlIntensity": "S",
- "applyObjectType": "P",
- "applyFieldType": "entity",
- "programCode": "let fields = data.entity.fields;\nfor(let i=0;i<fields.length;i++){\n let field = fields[i];\n if(field.primaryKey){\n return field.autoIncrement && (field.dbType.toUpperCase()==\"INT\"||field.dbType==\"BIGINT\");\n }\n}\nreturn false;",
- "enable": true
- },
- {
- "id": "0B2F0BD2-3B84-4AB1-BA29-9DE9620AF608",
- "defName": "必须有数据的创建时间以及创建人字段",
- "intro": "",
- "controlIntensity": "S",
- "applyObjectType": "P",
- "applyFieldType": "entity",
- "programCode": "let count = 0;\nlet fields = data.entity.fields;\nfor(let i=0;i<fields.length;i++){\n let field = fields[i];\n if(\"created_time,updated_time\".indexOf(field.defKey.toLowerCase())>=0){\n count ++;\n }\n}\nreturn count==2;",
- "enable": true
- },
- {
- "id": "BEC54F19-52D5-4882-BCE1-4439785F8001",
- "defName": "不能使用保留字",
- "intro": "",
- "controlIntensity": "S",
- "applyObjectType": "P",
- "applyFieldType": "field",
- "programCode": "let sysWords = \"action,add,aggregate,all,alter,after,and,as,asc,avg,avg_row_length,auto_increment,between,bigint,bit,binary,blob,bool,both,by,cascade,case,char,character,change,check,checksum,column,columns,comment,constraint,create,cross,current_date,current_time,current_timestamp,data,database,databases,date,datetime,day,day_hour,day_minute,day_second,dayofmonth,dayofweek,dayofyear,dec,decimal,default,delayed,delay_key_write,delete,desc,describe,distinct,distinctrow,double,drop,end,else,escape,escaped,enclosed,enum,explain,exists,fields,file,first,float,float4,float8,flush,foreign,from,for,full,function,global,grant,grants,group,having,heap,high_priority,hour,hour_minute,hour_second,hosts,identified,ignore,in,index,infile,inner,insert,insert_id,int,integer,interval,int1,int2,int3,int4,int8,into,if,is,isam,join,key,keys,kill,last_insert_id,leading,left,length,like,lines,limit,load,local,lock,logs,long,longblob,longtext,low_priority,max,max_rows,match,mediumblob,mediumtext,mediumint,middleint,min_rows,minute,minute_second,modify,month,monthname,myisam,natural,numeric,no,not,null,on,optimize,option,optionally,or,order,outer,outfile,pack_keys,partial,password,precision,primary,procedure,process,processlist,privileges,read,real,references,reload,regexp,rename,replace,restrict,returns,revoke,rlike,row,rows,second,select,set,show,shutdown,smallint,soname,sql_big_tables,sql_big_selects,sql_low_priority_updates,sql_log_off,sql_log_update,sql_select_limit,sql_small_result,sql_big_result,sql_warnings,straight_join,starting,status,string,table,tables,temporary,terminated,text,then,time,timestamp,tinyblob,tinytext,tinyint,trailing,to,type,use,using,unique,unlock,unsigned,update,usage,values,varchar,variables,varying,varbinary,with,write,when,where,year,year_month,zerofill\".split(\",\");\nreturn sysWords.indexOf(data.field.defKey.toLowerCase())<0;",
- "enable": true
- },
- {
- "id": "082E186D-7B02-4F1C-9ECE-378AB98C4845",
- "defName": "字段-全小写",
- "intro": "",
- "controlIntensity": "S",
- "applyObjectType": "P",
- "applyFieldType": "field",
- "programCode": "return !/[A-Z]+/.test(data.field.defKey);",
- "enable": true
- },
- {
- "id": "F3CE5C67-23B6-4E7B-BA91-D5F0BCBC9E6A",
- "defName": "字段-不允许空格",
- "intro": "",
- "controlIntensity": "F",
- "applyObjectType": "P",
- "applyFieldType": "field",
- "programCode": "return !/\\s+/.test(data.field.defKey);",
- "enable": true
- },
- {
- "id": "21AFEAC8-96D7-467F-8320-A33887FC0C5D",
- "defName": "字段-英文及下划线",
- "intro": "",
- "controlIntensity": "F",
- "applyObjectType": "P",
- "applyFieldType": "field",
- "programCode": "return /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(data.field.defKey);",
- "enable": true
- },
- {
- "id": "2BBDE47B-6926-4E1A-AE57-D4F6E5399EE6",
- "defName": "字段-必需有comment注释",
- "intro": "",
- "controlIntensity": "F",
- "applyObjectType": "P",
- "applyFieldType": "field",
- "programCode": "return (data.field.defName||\"\").length > 0 || (data.field.comment||\"\").length > 0",
- "enable": true
- },
- {
- "id": "5E181E43-0D72-498F-8178-4C1CDBC89A16",
- "defName": "字段-不能与表名相同",
- "intro": "",
- "controlIntensity": "F",
- "applyObjectType": "P",
- "applyFieldType": "field",
- "programCode": "return data.field.defKey != data.entity.defKey;",
- "enable": true
- },
- {
- "id": "DE8F8598-5D53-4727-A837-7816C2AF99D9",
- "defName": "外键-字段必须具有表名及其主键",
- "intro": "",
- "controlIntensity": "S",
- "applyObjectType": "P",
- "applyFieldType": "field",
- "programCode": "let relas = data.entity.correlations;\nfor(let i=0;i<relas.length;i++){\n let rela = relas[i];\n if(data.field.defKey==rela.myField&&rela.myRows==\"n\"){\n if(rela.myField==(rela.refEntity+\"_\"+rela.refField)){\n return true;\n }else{\n return false;\n }\n }\n}\nreturn true;",
- "enable": true
- },
- {
- "id": "D330BCC3-DBAB-4677-8C5A-A301003A5878",
- "defName": "时间字段类型尽量选取 timestamp",
- "intro": "",
- "controlIntensity": "S",
- "applyObjectType": "P",
- "applyFieldType": "field",
- "programCode": "if(data.field.defName.lastIndexOf(\"日期\")>=0 || data.field.defName.lastIndexOf(\"时间\")>=0 ){\n if(data.field.dbType.toLowerCase().indexOf(\"date\")>=0){\n return true;\n }else{\n return false;\n }\n};\nreturn true;",
- "enable": true
- },
- {
- "id": "2E7FDA44-989A-4C5B-A0C5-12B1E40E57B1",
- "defName": "索引名-英文及下划线",
- "intro": "",
- "controlIntensity": "S",
- "applyObjectType": "P",
- "applyFieldType": "index",
- "programCode": "return /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(data.index.defKey);",
- "enable": true
- },
- {
- "id": "023450B3-AAE2-4DC1-AE63-2196DD82823D",
- "defName": "索引名-主键的名称以pk_开头,唯一键以uk_开头,普通索引以 ix_开头",
- "intro": "",
- "controlIntensity": "S",
- "applyObjectType": "P",
- "applyFieldType": "index",
- "programCode": "if(data.index.unique){\n return data.index.defKey.indexOf(\"uk_\")==0;\n}else{\n return data.index.defKey.indexOf(\"ix_\")==0;\n}",
- "enable": true
- },
- {
- "id": "1C563E17-262B-4EB6-87F0-203CAC667CF0",
- "defName": "不允许存在blob、text等大字段",
- "intro": "",
- "controlIntensity": "S",
- "applyObjectType": "P",
- "applyFieldType": "field",
- "programCode": "if(\"blob,text\".indexOf(data.field.dbType.toLowerCase())>=0){\n return false;\n}\nreturn true;",
- "enable": true
- }
- ]
- }
|