小丁到家数据库设计.pdma.json 444 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779
  1. {
  2. "name": "小丁到家数据库设计",
  3. "describe": "小丁到家数据库设计",
  4. "avatar": "",
  5. "version": "4.9.4",
  6. "createdTime": "2024-10-24 16:46:36",
  7. "updatedTime": "2024-10-31 20:07:33",
  8. "dbConns": [],
  9. "profile": {
  10. "default": {
  11. "db": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E",
  12. "dbConn": "4C0586F9-A505-4EC2-B254-25F619FD64BE",
  13. "entityInitFields": [
  14. {
  15. "defKey": "tenant_id",
  16. "defName": "租户号",
  17. "comment": "",
  18. "type": "BIGINT",
  19. "len": "",
  20. "scale": "",
  21. "primaryKey": false,
  22. "notNull": false,
  23. "autoIncrement": false,
  24. "defaultValue": "",
  25. "hideInGraph": true,
  26. "domain": "",
  27. "refDict": "",
  28. "uiHint": "",
  29. "id": "ADB3AD14-6603-43E2-8261-114E32442B5B",
  30. "baseType": ""
  31. },
  32. {
  33. "defKey": "created_by",
  34. "defName": "创建人",
  35. "comment": "",
  36. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  37. "type": "",
  38. "len": 32,
  39. "scale": "",
  40. "primaryKey": false,
  41. "notNull": false,
  42. "autoIncrement": false,
  43. "defaultValue": "",
  44. "hideInGraph": true,
  45. "refDict": "",
  46. "uiHint": "",
  47. "id": "C8BE2C7A-8251-4ADD-BB4F-411C5754DA62",
  48. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
  49. },
  50. {
  51. "defKey": "created_at",
  52. "defName": "创建时间",
  53. "comment": "",
  54. "domain": "",
  55. "type": "timestamp",
  56. "len": "",
  57. "scale": "",
  58. "primaryKey": false,
  59. "notNull": false,
  60. "autoIncrement": false,
  61. "defaultValue": "",
  62. "hideInGraph": true,
  63. "refDict": "",
  64. "uiHint": "",
  65. "id": "4E471FD6-3E73-4A90-B660-51598A482409",
  66. "baseType": ""
  67. },
  68. {
  69. "defKey": "updated_by",
  70. "defName": "更新人",
  71. "comment": "",
  72. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  73. "type": "",
  74. "len": 32,
  75. "scale": "",
  76. "primaryKey": false,
  77. "notNull": false,
  78. "autoIncrement": false,
  79. "defaultValue": "",
  80. "hideInGraph": true,
  81. "refDict": "",
  82. "uiHint": "",
  83. "id": "0DC24AA9-4CD0-45D8-95CF-FA546BE343AB",
  84. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
  85. },
  86. {
  87. "defKey": "updated_at",
  88. "defName": "更新时间",
  89. "comment": "",
  90. "domain": "",
  91. "type": "timestamp",
  92. "len": "",
  93. "scale": "",
  94. "primaryKey": false,
  95. "notNull": false,
  96. "autoIncrement": false,
  97. "defaultValue": "",
  98. "hideInGraph": true,
  99. "refDict": "",
  100. "uiHint": "",
  101. "id": "09F64AC4-4DEE-428F-AF64-4C103884E1AC",
  102. "baseType": ""
  103. }
  104. ],
  105. "entityInitProperties": {
  106. "partitioned by": "(date string)",
  107. "row format delimited": "",
  108. "fields terminated by ','": "",
  109. "collection items terminated by '-'": "",
  110. "map keys terminated by ':'": "",
  111. "store as textfile;": ""
  112. }
  113. },
  114. "javaHome": "",
  115. "sql": {
  116. "delimiter": ""
  117. },
  118. "dataTypeSupports": [
  119. {
  120. "defKey": "MYSQL",
  121. "id": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E"
  122. },
  123. {
  124. "defKey": "ORACLE",
  125. "id": "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542"
  126. },
  127. {
  128. "defKey": "SQLServer",
  129. "id": "BFC87171-C74F-494A-B7C2-76B9C55FACC9"
  130. },
  131. {
  132. "defKey": "PostgreSQL",
  133. "id": "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022"
  134. },
  135. {
  136. "defKey": "DB2",
  137. "id": "89504F5D-94BF-4C9E-8B2E-44F37305FED5"
  138. },
  139. {
  140. "defKey": "DM",
  141. "id": "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307"
  142. },
  143. {
  144. "defKey": "GaussDB",
  145. "id": "592C7013-143D-4E7B-AF64-0D7BF1E28230"
  146. },
  147. {
  148. "defKey": "Kingbase",
  149. "id": "77BD85E5-9D0D-4096-8427-CBA306FC9C6A"
  150. },
  151. {
  152. "defKey": "GBase",
  153. "id": "56F4B55B-F0B8-4049-9E6B-50B95C1D793A"
  154. },
  155. {
  156. "defKey": "MaxCompute",
  157. "id": "11D1FB71-A587-4217-89BA-611B8A1F83E0"
  158. },
  159. {
  160. "defKey": "SQLite",
  161. "id": "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1"
  162. },
  163. {
  164. "defKey": "Hive",
  165. "id": "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2"
  166. },
  167. {
  168. "defKey": "JAVA",
  169. "id": "797A1496-D649-4261-89B4-544132EC3F36"
  170. },
  171. {
  172. "defKey": "JavaMybatis",
  173. "id": "895CFD1D-4273-4D32-A2C4-CAC70200AB5B"
  174. },
  175. {
  176. "defKey": "JavaMybatisPlus",
  177. "id": "A2EE7B4A-CE62-4290-B00C-B26C1BF18073"
  178. },
  179. {
  180. "defKey": "C#",
  181. "id": "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30"
  182. },
  183. {
  184. "defKey": "Golang",
  185. "id": "B91D99E0-9B7C-416C-8737-B760957DAF09"
  186. },
  187. {
  188. "defKey": "Rust",
  189. "id": "BDF457FD-9F98-4AC3-A705-7587B00A3BAB"
  190. },
  191. {
  192. "defKey": "Doris",
  193. "id": "483F9346-C99E-4014-A1D2-A554606BD8A3"
  194. },
  195. {
  196. "defKey": "HighGo",
  197. "id": "ABF5836C-0B7C-4007-A41C-F869325E5842"
  198. }
  199. ],
  200. "codeTemplates": [
  201. {
  202. "type": "appCode",
  203. "applyFor": "797A1496-D649-4261-89B4-544132EC3F36",
  204. " 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}"
  205. },
  206. {
  207. "type": "appCode",
  208. "applyFor": "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30",
  209. "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}",
  210. "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}"
  211. },
  212. {
  213. "applyFor": "895CFD1D-4273-4D32-A2C4-CAC70200AB5B",
  214. "type": "appCode",
  215. "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}",
  216. "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}",
  217. "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}",
  218. "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}",
  219. "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",
  220. "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}"
  221. },
  222. {
  223. "applyFor": "A2EE7B4A-CE62-4290-B00C-B26C1BF18073",
  224. "type": "appCode",
  225. "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}",
  226. "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}",
  227. "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}",
  228. "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}",
  229. "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",
  230. "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}"
  231. },
  232. {
  233. "applyFor": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E",
  234. "type": "dbDDL",
  235. "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",
  236. "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",
  237. "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
  238. "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{{~}}",
  239. "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX IF EXISTS {{=index.defKey}} ;\n{{~}}",
  240. "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",
  241. "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{{?}}"
  242. },
  243. {
  244. "applyFor": "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542",
  245. "type": "dbDDL",
  246. "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{{~}}",
  247. "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",
  248. "deleteTable": "DROP TABLE {{=it.entity.defKey}};",
  249. "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{{~}}",
  250. "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX {{=index.defKey}} ;\n{{~}}",
  251. "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{{?}}",
  252. "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{{?}}"
  253. },
  254. {
  255. "applyFor": "BFC87171-C74F-494A-B7C2-76B9C55FACC9",
  256. "type": "dbDDL",
  257. "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",
  258. "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",
  259. "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}}];",
  260. "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{{~}}",
  261. "deleteIndex": "",
  262. "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{{?}}",
  263. "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{{?}}"
  264. },
  265. {
  266. "applyFor": "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022",
  267. "type": "dbDDL",
  268. "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{{~}}",
  269. "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",
  270. "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
  271. "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{{~}}",
  272. "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX {{=index.defKey}} ;\n{{~}}",
  273. "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{{?}}",
  274. "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{{?}}"
  275. },
  276. {
  277. "type": "dbDDL",
  278. "applyFor": "89504F5D-94BF-4C9E-8B2E-44F37305FED5",
  279. "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{{~}}",
  280. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  281. "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"
  282. },
  283. {
  284. "applyFor": "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307",
  285. "type": "dbDDL",
  286. "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{{~}}",
  287. "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",
  288. "deleteTable": "",
  289. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  290. "deleteIndex": "",
  291. "message": "",
  292. "update": ""
  293. },
  294. {
  295. "type": "dbDDL",
  296. "applyFor": "592C7013-143D-4E7B-AF64-0D7BF1E28230",
  297. "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{{~}}",
  298. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  299. "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"
  300. },
  301. {
  302. "type": "dbDDL",
  303. "applyFor": "77BD85E5-9D0D-4096-8427-CBA306FC9C6A",
  304. "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{{~}}",
  305. "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{{~}}",
  306. "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"
  307. },
  308. {
  309. "applyFor": "11D1FB71-A587-4217-89BA-611B8A1F83E0",
  310. "type": "dbDDL",
  311. "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",
  312. "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",
  313. "deleteTable": "",
  314. "createIndex": "",
  315. "deleteIndex": "",
  316. "message": "",
  317. "update": ""
  318. },
  319. {
  320. "applyFor": "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1",
  321. "type": "dbDDL",
  322. "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",
  323. "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{{~}}",
  324. "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"
  325. },
  326. {
  327. "type": "dbDDL",
  328. "applyFor": "dictSQLTemplate",
  329. "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{{~}}"
  330. },
  331. {
  332. "applyFor": "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2",
  333. "type": "dbDDL",
  334. "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;",
  335. "createView": "",
  336. "deleteTable": "",
  337. "createIndex": "",
  338. "deleteIndex": "",
  339. "message": "",
  340. "update": ""
  341. },
  342. {
  343. "applyFor": "B91D99E0-9B7C-416C-8737-B760957DAF09",
  344. "type": "appCode",
  345. "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}}"
  346. },
  347. {
  348. "applyFor": "BDF457FD-9F98-4AC3-A705-7587B00A3BAB",
  349. "type": "appCode",
  350. "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"
  351. },
  352. {
  353. "applyFor": "56F4B55B-F0B8-4049-9E6B-50B95C1D793A",
  354. "type": "dbDDL",
  355. "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{{~}}",
  356. "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",
  357. "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
  358. "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{{~}}",
  359. "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX {{=index.defKey}} ;\n{{~}}",
  360. "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{{?}}",
  361. "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{{?}}"
  362. },
  363. {
  364. "applyFor": "483F9346-C99E-4014-A1D2-A554606BD8A3",
  365. "type": "dbDDL",
  366. "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",
  367. "createView": "",
  368. "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
  369. "createIndex": "",
  370. "deleteIndex": "",
  371. "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",
  372. "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{{?}}"
  373. },
  374. {
  375. "applyFor": "ABF5836C-0B7C-4007-A41C-F869325E5842",
  376. "type": "dbDDL",
  377. "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{{~}}",
  378. "createView": "",
  379. "deleteTable": "",
  380. "createIndex": "",
  381. "deleteIndex": "",
  382. "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{{?}}",
  383. "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{{?}}"
  384. }
  385. ],
  386. "generatorDoc": {
  387. "docTemplate": ""
  388. },
  389. "relationFieldSize": "15",
  390. "uiHint": [
  391. {
  392. "defKey": "Input",
  393. "defName": "普通输入框",
  394. "id": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  395. },
  396. {
  397. "defKey": "Select",
  398. "defName": "下拉输入框",
  399. "id": "FB111359-2B73-4443-926C-08A98E446448"
  400. },
  401. {
  402. "defKey": "CheckBox",
  403. "defName": "复选框",
  404. "id": "0CB8A6C9-1115-4FC0-B51E-5C028065082F"
  405. },
  406. {
  407. "defKey": "RadioBox",
  408. "defName": "单选框",
  409. "id": "5C04987A-260F-4B7C-A5D5-22A181AAE9CA"
  410. },
  411. {
  412. "defKey": "Double",
  413. "defName": "小数输入",
  414. "id": "8D5BAFE4-E15C-4707-A047-8EE59C58E70F"
  415. },
  416. {
  417. "defKey": "Integer",
  418. "defName": "整数输入",
  419. "id": "9999AF2A-A44E-415C-A2DC-D7C613BD0073"
  420. },
  421. {
  422. "defKey": "Money",
  423. "defName": "金额输入",
  424. "id": "2B0C3D0C-7BAF-4B36-81AD-9362B5E5DC2E"
  425. },
  426. {
  427. "defKey": "Date",
  428. "defName": "日期输入",
  429. "id": "E4D94E14-F695-487F-AFC2-4D888009B7DA"
  430. },
  431. {
  432. "defKey": "DataYearMonth",
  433. "defName": "年月输入",
  434. "id": "936927E3-DD2D-4096-87FD-074CDE278D59"
  435. },
  436. {
  437. "defKey": "Text",
  438. "defName": "长文本输入",
  439. "id": "D89DD4F1-ADAC-4469-BF8D-B3FF41AE7963"
  440. },
  441. {
  442. "defKey": "RichText",
  443. "defName": "富文本输入",
  444. "id": "C134EB1F-4CFF-49E0-882F-2C6FB275CB20"
  445. }
  446. ],
  447. "headers": [
  448. {
  449. "refKey": "defKey",
  450. "hideInGraph": false,
  451. "value": "字段代码",
  452. "freeze": false
  453. },
  454. {
  455. "refKey": "defName",
  456. "hideInGraph": false,
  457. "value": "显示名称",
  458. "freeze": false
  459. },
  460. {
  461. "refKey": "primaryKey",
  462. "hideInGraph": false,
  463. "value": "主键",
  464. "freeze": false
  465. },
  466. {
  467. "refKey": "notNull",
  468. "hideInGraph": true,
  469. "value": "不为空",
  470. "freeze": false
  471. },
  472. {
  473. "refKey": "autoIncrement",
  474. "hideInGraph": true,
  475. "value": "自增",
  476. "freeze": false
  477. },
  478. {
  479. "refKey": "domain",
  480. "hideInGraph": true,
  481. "value": "数据域",
  482. "freeze": false
  483. },
  484. {
  485. "refKey": "type",
  486. "hideInGraph": false,
  487. "value": "数据类型",
  488. "freeze": false
  489. },
  490. {
  491. "refKey": "len",
  492. "hideInGraph": false,
  493. "value": "长度",
  494. "freeze": false
  495. },
  496. {
  497. "refKey": "scale",
  498. "hideInGraph": false,
  499. "value": "小数位数",
  500. "freeze": false
  501. },
  502. {
  503. "refKey": "comment",
  504. "hideInGraph": true,
  505. "value": "说明",
  506. "freeze": false
  507. },
  508. {
  509. "refKey": "refDict",
  510. "hideInGraph": true,
  511. "value": "数据字典",
  512. "freeze": false
  513. },
  514. {
  515. "refKey": "defaultValue",
  516. "hideInGraph": true,
  517. "value": "默认值",
  518. "freeze": false
  519. },
  520. {
  521. "refKey": "isStandard",
  522. "hideInGraph": false,
  523. "value": "标准字段",
  524. "enable": false,
  525. "freeze": false
  526. },
  527. {
  528. "refKey": "uiHint",
  529. "hideInGraph": true,
  530. "value": "UI建议",
  531. "enable": true,
  532. "freeze": false
  533. },
  534. {
  535. "refKey": "extProps",
  536. "hideInGraph": true,
  537. "value": "拓展属性",
  538. "enable": true,
  539. "freeze": false
  540. },
  541. {
  542. "refKey": "attr1",
  543. "value": "属性1",
  544. "hideInGraph": true,
  545. "enable": true,
  546. "freeze": false
  547. },
  548. {
  549. "refKey": "attr2",
  550. "value": "属性2",
  551. "hideInGraph": true,
  552. "enable": false,
  553. "freeze": false
  554. },
  555. {
  556. "refKey": "attr3",
  557. "value": "属性3",
  558. "hideInGraph": true,
  559. "enable": false,
  560. "freeze": false
  561. },
  562. {
  563. "refKey": "attr4",
  564. "value": "属性4",
  565. "hideInGraph": true,
  566. "enable": false,
  567. "freeze": false
  568. },
  569. {
  570. "refKey": "attr5",
  571. "value": "属性5",
  572. "hideInGraph": true,
  573. "enable": false,
  574. "freeze": false
  575. },
  576. {
  577. "refKey": "attr6",
  578. "value": "属性6",
  579. "hideInGraph": true,
  580. "enable": false,
  581. "freeze": false
  582. },
  583. {
  584. "refKey": "attr7",
  585. "value": "属性7",
  586. "hideInGraph": true,
  587. "enable": false,
  588. "freeze": false
  589. },
  590. {
  591. "refKey": "attr8",
  592. "value": "属性8",
  593. "hideInGraph": true,
  594. "enable": false,
  595. "freeze": false
  596. },
  597. {
  598. "refKey": "attr9",
  599. "value": "属性9",
  600. "hideInGraph": true,
  601. "enable": false,
  602. "freeze": false
  603. }
  604. ],
  605. "modelType": "modalGroup",
  606. "recentColors": [
  607. "#d148d1",
  608. "#ce4bce",
  609. "#831b83",
  610. "#dd31dd",
  611. "#da2fda",
  612. "#e988e9",
  613. "#000000",
  614. "#DDE5FF"
  615. ],
  616. "DDLToggleCase": "L",
  617. "menuWidth": "380px"
  618. },
  619. "entities": [
  620. {
  621. "id": "0E22E910-FDFF-48B0-8E61-DA2A03F6ACDB",
  622. "defKey": "MEMBER_ADDRESS",
  623. "defName": "用户位置",
  624. "comment": "",
  625. "properties": {},
  626. "fields": [
  627. {
  628. "defKey": "ID",
  629. "defName": "",
  630. "comment": "",
  631. "domain": "",
  632. "type": "BIGINT UNSIGNED",
  633. "len": "",
  634. "scale": "",
  635. "primaryKey": true,
  636. "notNull": true,
  637. "autoIncrement": true,
  638. "defaultValue": "",
  639. "hideInGraph": false,
  640. "refDict": "",
  641. "attr1": "",
  642. "attr2": "",
  643. "attr3": "",
  644. "attr4": "",
  645. "attr5": "",
  646. "attr6": "",
  647. "attr7": "",
  648. "attr8": "",
  649. "attr9": "",
  650. "id": "5BBE44C7-0576-4B66-817F-46F40B149C4B",
  651. "baseType": "",
  652. "extProps": {},
  653. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  654. },
  655. {
  656. "defKey": "USER_ID",
  657. "defName": "用户外键",
  658. "comment": "",
  659. "domain": "",
  660. "type": "BIGINT",
  661. "len": "",
  662. "scale": "",
  663. "primaryKey": false,
  664. "notNull": true,
  665. "autoIncrement": false,
  666. "defaultValue": "",
  667. "hideInGraph": false,
  668. "refDict": "",
  669. "attr1": "",
  670. "attr2": "",
  671. "attr3": "",
  672. "attr4": "",
  673. "attr5": "",
  674. "attr6": "",
  675. "attr7": "",
  676. "attr8": "",
  677. "attr9": "",
  678. "id": "528E5C44-E84F-4C5F-96D4-BC7CE14583C4",
  679. "baseType": "",
  680. "extProps": {},
  681. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  682. },
  683. {
  684. "defKey": "MOBILE",
  685. "defName": "手机号",
  686. "comment": "",
  687. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  688. "type": "",
  689. "len": "",
  690. "scale": "",
  691. "primaryKey": false,
  692. "notNull": false,
  693. "autoIncrement": false,
  694. "defaultValue": "",
  695. "hideInGraph": false,
  696. "refDict": "",
  697. "attr1": "",
  698. "attr2": "",
  699. "attr3": "",
  700. "attr4": "",
  701. "attr5": "",
  702. "attr6": "",
  703. "attr7": "",
  704. "attr8": "",
  705. "attr9": "",
  706. "id": "9A5DF88B-BB6D-43E0-8EC0-FEB215F04632",
  707. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  708. "extProps": {},
  709. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  710. },
  711. {
  712. "defKey": "PROVINCE",
  713. "defName": "省",
  714. "comment": "",
  715. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  716. "type": "",
  717. "len": "",
  718. "scale": "",
  719. "primaryKey": false,
  720. "notNull": false,
  721. "autoIncrement": false,
  722. "defaultValue": "",
  723. "hideInGraph": false,
  724. "refDict": "",
  725. "attr1": "",
  726. "attr2": "",
  727. "attr3": "",
  728. "attr4": "",
  729. "attr5": "",
  730. "attr6": "",
  731. "attr7": "",
  732. "attr8": "",
  733. "attr9": "",
  734. "id": "36C6F44B-E20F-4597-9084-578B9D6C1082",
  735. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  736. "extProps": {},
  737. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  738. },
  739. {
  740. "defKey": "CITY",
  741. "defName": "市",
  742. "comment": "",
  743. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  744. "type": "",
  745. "len": "",
  746. "scale": "",
  747. "primaryKey": false,
  748. "notNull": false,
  749. "autoIncrement": false,
  750. "defaultValue": "",
  751. "hideInGraph": false,
  752. "refDict": "",
  753. "attr1": "",
  754. "attr2": "",
  755. "attr3": "",
  756. "attr4": "",
  757. "attr5": "",
  758. "attr6": "",
  759. "attr7": "",
  760. "attr8": "",
  761. "attr9": "",
  762. "id": "1B8C9B7D-5062-4446-9647-A4A0C7E18646",
  763. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  764. "extProps": {},
  765. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  766. },
  767. {
  768. "defKey": "DISTRICT",
  769. "defName": "区",
  770. "comment": "",
  771. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  772. "type": "",
  773. "len": "",
  774. "scale": "",
  775. "primaryKey": false,
  776. "notNull": false,
  777. "autoIncrement": false,
  778. "defaultValue": "",
  779. "hideInGraph": false,
  780. "refDict": "",
  781. "attr1": "",
  782. "attr2": "",
  783. "attr3": "",
  784. "attr4": "",
  785. "attr5": "",
  786. "attr6": "",
  787. "attr7": "",
  788. "attr8": "",
  789. "attr9": "",
  790. "id": "9911D342-FBDE-40C6-8964-8C933CB440DE",
  791. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  792. "extProps": {},
  793. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  794. },
  795. {
  796. "defKey": "ADDRESS",
  797. "defName": "地址",
  798. "comment": "",
  799. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  800. "type": "",
  801. "len": "",
  802. "scale": "",
  803. "primaryKey": false,
  804. "notNull": false,
  805. "autoIncrement": false,
  806. "defaultValue": "",
  807. "hideInGraph": false,
  808. "refDict": "",
  809. "attr1": "",
  810. "attr2": "",
  811. "attr3": "",
  812. "attr4": "",
  813. "attr5": "",
  814. "attr6": "",
  815. "attr7": "",
  816. "attr8": "",
  817. "attr9": "",
  818. "id": "7AB87102-1195-4B9C-B014-ADA7BB3E05D0",
  819. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  820. "extProps": {},
  821. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  822. },
  823. {
  824. "defKey": "REAL_ADDRESS",
  825. "defName": "地址详情",
  826. "comment": "",
  827. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  828. "type": "",
  829. "len": "",
  830. "scale": "",
  831. "primaryKey": false,
  832. "notNull": false,
  833. "autoIncrement": false,
  834. "defaultValue": "",
  835. "hideInGraph": false,
  836. "refDict": "",
  837. "attr1": "",
  838. "attr2": "",
  839. "attr3": "",
  840. "attr4": "",
  841. "attr5": "",
  842. "attr6": "",
  843. "attr7": "",
  844. "attr8": "",
  845. "attr9": "",
  846. "id": "B77F2726-B586-4485-97FE-E57405B0EDB5",
  847. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  848. "extProps": {},
  849. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  850. },
  851. {
  852. "defKey": "ADCODE",
  853. "defName": "地区编码",
  854. "comment": "",
  855. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  856. "type": "",
  857. "len": "",
  858. "scale": "",
  859. "primaryKey": false,
  860. "notNull": false,
  861. "autoIncrement": false,
  862. "defaultValue": "",
  863. "hideInGraph": false,
  864. "refDict": "",
  865. "attr1": "",
  866. "attr2": "",
  867. "attr3": "",
  868. "attr4": "",
  869. "attr5": "",
  870. "attr6": "",
  871. "attr7": "",
  872. "attr8": "",
  873. "attr9": "",
  874. "id": "FBE0F69E-E3C6-4FC5-AD2D-CDE1AD7F200C",
  875. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  876. "extProps": {},
  877. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  878. },
  879. {
  880. "defKey": "LNG",
  881. "defName": "经度",
  882. "comment": "",
  883. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  884. "type": "",
  885. "len": "",
  886. "scale": "",
  887. "primaryKey": false,
  888. "notNull": false,
  889. "autoIncrement": false,
  890. "defaultValue": "",
  891. "hideInGraph": false,
  892. "refDict": "",
  893. "attr1": "",
  894. "attr2": "",
  895. "attr3": "",
  896. "attr4": "",
  897. "attr5": "",
  898. "attr6": "",
  899. "attr7": "",
  900. "attr8": "",
  901. "attr9": "",
  902. "id": "C3FF1404-5EB3-4C58-A680-55E219A89240",
  903. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  904. "extProps": {},
  905. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  906. },
  907. {
  908. "defKey": "LAT",
  909. "defName": "纬度",
  910. "comment": "",
  911. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  912. "type": "",
  913. "len": "",
  914. "scale": "",
  915. "primaryKey": false,
  916. "notNull": false,
  917. "autoIncrement": false,
  918. "defaultValue": "",
  919. "hideInGraph": false,
  920. "refDict": "",
  921. "attr1": "",
  922. "attr2": "",
  923. "attr3": "",
  924. "attr4": "",
  925. "attr5": "",
  926. "attr6": "",
  927. "attr7": "",
  928. "attr8": "",
  929. "attr9": "",
  930. "id": "871DF66B-A36B-4375-8602-A8B3DAFDAEA7",
  931. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  932. "extProps": {},
  933. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  934. },
  935. {
  936. "defKey": "STATUS",
  937. "defName": "状态",
  938. "comment": "",
  939. "domain": "",
  940. "type": "TINYINT",
  941. "len": "",
  942. "scale": "",
  943. "primaryKey": false,
  944. "notNull": true,
  945. "autoIncrement": false,
  946. "defaultValue": "0",
  947. "hideInGraph": false,
  948. "refDict": "5D2C2AF2-4F20-4E36-A394-281A87D0CB29",
  949. "attr1": "",
  950. "attr2": "",
  951. "attr3": "",
  952. "attr4": "",
  953. "attr5": "",
  954. "attr6": "",
  955. "attr7": "",
  956. "attr8": "",
  957. "attr9": "",
  958. "id": "DA23E26D-834D-46FC-88DF-9D91126C9D38",
  959. "baseType": "",
  960. "extProps": {},
  961. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  962. }
  963. ],
  964. "indexes": [],
  965. "type": "P",
  966. "sysProps": {
  967. "nameTemplate": "{defKey}[{defName}]"
  968. },
  969. "headers": [
  970. {
  971. "freeze": false,
  972. "refKey": "hideInGraph",
  973. "hideInGraph": true
  974. },
  975. {
  976. "freeze": true,
  977. "refKey": "defKey",
  978. "hideInGraph": false
  979. },
  980. {
  981. "freeze": true,
  982. "refKey": "defName",
  983. "hideInGraph": false
  984. },
  985. {
  986. "freeze": false,
  987. "refKey": "primaryKey",
  988. "hideInGraph": false
  989. },
  990. {
  991. "freeze": false,
  992. "refKey": "notNull",
  993. "hideInGraph": true
  994. },
  995. {
  996. "freeze": false,
  997. "refKey": "autoIncrement",
  998. "hideInGraph": true
  999. },
  1000. {
  1001. "freeze": false,
  1002. "refKey": "domain",
  1003. "hideInGraph": true
  1004. },
  1005. {
  1006. "freeze": false,
  1007. "refKey": "type",
  1008. "hideInGraph": false
  1009. },
  1010. {
  1011. "freeze": false,
  1012. "refKey": "len",
  1013. "hideInGraph": false
  1014. },
  1015. {
  1016. "freeze": false,
  1017. "refKey": "scale",
  1018. "hideInGraph": false
  1019. },
  1020. {
  1021. "freeze": false,
  1022. "refKey": "comment",
  1023. "hideInGraph": true
  1024. },
  1025. {
  1026. "freeze": false,
  1027. "refKey": "refDict",
  1028. "hideInGraph": true
  1029. },
  1030. {
  1031. "freeze": false,
  1032. "refKey": "defaultValue",
  1033. "hideInGraph": true
  1034. },
  1035. {
  1036. "freeze": false,
  1037. "refKey": "isStandard",
  1038. "hideInGraph": false
  1039. },
  1040. {
  1041. "freeze": false,
  1042. "refKey": "uiHint",
  1043. "hideInGraph": true
  1044. },
  1045. {
  1046. "freeze": false,
  1047. "refKey": "extProps",
  1048. "hideInGraph": true
  1049. }
  1050. ],
  1051. "correlations": [],
  1052. "notes": {}
  1053. },
  1054. {
  1055. "id": "356D354D-B0E8-40E7-82BA-E964485C7A73",
  1056. "defKey": "MEMBER_CONFIG",
  1057. "defName": "",
  1058. "comment": "",
  1059. "properties": {},
  1060. "fields": [
  1061. {
  1062. "defKey": "ID",
  1063. "defName": "",
  1064. "comment": "",
  1065. "domain": "",
  1066. "type": "BIGINT UNSIGNED",
  1067. "len": "",
  1068. "scale": "",
  1069. "primaryKey": true,
  1070. "notNull": true,
  1071. "autoIncrement": true,
  1072. "defaultValue": "",
  1073. "hideInGraph": false,
  1074. "refDict": "",
  1075. "attr1": "",
  1076. "attr2": "",
  1077. "attr3": "",
  1078. "attr4": "",
  1079. "attr5": "",
  1080. "attr6": "",
  1081. "attr7": "",
  1082. "attr8": "",
  1083. "attr9": "",
  1084. "id": "0EF62CCD-C781-41B3-B287-65179D38FF90",
  1085. "baseType": "",
  1086. "extProps": {},
  1087. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1088. },
  1089. {
  1090. "defKey": "POINT_TRADE_DEDUCT_ENABLE",
  1091. "defName": "是否开启积分抵扣",
  1092. "comment": "",
  1093. "domain": "",
  1094. "type": "TINYINT",
  1095. "len": "",
  1096. "scale": "",
  1097. "primaryKey": false,
  1098. "notNull": true,
  1099. "autoIncrement": false,
  1100. "defaultValue": "",
  1101. "hideInGraph": false,
  1102. "refDict": "",
  1103. "attr1": "",
  1104. "attr2": "",
  1105. "attr3": "",
  1106. "attr4": "",
  1107. "attr5": "",
  1108. "attr6": "",
  1109. "attr7": "",
  1110. "attr8": "",
  1111. "attr9": "",
  1112. "id": "F2771852-4301-48A6-9911-AD4871E4B6BF",
  1113. "baseType": "",
  1114. "extProps": {},
  1115. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1116. },
  1117. {
  1118. "defKey": "POINT_TRADE_DEDUCT_UNIT_PRICE",
  1119. "defName": "积分抵扣(单位:分)",
  1120. "comment": "",
  1121. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  1122. "type": "",
  1123. "len": "",
  1124. "scale": "",
  1125. "primaryKey": false,
  1126. "notNull": true,
  1127. "autoIncrement": false,
  1128. "defaultValue": "",
  1129. "hideInGraph": false,
  1130. "refDict": "",
  1131. "attr1": "",
  1132. "attr2": "",
  1133. "attr3": "",
  1134. "attr4": "",
  1135. "attr5": "",
  1136. "attr6": "",
  1137. "attr7": "",
  1138. "attr8": "",
  1139. "attr9": "",
  1140. "id": "9DB8B123-43F6-4AFB-8342-B6161C0AACB4",
  1141. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  1142. "extProps": {},
  1143. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1144. },
  1145. {
  1146. "defKey": "POINT_TRADE_DEDUCT_MAX_PRICE",
  1147. "defName": "积分抵扣最大值",
  1148. "comment": "",
  1149. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  1150. "type": "",
  1151. "len": "",
  1152. "scale": "",
  1153. "primaryKey": false,
  1154. "notNull": false,
  1155. "autoIncrement": false,
  1156. "defaultValue": "",
  1157. "hideInGraph": false,
  1158. "refDict": "",
  1159. "attr1": "",
  1160. "attr2": "",
  1161. "attr3": "",
  1162. "attr4": "",
  1163. "attr5": "",
  1164. "attr6": "",
  1165. "attr7": "",
  1166. "attr8": "",
  1167. "attr9": "",
  1168. "id": "3D30DA70-7E82-48ED-A762-FA2A68E9DF2D",
  1169. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  1170. "extProps": {},
  1171. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1172. },
  1173. {
  1174. "defKey": "POINT_TRADE_GIVE_POINT",
  1175. "defName": "1 元赠送多少分",
  1176. "comment": "",
  1177. "domain": "",
  1178. "type": "BIGINT",
  1179. "len": "",
  1180. "scale": "",
  1181. "primaryKey": false,
  1182. "notNull": false,
  1183. "autoIncrement": false,
  1184. "defaultValue": "",
  1185. "hideInGraph": false,
  1186. "refDict": "",
  1187. "attr1": "",
  1188. "attr2": "",
  1189. "attr3": "",
  1190. "attr4": "",
  1191. "attr5": "",
  1192. "attr6": "",
  1193. "attr7": "",
  1194. "attr8": "",
  1195. "attr9": "",
  1196. "id": "A115D104-13DC-417A-895E-C65A7D6936CB",
  1197. "baseType": "",
  1198. "extProps": {},
  1199. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1200. },
  1201. {
  1202. "defKey": "CREATOR",
  1203. "defName": "创建者",
  1204. "comment": "",
  1205. "domain": "",
  1206. "type": "VARCHAR",
  1207. "len": 64,
  1208. "scale": "",
  1209. "primaryKey": false,
  1210. "notNull": false,
  1211. "autoIncrement": false,
  1212. "defaultValue": "",
  1213. "hideInGraph": false,
  1214. "refDict": "",
  1215. "attr1": "",
  1216. "attr2": "",
  1217. "attr3": "",
  1218. "attr4": "",
  1219. "attr5": "",
  1220. "attr6": "",
  1221. "attr7": "",
  1222. "attr8": "",
  1223. "attr9": "",
  1224. "id": "9EBECF45-13BE-4231-9A15-D65C39D84034",
  1225. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  1226. "extProps": {},
  1227. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1228. },
  1229. {
  1230. "defKey": "UPDATER",
  1231. "defName": "更新者",
  1232. "comment": "",
  1233. "domain": "",
  1234. "type": "VARCHAR",
  1235. "len": 64,
  1236. "scale": "",
  1237. "primaryKey": false,
  1238. "notNull": false,
  1239. "autoIncrement": false,
  1240. "defaultValue": "",
  1241. "hideInGraph": false,
  1242. "refDict": "",
  1243. "attr1": "",
  1244. "attr2": "",
  1245. "attr3": "",
  1246. "attr4": "",
  1247. "attr5": "",
  1248. "attr6": "",
  1249. "attr7": "",
  1250. "attr8": "",
  1251. "attr9": "",
  1252. "id": "A63F7886-2FE5-4EBE-A939-6514EB1D6F60",
  1253. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  1254. "extProps": {},
  1255. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1256. },
  1257. {
  1258. "defKey": "CREATED_AT",
  1259. "defName": "",
  1260. "comment": "",
  1261. "domain": "",
  1262. "type": "TIMESTAMP",
  1263. "len": "",
  1264. "scale": "",
  1265. "primaryKey": false,
  1266. "notNull": false,
  1267. "autoIncrement": false,
  1268. "defaultValue": "",
  1269. "hideInGraph": false,
  1270. "refDict": "",
  1271. "attr1": "",
  1272. "attr2": "",
  1273. "attr3": "",
  1274. "attr4": "",
  1275. "attr5": "",
  1276. "attr6": "",
  1277. "attr7": "",
  1278. "attr8": "",
  1279. "attr9": "",
  1280. "id": "31BF26B9-567F-4BF0-B4A0-188324489522",
  1281. "baseType": "",
  1282. "extProps": {},
  1283. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1284. },
  1285. {
  1286. "defKey": "UPDATED_AT",
  1287. "defName": "",
  1288. "comment": "",
  1289. "domain": "",
  1290. "type": "TIMESTAMP",
  1291. "len": "",
  1292. "scale": "",
  1293. "primaryKey": false,
  1294. "notNull": false,
  1295. "autoIncrement": false,
  1296. "defaultValue": "",
  1297. "hideInGraph": false,
  1298. "refDict": "",
  1299. "attr1": "",
  1300. "attr2": "",
  1301. "attr3": "",
  1302. "attr4": "",
  1303. "attr5": "",
  1304. "attr6": "",
  1305. "attr7": "",
  1306. "attr8": "",
  1307. "attr9": "",
  1308. "id": "579FBED0-0C2D-4773-ADFB-8F74D36DD484",
  1309. "baseType": "",
  1310. "extProps": {},
  1311. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1312. },
  1313. {
  1314. "defKey": "DELETED_AT",
  1315. "defName": "",
  1316. "comment": "",
  1317. "domain": "",
  1318. "type": "TIMESTAMP",
  1319. "len": "",
  1320. "scale": "",
  1321. "primaryKey": false,
  1322. "notNull": false,
  1323. "autoIncrement": false,
  1324. "defaultValue": "",
  1325. "hideInGraph": false,
  1326. "refDict": "",
  1327. "attr1": "",
  1328. "attr2": "",
  1329. "attr3": "",
  1330. "attr4": "",
  1331. "attr5": "",
  1332. "attr6": "",
  1333. "attr7": "",
  1334. "attr8": "",
  1335. "attr9": "",
  1336. "id": "AFFCDAAC-D475-4673-B8FB-D8DBC31725B0",
  1337. "baseType": "",
  1338. "extProps": {},
  1339. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1340. }
  1341. ],
  1342. "indexes": [],
  1343. "type": "P",
  1344. "sysProps": {
  1345. "nameTemplate": "{defKey}[{defName}]"
  1346. },
  1347. "headers": [
  1348. {
  1349. "freeze": false,
  1350. "refKey": "hideInGraph",
  1351. "hideInGraph": true
  1352. },
  1353. {
  1354. "freeze": true,
  1355. "refKey": "defKey",
  1356. "hideInGraph": false
  1357. },
  1358. {
  1359. "freeze": true,
  1360. "refKey": "defName",
  1361. "hideInGraph": false
  1362. },
  1363. {
  1364. "freeze": false,
  1365. "refKey": "primaryKey",
  1366. "hideInGraph": false
  1367. },
  1368. {
  1369. "freeze": false,
  1370. "refKey": "notNull",
  1371. "hideInGraph": true
  1372. },
  1373. {
  1374. "freeze": false,
  1375. "refKey": "autoIncrement",
  1376. "hideInGraph": true
  1377. },
  1378. {
  1379. "freeze": false,
  1380. "refKey": "domain",
  1381. "hideInGraph": true
  1382. },
  1383. {
  1384. "freeze": false,
  1385. "refKey": "type",
  1386. "hideInGraph": false
  1387. },
  1388. {
  1389. "freeze": false,
  1390. "refKey": "len",
  1391. "hideInGraph": false
  1392. },
  1393. {
  1394. "freeze": false,
  1395. "refKey": "scale",
  1396. "hideInGraph": false
  1397. },
  1398. {
  1399. "freeze": false,
  1400. "refKey": "comment",
  1401. "hideInGraph": true
  1402. },
  1403. {
  1404. "freeze": false,
  1405. "refKey": "refDict",
  1406. "hideInGraph": true
  1407. },
  1408. {
  1409. "freeze": false,
  1410. "refKey": "defaultValue",
  1411. "hideInGraph": true
  1412. },
  1413. {
  1414. "freeze": false,
  1415. "refKey": "isStandard",
  1416. "hideInGraph": false
  1417. },
  1418. {
  1419. "freeze": false,
  1420. "refKey": "uiHint",
  1421. "hideInGraph": true
  1422. },
  1423. {
  1424. "freeze": false,
  1425. "refKey": "extProps",
  1426. "hideInGraph": true
  1427. }
  1428. ],
  1429. "correlations": []
  1430. },
  1431. {
  1432. "id": "163F1074-272D-4BB4-B28F-E63D314E5581",
  1433. "defKey": "MEMBER_USER",
  1434. "defName": "用户表",
  1435. "comment": "",
  1436. "properties": {},
  1437. "fields": [
  1438. {
  1439. "defKey": "ID",
  1440. "defName": "主键",
  1441. "comment": "",
  1442. "domain": "",
  1443. "type": "BIGINT UNSIGNED",
  1444. "len": "",
  1445. "scale": "",
  1446. "primaryKey": true,
  1447. "notNull": true,
  1448. "autoIncrement": true,
  1449. "defaultValue": "",
  1450. "hideInGraph": false,
  1451. "refDict": "",
  1452. "attr1": "",
  1453. "attr2": "",
  1454. "attr3": "",
  1455. "attr4": "",
  1456. "attr5": "",
  1457. "attr6": "",
  1458. "attr7": "",
  1459. "attr8": "",
  1460. "attr9": "",
  1461. "id": "FEBE7751-8C69-4553-BBF9-2AC9A8CF2D10",
  1462. "baseType": "",
  1463. "extProps": {},
  1464. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1465. },
  1466. {
  1467. "defKey": "MOBILE",
  1468. "defName": "手机号",
  1469. "comment": "",
  1470. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1471. "type": "",
  1472. "len": "",
  1473. "scale": "",
  1474. "primaryKey": false,
  1475. "notNull": false,
  1476. "autoIncrement": false,
  1477. "defaultValue": "",
  1478. "hideInGraph": false,
  1479. "refDict": "",
  1480. "attr1": "",
  1481. "attr2": "",
  1482. "attr3": "",
  1483. "attr4": "",
  1484. "attr5": "",
  1485. "attr6": "",
  1486. "attr7": "",
  1487. "attr8": "",
  1488. "attr9": "",
  1489. "id": "09CB3976-CFCE-48BA-9363-6AFDDCFC09FC",
  1490. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  1491. "extProps": {},
  1492. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1493. },
  1494. {
  1495. "defKey": "PASSWORD",
  1496. "defName": "密码",
  1497. "comment": "",
  1498. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1499. "type": "",
  1500. "len": "",
  1501. "scale": "",
  1502. "primaryKey": false,
  1503. "notNull": true,
  1504. "autoIncrement": false,
  1505. "defaultValue": "",
  1506. "hideInGraph": false,
  1507. "refDict": "",
  1508. "attr1": "",
  1509. "attr2": "",
  1510. "attr3": "",
  1511. "attr4": "",
  1512. "attr5": "",
  1513. "attr6": "",
  1514. "attr7": "",
  1515. "attr8": "",
  1516. "attr9": "",
  1517. "id": "32EF5BEA-F994-4888-BCCC-4E67DE5C0B2E",
  1518. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  1519. "extProps": {},
  1520. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1521. },
  1522. {
  1523. "defKey": "NICKNAME",
  1524. "defName": "昵称",
  1525. "comment": "",
  1526. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1527. "type": "",
  1528. "len": "",
  1529. "scale": "",
  1530. "primaryKey": false,
  1531. "notNull": false,
  1532. "autoIncrement": false,
  1533. "defaultValue": "",
  1534. "hideInGraph": false,
  1535. "refDict": "",
  1536. "attr1": "",
  1537. "attr2": "",
  1538. "attr3": "",
  1539. "attr4": "",
  1540. "attr5": "",
  1541. "attr6": "",
  1542. "attr7": "",
  1543. "attr8": "",
  1544. "attr9": "",
  1545. "id": "6E33E65B-6134-4057-8969-8F42FF05F52F",
  1546. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  1547. "extProps": {},
  1548. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1549. },
  1550. {
  1551. "defKey": "AVATAR",
  1552. "defName": "头像",
  1553. "comment": "",
  1554. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1555. "type": "",
  1556. "len": "",
  1557. "scale": "",
  1558. "primaryKey": false,
  1559. "notNull": false,
  1560. "autoIncrement": false,
  1561. "defaultValue": "",
  1562. "hideInGraph": false,
  1563. "refDict": "",
  1564. "attr1": "",
  1565. "attr2": "",
  1566. "attr3": "",
  1567. "attr4": "",
  1568. "attr5": "",
  1569. "attr6": "",
  1570. "attr7": "",
  1571. "attr8": "",
  1572. "attr9": "",
  1573. "id": "DE31497A-12E7-4939-BA2C-315ABB0B5E44",
  1574. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  1575. "extProps": {},
  1576. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1577. },
  1578. {
  1579. "defKey": "SEX",
  1580. "defName": "性别",
  1581. "comment": "",
  1582. "type": "TINYINT",
  1583. "len": "",
  1584. "scale": "",
  1585. "primaryKey": false,
  1586. "notNull": false,
  1587. "autoIncrement": false,
  1588. "defaultValue": "1",
  1589. "hideInGraph": false,
  1590. "refDict": "",
  1591. "extProps": {},
  1592. "notes": {},
  1593. "attr1": "",
  1594. "attr2": "",
  1595. "attr3": "",
  1596. "attr4": "",
  1597. "attr5": "",
  1598. "attr6": "",
  1599. "attr7": "",
  1600. "attr8": "",
  1601. "attr9": "",
  1602. "id": "22DD4FDA-E59C-4B57-8308-C850E654517D",
  1603. "baseType": ""
  1604. },
  1605. {
  1606. "defKey": "TAGS",
  1607. "defName": "标签",
  1608. "comment": "主要客服使用",
  1609. "domain": "",
  1610. "type": "VARCHAR",
  1611. "len": 255,
  1612. "scale": "",
  1613. "primaryKey": false,
  1614. "notNull": false,
  1615. "autoIncrement": false,
  1616. "defaultValue": "",
  1617. "hideInGraph": false,
  1618. "refDict": "",
  1619. "attr1": "",
  1620. "attr2": "",
  1621. "attr3": "",
  1622. "attr4": "",
  1623. "attr5": "",
  1624. "attr6": "",
  1625. "attr7": "",
  1626. "attr8": "",
  1627. "attr9": "",
  1628. "id": "24C28F33-35E1-4579-89C0-2A30ED2AC80C",
  1629. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  1630. "extProps": {},
  1631. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1632. },
  1633. {
  1634. "defKey": "MARK",
  1635. "defName": "备注",
  1636. "comment": "",
  1637. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1638. "type": "",
  1639. "len": "",
  1640. "scale": "",
  1641. "primaryKey": false,
  1642. "notNull": false,
  1643. "autoIncrement": false,
  1644. "defaultValue": "",
  1645. "hideInGraph": false,
  1646. "refDict": "",
  1647. "attr1": "",
  1648. "attr2": "",
  1649. "attr3": "",
  1650. "attr4": "",
  1651. "attr5": "",
  1652. "attr6": "",
  1653. "attr7": "",
  1654. "attr8": "",
  1655. "attr9": "",
  1656. "id": "AEE299FB-9E7E-4354-8399-D8BAA6F65E4B",
  1657. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  1658. "extProps": {},
  1659. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1660. },
  1661. {
  1662. "defKey": "STATUS",
  1663. "defName": "状态",
  1664. "comment": "",
  1665. "domain": "",
  1666. "type": "TINYINT",
  1667. "len": "",
  1668. "scale": "",
  1669. "primaryKey": false,
  1670. "notNull": true,
  1671. "autoIncrement": false,
  1672. "defaultValue": "0",
  1673. "hideInGraph": false,
  1674. "refDict": "5CFE1458-173D-4071-B556-2CF4A3EFDE90",
  1675. "attr1": "",
  1676. "attr2": "",
  1677. "attr3": "",
  1678. "attr4": "",
  1679. "attr5": "",
  1680. "attr6": "",
  1681. "attr7": "",
  1682. "attr8": "",
  1683. "attr9": "",
  1684. "id": "8C3C5BBD-FCC6-402F-A104-463AD8D0D708",
  1685. "baseType": "",
  1686. "extProps": {},
  1687. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1688. }
  1689. ],
  1690. "indexes": [],
  1691. "type": "P",
  1692. "sysProps": {
  1693. "nameTemplate": "{defKey}[{defName}]"
  1694. },
  1695. "headers": [
  1696. {
  1697. "freeze": false,
  1698. "refKey": "hideInGraph",
  1699. "hideInGraph": true
  1700. },
  1701. {
  1702. "freeze": true,
  1703. "refKey": "defKey",
  1704. "hideInGraph": false
  1705. },
  1706. {
  1707. "freeze": true,
  1708. "refKey": "defName",
  1709. "hideInGraph": false
  1710. },
  1711. {
  1712. "freeze": false,
  1713. "refKey": "primaryKey",
  1714. "hideInGraph": false
  1715. },
  1716. {
  1717. "freeze": false,
  1718. "refKey": "notNull",
  1719. "hideInGraph": true
  1720. },
  1721. {
  1722. "freeze": false,
  1723. "refKey": "autoIncrement",
  1724. "hideInGraph": true
  1725. },
  1726. {
  1727. "freeze": false,
  1728. "refKey": "domain",
  1729. "hideInGraph": true
  1730. },
  1731. {
  1732. "freeze": false,
  1733. "refKey": "type",
  1734. "hideInGraph": false
  1735. },
  1736. {
  1737. "freeze": false,
  1738. "refKey": "len",
  1739. "hideInGraph": false
  1740. },
  1741. {
  1742. "freeze": false,
  1743. "refKey": "scale",
  1744. "hideInGraph": false
  1745. },
  1746. {
  1747. "freeze": false,
  1748. "refKey": "comment",
  1749. "hideInGraph": true
  1750. },
  1751. {
  1752. "freeze": false,
  1753. "refKey": "refDict",
  1754. "hideInGraph": true
  1755. },
  1756. {
  1757. "freeze": false,
  1758. "refKey": "defaultValue",
  1759. "hideInGraph": true
  1760. },
  1761. {
  1762. "freeze": false,
  1763. "refKey": "isStandard",
  1764. "hideInGraph": false
  1765. },
  1766. {
  1767. "freeze": false,
  1768. "refKey": "uiHint",
  1769. "hideInGraph": true
  1770. },
  1771. {
  1772. "freeze": false,
  1773. "refKey": "extProps",
  1774. "hideInGraph": true
  1775. }
  1776. ],
  1777. "correlations": [],
  1778. "notes": {}
  1779. },
  1780. {
  1781. "id": "89235217-825A-473F-96A8-E8798445A0EA",
  1782. "defKey": "COACH_USER",
  1783. "defName": "技师",
  1784. "comment": "todo list:\n1、欠缺审核his表",
  1785. "properties": {},
  1786. "fields": [
  1787. {
  1788. "defKey": "ID",
  1789. "defName": "编号",
  1790. "comment": "",
  1791. "domain": "",
  1792. "type": "BIGINT UNSIGNED",
  1793. "len": "",
  1794. "scale": "",
  1795. "primaryKey": true,
  1796. "notNull": true,
  1797. "autoIncrement": true,
  1798. "defaultValue": "",
  1799. "hideInGraph": false,
  1800. "refDict": "",
  1801. "attr1": "",
  1802. "attr2": "",
  1803. "attr3": "",
  1804. "attr4": "",
  1805. "attr5": "",
  1806. "attr6": "",
  1807. "attr7": "",
  1808. "attr8": "",
  1809. "attr9": "",
  1810. "id": "1FA8A05F-CEDE-4BB5-A5C5-34DF0E37356D",
  1811. "baseType": "",
  1812. "extProps": {},
  1813. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1814. },
  1815. {
  1816. "defKey": "USER_ID",
  1817. "defName": "用户外键",
  1818. "comment": "",
  1819. "domain": "",
  1820. "type": "BIGINT",
  1821. "len": "",
  1822. "scale": "",
  1823. "primaryKey": false,
  1824. "notNull": true,
  1825. "autoIncrement": false,
  1826. "defaultValue": "",
  1827. "hideInGraph": false,
  1828. "refDict": "",
  1829. "attr1": "",
  1830. "attr2": "",
  1831. "attr3": "",
  1832. "attr4": "",
  1833. "attr5": "",
  1834. "attr6": "",
  1835. "attr7": "",
  1836. "attr8": "",
  1837. "attr9": "",
  1838. "id": "51801BEC-6BA2-46B4-BE79-AA55971CFE67",
  1839. "baseType": "",
  1840. "extProps": {},
  1841. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1842. },
  1843. {
  1844. "defKey": "NAME",
  1845. "defName": "真实姓名",
  1846. "comment": "",
  1847. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1848. "type": "",
  1849. "len": "",
  1850. "scale": "",
  1851. "primaryKey": false,
  1852. "notNull": false,
  1853. "autoIncrement": false,
  1854. "defaultValue": "",
  1855. "hideInGraph": true,
  1856. "refDict": "",
  1857. "attr1": "",
  1858. "attr2": "",
  1859. "attr3": "",
  1860. "attr4": "",
  1861. "attr5": "",
  1862. "attr6": "",
  1863. "attr7": "",
  1864. "attr8": "",
  1865. "attr9": "",
  1866. "id": "73C52C20-DCFC-4B4C-8C5D-CEC67A90EAFD",
  1867. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  1868. "extProps": {},
  1869. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1870. },
  1871. {
  1872. "defKey": "MOBILE",
  1873. "defName": "手机号",
  1874. "comment": "",
  1875. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1876. "type": "",
  1877. "len": "",
  1878. "scale": "",
  1879. "primaryKey": false,
  1880. "notNull": false,
  1881. "autoIncrement": false,
  1882. "defaultValue": "",
  1883. "hideInGraph": false,
  1884. "refDict": "",
  1885. "attr1": "",
  1886. "attr2": "",
  1887. "attr3": "",
  1888. "attr4": "",
  1889. "attr5": "",
  1890. "attr6": "",
  1891. "attr7": "",
  1892. "attr8": "",
  1893. "attr9": "",
  1894. "id": "AF31133B-84FF-4CB9-847E-5C79A50DF814",
  1895. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  1896. "extProps": {},
  1897. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1898. },
  1899. {
  1900. "defKey": "NICKNAME",
  1901. "defName": "昵称",
  1902. "comment": "",
  1903. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1904. "type": "",
  1905. "len": "",
  1906. "scale": "",
  1907. "primaryKey": false,
  1908. "notNull": false,
  1909. "autoIncrement": false,
  1910. "defaultValue": "",
  1911. "hideInGraph": false,
  1912. "refDict": "",
  1913. "attr1": "",
  1914. "attr2": "",
  1915. "attr3": "",
  1916. "attr4": "",
  1917. "attr5": "",
  1918. "attr6": "",
  1919. "attr7": "",
  1920. "attr8": "",
  1921. "attr9": "",
  1922. "id": "2824F2AB-A159-40FD-A0CD-3DDAD55A0CAE",
  1923. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  1924. "extProps": {},
  1925. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1926. },
  1927. {
  1928. "defKey": "AVATAR",
  1929. "defName": "头像",
  1930. "comment": "",
  1931. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1932. "type": "",
  1933. "len": "",
  1934. "scale": "",
  1935. "primaryKey": false,
  1936. "notNull": false,
  1937. "autoIncrement": false,
  1938. "defaultValue": "",
  1939. "hideInGraph": false,
  1940. "refDict": "",
  1941. "attr1": "",
  1942. "attr2": "",
  1943. "attr3": "",
  1944. "attr4": "",
  1945. "attr5": "",
  1946. "attr6": "",
  1947. "attr7": "",
  1948. "attr8": "",
  1949. "attr9": "",
  1950. "id": "A40CA2FA-F245-4F8A-8072-78944044D4FF",
  1951. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  1952. "extProps": {},
  1953. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1954. },
  1955. {
  1956. "defKey": "SEX",
  1957. "defName": "性别",
  1958. "comment": "",
  1959. "domain": "",
  1960. "type": "TINYINT",
  1961. "len": "",
  1962. "scale": "",
  1963. "primaryKey": false,
  1964. "notNull": false,
  1965. "autoIncrement": false,
  1966. "defaultValue": "1",
  1967. "hideInGraph": false,
  1968. "refDict": "",
  1969. "attr1": "",
  1970. "attr2": "",
  1971. "attr3": "",
  1972. "attr4": "",
  1973. "attr5": "",
  1974. "attr6": "",
  1975. "attr7": "",
  1976. "attr8": "",
  1977. "attr9": "",
  1978. "id": "F9F73E2D-2CC9-4196-853E-9B1D92D0CAA8",
  1979. "baseType": "",
  1980. "extProps": {},
  1981. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  1982. },
  1983. {
  1984. "defKey": "BIRTHDAY",
  1985. "defName": "出生日期",
  1986. "comment": "",
  1987. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1988. "type": "",
  1989. "len": "",
  1990. "scale": "",
  1991. "primaryKey": false,
  1992. "notNull": false,
  1993. "autoIncrement": false,
  1994. "defaultValue": "",
  1995. "hideInGraph": false,
  1996. "refDict": "",
  1997. "attr1": "",
  1998. "attr2": "",
  1999. "attr3": "",
  2000. "attr4": "",
  2001. "attr5": "",
  2002. "attr6": "",
  2003. "attr7": "",
  2004. "attr8": "",
  2005. "attr9": "",
  2006. "id": "B616299D-C0CC-4E15-A9EC-B49A37609C17",
  2007. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  2008. "extProps": {},
  2009. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2010. },
  2011. {
  2012. "defKey": "WORK_TIME",
  2013. "defName": "从业年份",
  2014. "comment": "界面显示:从业时长,当前年份-从业年份",
  2015. "domain": "",
  2016. "type": "INT",
  2017. "len": "",
  2018. "scale": "",
  2019. "primaryKey": false,
  2020. "notNull": false,
  2021. "autoIncrement": false,
  2022. "defaultValue": "",
  2023. "hideInGraph": false,
  2024. "refDict": "",
  2025. "attr1": "",
  2026. "attr2": "",
  2027. "attr3": "",
  2028. "attr4": "",
  2029. "attr5": "",
  2030. "attr6": "",
  2031. "attr7": "",
  2032. "attr8": "",
  2033. "attr9": "",
  2034. "id": "BBC5AF98-A492-48E2-A056-06FB1332731A",
  2035. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  2036. "extProps": {},
  2037. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2038. },
  2039. {
  2040. "defKey": "WORK_CITY",
  2041. "defName": "意向城市",
  2042. "comment": "",
  2043. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2044. "type": "",
  2045. "len": "",
  2046. "scale": "",
  2047. "primaryKey": false,
  2048. "notNull": false,
  2049. "autoIncrement": false,
  2050. "defaultValue": "",
  2051. "hideInGraph": false,
  2052. "refDict": "",
  2053. "attr1": "",
  2054. "attr2": "",
  2055. "attr3": "",
  2056. "attr4": "",
  2057. "attr5": "",
  2058. "attr6": "",
  2059. "attr7": "",
  2060. "attr8": "",
  2061. "attr9": "",
  2062. "id": "6DD9355D-715B-48C9-A472-88A0A9A499C0",
  2063. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  2064. "extProps": {},
  2065. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2066. },
  2067. {
  2068. "defKey": "introduce",
  2069. "defName": "简介",
  2070. "comment": "",
  2071. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2072. "type": "",
  2073. "len": "",
  2074. "scale": "",
  2075. "primaryKey": false,
  2076. "notNull": false,
  2077. "autoIncrement": false,
  2078. "defaultValue": "",
  2079. "hideInGraph": false,
  2080. "refDict": "",
  2081. "attr1": "",
  2082. "attr2": "",
  2083. "attr3": "",
  2084. "attr4": "",
  2085. "attr5": "",
  2086. "attr6": "",
  2087. "attr7": "",
  2088. "attr8": "",
  2089. "attr9": "",
  2090. "id": "65C02D48-5923-42D0-A8D8-BC7B385DBFB2",
  2091. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  2092. "extProps": {},
  2093. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2094. },
  2095. {
  2096. "defKey": "ID_CODE",
  2097. "defName": "身份证号",
  2098. "comment": "",
  2099. "type": "",
  2100. "len": "",
  2101. "scale": "",
  2102. "primaryKey": false,
  2103. "notNull": false,
  2104. "autoIncrement": false,
  2105. "defaultValue": "",
  2106. "hideInGraph": false,
  2107. "refDict": "",
  2108. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  2109. "extProps": {},
  2110. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2111. "id": "A4EC511C-58F2-4A8A-A4B6-BBABD811A785"
  2112. },
  2113. {
  2114. "defKey": "ID_CARD_SHOU",
  2115. "defName": "手持身份证",
  2116. "comment": "",
  2117. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2118. "type": "",
  2119. "len": "",
  2120. "scale": "",
  2121. "primaryKey": false,
  2122. "notNull": false,
  2123. "autoIncrement": false,
  2124. "defaultValue": "",
  2125. "hideInGraph": false,
  2126. "refDict": "",
  2127. "attr1": "",
  2128. "attr2": "",
  2129. "attr3": "",
  2130. "attr4": "",
  2131. "attr5": "",
  2132. "attr6": "",
  2133. "attr7": "",
  2134. "attr8": "",
  2135. "attr9": "",
  2136. "id": "E3A9EA3B-09AE-491E-9E99-8CEC8CCFF111",
  2137. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  2138. "extProps": {},
  2139. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2140. },
  2141. {
  2142. "defKey": "ID_CARD",
  2143. "defName": "身份证正反面",
  2144. "comment": "",
  2145. "domain": "",
  2146. "type": "VARCHAR",
  2147. "len": 255,
  2148. "scale": "",
  2149. "primaryKey": false,
  2150. "notNull": false,
  2151. "autoIncrement": false,
  2152. "defaultValue": "",
  2153. "hideInGraph": false,
  2154. "refDict": "",
  2155. "attr1": "",
  2156. "attr2": "",
  2157. "attr3": "",
  2158. "attr4": "",
  2159. "attr5": "",
  2160. "attr6": "",
  2161. "attr7": "",
  2162. "attr8": "",
  2163. "attr9": "",
  2164. "id": "50C910D0-0A21-45B6-AB7A-896D8826263A",
  2165. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  2166. "extProps": {},
  2167. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2168. },
  2169. {
  2170. "defKey": "WORK_IMG",
  2171. "defName": "工作照",
  2172. "comment": "",
  2173. "type": "",
  2174. "len": "",
  2175. "scale": "",
  2176. "primaryKey": false,
  2177. "notNull": false,
  2178. "autoIncrement": false,
  2179. "defaultValue": "",
  2180. "hideInGraph": false,
  2181. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2182. "refDict": "",
  2183. "extProps": {},
  2184. "notes": {},
  2185. "attr1": "",
  2186. "attr2": "",
  2187. "attr3": "",
  2188. "attr4": "",
  2189. "attr5": "",
  2190. "attr6": "",
  2191. "attr7": "",
  2192. "attr8": "",
  2193. "attr9": "",
  2194. "id": "6A106B5E-DB84-4A1F-A28A-767B37169666",
  2195. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
  2196. },
  2197. {
  2198. "defKey": "WORK_IMG_THUMB",
  2199. "defName": "工作照缩略图",
  2200. "comment": "",
  2201. "type": "",
  2202. "len": "",
  2203. "scale": "",
  2204. "primaryKey": false,
  2205. "notNull": false,
  2206. "autoIncrement": false,
  2207. "defaultValue": "",
  2208. "hideInGraph": false,
  2209. "refDict": "",
  2210. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  2211. "extProps": {},
  2212. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2213. "id": "EF032E2E-2461-4208-8050-CA5E811A22BD"
  2214. },
  2215. {
  2216. "defKey": "SELF_IMG",
  2217. "defName": "生活照",
  2218. "comment": "",
  2219. "type": "VARCHAR",
  2220. "len": 255,
  2221. "scale": "",
  2222. "primaryKey": false,
  2223. "notNull": false,
  2224. "autoIncrement": false,
  2225. "defaultValue": "",
  2226. "hideInGraph": false,
  2227. "domain": "",
  2228. "refDict": "",
  2229. "extProps": {},
  2230. "notes": {},
  2231. "attr1": "",
  2232. "attr2": "",
  2233. "attr3": "",
  2234. "attr4": "",
  2235. "attr5": "",
  2236. "attr6": "",
  2237. "attr7": "",
  2238. "attr8": "",
  2239. "attr9": "",
  2240. "id": "14EDC1CB-7E86-4860-AAAE-0C8F512A763F",
  2241. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
  2242. },
  2243. {
  2244. "defKey": "SELF_IMG_THUMB",
  2245. "defName": "生活照缩略图",
  2246. "comment": "",
  2247. "domain": "",
  2248. "type": "VARCHAR",
  2249. "len": 255,
  2250. "scale": "",
  2251. "primaryKey": false,
  2252. "notNull": false,
  2253. "autoIncrement": false,
  2254. "defaultValue": "",
  2255. "hideInGraph": false,
  2256. "refDict": "",
  2257. "attr1": "",
  2258. "attr2": "",
  2259. "attr3": "",
  2260. "attr4": "",
  2261. "attr5": "",
  2262. "attr6": "",
  2263. "attr7": "",
  2264. "attr8": "",
  2265. "attr9": "",
  2266. "id": "3E5A9541-7BC7-455B-AD84-51405258C4A6",
  2267. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  2268. "extProps": {},
  2269. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2270. },
  2271. {
  2272. "defKey": "LICENSE",
  2273. "defName": "个体营业执照",
  2274. "comment": "",
  2275. "domain": "",
  2276. "type": "TEXT",
  2277. "len": "",
  2278. "scale": "",
  2279. "primaryKey": false,
  2280. "notNull": false,
  2281. "autoIncrement": false,
  2282. "defaultValue": "",
  2283. "hideInGraph": false,
  2284. "refDict": "",
  2285. "attr1": "",
  2286. "attr2": "",
  2287. "attr3": "",
  2288. "attr4": "",
  2289. "attr5": "",
  2290. "attr6": "",
  2291. "attr7": "",
  2292. "attr8": "",
  2293. "attr9": "",
  2294. "id": "1F385150-B795-493B-8DB5-444FB6FC19F8",
  2295. "baseType": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
  2296. "extProps": {},
  2297. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2298. },
  2299. {
  2300. "defKey": "health_cert",
  2301. "defName": "健康证",
  2302. "comment": "",
  2303. "type": "",
  2304. "len": "",
  2305. "scale": "",
  2306. "primaryKey": false,
  2307. "notNull": false,
  2308. "autoIncrement": false,
  2309. "defaultValue": "",
  2310. "hideInGraph": false,
  2311. "refDict": "",
  2312. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  2313. "extProps": {},
  2314. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2315. "id": "CA80B47C-734F-434B-8944-619EE1FC6CE1"
  2316. },
  2317. {
  2318. "defKey": "Qual_Cert",
  2319. "defName": "从业资格证",
  2320. "comment": "",
  2321. "type": "",
  2322. "len": "",
  2323. "scale": "",
  2324. "primaryKey": false,
  2325. "notNull": false,
  2326. "autoIncrement": false,
  2327. "defaultValue": "",
  2328. "hideInGraph": false,
  2329. "refDict": "",
  2330. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  2331. "extProps": {},
  2332. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2333. "id": "F0FE065D-9371-483B-AFF7-813C8D3DECEF"
  2334. },
  2335. {
  2336. "defKey": "ORDER_NUM",
  2337. "defName": "虚拟订单量",
  2338. "comment": "",
  2339. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  2340. "type": "",
  2341. "len": "",
  2342. "scale": "",
  2343. "primaryKey": false,
  2344. "notNull": true,
  2345. "autoIncrement": false,
  2346. "defaultValue": "0",
  2347. "hideInGraph": false,
  2348. "refDict": "",
  2349. "attr1": "",
  2350. "attr2": "",
  2351. "attr3": "",
  2352. "attr4": "",
  2353. "attr5": "",
  2354. "attr6": "",
  2355. "attr7": "",
  2356. "attr8": "",
  2357. "attr9": "",
  2358. "id": "942F29C2-2C42-4340-92B2-FBD4A4EA57C5",
  2359. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  2360. "extProps": {},
  2361. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2362. },
  2363. {
  2364. "defKey": "TAGS",
  2365. "defName": "标签",
  2366. "comment": "[手法、明星、新人]等,根据评论数据计算",
  2367. "domain": "",
  2368. "type": "VARCHAR",
  2369. "len": "",
  2370. "scale": "",
  2371. "primaryKey": false,
  2372. "notNull": true,
  2373. "autoIncrement": false,
  2374. "defaultValue": "0",
  2375. "hideInGraph": false,
  2376. "refDict": "",
  2377. "attr1": "",
  2378. "attr2": "",
  2379. "attr3": "",
  2380. "attr4": "",
  2381. "attr5": "",
  2382. "attr6": "",
  2383. "attr7": "",
  2384. "attr8": "",
  2385. "attr9": "",
  2386. "id": "F2013645-CD4C-44F8-9B89-73E1D298FE1D",
  2387. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  2388. "extProps": {},
  2389. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2390. },
  2391. {
  2392. "defKey": "STATUS_APPROVE",
  2393. "defName": "认证状态",
  2394. "comment": "",
  2395. "type": "",
  2396. "len": "",
  2397. "scale": "",
  2398. "primaryKey": false,
  2399. "notNull": true,
  2400. "autoIncrement": false,
  2401. "defaultValue": "",
  2402. "hideInGraph": false,
  2403. "refDict": "BDC62651-089D-4011-8694-93703CD7EE14",
  2404. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  2405. "extProps": {},
  2406. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2407. "id": "9284BE3D-40D1-4391-9A62-2C93BCA96CAA"
  2408. },
  2409. {
  2410. "defKey": "STATUS_WORK",
  2411. "defName": "工作状态",
  2412. "comment": "",
  2413. "type": "",
  2414. "len": "",
  2415. "scale": "",
  2416. "primaryKey": false,
  2417. "notNull": false,
  2418. "autoIncrement": false,
  2419. "defaultValue": "",
  2420. "hideInGraph": false,
  2421. "refDict": "F9E7E9B5-5194-4AFF-97D2-4104DC18FAB9",
  2422. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  2423. "extProps": {},
  2424. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2425. "id": "67DE41C4-B7A0-4708-80E0-AD374C7DBE89"
  2426. },
  2427. {
  2428. "defKey": "STATUS_AMOUNT",
  2429. "defName": "账户状态",
  2430. "comment": "",
  2431. "domain": "",
  2432. "type": "TINYINT",
  2433. "len": "",
  2434. "scale": "",
  2435. "primaryKey": false,
  2436. "notNull": true,
  2437. "autoIncrement": false,
  2438. "defaultValue": "1",
  2439. "hideInGraph": false,
  2440. "refDict": "69393071-560F-4C68-B612-1C11FEFD4E3C",
  2441. "attr1": "",
  2442. "attr2": "",
  2443. "attr3": "",
  2444. "attr4": "",
  2445. "attr5": "",
  2446. "attr6": "",
  2447. "attr7": "",
  2448. "attr8": "",
  2449. "attr9": "",
  2450. "id": "1E136AD4-2114-40AA-B5DA-D23AB63EDC42",
  2451. "baseType": "",
  2452. "extProps": {},
  2453. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2454. },
  2455. {
  2456. "defKey": "agreements",
  2457. "defName": "合同",
  2458. "comment": "[各种合同地址]",
  2459. "type": "VARCHAR",
  2460. "len": 255,
  2461. "scale": "",
  2462. "primaryKey": false,
  2463. "notNull": false,
  2464. "autoIncrement": false,
  2465. "defaultValue": "",
  2466. "hideInGraph": false,
  2467. "refDict": "",
  2468. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  2469. "extProps": {},
  2470. "domain": "",
  2471. "id": "DA2F0E4F-A35E-4CCB-8F49-A52A7888D141"
  2472. }
  2473. ],
  2474. "indexes": [],
  2475. "type": "P",
  2476. "sysProps": {
  2477. "nameTemplate": "{defKey}[{defName}]"
  2478. },
  2479. "headers": [
  2480. {
  2481. "freeze": false,
  2482. "refKey": "hideInGraph",
  2483. "hideInGraph": true
  2484. },
  2485. {
  2486. "freeze": true,
  2487. "refKey": "defKey",
  2488. "hideInGraph": false
  2489. },
  2490. {
  2491. "freeze": true,
  2492. "refKey": "defName",
  2493. "hideInGraph": false
  2494. },
  2495. {
  2496. "freeze": false,
  2497. "refKey": "primaryKey",
  2498. "hideInGraph": false
  2499. },
  2500. {
  2501. "freeze": false,
  2502. "refKey": "notNull",
  2503. "hideInGraph": true
  2504. },
  2505. {
  2506. "freeze": false,
  2507. "refKey": "autoIncrement",
  2508. "hideInGraph": true
  2509. },
  2510. {
  2511. "freeze": false,
  2512. "refKey": "domain",
  2513. "hideInGraph": true
  2514. },
  2515. {
  2516. "freeze": false,
  2517. "refKey": "type",
  2518. "hideInGraph": false
  2519. },
  2520. {
  2521. "freeze": false,
  2522. "refKey": "len",
  2523. "hideInGraph": false
  2524. },
  2525. {
  2526. "freeze": false,
  2527. "refKey": "scale",
  2528. "hideInGraph": false
  2529. },
  2530. {
  2531. "freeze": false,
  2532. "refKey": "comment",
  2533. "hideInGraph": true
  2534. },
  2535. {
  2536. "freeze": false,
  2537. "refKey": "refDict",
  2538. "hideInGraph": true
  2539. },
  2540. {
  2541. "freeze": false,
  2542. "refKey": "defaultValue",
  2543. "hideInGraph": true
  2544. },
  2545. {
  2546. "freeze": false,
  2547. "refKey": "isStandard",
  2548. "hideInGraph": false
  2549. },
  2550. {
  2551. "freeze": false,
  2552. "refKey": "uiHint",
  2553. "hideInGraph": true
  2554. },
  2555. {
  2556. "freeze": false,
  2557. "refKey": "extProps",
  2558. "hideInGraph": true
  2559. }
  2560. ],
  2561. "correlations": [],
  2562. "notes": {}
  2563. },
  2564. {
  2565. "id": "0BB71B25-37DD-4BE2-B9C5-804995806979",
  2566. "defKey": "SERVICE_ORDER",
  2567. "defName": "",
  2568. "comment": "",
  2569. "properties": {},
  2570. "fields": [
  2571. {
  2572. "defKey": "ID",
  2573. "defName": "",
  2574. "comment": "",
  2575. "domain": "",
  2576. "type": "BIGINT UNSIGNED",
  2577. "len": "",
  2578. "scale": "",
  2579. "primaryKey": true,
  2580. "notNull": true,
  2581. "autoIncrement": true,
  2582. "defaultValue": "",
  2583. "hideInGraph": false,
  2584. "refDict": "",
  2585. "attr1": "",
  2586. "attr2": "",
  2587. "attr3": "",
  2588. "attr4": "",
  2589. "attr5": "",
  2590. "attr6": "",
  2591. "attr7": "",
  2592. "attr8": "",
  2593. "attr9": "",
  2594. "id": "0A29DBA6-8113-4B03-86E6-109DD61C286D",
  2595. "baseType": "",
  2596. "extProps": {},
  2597. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2598. },
  2599. {
  2600. "defKey": "USER_ID",
  2601. "defName": "用户ID",
  2602. "comment": "",
  2603. "domain": "",
  2604. "type": "BIGINT",
  2605. "len": "",
  2606. "scale": "",
  2607. "primaryKey": false,
  2608. "notNull": true,
  2609. "autoIncrement": false,
  2610. "defaultValue": "",
  2611. "hideInGraph": false,
  2612. "refDict": "",
  2613. "attr1": "",
  2614. "attr2": "",
  2615. "attr3": "",
  2616. "attr4": "",
  2617. "attr5": "",
  2618. "attr6": "",
  2619. "attr7": "",
  2620. "attr8": "",
  2621. "attr9": "",
  2622. "id": "ACC997C3-3EEF-4598-B6BA-251F410E185A",
  2623. "baseType": "",
  2624. "extProps": {},
  2625. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2626. },
  2627. {
  2628. "defKey": "ORDER_SN",
  2629. "defName": "订单编号",
  2630. "comment": "",
  2631. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2632. "type": "",
  2633. "len": "",
  2634. "scale": "",
  2635. "primaryKey": false,
  2636. "notNull": true,
  2637. "autoIncrement": false,
  2638. "defaultValue": "",
  2639. "hideInGraph": false,
  2640. "refDict": "",
  2641. "attr1": "",
  2642. "attr2": "",
  2643. "attr3": "",
  2644. "attr4": "",
  2645. "attr5": "",
  2646. "attr6": "",
  2647. "attr7": "",
  2648. "attr8": "",
  2649. "attr9": "",
  2650. "id": "733E9120-F3C3-4858-9DF7-354E321D4B74",
  2651. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  2652. "extProps": {},
  2653. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2654. },
  2655. {
  2656. "defKey": "PAY_TYPE",
  2657. "defName": "支付类型",
  2658. "comment": "",
  2659. "domain": "",
  2660. "type": "TINYINT",
  2661. "len": "",
  2662. "scale": "",
  2663. "primaryKey": false,
  2664. "notNull": true,
  2665. "autoIncrement": false,
  2666. "defaultValue": "",
  2667. "hideInGraph": false,
  2668. "refDict": "",
  2669. "attr1": "",
  2670. "attr2": "",
  2671. "attr3": "",
  2672. "attr4": "",
  2673. "attr5": "",
  2674. "attr6": "",
  2675. "attr7": "",
  2676. "attr8": "",
  2677. "attr9": "",
  2678. "id": "815515CE-EA48-420A-959B-998AADBCA021",
  2679. "baseType": "",
  2680. "extProps": {},
  2681. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2682. },
  2683. {
  2684. "defKey": "TRANSACTION_ID",
  2685. "defName": "商户订单号",
  2686. "comment": "",
  2687. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2688. "type": "",
  2689. "len": "",
  2690. "scale": "",
  2691. "primaryKey": false,
  2692. "notNull": true,
  2693. "autoIncrement": false,
  2694. "defaultValue": "",
  2695. "hideInGraph": false,
  2696. "refDict": "",
  2697. "attr1": "",
  2698. "attr2": "",
  2699. "attr3": "",
  2700. "attr4": "",
  2701. "attr5": "",
  2702. "attr6": "",
  2703. "attr7": "",
  2704. "attr8": "",
  2705. "attr9": "",
  2706. "id": "55C5098A-214C-458A-8257-501A4328A3DD",
  2707. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  2708. "extProps": {},
  2709. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2710. },
  2711. {
  2712. "defKey": "PROJECT_ID",
  2713. "defName": "项目ID",
  2714. "comment": "",
  2715. "domain": "",
  2716. "type": "BIGINT",
  2717. "len": "",
  2718. "scale": "",
  2719. "primaryKey": false,
  2720. "notNull": true,
  2721. "autoIncrement": false,
  2722. "defaultValue": "",
  2723. "hideInGraph": false,
  2724. "refDict": "",
  2725. "attr1": "",
  2726. "attr2": "",
  2727. "attr3": "",
  2728. "attr4": "",
  2729. "attr5": "",
  2730. "attr6": "",
  2731. "attr7": "",
  2732. "attr8": "",
  2733. "attr9": "",
  2734. "id": "277C2CA3-81A4-423D-8C2B-B51A81E2CFE5",
  2735. "baseType": "",
  2736. "extProps": {},
  2737. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2738. },
  2739. {
  2740. "defKey": "AREA_ID",
  2741. "defName": "区域ID",
  2742. "comment": "",
  2743. "domain": "",
  2744. "type": "BIGINT",
  2745. "len": "",
  2746. "scale": "",
  2747. "primaryKey": false,
  2748. "notNull": true,
  2749. "autoIncrement": false,
  2750. "defaultValue": "",
  2751. "hideInGraph": false,
  2752. "refDict": "",
  2753. "attr1": "",
  2754. "attr2": "",
  2755. "attr3": "",
  2756. "attr4": "",
  2757. "attr5": "",
  2758. "attr6": "",
  2759. "attr7": "",
  2760. "attr8": "",
  2761. "attr9": "",
  2762. "id": "830F0F32-8B9C-4A23-9180-86B2F6D6D0BB",
  2763. "baseType": "",
  2764. "extProps": {},
  2765. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2766. },
  2767. {
  2768. "defKey": "PROJECT_NAME",
  2769. "defName": "项目名称",
  2770. "comment": "",
  2771. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2772. "type": "",
  2773. "len": "",
  2774. "scale": "",
  2775. "primaryKey": false,
  2776. "notNull": true,
  2777. "autoIncrement": false,
  2778. "defaultValue": "",
  2779. "hideInGraph": false,
  2780. "refDict": "",
  2781. "attr1": "",
  2782. "attr2": "",
  2783. "attr3": "",
  2784. "attr4": "",
  2785. "attr5": "",
  2786. "attr6": "",
  2787. "attr7": "",
  2788. "attr8": "",
  2789. "attr9": "",
  2790. "id": "B3712D22-FDD9-4FFC-9FA2-1DC41A174398",
  2791. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  2792. "extProps": {},
  2793. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2794. },
  2795. {
  2796. "defKey": "PROJECT_ICON",
  2797. "defName": "项目图标",
  2798. "comment": "",
  2799. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2800. "type": "",
  2801. "len": "",
  2802. "scale": "",
  2803. "primaryKey": false,
  2804. "notNull": true,
  2805. "autoIncrement": false,
  2806. "defaultValue": "",
  2807. "hideInGraph": false,
  2808. "refDict": "",
  2809. "attr1": "",
  2810. "attr2": "",
  2811. "attr3": "",
  2812. "attr4": "",
  2813. "attr5": "",
  2814. "attr6": "",
  2815. "attr7": "",
  2816. "attr8": "",
  2817. "attr9": "",
  2818. "id": "0718A900-A55B-4188-93FB-B9DF24967C74",
  2819. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  2820. "extProps": {},
  2821. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2822. },
  2823. {
  2824. "defKey": "PAY_PRICE",
  2825. "defName": "支付金额",
  2826. "comment": "",
  2827. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  2828. "type": "",
  2829. "len": "",
  2830. "scale": "",
  2831. "primaryKey": false,
  2832. "notNull": false,
  2833. "autoIncrement": false,
  2834. "defaultValue": "0",
  2835. "hideInGraph": false,
  2836. "refDict": "",
  2837. "attr1": "",
  2838. "attr2": "",
  2839. "attr3": "",
  2840. "attr4": "",
  2841. "attr5": "",
  2842. "attr6": "",
  2843. "attr7": "",
  2844. "attr8": "",
  2845. "attr9": "",
  2846. "id": "A0E0F146-EF4E-4850-9693-E7CA3564F4E5",
  2847. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  2848. "extProps": {},
  2849. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2850. },
  2851. {
  2852. "defKey": "BALANCE_PRICE",
  2853. "defName": "余额金额",
  2854. "comment": "",
  2855. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  2856. "type": "",
  2857. "len": "",
  2858. "scale": "",
  2859. "primaryKey": false,
  2860. "notNull": false,
  2861. "autoIncrement": false,
  2862. "defaultValue": "0",
  2863. "hideInGraph": false,
  2864. "refDict": "",
  2865. "attr1": "",
  2866. "attr2": "",
  2867. "attr3": "",
  2868. "attr4": "",
  2869. "attr5": "",
  2870. "attr6": "",
  2871. "attr7": "",
  2872. "attr8": "",
  2873. "attr9": "",
  2874. "id": "FC0585EF-A16E-4301-A13D-AECA170060AF",
  2875. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  2876. "extProps": {},
  2877. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2878. },
  2879. {
  2880. "defKey": "DISCOUNT_PRICE",
  2881. "defName": "折扣金额",
  2882. "comment": "",
  2883. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  2884. "type": "",
  2885. "len": "",
  2886. "scale": "",
  2887. "primaryKey": false,
  2888. "notNull": false,
  2889. "autoIncrement": false,
  2890. "defaultValue": "0",
  2891. "hideInGraph": false,
  2892. "refDict": "",
  2893. "attr1": "",
  2894. "attr2": "",
  2895. "attr3": "",
  2896. "attr4": "",
  2897. "attr5": "",
  2898. "attr6": "",
  2899. "attr7": "",
  2900. "attr8": "",
  2901. "attr9": "",
  2902. "id": "B6BEA918-FFCD-4C60-BC65-666F54427218",
  2903. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  2904. "extProps": {},
  2905. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2906. },
  2907. {
  2908. "defKey": "COUPON_PRICE",
  2909. "defName": "优惠金额",
  2910. "comment": "",
  2911. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  2912. "type": "",
  2913. "len": "",
  2914. "scale": "",
  2915. "primaryKey": false,
  2916. "notNull": false,
  2917. "autoIncrement": false,
  2918. "defaultValue": "0",
  2919. "hideInGraph": false,
  2920. "refDict": "",
  2921. "attr1": "",
  2922. "attr2": "",
  2923. "attr3": "",
  2924. "attr4": "",
  2925. "attr5": "",
  2926. "attr6": "",
  2927. "attr7": "",
  2928. "attr8": "",
  2929. "attr9": "",
  2930. "id": "4537FCE2-09F2-42E5-B68E-E9B36CEEDB11",
  2931. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  2932. "extProps": {},
  2933. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2934. },
  2935. {
  2936. "defKey": "CAR_PRICE",
  2937. "defName": "车费金额",
  2938. "comment": "",
  2939. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  2940. "type": "",
  2941. "len": "",
  2942. "scale": "",
  2943. "primaryKey": false,
  2944. "notNull": false,
  2945. "autoIncrement": false,
  2946. "defaultValue": "0",
  2947. "hideInGraph": false,
  2948. "refDict": "",
  2949. "attr1": "",
  2950. "attr2": "",
  2951. "attr3": "",
  2952. "attr4": "",
  2953. "attr5": "",
  2954. "attr6": "",
  2955. "attr7": "",
  2956. "attr8": "",
  2957. "attr9": "",
  2958. "id": "8499A868-3E69-4D49-A0A3-C3C16FEADB05",
  2959. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  2960. "extProps": {},
  2961. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2962. },
  2963. {
  2964. "defKey": "MATERIAL_PRICE",
  2965. "defName": "物料金额",
  2966. "comment": "",
  2967. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  2968. "type": "",
  2969. "len": "",
  2970. "scale": "",
  2971. "primaryKey": false,
  2972. "notNull": false,
  2973. "autoIncrement": false,
  2974. "defaultValue": "0",
  2975. "hideInGraph": false,
  2976. "refDict": "",
  2977. "attr1": "",
  2978. "attr2": "",
  2979. "attr3": "",
  2980. "attr4": "",
  2981. "attr5": "",
  2982. "attr6": "",
  2983. "attr7": "",
  2984. "attr8": "",
  2985. "attr9": "",
  2986. "id": "A4B73E77-88C5-44C1-BF3F-D2CD19CF6FDB",
  2987. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  2988. "extProps": {},
  2989. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  2990. },
  2991. {
  2992. "defKey": "SERVICE_PRICE",
  2993. "defName": "服务金额",
  2994. "comment": "",
  2995. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  2996. "type": "",
  2997. "len": "",
  2998. "scale": "",
  2999. "primaryKey": false,
  3000. "notNull": false,
  3001. "autoIncrement": false,
  3002. "defaultValue": "0",
  3003. "hideInGraph": false,
  3004. "refDict": "",
  3005. "attr1": "",
  3006. "attr2": "",
  3007. "attr3": "",
  3008. "attr4": "",
  3009. "attr5": "",
  3010. "attr6": "",
  3011. "attr7": "",
  3012. "attr8": "",
  3013. "attr9": "",
  3014. "id": "4BFB2FF4-37B3-4211-BCDD-B04863418B82",
  3015. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  3016. "extProps": {},
  3017. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3018. },
  3019. {
  3020. "defKey": "COACH_ID",
  3021. "defName": "技师ID",
  3022. "comment": "",
  3023. "domain": "",
  3024. "type": "BIGINT",
  3025. "len": "",
  3026. "scale": "",
  3027. "primaryKey": false,
  3028. "notNull": false,
  3029. "autoIncrement": false,
  3030. "defaultValue": "",
  3031. "hideInGraph": false,
  3032. "refDict": "",
  3033. "attr1": "",
  3034. "attr2": "",
  3035. "attr3": "",
  3036. "attr4": "",
  3037. "attr5": "",
  3038. "attr6": "",
  3039. "attr7": "",
  3040. "attr8": "",
  3041. "attr9": "",
  3042. "id": "005782A1-26FD-47F5-AB20-A43F46452FB3",
  3043. "baseType": "",
  3044. "extProps": {},
  3045. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3046. },
  3047. {
  3048. "defKey": "START_TIME",
  3049. "defName": "开始时间",
  3050. "comment": "",
  3051. "domain": "",
  3052. "type": "TIMESTAMP",
  3053. "len": "",
  3054. "scale": "",
  3055. "primaryKey": false,
  3056. "notNull": false,
  3057. "autoIncrement": false,
  3058. "defaultValue": "",
  3059. "hideInGraph": false,
  3060. "refDict": "",
  3061. "attr1": "",
  3062. "attr2": "",
  3063. "attr3": "",
  3064. "attr4": "",
  3065. "attr5": "",
  3066. "attr6": "",
  3067. "attr7": "",
  3068. "attr8": "",
  3069. "attr9": "",
  3070. "id": "D4260110-592F-433C-BFB3-306B33F2AAED",
  3071. "baseType": "",
  3072. "extProps": {},
  3073. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3074. },
  3075. {
  3076. "defKey": "END_TIME",
  3077. "defName": "结束时间",
  3078. "comment": "",
  3079. "domain": "",
  3080. "type": "TIMESTAMP",
  3081. "len": "",
  3082. "scale": "",
  3083. "primaryKey": false,
  3084. "notNull": false,
  3085. "autoIncrement": false,
  3086. "defaultValue": "",
  3087. "hideInGraph": false,
  3088. "refDict": "",
  3089. "attr1": "",
  3090. "attr2": "",
  3091. "attr3": "",
  3092. "attr4": "",
  3093. "attr5": "",
  3094. "attr6": "",
  3095. "attr7": "",
  3096. "attr8": "",
  3097. "attr9": "",
  3098. "id": "175C3388-7EFC-41EF-BAA8-6815E2A1B565",
  3099. "baseType": "",
  3100. "extProps": {},
  3101. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3102. },
  3103. {
  3104. "defKey": "TIME_LONG",
  3105. "defName": "服务时长",
  3106. "comment": "",
  3107. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3108. "type": "",
  3109. "len": "",
  3110. "scale": "",
  3111. "primaryKey": false,
  3112. "notNull": false,
  3113. "autoIncrement": false,
  3114. "defaultValue": "",
  3115. "hideInGraph": false,
  3116. "refDict": "",
  3117. "attr1": "",
  3118. "attr2": "",
  3119. "attr3": "",
  3120. "attr4": "",
  3121. "attr5": "",
  3122. "attr6": "",
  3123. "attr7": "",
  3124. "attr8": "",
  3125. "attr9": "",
  3126. "id": "4B1F7598-4ACF-4E06-AD9B-232666A58FAC",
  3127. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  3128. "extProps": {},
  3129. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3130. },
  3131. {
  3132. "defKey": "TRUE_TIME_LONG",
  3133. "defName": "真实服务时长",
  3134. "comment": "",
  3135. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3136. "type": "",
  3137. "len": "",
  3138. "scale": "",
  3139. "primaryKey": false,
  3140. "notNull": false,
  3141. "autoIncrement": false,
  3142. "defaultValue": "",
  3143. "hideInGraph": false,
  3144. "refDict": "",
  3145. "attr1": "",
  3146. "attr2": "",
  3147. "attr3": "",
  3148. "attr4": "",
  3149. "attr5": "",
  3150. "attr6": "",
  3151. "attr7": "",
  3152. "attr8": "",
  3153. "attr9": "",
  3154. "id": "0A08CDFB-FDBD-4485-B54C-1F2BC859BC26",
  3155. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  3156. "extProps": {},
  3157. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3158. },
  3159. {
  3160. "defKey": "PAYMENT_TIME",
  3161. "defName": "入账时间",
  3162. "comment": "",
  3163. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3164. "type": "",
  3165. "len": "",
  3166. "scale": "",
  3167. "primaryKey": false,
  3168. "notNull": false,
  3169. "autoIncrement": false,
  3170. "defaultValue": "",
  3171. "hideInGraph": false,
  3172. "refDict": "",
  3173. "attr1": "",
  3174. "attr2": "",
  3175. "attr3": "",
  3176. "attr4": "",
  3177. "attr5": "",
  3178. "attr6": "",
  3179. "attr7": "",
  3180. "attr8": "",
  3181. "attr9": "",
  3182. "id": "C723CE90-EFDF-4AC9-9B66-6C5E677A1281",
  3183. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  3184. "extProps": {},
  3185. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3186. },
  3187. {
  3188. "defKey": "REMARK",
  3189. "defName": "备注",
  3190. "comment": "",
  3191. "domain": "",
  3192. "type": "TEXT",
  3193. "len": "",
  3194. "scale": "",
  3195. "primaryKey": false,
  3196. "notNull": false,
  3197. "autoIncrement": false,
  3198. "defaultValue": "",
  3199. "hideInGraph": false,
  3200. "refDict": "",
  3201. "attr1": "",
  3202. "attr2": "",
  3203. "attr3": "",
  3204. "attr4": "",
  3205. "attr5": "",
  3206. "attr6": "",
  3207. "attr7": "",
  3208. "attr8": "",
  3209. "attr9": "",
  3210. "id": "1FF6A689-401B-417B-AEBF-FCFD66D51A44",
  3211. "baseType": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
  3212. "extProps": {},
  3213. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3214. },
  3215. {
  3216. "defKey": "PAY_TIME",
  3217. "defName": "支付时间",
  3218. "comment": "",
  3219. "domain": "",
  3220. "type": "TIMESTAMP",
  3221. "len": "",
  3222. "scale": "",
  3223. "primaryKey": false,
  3224. "notNull": false,
  3225. "autoIncrement": false,
  3226. "defaultValue": "",
  3227. "hideInGraph": false,
  3228. "refDict": "",
  3229. "attr1": "",
  3230. "attr2": "",
  3231. "attr3": "",
  3232. "attr4": "",
  3233. "attr5": "",
  3234. "attr6": "",
  3235. "attr7": "",
  3236. "attr8": "",
  3237. "attr9": "",
  3238. "id": "80ECF055-6363-42E5-8745-009E4CE7A347",
  3239. "baseType": "",
  3240. "extProps": {},
  3241. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3242. },
  3243. {
  3244. "defKey": "RECEIVING_TIME",
  3245. "defName": "接单时间",
  3246. "comment": "",
  3247. "domain": "",
  3248. "type": "TIMESTAMP",
  3249. "len": "",
  3250. "scale": "",
  3251. "primaryKey": false,
  3252. "notNull": false,
  3253. "autoIncrement": false,
  3254. "defaultValue": "",
  3255. "hideInGraph": false,
  3256. "refDict": "",
  3257. "attr1": "",
  3258. "attr2": "",
  3259. "attr3": "",
  3260. "attr4": "",
  3261. "attr5": "",
  3262. "attr6": "",
  3263. "attr7": "",
  3264. "attr8": "",
  3265. "attr9": "",
  3266. "id": "48DCE7F1-2BC1-47DA-8D1E-B94488B6846D",
  3267. "baseType": "",
  3268. "extProps": {},
  3269. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3270. },
  3271. {
  3272. "defKey": "DEPART_TIME",
  3273. "defName": "出发时间",
  3274. "comment": "",
  3275. "domain": "",
  3276. "type": "TIMESTAMP",
  3277. "len": "",
  3278. "scale": "",
  3279. "primaryKey": false,
  3280. "notNull": false,
  3281. "autoIncrement": false,
  3282. "defaultValue": "",
  3283. "hideInGraph": false,
  3284. "refDict": "",
  3285. "attr1": "",
  3286. "attr2": "",
  3287. "attr3": "",
  3288. "attr4": "",
  3289. "attr5": "",
  3290. "attr6": "",
  3291. "attr7": "",
  3292. "attr8": "",
  3293. "attr9": "",
  3294. "id": "54DC58D3-78CC-45D5-9D34-E211DCFCC4D8",
  3295. "baseType": "",
  3296. "extProps": {},
  3297. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3298. },
  3299. {
  3300. "defKey": "ARRIVE_TIME",
  3301. "defName": "到达时间",
  3302. "comment": "",
  3303. "domain": "",
  3304. "type": "TIMESTAMP",
  3305. "len": "",
  3306. "scale": "",
  3307. "primaryKey": false,
  3308. "notNull": false,
  3309. "autoIncrement": false,
  3310. "defaultValue": "",
  3311. "hideInGraph": false,
  3312. "refDict": "",
  3313. "attr1": "",
  3314. "attr2": "",
  3315. "attr3": "",
  3316. "attr4": "",
  3317. "attr5": "",
  3318. "attr6": "",
  3319. "attr7": "",
  3320. "attr8": "",
  3321. "attr9": "",
  3322. "id": "EFD7F0C3-C3B7-4F58-A4F9-FC0C7DD0CFFE",
  3323. "baseType": "",
  3324. "extProps": {},
  3325. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3326. },
  3327. {
  3328. "defKey": "OVER_TIME",
  3329. "defName": "撤离时间",
  3330. "comment": "",
  3331. "domain": "",
  3332. "type": "TIMESTAMP",
  3333. "len": "",
  3334. "scale": "",
  3335. "primaryKey": false,
  3336. "notNull": false,
  3337. "autoIncrement": false,
  3338. "defaultValue": "",
  3339. "hideInGraph": false,
  3340. "refDict": "",
  3341. "attr1": "",
  3342. "attr2": "",
  3343. "attr3": "",
  3344. "attr4": "",
  3345. "attr5": "",
  3346. "attr6": "",
  3347. "attr7": "",
  3348. "attr8": "",
  3349. "attr9": "",
  3350. "id": "2A79EA3F-A8AA-40E4-BA9E-5E84B5DB2944",
  3351. "baseType": "",
  3352. "extProps": {},
  3353. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3354. },
  3355. {
  3356. "defKey": "REFUND_TIME",
  3357. "defName": "退款时间",
  3358. "comment": "",
  3359. "domain": "",
  3360. "type": "TIMESTAMP",
  3361. "len": "",
  3362. "scale": "",
  3363. "primaryKey": false,
  3364. "notNull": false,
  3365. "autoIncrement": false,
  3366. "defaultValue": "",
  3367. "hideInGraph": false,
  3368. "refDict": "",
  3369. "attr1": "",
  3370. "attr2": "",
  3371. "attr3": "",
  3372. "attr4": "",
  3373. "attr5": "",
  3374. "attr6": "",
  3375. "attr7": "",
  3376. "attr8": "",
  3377. "attr9": "",
  3378. "id": "1B23E57C-984C-49FD-8ECA-654587C80E86",
  3379. "baseType": "",
  3380. "extProps": {},
  3381. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3382. },
  3383. {
  3384. "defKey": "REFUND_TEXT",
  3385. "defName": "退款原因",
  3386. "comment": "",
  3387. "domain": "",
  3388. "type": "TEXT",
  3389. "len": "",
  3390. "scale": "",
  3391. "primaryKey": false,
  3392. "notNull": false,
  3393. "autoIncrement": false,
  3394. "defaultValue": "",
  3395. "hideInGraph": false,
  3396. "refDict": "",
  3397. "attr1": "",
  3398. "attr2": "",
  3399. "attr3": "",
  3400. "attr4": "",
  3401. "attr5": "",
  3402. "attr6": "",
  3403. "attr7": "",
  3404. "attr8": "",
  3405. "attr9": "",
  3406. "id": "E6459B70-FA70-4AD7-806B-57EB8B0D3729",
  3407. "baseType": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
  3408. "extProps": {},
  3409. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3410. },
  3411. {
  3412. "defKey": "DISTANCE",
  3413. "defName": "相隔距离",
  3414. "comment": "",
  3415. "domain": "",
  3416. "type": "DECIMAL",
  3417. "len": 10,
  3418. "scale": 2,
  3419. "primaryKey": false,
  3420. "notNull": false,
  3421. "autoIncrement": false,
  3422. "defaultValue": "",
  3423. "hideInGraph": false,
  3424. "refDict": "",
  3425. "attr1": "",
  3426. "attr2": "",
  3427. "attr3": "",
  3428. "attr4": "",
  3429. "attr5": "",
  3430. "attr6": "",
  3431. "attr7": "",
  3432. "attr8": "",
  3433. "attr9": "",
  3434. "id": "9ED6C52C-4B77-4B55-A4FA-A1F333C93533",
  3435. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  3436. "extProps": {},
  3437. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3438. },
  3439. {
  3440. "defKey": "IS_SHOW",
  3441. "defName": "展示订单",
  3442. "comment": "",
  3443. "domain": "",
  3444. "type": "TINYINT",
  3445. "len": "",
  3446. "scale": "",
  3447. "primaryKey": false,
  3448. "notNull": true,
  3449. "autoIncrement": false,
  3450. "defaultValue": "1",
  3451. "hideInGraph": false,
  3452. "refDict": "",
  3453. "attr1": "",
  3454. "attr2": "",
  3455. "attr3": "",
  3456. "attr4": "",
  3457. "attr5": "",
  3458. "attr6": "",
  3459. "attr7": "",
  3460. "attr8": "",
  3461. "attr9": "",
  3462. "id": "7BCF6778-B80D-4182-A472-22BA23A407DB",
  3463. "baseType": "",
  3464. "extProps": {},
  3465. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3466. },
  3467. {
  3468. "defKey": "DEPART_LNG",
  3469. "defName": "出发经度",
  3470. "comment": "",
  3471. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3472. "type": "",
  3473. "len": "",
  3474. "scale": "",
  3475. "primaryKey": false,
  3476. "notNull": false,
  3477. "autoIncrement": false,
  3478. "defaultValue": "",
  3479. "hideInGraph": false,
  3480. "refDict": "",
  3481. "attr1": "",
  3482. "attr2": "",
  3483. "attr3": "",
  3484. "attr4": "",
  3485. "attr5": "",
  3486. "attr6": "",
  3487. "attr7": "",
  3488. "attr8": "",
  3489. "attr9": "",
  3490. "id": "A892A4B0-8231-48F9-853C-F0C0482ABB62",
  3491. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  3492. "extProps": {},
  3493. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3494. },
  3495. {
  3496. "defKey": "DEPART_LAT",
  3497. "defName": "出发纬度",
  3498. "comment": "",
  3499. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3500. "type": "",
  3501. "len": "",
  3502. "scale": "",
  3503. "primaryKey": false,
  3504. "notNull": false,
  3505. "autoIncrement": false,
  3506. "defaultValue": "",
  3507. "hideInGraph": false,
  3508. "refDict": "",
  3509. "attr1": "",
  3510. "attr2": "",
  3511. "attr3": "",
  3512. "attr4": "",
  3513. "attr5": "",
  3514. "attr6": "",
  3515. "attr7": "",
  3516. "attr8": "",
  3517. "attr9": "",
  3518. "id": "7922B249-3F34-40FA-BBA6-B5AD999875D2",
  3519. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  3520. "extProps": {},
  3521. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3522. },
  3523. {
  3524. "defKey": "DEPART_ADDRESS",
  3525. "defName": "出发地址",
  3526. "comment": "",
  3527. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3528. "type": "",
  3529. "len": "",
  3530. "scale": "",
  3531. "primaryKey": false,
  3532. "notNull": false,
  3533. "autoIncrement": false,
  3534. "defaultValue": "",
  3535. "hideInGraph": false,
  3536. "refDict": "",
  3537. "attr1": "",
  3538. "attr2": "",
  3539. "attr3": "",
  3540. "attr4": "",
  3541. "attr5": "",
  3542. "attr6": "",
  3543. "attr7": "",
  3544. "attr8": "",
  3545. "attr9": "",
  3546. "id": "9039FE16-2CC1-4BB1-A95A-BDFE8DB691B6",
  3547. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  3548. "extProps": {},
  3549. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3550. },
  3551. {
  3552. "defKey": "ARRIVE_IMG",
  3553. "defName": "到达图片",
  3554. "comment": "",
  3555. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3556. "type": "",
  3557. "len": "",
  3558. "scale": "",
  3559. "primaryKey": false,
  3560. "notNull": false,
  3561. "autoIncrement": false,
  3562. "defaultValue": "",
  3563. "hideInGraph": false,
  3564. "refDict": "",
  3565. "attr1": "",
  3566. "attr2": "",
  3567. "attr3": "",
  3568. "attr4": "",
  3569. "attr5": "",
  3570. "attr6": "",
  3571. "attr7": "",
  3572. "attr8": "",
  3573. "attr9": "",
  3574. "id": "C371FD67-5FA4-48FF-88B6-929307E88157",
  3575. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  3576. "extProps": {},
  3577. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3578. },
  3579. {
  3580. "defKey": "ARRIVE_LNG",
  3581. "defName": "到达经度",
  3582. "comment": "",
  3583. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3584. "type": "",
  3585. "len": "",
  3586. "scale": "",
  3587. "primaryKey": false,
  3588. "notNull": false,
  3589. "autoIncrement": false,
  3590. "defaultValue": "",
  3591. "hideInGraph": false,
  3592. "refDict": "",
  3593. "attr1": "",
  3594. "attr2": "",
  3595. "attr3": "",
  3596. "attr4": "",
  3597. "attr5": "",
  3598. "attr6": "",
  3599. "attr7": "",
  3600. "attr8": "",
  3601. "attr9": "",
  3602. "id": "2D846319-4760-4862-8D39-F70AC0B33B63",
  3603. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  3604. "extProps": {},
  3605. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3606. },
  3607. {
  3608. "defKey": "ARRIVE_LAT",
  3609. "defName": "到达纬度",
  3610. "comment": "",
  3611. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3612. "type": "",
  3613. "len": "",
  3614. "scale": "",
  3615. "primaryKey": false,
  3616. "notNull": false,
  3617. "autoIncrement": false,
  3618. "defaultValue": "",
  3619. "hideInGraph": false,
  3620. "refDict": "",
  3621. "attr1": "",
  3622. "attr2": "",
  3623. "attr3": "",
  3624. "attr4": "",
  3625. "attr5": "",
  3626. "attr6": "",
  3627. "attr7": "",
  3628. "attr8": "",
  3629. "attr9": "",
  3630. "id": "E801A22F-99B3-4D3F-B7A4-BDF94F596B6B",
  3631. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  3632. "extProps": {},
  3633. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3634. },
  3635. {
  3636. "defKey": "ARRIVE_ADDRESS",
  3637. "defName": "到达地址",
  3638. "comment": "",
  3639. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3640. "type": "",
  3641. "len": "",
  3642. "scale": "",
  3643. "primaryKey": false,
  3644. "notNull": false,
  3645. "autoIncrement": false,
  3646. "defaultValue": "",
  3647. "hideInGraph": false,
  3648. "refDict": "",
  3649. "attr1": "",
  3650. "attr2": "",
  3651. "attr3": "",
  3652. "attr4": "",
  3653. "attr5": "",
  3654. "attr6": "",
  3655. "attr7": "",
  3656. "attr8": "",
  3657. "attr9": "",
  3658. "id": "EA46A27F-0DF9-4CE1-AA7A-712F2CF77CE8",
  3659. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  3660. "extProps": {},
  3661. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3662. },
  3663. {
  3664. "defKey": "ADDRESS",
  3665. "defName": "目的地地址",
  3666. "comment": "",
  3667. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3668. "type": "",
  3669. "len": "",
  3670. "scale": "",
  3671. "primaryKey": false,
  3672. "notNull": false,
  3673. "autoIncrement": false,
  3674. "defaultValue": "",
  3675. "hideInGraph": false,
  3676. "refDict": "",
  3677. "attr1": "",
  3678. "attr2": "",
  3679. "attr3": "",
  3680. "attr4": "",
  3681. "attr5": "",
  3682. "attr6": "",
  3683. "attr7": "",
  3684. "attr8": "",
  3685. "attr9": "",
  3686. "id": "4D303577-7283-49BF-8499-EA82E541419D",
  3687. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  3688. "extProps": {},
  3689. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3690. },
  3691. {
  3692. "defKey": "REAL_ADDRESS",
  3693. "defName": "目的地真实地址",
  3694. "comment": "",
  3695. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3696. "type": "",
  3697. "len": "",
  3698. "scale": "",
  3699. "primaryKey": false,
  3700. "notNull": false,
  3701. "autoIncrement": false,
  3702. "defaultValue": "",
  3703. "hideInGraph": false,
  3704. "refDict": "",
  3705. "attr1": "",
  3706. "attr2": "",
  3707. "attr3": "",
  3708. "attr4": "",
  3709. "attr5": "",
  3710. "attr6": "",
  3711. "attr7": "",
  3712. "attr8": "",
  3713. "attr9": "",
  3714. "id": "1C5CB952-ECBA-45C3-85D1-1B5A43A10025",
  3715. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  3716. "extProps": {},
  3717. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3718. },
  3719. {
  3720. "defKey": "ADDRESS_LNG",
  3721. "defName": "目的地经度",
  3722. "comment": "",
  3723. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3724. "type": "",
  3725. "len": "",
  3726. "scale": "",
  3727. "primaryKey": false,
  3728. "notNull": false,
  3729. "autoIncrement": false,
  3730. "defaultValue": "",
  3731. "hideInGraph": false,
  3732. "refDict": "",
  3733. "attr1": "",
  3734. "attr2": "",
  3735. "attr3": "",
  3736. "attr4": "",
  3737. "attr5": "",
  3738. "attr6": "",
  3739. "attr7": "",
  3740. "attr8": "",
  3741. "attr9": "",
  3742. "id": "90FE170B-F4E0-4343-856D-D35B52B3C234",
  3743. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  3744. "extProps": {},
  3745. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3746. },
  3747. {
  3748. "defKey": "ADDRESS_LAT",
  3749. "defName": "目的地纬度",
  3750. "comment": "",
  3751. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3752. "type": "",
  3753. "len": "",
  3754. "scale": "",
  3755. "primaryKey": false,
  3756. "notNull": false,
  3757. "autoIncrement": false,
  3758. "defaultValue": "",
  3759. "hideInGraph": false,
  3760. "refDict": "",
  3761. "attr1": "",
  3762. "attr2": "",
  3763. "attr3": "",
  3764. "attr4": "",
  3765. "attr5": "",
  3766. "attr6": "",
  3767. "attr7": "",
  3768. "attr8": "",
  3769. "attr9": "",
  3770. "id": "DDC7A94B-D49A-4ED4-9BC8-28BAB48C3460",
  3771. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  3772. "extProps": {},
  3773. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3774. },
  3775. {
  3776. "defKey": "OVER_IMG",
  3777. "defName": "撤离图片",
  3778. "comment": "",
  3779. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3780. "type": "",
  3781. "len": "",
  3782. "scale": "",
  3783. "primaryKey": false,
  3784. "notNull": false,
  3785. "autoIncrement": false,
  3786. "defaultValue": "",
  3787. "hideInGraph": false,
  3788. "refDict": "",
  3789. "attr1": "",
  3790. "attr2": "",
  3791. "attr3": "",
  3792. "attr4": "",
  3793. "attr5": "",
  3794. "attr6": "",
  3795. "attr7": "",
  3796. "attr8": "",
  3797. "attr9": "",
  3798. "id": "0D70B566-A340-4D2D-AF53-64B802ACED52",
  3799. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  3800. "extProps": {},
  3801. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3802. },
  3803. {
  3804. "defKey": "OVER_LNG",
  3805. "defName": "撤离经度",
  3806. "comment": "",
  3807. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3808. "type": "",
  3809. "len": "",
  3810. "scale": "",
  3811. "primaryKey": false,
  3812. "notNull": false,
  3813. "autoIncrement": false,
  3814. "defaultValue": "",
  3815. "hideInGraph": false,
  3816. "refDict": "",
  3817. "attr1": "",
  3818. "attr2": "",
  3819. "attr3": "",
  3820. "attr4": "",
  3821. "attr5": "",
  3822. "attr6": "",
  3823. "attr7": "",
  3824. "attr8": "",
  3825. "attr9": "",
  3826. "id": "EAAFA76B-95C0-4228-BAA3-06DD753FF218",
  3827. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  3828. "extProps": {},
  3829. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3830. },
  3831. {
  3832. "defKey": "OVER_LAT",
  3833. "defName": "撤离纬度",
  3834. "comment": "",
  3835. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3836. "type": "",
  3837. "len": "",
  3838. "scale": "",
  3839. "primaryKey": false,
  3840. "notNull": false,
  3841. "autoIncrement": false,
  3842. "defaultValue": "",
  3843. "hideInGraph": false,
  3844. "refDict": "",
  3845. "attr1": "",
  3846. "attr2": "",
  3847. "attr3": "",
  3848. "attr4": "",
  3849. "attr5": "",
  3850. "attr6": "",
  3851. "attr7": "",
  3852. "attr8": "",
  3853. "attr9": "",
  3854. "id": "504183AD-2FA7-4E16-BF04-5316C85FC522",
  3855. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  3856. "extProps": {},
  3857. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3858. },
  3859. {
  3860. "defKey": "OVER_ADDRESS",
  3861. "defName": "撤离地址",
  3862. "comment": "",
  3863. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3864. "type": "",
  3865. "len": "",
  3866. "scale": "",
  3867. "primaryKey": false,
  3868. "notNull": false,
  3869. "autoIncrement": false,
  3870. "defaultValue": "",
  3871. "hideInGraph": false,
  3872. "refDict": "",
  3873. "attr1": "",
  3874. "attr2": "",
  3875. "attr3": "",
  3876. "attr4": "",
  3877. "attr5": "",
  3878. "attr6": "",
  3879. "attr7": "",
  3880. "attr8": "",
  3881. "attr9": "",
  3882. "id": "2873DBB5-44FB-47F4-A921-685FA64AD992",
  3883. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  3884. "extProps": {},
  3885. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3886. },
  3887. {
  3888. "defKey": "AGENT_COMMISSION_RATIO",
  3889. "defName": "代理佣金比例",
  3890. "comment": "",
  3891. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3892. "type": "",
  3893. "len": "",
  3894. "scale": "",
  3895. "primaryKey": false,
  3896. "notNull": false,
  3897. "autoIncrement": false,
  3898. "defaultValue": "",
  3899. "hideInGraph": false,
  3900. "refDict": "",
  3901. "attr1": "",
  3902. "attr2": "",
  3903. "attr3": "",
  3904. "attr4": "",
  3905. "attr5": "",
  3906. "attr6": "",
  3907. "attr7": "",
  3908. "attr8": "",
  3909. "attr9": "",
  3910. "id": "E22EAFAF-0635-4FF7-9FF7-23277D4D2B25",
  3911. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  3912. "extProps": {},
  3913. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3914. },
  3915. {
  3916. "defKey": "AGENT_COMMISSION_PRICE",
  3917. "defName": "代理佣金金额",
  3918. "comment": "",
  3919. "domain": "",
  3920. "type": "DECIMAL",
  3921. "len": 10,
  3922. "scale": 2,
  3923. "primaryKey": false,
  3924. "notNull": false,
  3925. "autoIncrement": false,
  3926. "defaultValue": "",
  3927. "hideInGraph": false,
  3928. "refDict": "",
  3929. "attr1": "",
  3930. "attr2": "",
  3931. "attr3": "",
  3932. "attr4": "",
  3933. "attr5": "",
  3934. "attr6": "",
  3935. "attr7": "",
  3936. "attr8": "",
  3937. "attr9": "",
  3938. "id": "56E27936-99DB-48CC-9A68-FE662F149F3E",
  3939. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  3940. "extProps": {},
  3941. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3942. },
  3943. {
  3944. "defKey": "COACH_COMMISSION_RATIO",
  3945. "defName": "技师佣金比例",
  3946. "comment": "",
  3947. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3948. "type": "",
  3949. "len": "",
  3950. "scale": "",
  3951. "primaryKey": false,
  3952. "notNull": false,
  3953. "autoIncrement": false,
  3954. "defaultValue": "",
  3955. "hideInGraph": false,
  3956. "refDict": "",
  3957. "attr1": "",
  3958. "attr2": "",
  3959. "attr3": "",
  3960. "attr4": "",
  3961. "attr5": "",
  3962. "attr6": "",
  3963. "attr7": "",
  3964. "attr8": "",
  3965. "attr9": "",
  3966. "id": "BD19EEFE-45D3-40A5-BEBC-550EB531ACAD",
  3967. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  3968. "extProps": {},
  3969. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3970. },
  3971. {
  3972. "defKey": "COACH_COMMISSION_PRICE",
  3973. "defName": "技师佣金金额",
  3974. "comment": "",
  3975. "domain": "",
  3976. "type": "DECIMAL",
  3977. "len": 10,
  3978. "scale": 2,
  3979. "primaryKey": false,
  3980. "notNull": false,
  3981. "autoIncrement": false,
  3982. "defaultValue": "",
  3983. "hideInGraph": false,
  3984. "refDict": "",
  3985. "attr1": "",
  3986. "attr2": "",
  3987. "attr3": "",
  3988. "attr4": "",
  3989. "attr5": "",
  3990. "attr6": "",
  3991. "attr7": "",
  3992. "attr8": "",
  3993. "attr9": "",
  3994. "id": "343DC4CB-6507-415D-86BD-FD147B551BE9",
  3995. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  3996. "extProps": {},
  3997. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  3998. },
  3999. {
  4000. "defKey": "COMPANY_PRICE",
  4001. "defName": "平台金额",
  4002. "comment": "",
  4003. "domain": "",
  4004. "type": "DECIMAL",
  4005. "len": 10,
  4006. "scale": 2,
  4007. "primaryKey": false,
  4008. "notNull": false,
  4009. "autoIncrement": false,
  4010. "defaultValue": "",
  4011. "hideInGraph": false,
  4012. "refDict": "",
  4013. "attr1": "",
  4014. "attr2": "",
  4015. "attr3": "",
  4016. "attr4": "",
  4017. "attr5": "",
  4018. "attr6": "",
  4019. "attr7": "",
  4020. "attr8": "",
  4021. "attr9": "",
  4022. "id": "FC9B00D3-D4C5-4036-870F-47D44FEDB39A",
  4023. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  4024. "extProps": {},
  4025. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4026. },
  4027. {
  4028. "defKey": "RETAIL_PRICE",
  4029. "defName": "分销金额",
  4030. "comment": "",
  4031. "domain": "",
  4032. "type": "DECIMAL",
  4033. "len": 10,
  4034. "scale": 2,
  4035. "primaryKey": false,
  4036. "notNull": false,
  4037. "autoIncrement": false,
  4038. "defaultValue": "",
  4039. "hideInGraph": false,
  4040. "refDict": "",
  4041. "attr1": "",
  4042. "attr2": "",
  4043. "attr3": "",
  4044. "attr4": "",
  4045. "attr5": "",
  4046. "attr6": "",
  4047. "attr7": "",
  4048. "attr8": "",
  4049. "attr9": "",
  4050. "id": "21125577-08CA-42D4-8BDA-DC3EF55F866C",
  4051. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  4052. "extProps": {},
  4053. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4054. },
  4055. {
  4056. "defKey": "COUPON_ID",
  4057. "defName": "优惠卷ID",
  4058. "comment": "",
  4059. "domain": "",
  4060. "type": "BIGINT",
  4061. "len": "",
  4062. "scale": "",
  4063. "primaryKey": false,
  4064. "notNull": false,
  4065. "autoIncrement": false,
  4066. "defaultValue": "",
  4067. "hideInGraph": false,
  4068. "refDict": "",
  4069. "attr1": "",
  4070. "attr2": "",
  4071. "attr3": "",
  4072. "attr4": "",
  4073. "attr5": "",
  4074. "attr6": "",
  4075. "attr7": "",
  4076. "attr8": "",
  4077. "attr9": "",
  4078. "id": "5FF2303F-3FD5-4607-86CC-C62248133631",
  4079. "baseType": "",
  4080. "extProps": {},
  4081. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4082. },
  4083. {
  4084. "defKey": "CHANNEL_ID",
  4085. "defName": "渠道ID",
  4086. "comment": "",
  4087. "domain": "",
  4088. "type": "BIGINT",
  4089. "len": "",
  4090. "scale": "",
  4091. "primaryKey": false,
  4092. "notNull": false,
  4093. "autoIncrement": false,
  4094. "defaultValue": "",
  4095. "hideInGraph": false,
  4096. "refDict": "",
  4097. "attr1": "",
  4098. "attr2": "",
  4099. "attr3": "",
  4100. "attr4": "",
  4101. "attr5": "",
  4102. "attr6": "",
  4103. "attr7": "",
  4104. "attr8": "",
  4105. "attr9": "",
  4106. "id": "C2C24DCC-98D4-45F6-B0F2-C83B7AB10149",
  4107. "baseType": "",
  4108. "extProps": {},
  4109. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4110. },
  4111. {
  4112. "defKey": "CHANNEL_CATE_ID",
  4113. "defName": "渠道ID",
  4114. "comment": "",
  4115. "domain": "",
  4116. "type": "BIGINT",
  4117. "len": "",
  4118. "scale": "",
  4119. "primaryKey": false,
  4120. "notNull": false,
  4121. "autoIncrement": false,
  4122. "defaultValue": "",
  4123. "hideInGraph": false,
  4124. "refDict": "",
  4125. "attr1": "",
  4126. "attr2": "",
  4127. "attr3": "",
  4128. "attr4": "",
  4129. "attr5": "",
  4130. "attr6": "",
  4131. "attr7": "",
  4132. "attr8": "",
  4133. "attr9": "",
  4134. "id": "366E7AE8-ABE3-4082-84CD-8B15E1E1B837",
  4135. "baseType": "",
  4136. "extProps": {},
  4137. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4138. },
  4139. {
  4140. "defKey": "EXTEND_ORDER",
  4141. "defName": "加钟订单",
  4142. "comment": "",
  4143. "domain": "",
  4144. "type": "TINYINT",
  4145. "len": "",
  4146. "scale": "",
  4147. "primaryKey": false,
  4148. "notNull": true,
  4149. "autoIncrement": false,
  4150. "defaultValue": "0",
  4151. "hideInGraph": false,
  4152. "refDict": "",
  4153. "attr1": "",
  4154. "attr2": "",
  4155. "attr3": "",
  4156. "attr4": "",
  4157. "attr5": "",
  4158. "attr6": "",
  4159. "attr7": "",
  4160. "attr8": "",
  4161. "attr9": "",
  4162. "id": "E3669B02-E49A-4189-9A61-5B70C5ECC816",
  4163. "baseType": "",
  4164. "extProps": {},
  4165. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4166. },
  4167. {
  4168. "defKey": "EXTEND_ORDER_ID",
  4169. "defName": "加钟订单ID",
  4170. "comment": "",
  4171. "domain": "",
  4172. "type": "TINYINT",
  4173. "len": "",
  4174. "scale": "",
  4175. "primaryKey": false,
  4176. "notNull": true,
  4177. "autoIncrement": false,
  4178. "defaultValue": "0",
  4179. "hideInGraph": false,
  4180. "refDict": "",
  4181. "attr1": "",
  4182. "attr2": "",
  4183. "attr3": "",
  4184. "attr4": "",
  4185. "attr5": "",
  4186. "attr6": "",
  4187. "attr7": "",
  4188. "attr8": "",
  4189. "attr9": "",
  4190. "id": "F8F6C510-8003-4B37-B0AC-01CD4D062131",
  4191. "baseType": "",
  4192. "extProps": {},
  4193. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4194. },
  4195. {
  4196. "defKey": "STORE_ID",
  4197. "defName": "店铺ID",
  4198. "comment": "",
  4199. "domain": "",
  4200. "type": "BIGINT",
  4201. "len": "",
  4202. "scale": "",
  4203. "primaryKey": false,
  4204. "notNull": false,
  4205. "autoIncrement": false,
  4206. "defaultValue": "",
  4207. "hideInGraph": false,
  4208. "refDict": "",
  4209. "attr1": "",
  4210. "attr2": "",
  4211. "attr3": "",
  4212. "attr4": "",
  4213. "attr5": "",
  4214. "attr6": "",
  4215. "attr7": "",
  4216. "attr8": "",
  4217. "attr9": "",
  4218. "id": "F1891C38-ECD7-4104-BAF6-A148968BEC48",
  4219. "baseType": "",
  4220. "extProps": {},
  4221. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4222. },
  4223. {
  4224. "defKey": "TYPE",
  4225. "defName": "订单类型",
  4226. "comment": "",
  4227. "domain": "",
  4228. "type": "TINYINT",
  4229. "len": "",
  4230. "scale": "",
  4231. "primaryKey": false,
  4232. "notNull": true,
  4233. "autoIncrement": false,
  4234. "defaultValue": "0",
  4235. "hideInGraph": false,
  4236. "refDict": "",
  4237. "attr1": "",
  4238. "attr2": "",
  4239. "attr3": "",
  4240. "attr4": "",
  4241. "attr5": "",
  4242. "attr6": "",
  4243. "attr7": "",
  4244. "attr8": "",
  4245. "attr9": "",
  4246. "id": "82B14131-EA45-4F8F-AD99-17A7D02293BD",
  4247. "baseType": "",
  4248. "extProps": {},
  4249. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4250. },
  4251. {
  4252. "defKey": "STATUS",
  4253. "defName": "订单状态 0:未支付 1:已支付(待接单) 2:已接单 3:已出发 4:已到达 5:开始服务(服务中) 6:服务结束 7:已撤离 8:已评价 9:取消订单(退款中) 10:已退款",
  4254. "comment": "",
  4255. "domain": "",
  4256. "type": "TINYINT",
  4257. "len": "",
  4258. "scale": "",
  4259. "primaryKey": false,
  4260. "notNull": true,
  4261. "autoIncrement": false,
  4262. "defaultValue": "0",
  4263. "hideInGraph": false,
  4264. "refDict": "",
  4265. "attr1": "",
  4266. "attr2": "",
  4267. "attr3": "",
  4268. "attr4": "",
  4269. "attr5": "",
  4270. "attr6": "",
  4271. "attr7": "",
  4272. "attr8": "",
  4273. "attr9": "",
  4274. "id": "4E8104E3-6A79-4775-B367-9F30CE95D90C",
  4275. "baseType": "",
  4276. "extProps": {},
  4277. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4278. },
  4279. {
  4280. "defKey": "USER_DEL",
  4281. "defName": "用户删除",
  4282. "comment": "",
  4283. "domain": "",
  4284. "type": "TINYINT",
  4285. "len": "",
  4286. "scale": "",
  4287. "primaryKey": false,
  4288. "notNull": true,
  4289. "autoIncrement": false,
  4290. "defaultValue": "0",
  4291. "hideInGraph": false,
  4292. "refDict": "",
  4293. "attr1": "",
  4294. "attr2": "",
  4295. "attr3": "",
  4296. "attr4": "",
  4297. "attr5": "",
  4298. "attr6": "",
  4299. "attr7": "",
  4300. "attr8": "",
  4301. "attr9": "",
  4302. "id": "35F31FD0-A395-46D5-BEAA-5EB1C869FE51",
  4303. "baseType": "",
  4304. "extProps": {},
  4305. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4306. },
  4307. {
  4308. "defKey": "USER_END",
  4309. "defName": "用户结束订单",
  4310. "comment": "",
  4311. "domain": "",
  4312. "type": "TINYINT",
  4313. "len": "",
  4314. "scale": "",
  4315. "primaryKey": false,
  4316. "notNull": true,
  4317. "autoIncrement": false,
  4318. "defaultValue": "0",
  4319. "hideInGraph": false,
  4320. "refDict": "",
  4321. "attr1": "",
  4322. "attr2": "",
  4323. "attr3": "",
  4324. "attr4": "",
  4325. "attr5": "",
  4326. "attr6": "",
  4327. "attr7": "",
  4328. "attr8": "",
  4329. "attr9": "",
  4330. "id": "0B9C6218-260D-4707-A147-CA3F8C243D21",
  4331. "baseType": "",
  4332. "extProps": {},
  4333. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4334. },
  4335. {
  4336. "defKey": "CREATED_AT",
  4337. "defName": "",
  4338. "comment": "",
  4339. "domain": "",
  4340. "type": "TIMESTAMP",
  4341. "len": "",
  4342. "scale": "",
  4343. "primaryKey": false,
  4344. "notNull": false,
  4345. "autoIncrement": false,
  4346. "defaultValue": "",
  4347. "hideInGraph": false,
  4348. "refDict": "",
  4349. "attr1": "",
  4350. "attr2": "",
  4351. "attr3": "",
  4352. "attr4": "",
  4353. "attr5": "",
  4354. "attr6": "",
  4355. "attr7": "",
  4356. "attr8": "",
  4357. "attr9": "",
  4358. "id": "A053C744-42EC-4DF9-B0C6-72B11DC60DE3",
  4359. "baseType": "",
  4360. "extProps": {},
  4361. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4362. },
  4363. {
  4364. "defKey": "UPDATED_AT",
  4365. "defName": "",
  4366. "comment": "",
  4367. "domain": "",
  4368. "type": "TIMESTAMP",
  4369. "len": "",
  4370. "scale": "",
  4371. "primaryKey": false,
  4372. "notNull": false,
  4373. "autoIncrement": false,
  4374. "defaultValue": "",
  4375. "hideInGraph": false,
  4376. "refDict": "",
  4377. "attr1": "",
  4378. "attr2": "",
  4379. "attr3": "",
  4380. "attr4": "",
  4381. "attr5": "",
  4382. "attr6": "",
  4383. "attr7": "",
  4384. "attr8": "",
  4385. "attr9": "",
  4386. "id": "03369748-C3E2-43D5-AE1A-323A6F6D909F",
  4387. "baseType": "",
  4388. "extProps": {},
  4389. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4390. }
  4391. ],
  4392. "indexes": [],
  4393. "type": "P",
  4394. "sysProps": {
  4395. "nameTemplate": "{defKey}[{defName}]"
  4396. },
  4397. "headers": [
  4398. {
  4399. "freeze": false,
  4400. "refKey": "hideInGraph",
  4401. "hideInGraph": true
  4402. },
  4403. {
  4404. "freeze": true,
  4405. "refKey": "defKey",
  4406. "hideInGraph": false
  4407. },
  4408. {
  4409. "freeze": true,
  4410. "refKey": "defName",
  4411. "hideInGraph": false
  4412. },
  4413. {
  4414. "freeze": false,
  4415. "refKey": "primaryKey",
  4416. "hideInGraph": false
  4417. },
  4418. {
  4419. "freeze": false,
  4420. "refKey": "notNull",
  4421. "hideInGraph": true
  4422. },
  4423. {
  4424. "freeze": false,
  4425. "refKey": "autoIncrement",
  4426. "hideInGraph": true
  4427. },
  4428. {
  4429. "freeze": false,
  4430. "refKey": "domain",
  4431. "hideInGraph": true
  4432. },
  4433. {
  4434. "freeze": false,
  4435. "refKey": "type",
  4436. "hideInGraph": false
  4437. },
  4438. {
  4439. "freeze": false,
  4440. "refKey": "len",
  4441. "hideInGraph": false
  4442. },
  4443. {
  4444. "freeze": false,
  4445. "refKey": "scale",
  4446. "hideInGraph": false
  4447. },
  4448. {
  4449. "freeze": false,
  4450. "refKey": "comment",
  4451. "hideInGraph": true
  4452. },
  4453. {
  4454. "freeze": false,
  4455. "refKey": "refDict",
  4456. "hideInGraph": true
  4457. },
  4458. {
  4459. "freeze": false,
  4460. "refKey": "defaultValue",
  4461. "hideInGraph": true
  4462. },
  4463. {
  4464. "freeze": false,
  4465. "refKey": "isStandard",
  4466. "hideInGraph": false
  4467. },
  4468. {
  4469. "freeze": false,
  4470. "refKey": "uiHint",
  4471. "hideInGraph": true
  4472. },
  4473. {
  4474. "freeze": false,
  4475. "refKey": "extProps",
  4476. "hideInGraph": true
  4477. }
  4478. ],
  4479. "correlations": []
  4480. },
  4481. {
  4482. "id": "6B94A1CA-9F5C-4B7E-8739-A4AD7E92EA54",
  4483. "defKey": "SOCIAL_PROVIDERS",
  4484. "defName": "社交登录表",
  4485. "comment": "",
  4486. "properties": {},
  4487. "fields": [
  4488. {
  4489. "defKey": "ID",
  4490. "defName": "",
  4491. "comment": "",
  4492. "domain": "",
  4493. "type": "BIGINT UNSIGNED",
  4494. "len": "",
  4495. "scale": "",
  4496. "primaryKey": true,
  4497. "notNull": true,
  4498. "autoIncrement": true,
  4499. "defaultValue": "",
  4500. "hideInGraph": false,
  4501. "refDict": "",
  4502. "attr1": "",
  4503. "attr2": "",
  4504. "attr3": "",
  4505. "attr4": "",
  4506. "attr5": "",
  4507. "attr6": "",
  4508. "attr7": "",
  4509. "attr8": "",
  4510. "attr9": "",
  4511. "id": "1EEC4ACD-9C10-4B8E-AA83-107B4EEBEFED",
  4512. "baseType": "",
  4513. "extProps": {},
  4514. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4515. },
  4516. {
  4517. "defKey": "NAME",
  4518. "defName": "",
  4519. "comment": "",
  4520. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  4521. "type": "",
  4522. "len": "",
  4523. "scale": "",
  4524. "primaryKey": false,
  4525. "notNull": true,
  4526. "autoIncrement": false,
  4527. "defaultValue": "",
  4528. "hideInGraph": false,
  4529. "refDict": "",
  4530. "attr1": "",
  4531. "attr2": "",
  4532. "attr3": "",
  4533. "attr4": "",
  4534. "attr5": "",
  4535. "attr6": "",
  4536. "attr7": "",
  4537. "attr8": "",
  4538. "attr9": "",
  4539. "id": "981AB45B-EDB1-4319-9DBF-94994A95C4C2",
  4540. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  4541. "extProps": {},
  4542. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4543. },
  4544. {
  4545. "defKey": "CLIENT_ID",
  4546. "defName": "",
  4547. "comment": "",
  4548. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  4549. "type": "",
  4550. "len": "",
  4551. "scale": "",
  4552. "primaryKey": false,
  4553. "notNull": true,
  4554. "autoIncrement": false,
  4555. "defaultValue": "",
  4556. "hideInGraph": false,
  4557. "refDict": "",
  4558. "attr1": "",
  4559. "attr2": "",
  4560. "attr3": "",
  4561. "attr4": "",
  4562. "attr5": "",
  4563. "attr6": "",
  4564. "attr7": "",
  4565. "attr8": "",
  4566. "attr9": "",
  4567. "id": "D16ADFBE-EEC4-4846-A3CA-142710225ED9",
  4568. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  4569. "extProps": {},
  4570. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4571. },
  4572. {
  4573. "defKey": "CLIENT_SECRET",
  4574. "defName": "",
  4575. "comment": "",
  4576. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  4577. "type": "",
  4578. "len": "",
  4579. "scale": "",
  4580. "primaryKey": false,
  4581. "notNull": true,
  4582. "autoIncrement": false,
  4583. "defaultValue": "",
  4584. "hideInGraph": false,
  4585. "refDict": "",
  4586. "attr1": "",
  4587. "attr2": "",
  4588. "attr3": "",
  4589. "attr4": "",
  4590. "attr5": "",
  4591. "attr6": "",
  4592. "attr7": "",
  4593. "attr8": "",
  4594. "attr9": "",
  4595. "id": "F70D0F4A-DABB-43EC-BA60-872AE60CE988",
  4596. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  4597. "extProps": {},
  4598. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4599. },
  4600. {
  4601. "defKey": "REDIRECT_URL",
  4602. "defName": "",
  4603. "comment": "",
  4604. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  4605. "type": "",
  4606. "len": "",
  4607. "scale": "",
  4608. "primaryKey": false,
  4609. "notNull": true,
  4610. "autoIncrement": false,
  4611. "defaultValue": "",
  4612. "hideInGraph": false,
  4613. "refDict": "",
  4614. "attr1": "",
  4615. "attr2": "",
  4616. "attr3": "",
  4617. "attr4": "",
  4618. "attr5": "",
  4619. "attr6": "",
  4620. "attr7": "",
  4621. "attr8": "",
  4622. "attr9": "",
  4623. "id": "58B1A323-C079-4086-8545-2FEF54F7A4B6",
  4624. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  4625. "extProps": {},
  4626. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4627. },
  4628. {
  4629. "defKey": "IS_DEFAULT",
  4630. "defName": "",
  4631. "comment": "",
  4632. "domain": "",
  4633. "type": "BIT",
  4634. "len": 1,
  4635. "scale": "",
  4636. "primaryKey": false,
  4637. "notNull": false,
  4638. "autoIncrement": false,
  4639. "defaultValue": "0",
  4640. "hideInGraph": false,
  4641. "refDict": "",
  4642. "attr1": "",
  4643. "attr2": "",
  4644. "attr3": "",
  4645. "attr4": "",
  4646. "attr5": "",
  4647. "attr6": "",
  4648. "attr7": "",
  4649. "attr8": "",
  4650. "attr9": "",
  4651. "id": "2AF5B896-202C-41A5-A9C4-006FEBBA3FD1",
  4652. "baseType": "",
  4653. "extProps": {},
  4654. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4655. },
  4656. {
  4657. "defKey": "MEMBER_USER_ID",
  4658. "defName": "",
  4659. "comment": "",
  4660. "domain": "",
  4661. "type": "BIGINT UNSIGNED",
  4662. "len": "",
  4663. "scale": "",
  4664. "primaryKey": false,
  4665. "notNull": true,
  4666. "autoIncrement": false,
  4667. "defaultValue": "",
  4668. "hideInGraph": false,
  4669. "refDict": "",
  4670. "attr1": "",
  4671. "attr2": "",
  4672. "attr3": "",
  4673. "attr4": "",
  4674. "attr5": "",
  4675. "attr6": "",
  4676. "attr7": "",
  4677. "attr8": "",
  4678. "attr9": "",
  4679. "id": "08FF20DC-2393-4709-B8F0-D17B9F45BAF5",
  4680. "baseType": "",
  4681. "extProps": {},
  4682. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4683. },
  4684. {
  4685. "defKey": "CREATED_AT",
  4686. "defName": "",
  4687. "comment": "",
  4688. "domain": "",
  4689. "type": "TIMESTAMP",
  4690. "len": "",
  4691. "scale": "",
  4692. "primaryKey": false,
  4693. "notNull": false,
  4694. "autoIncrement": false,
  4695. "defaultValue": "",
  4696. "hideInGraph": false,
  4697. "refDict": "",
  4698. "attr1": "",
  4699. "attr2": "",
  4700. "attr3": "",
  4701. "attr4": "",
  4702. "attr5": "",
  4703. "attr6": "",
  4704. "attr7": "",
  4705. "attr8": "",
  4706. "attr9": "",
  4707. "id": "7AB64A9E-35C5-4363-B920-E23522C791AB",
  4708. "baseType": "",
  4709. "extProps": {},
  4710. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4711. },
  4712. {
  4713. "defKey": "UPDATED_AT",
  4714. "defName": "",
  4715. "comment": "",
  4716. "domain": "",
  4717. "type": "TIMESTAMP",
  4718. "len": "",
  4719. "scale": "",
  4720. "primaryKey": false,
  4721. "notNull": false,
  4722. "autoIncrement": false,
  4723. "defaultValue": "",
  4724. "hideInGraph": false,
  4725. "refDict": "",
  4726. "attr1": "",
  4727. "attr2": "",
  4728. "attr3": "",
  4729. "attr4": "",
  4730. "attr5": "",
  4731. "attr6": "",
  4732. "attr7": "",
  4733. "attr8": "",
  4734. "attr9": "",
  4735. "id": "BA27EB58-569B-4146-B295-E61793C38611",
  4736. "baseType": "",
  4737. "extProps": {},
  4738. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  4739. }
  4740. ],
  4741. "indexes": [
  4742. {
  4743. "defKey": "name",
  4744. "unique": true,
  4745. "defName": null,
  4746. "comment": "",
  4747. "fields": [
  4748. {
  4749. "ascOrDesc": "A",
  4750. "id": "788E811F-6036-425F-81A4-4A56A34D7F28",
  4751. "fieldDefKey": "981AB45B-EDB1-4319-9DBF-94994A95C4C2"
  4752. }
  4753. ],
  4754. "id": "6633CDD8-E7F7-4979-A298-3410891B727C"
  4755. },
  4756. {
  4757. "defKey": "member_user_id",
  4758. "unique": false,
  4759. "defName": null,
  4760. "comment": "",
  4761. "fields": [
  4762. {
  4763. "ascOrDesc": "A",
  4764. "id": "DAE99D03-790F-47FD-A3DA-06B7139190C1",
  4765. "fieldDefKey": "08FF20DC-2393-4709-B8F0-D17B9F45BAF5"
  4766. }
  4767. ],
  4768. "id": "13E33996-866A-4A3D-B310-EA589FE8EE4D"
  4769. }
  4770. ],
  4771. "type": "P",
  4772. "sysProps": {
  4773. "nameTemplate": "{defKey}[{defName}]"
  4774. },
  4775. "headers": [
  4776. {
  4777. "freeze": false,
  4778. "refKey": "hideInGraph",
  4779. "hideInGraph": true
  4780. },
  4781. {
  4782. "freeze": true,
  4783. "refKey": "defKey",
  4784. "hideInGraph": false
  4785. },
  4786. {
  4787. "freeze": true,
  4788. "refKey": "defName",
  4789. "hideInGraph": false
  4790. },
  4791. {
  4792. "freeze": false,
  4793. "refKey": "primaryKey",
  4794. "hideInGraph": false
  4795. },
  4796. {
  4797. "freeze": false,
  4798. "refKey": "notNull",
  4799. "hideInGraph": true
  4800. },
  4801. {
  4802. "freeze": false,
  4803. "refKey": "autoIncrement",
  4804. "hideInGraph": true
  4805. },
  4806. {
  4807. "freeze": false,
  4808. "refKey": "domain",
  4809. "hideInGraph": true
  4810. },
  4811. {
  4812. "freeze": false,
  4813. "refKey": "type",
  4814. "hideInGraph": false
  4815. },
  4816. {
  4817. "freeze": false,
  4818. "refKey": "len",
  4819. "hideInGraph": false
  4820. },
  4821. {
  4822. "freeze": false,
  4823. "refKey": "scale",
  4824. "hideInGraph": false
  4825. },
  4826. {
  4827. "freeze": false,
  4828. "refKey": "comment",
  4829. "hideInGraph": true
  4830. },
  4831. {
  4832. "freeze": false,
  4833. "refKey": "refDict",
  4834. "hideInGraph": true
  4835. },
  4836. {
  4837. "freeze": false,
  4838. "refKey": "defaultValue",
  4839. "hideInGraph": true
  4840. },
  4841. {
  4842. "freeze": false,
  4843. "refKey": "isStandard",
  4844. "hideInGraph": false
  4845. },
  4846. {
  4847. "freeze": false,
  4848. "refKey": "uiHint",
  4849. "hideInGraph": true
  4850. },
  4851. {
  4852. "freeze": false,
  4853. "refKey": "extProps",
  4854. "hideInGraph": true
  4855. }
  4856. ],
  4857. "correlations": [],
  4858. "notes": {}
  4859. },
  4860. {
  4861. "id": "1E811525-8696-4E1D-AAB4-1FE20CE546A4",
  4862. "defKey": "COACH_CONFIG",
  4863. "headers": [
  4864. {
  4865. "refKey": "hideInGraph",
  4866. "hideInGraph": true
  4867. },
  4868. {
  4869. "refKey": "defKey",
  4870. "freeze": false,
  4871. "hideInGraph": false
  4872. },
  4873. {
  4874. "refKey": "defName",
  4875. "freeze": false,
  4876. "hideInGraph": false
  4877. },
  4878. {
  4879. "refKey": "primaryKey",
  4880. "freeze": false,
  4881. "hideInGraph": false
  4882. },
  4883. {
  4884. "refKey": "notNull",
  4885. "freeze": false,
  4886. "hideInGraph": true
  4887. },
  4888. {
  4889. "refKey": "autoIncrement",
  4890. "freeze": false,
  4891. "hideInGraph": true
  4892. },
  4893. {
  4894. "refKey": "domain",
  4895. "freeze": false,
  4896. "hideInGraph": true
  4897. },
  4898. {
  4899. "refKey": "type",
  4900. "freeze": false,
  4901. "hideInGraph": false
  4902. },
  4903. {
  4904. "refKey": "len",
  4905. "freeze": false,
  4906. "hideInGraph": false
  4907. },
  4908. {
  4909. "refKey": "scale",
  4910. "freeze": false,
  4911. "hideInGraph": false
  4912. },
  4913. {
  4914. "refKey": "comment",
  4915. "freeze": false,
  4916. "hideInGraph": true
  4917. },
  4918. {
  4919. "refKey": "refDict",
  4920. "freeze": false,
  4921. "hideInGraph": true
  4922. },
  4923. {
  4924. "refKey": "defaultValue",
  4925. "freeze": false,
  4926. "hideInGraph": true
  4927. },
  4928. {
  4929. "refKey": "isStandard",
  4930. "freeze": false,
  4931. "hideInGraph": false
  4932. },
  4933. {
  4934. "refKey": "uiHint",
  4935. "freeze": false,
  4936. "hideInGraph": true
  4937. },
  4938. {
  4939. "refKey": "extProps",
  4940. "freeze": false,
  4941. "hideInGraph": true
  4942. },
  4943. {
  4944. "refKey": "attr1",
  4945. "freeze": false,
  4946. "hideInGraph": true
  4947. },
  4948. {
  4949. "refKey": "attr2",
  4950. "freeze": false,
  4951. "hideInGraph": true
  4952. },
  4953. {
  4954. "refKey": "attr3",
  4955. "freeze": false,
  4956. "hideInGraph": true
  4957. },
  4958. {
  4959. "refKey": "attr4",
  4960. "freeze": false,
  4961. "hideInGraph": true
  4962. },
  4963. {
  4964. "refKey": "attr5",
  4965. "freeze": false,
  4966. "hideInGraph": true
  4967. },
  4968. {
  4969. "refKey": "attr6",
  4970. "freeze": false,
  4971. "hideInGraph": true
  4972. },
  4973. {
  4974. "refKey": "attr7",
  4975. "freeze": false,
  4976. "hideInGraph": true
  4977. },
  4978. {
  4979. "refKey": "attr8",
  4980. "freeze": false,
  4981. "hideInGraph": true
  4982. },
  4983. {
  4984. "refKey": "attr9",
  4985. "freeze": false,
  4986. "hideInGraph": true
  4987. }
  4988. ],
  4989. "fields": [
  4990. {
  4991. "defKey": "id",
  4992. "defName": "编号",
  4993. "comment": "",
  4994. "type": "",
  4995. "len": "",
  4996. "scale": "",
  4997. "primaryKey": false,
  4998. "notNull": false,
  4999. "autoIncrement": false,
  5000. "defaultValue": "",
  5001. "hideInGraph": false,
  5002. "refDict": "",
  5003. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5004. "extProps": {},
  5005. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5006. "id": "394E95E0-AF07-4C84-899E-06F0F0FF52E1"
  5007. },
  5008. {
  5009. "defKey": "coach_id",
  5010. "defName": "技师外键",
  5011. "comment": "",
  5012. "type": "",
  5013. "len": "",
  5014. "scale": "",
  5015. "primaryKey": false,
  5016. "notNull": false,
  5017. "autoIncrement": false,
  5018. "defaultValue": "",
  5019. "hideInGraph": false,
  5020. "refDict": "",
  5021. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5022. "extProps": {},
  5023. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5024. "id": "141C114B-571E-416F-97DB-F79FF8A8B2E0"
  5025. },
  5026. {
  5027. "defKey": "label",
  5028. "defName": "项",
  5029. "comment": "开启后下面的设置才可以用",
  5030. "type": "",
  5031. "len": "",
  5032. "scale": "",
  5033. "primaryKey": false,
  5034. "notNull": false,
  5035. "autoIncrement": false,
  5036. "defaultValue": "",
  5037. "hideInGraph": false,
  5038. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5039. "refDict": "",
  5040. "extProps": {},
  5041. "notes": {},
  5042. "attr1": "",
  5043. "attr2": "",
  5044. "attr3": "",
  5045. "attr4": "",
  5046. "attr5": "",
  5047. "attr6": "",
  5048. "attr7": "",
  5049. "attr8": "",
  5050. "attr9": "",
  5051. "id": "81450F38-938F-4B02-9FAE-3FC6EC8AA6C9",
  5052. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
  5053. },
  5054. {
  5055. "defKey": "value",
  5056. "defName": "值",
  5057. "comment": "",
  5058. "type": "",
  5059. "len": "",
  5060. "scale": "",
  5061. "primaryKey": false,
  5062. "notNull": false,
  5063. "autoIncrement": false,
  5064. "defaultValue": "",
  5065. "hideInGraph": false,
  5066. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5067. "refDict": "",
  5068. "extProps": {},
  5069. "notes": {},
  5070. "attr1": "",
  5071. "attr2": "",
  5072. "attr3": "",
  5073. "attr4": "",
  5074. "attr5": "",
  5075. "attr6": "",
  5076. "attr7": "",
  5077. "attr8": "",
  5078. "attr9": "",
  5079. "id": "9DFEFC2A-AE76-4200-9C6D-9E1D34E14C62",
  5080. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
  5081. },
  5082. {
  5083. "defKey": "sort_kw",
  5084. "defName": "顺序",
  5085. "comment": "",
  5086. "type": "",
  5087. "len": "",
  5088. "scale": "",
  5089. "primaryKey": false,
  5090. "notNull": false,
  5091. "autoIncrement": false,
  5092. "defaultValue": "",
  5093. "hideInGraph": false,
  5094. "refDict": "",
  5095. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5096. "extProps": {},
  5097. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5098. "id": "89AE42B6-A85E-42DE-A930-F80FD2BDECE3"
  5099. }
  5100. ],
  5101. "properties": {
  5102. "partitioned by": "(date string)",
  5103. "row format delimited": "",
  5104. "fields terminated by ','": "",
  5105. "collection items terminated by '-'": "",
  5106. "map keys terminated by ':'": "",
  5107. "store as textfile;": ""
  5108. },
  5109. "type": "P",
  5110. "correlations": [],
  5111. "defName": "技师设置",
  5112. "notes": {}
  5113. },
  5114. {
  5115. "id": "B18001A9-10A6-45AF-8601-D2A38A60D8A0",
  5116. "defKey": "COACH_USER_APPROVE_HIS",
  5117. "defName": "技师认证记录",
  5118. "comment": "todo list:\n1、欠缺审核his表",
  5119. "properties": {},
  5120. "fields": [
  5121. {
  5122. "defKey": "ID",
  5123. "defName": "编号",
  5124. "comment": "",
  5125. "domain": "",
  5126. "type": "BIGINT UNSIGNED",
  5127. "len": "",
  5128. "scale": "",
  5129. "primaryKey": true,
  5130. "notNull": true,
  5131. "autoIncrement": true,
  5132. "defaultValue": "",
  5133. "hideInGraph": false,
  5134. "refDict": "",
  5135. "attr1": "",
  5136. "attr2": "",
  5137. "attr3": "",
  5138. "attr4": "",
  5139. "attr5": "",
  5140. "attr6": "",
  5141. "attr7": "",
  5142. "attr8": "",
  5143. "attr9": "",
  5144. "id": "1FA8A05F-CEDE-4BB5-A5C5-34DF0E37356D",
  5145. "baseType": "",
  5146. "extProps": {},
  5147. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5148. },
  5149. {
  5150. "defKey": "USER_ID",
  5151. "defName": "用户外键",
  5152. "comment": "",
  5153. "domain": "",
  5154. "type": "BIGINT",
  5155. "len": "",
  5156. "scale": "",
  5157. "primaryKey": false,
  5158. "notNull": true,
  5159. "autoIncrement": false,
  5160. "defaultValue": "",
  5161. "hideInGraph": false,
  5162. "refDict": "",
  5163. "attr1": "",
  5164. "attr2": "",
  5165. "attr3": "",
  5166. "attr4": "",
  5167. "attr5": "",
  5168. "attr6": "",
  5169. "attr7": "",
  5170. "attr8": "",
  5171. "attr9": "",
  5172. "id": "51801BEC-6BA2-46B4-BE79-AA55971CFE67",
  5173. "baseType": "",
  5174. "extProps": {},
  5175. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5176. },
  5177. {
  5178. "defKey": "NAME",
  5179. "defName": "真实姓名",
  5180. "comment": "",
  5181. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5182. "type": "",
  5183. "len": "",
  5184. "scale": "",
  5185. "primaryKey": false,
  5186. "notNull": false,
  5187. "autoIncrement": false,
  5188. "defaultValue": "",
  5189. "hideInGraph": true,
  5190. "refDict": "",
  5191. "attr1": "",
  5192. "attr2": "",
  5193. "attr3": "",
  5194. "attr4": "",
  5195. "attr5": "",
  5196. "attr6": "",
  5197. "attr7": "",
  5198. "attr8": "",
  5199. "attr9": "",
  5200. "id": "73C52C20-DCFC-4B4C-8C5D-CEC67A90EAFD",
  5201. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5202. "extProps": {},
  5203. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5204. },
  5205. {
  5206. "defKey": "MOBILE",
  5207. "defName": "手机号",
  5208. "comment": "",
  5209. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5210. "type": "",
  5211. "len": "",
  5212. "scale": "",
  5213. "primaryKey": false,
  5214. "notNull": false,
  5215. "autoIncrement": false,
  5216. "defaultValue": "",
  5217. "hideInGraph": false,
  5218. "refDict": "",
  5219. "attr1": "",
  5220. "attr2": "",
  5221. "attr3": "",
  5222. "attr4": "",
  5223. "attr5": "",
  5224. "attr6": "",
  5225. "attr7": "",
  5226. "attr8": "",
  5227. "attr9": "",
  5228. "id": "AF31133B-84FF-4CB9-847E-5C79A50DF814",
  5229. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5230. "extProps": {},
  5231. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5232. },
  5233. {
  5234. "defKey": "NICKNAME",
  5235. "defName": "昵称",
  5236. "comment": "",
  5237. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5238. "type": "",
  5239. "len": "",
  5240. "scale": "",
  5241. "primaryKey": false,
  5242. "notNull": false,
  5243. "autoIncrement": false,
  5244. "defaultValue": "",
  5245. "hideInGraph": false,
  5246. "refDict": "",
  5247. "attr1": "",
  5248. "attr2": "",
  5249. "attr3": "",
  5250. "attr4": "",
  5251. "attr5": "",
  5252. "attr6": "",
  5253. "attr7": "",
  5254. "attr8": "",
  5255. "attr9": "",
  5256. "id": "2824F2AB-A159-40FD-A0CD-3DDAD55A0CAE",
  5257. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5258. "extProps": {},
  5259. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5260. },
  5261. {
  5262. "defKey": "AVATAR",
  5263. "defName": "头像",
  5264. "comment": "",
  5265. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5266. "type": "",
  5267. "len": "",
  5268. "scale": "",
  5269. "primaryKey": false,
  5270. "notNull": false,
  5271. "autoIncrement": false,
  5272. "defaultValue": "",
  5273. "hideInGraph": false,
  5274. "refDict": "",
  5275. "attr1": "",
  5276. "attr2": "",
  5277. "attr3": "",
  5278. "attr4": "",
  5279. "attr5": "",
  5280. "attr6": "",
  5281. "attr7": "",
  5282. "attr8": "",
  5283. "attr9": "",
  5284. "id": "A40CA2FA-F245-4F8A-8072-78944044D4FF",
  5285. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5286. "extProps": {},
  5287. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5288. },
  5289. {
  5290. "defKey": "SEX",
  5291. "defName": "性别",
  5292. "comment": "",
  5293. "domain": "",
  5294. "type": "TINYINT",
  5295. "len": "",
  5296. "scale": "",
  5297. "primaryKey": false,
  5298. "notNull": false,
  5299. "autoIncrement": false,
  5300. "defaultValue": "1",
  5301. "hideInGraph": false,
  5302. "refDict": "",
  5303. "attr1": "",
  5304. "attr2": "",
  5305. "attr3": "",
  5306. "attr4": "",
  5307. "attr5": "",
  5308. "attr6": "",
  5309. "attr7": "",
  5310. "attr8": "",
  5311. "attr9": "",
  5312. "id": "F9F73E2D-2CC9-4196-853E-9B1D92D0CAA8",
  5313. "baseType": "",
  5314. "extProps": {},
  5315. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5316. },
  5317. {
  5318. "defKey": "BIRTHDAY",
  5319. "defName": "出生日期",
  5320. "comment": "",
  5321. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5322. "type": "",
  5323. "len": "",
  5324. "scale": "",
  5325. "primaryKey": false,
  5326. "notNull": false,
  5327. "autoIncrement": false,
  5328. "defaultValue": "",
  5329. "hideInGraph": false,
  5330. "refDict": "",
  5331. "attr1": "",
  5332. "attr2": "",
  5333. "attr3": "",
  5334. "attr4": "",
  5335. "attr5": "",
  5336. "attr6": "",
  5337. "attr7": "",
  5338. "attr8": "",
  5339. "attr9": "",
  5340. "id": "B616299D-C0CC-4E15-A9EC-B49A37609C17",
  5341. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5342. "extProps": {},
  5343. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5344. },
  5345. {
  5346. "defKey": "WORK_TIME",
  5347. "defName": "从业年份",
  5348. "comment": "界面显示:从业时长,当前年份-从业年份",
  5349. "domain": "",
  5350. "type": "INT",
  5351. "len": "",
  5352. "scale": "",
  5353. "primaryKey": false,
  5354. "notNull": false,
  5355. "autoIncrement": false,
  5356. "defaultValue": "",
  5357. "hideInGraph": false,
  5358. "refDict": "",
  5359. "attr1": "",
  5360. "attr2": "",
  5361. "attr3": "",
  5362. "attr4": "",
  5363. "attr5": "",
  5364. "attr6": "",
  5365. "attr7": "",
  5366. "attr8": "",
  5367. "attr9": "",
  5368. "id": "BBC5AF98-A492-48E2-A056-06FB1332731A",
  5369. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  5370. "extProps": {},
  5371. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5372. },
  5373. {
  5374. "defKey": "WORK_CITY",
  5375. "defName": "意向城市",
  5376. "comment": "",
  5377. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5378. "type": "",
  5379. "len": "",
  5380. "scale": "",
  5381. "primaryKey": false,
  5382. "notNull": false,
  5383. "autoIncrement": false,
  5384. "defaultValue": "",
  5385. "hideInGraph": false,
  5386. "refDict": "",
  5387. "attr1": "",
  5388. "attr2": "",
  5389. "attr3": "",
  5390. "attr4": "",
  5391. "attr5": "",
  5392. "attr6": "",
  5393. "attr7": "",
  5394. "attr8": "",
  5395. "attr9": "",
  5396. "id": "6DD9355D-715B-48C9-A472-88A0A9A499C0",
  5397. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5398. "extProps": {},
  5399. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5400. },
  5401. {
  5402. "defKey": "introduce",
  5403. "defName": "简介",
  5404. "comment": "",
  5405. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5406. "type": "",
  5407. "len": "",
  5408. "scale": "",
  5409. "primaryKey": false,
  5410. "notNull": false,
  5411. "autoIncrement": false,
  5412. "defaultValue": "",
  5413. "hideInGraph": false,
  5414. "refDict": "",
  5415. "attr1": "",
  5416. "attr2": "",
  5417. "attr3": "",
  5418. "attr4": "",
  5419. "attr5": "",
  5420. "attr6": "",
  5421. "attr7": "",
  5422. "attr8": "",
  5423. "attr9": "",
  5424. "id": "65C02D48-5923-42D0-A8D8-BC7B385DBFB2",
  5425. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5426. "extProps": {},
  5427. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5428. },
  5429. {
  5430. "defKey": "ID_CODE",
  5431. "defName": "身份证号",
  5432. "comment": "",
  5433. "type": "",
  5434. "len": "",
  5435. "scale": "",
  5436. "primaryKey": false,
  5437. "notNull": false,
  5438. "autoIncrement": false,
  5439. "defaultValue": "",
  5440. "hideInGraph": false,
  5441. "refDict": "",
  5442. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5443. "extProps": {},
  5444. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5445. "id": "A4EC511C-58F2-4A8A-A4B6-BBABD811A785"
  5446. },
  5447. {
  5448. "defKey": "ID_CARD_SHOU",
  5449. "defName": "手持身份证",
  5450. "comment": "",
  5451. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5452. "type": "",
  5453. "len": "",
  5454. "scale": "",
  5455. "primaryKey": false,
  5456. "notNull": false,
  5457. "autoIncrement": false,
  5458. "defaultValue": "",
  5459. "hideInGraph": false,
  5460. "refDict": "",
  5461. "attr1": "",
  5462. "attr2": "",
  5463. "attr3": "",
  5464. "attr4": "",
  5465. "attr5": "",
  5466. "attr6": "",
  5467. "attr7": "",
  5468. "attr8": "",
  5469. "attr9": "",
  5470. "id": "E3A9EA3B-09AE-491E-9E99-8CEC8CCFF111",
  5471. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5472. "extProps": {},
  5473. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5474. },
  5475. {
  5476. "defKey": "ID_CARD",
  5477. "defName": "身份证正反面",
  5478. "comment": "",
  5479. "domain": "",
  5480. "type": "VARCHAR",
  5481. "len": 255,
  5482. "scale": "",
  5483. "primaryKey": false,
  5484. "notNull": false,
  5485. "autoIncrement": false,
  5486. "defaultValue": "",
  5487. "hideInGraph": false,
  5488. "refDict": "",
  5489. "attr1": "",
  5490. "attr2": "",
  5491. "attr3": "",
  5492. "attr4": "",
  5493. "attr5": "",
  5494. "attr6": "",
  5495. "attr7": "",
  5496. "attr8": "",
  5497. "attr9": "",
  5498. "id": "50C910D0-0A21-45B6-AB7A-896D8826263A",
  5499. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5500. "extProps": {},
  5501. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5502. },
  5503. {
  5504. "defKey": "WORK_IMG",
  5505. "defName": "工作照",
  5506. "comment": "",
  5507. "type": "",
  5508. "len": "",
  5509. "scale": "",
  5510. "primaryKey": false,
  5511. "notNull": false,
  5512. "autoIncrement": false,
  5513. "defaultValue": "",
  5514. "hideInGraph": false,
  5515. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5516. "refDict": "",
  5517. "extProps": {},
  5518. "notes": {},
  5519. "attr1": "",
  5520. "attr2": "",
  5521. "attr3": "",
  5522. "attr4": "",
  5523. "attr5": "",
  5524. "attr6": "",
  5525. "attr7": "",
  5526. "attr8": "",
  5527. "attr9": "",
  5528. "id": "6A106B5E-DB84-4A1F-A28A-767B37169666",
  5529. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
  5530. },
  5531. {
  5532. "defKey": "WORK_IMG_THUMB",
  5533. "defName": "工作照缩略图",
  5534. "comment": "",
  5535. "type": "",
  5536. "len": "",
  5537. "scale": "",
  5538. "primaryKey": false,
  5539. "notNull": false,
  5540. "autoIncrement": false,
  5541. "defaultValue": "",
  5542. "hideInGraph": false,
  5543. "refDict": "",
  5544. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5545. "extProps": {},
  5546. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5547. "id": "EF032E2E-2461-4208-8050-CA5E811A22BD"
  5548. },
  5549. {
  5550. "defKey": "SELF_IMG",
  5551. "defName": "生活照",
  5552. "comment": "",
  5553. "type": "VARCHAR",
  5554. "len": 255,
  5555. "scale": "",
  5556. "primaryKey": false,
  5557. "notNull": false,
  5558. "autoIncrement": false,
  5559. "defaultValue": "",
  5560. "hideInGraph": false,
  5561. "domain": "",
  5562. "refDict": "",
  5563. "extProps": {},
  5564. "notes": {},
  5565. "attr1": "",
  5566. "attr2": "",
  5567. "attr3": "",
  5568. "attr4": "",
  5569. "attr5": "",
  5570. "attr6": "",
  5571. "attr7": "",
  5572. "attr8": "",
  5573. "attr9": "",
  5574. "id": "14EDC1CB-7E86-4860-AAAE-0C8F512A763F",
  5575. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64"
  5576. },
  5577. {
  5578. "defKey": "SELF_IMG_THUMB",
  5579. "defName": "生活照缩略图",
  5580. "comment": "",
  5581. "domain": "",
  5582. "type": "VARCHAR",
  5583. "len": 255,
  5584. "scale": "",
  5585. "primaryKey": false,
  5586. "notNull": false,
  5587. "autoIncrement": false,
  5588. "defaultValue": "",
  5589. "hideInGraph": false,
  5590. "refDict": "",
  5591. "attr1": "",
  5592. "attr2": "",
  5593. "attr3": "",
  5594. "attr4": "",
  5595. "attr5": "",
  5596. "attr6": "",
  5597. "attr7": "",
  5598. "attr8": "",
  5599. "attr9": "",
  5600. "id": "3E5A9541-7BC7-455B-AD84-51405258C4A6",
  5601. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5602. "extProps": {},
  5603. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5604. },
  5605. {
  5606. "defKey": "LICENSE",
  5607. "defName": "个体营业执照",
  5608. "comment": "",
  5609. "domain": "",
  5610. "type": "TEXT",
  5611. "len": "",
  5612. "scale": "",
  5613. "primaryKey": false,
  5614. "notNull": false,
  5615. "autoIncrement": false,
  5616. "defaultValue": "",
  5617. "hideInGraph": false,
  5618. "refDict": "",
  5619. "attr1": "",
  5620. "attr2": "",
  5621. "attr3": "",
  5622. "attr4": "",
  5623. "attr5": "",
  5624. "attr6": "",
  5625. "attr7": "",
  5626. "attr8": "",
  5627. "attr9": "",
  5628. "id": "1F385150-B795-493B-8DB5-444FB6FC19F8",
  5629. "baseType": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
  5630. "extProps": {},
  5631. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5632. },
  5633. {
  5634. "defKey": "health_cert",
  5635. "defName": "健康证",
  5636. "comment": "",
  5637. "type": "",
  5638. "len": "",
  5639. "scale": "",
  5640. "primaryKey": false,
  5641. "notNull": false,
  5642. "autoIncrement": false,
  5643. "defaultValue": "",
  5644. "hideInGraph": false,
  5645. "refDict": "",
  5646. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5647. "extProps": {},
  5648. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5649. "id": "CA80B47C-734F-434B-8944-619EE1FC6CE1"
  5650. },
  5651. {
  5652. "defKey": "Qual_Cert",
  5653. "defName": "从业资格证",
  5654. "comment": "",
  5655. "type": "",
  5656. "len": "",
  5657. "scale": "",
  5658. "primaryKey": false,
  5659. "notNull": false,
  5660. "autoIncrement": false,
  5661. "defaultValue": "",
  5662. "hideInGraph": false,
  5663. "refDict": "",
  5664. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5665. "extProps": {},
  5666. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5667. "id": "F0FE065D-9371-483B-AFF7-813C8D3DECEF"
  5668. },
  5669. {
  5670. "defKey": "ORDER_NUM",
  5671. "defName": "虚拟订单量",
  5672. "comment": "",
  5673. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  5674. "type": "",
  5675. "len": "",
  5676. "scale": "",
  5677. "primaryKey": false,
  5678. "notNull": true,
  5679. "autoIncrement": false,
  5680. "defaultValue": "0",
  5681. "hideInGraph": false,
  5682. "refDict": "",
  5683. "attr1": "",
  5684. "attr2": "",
  5685. "attr3": "",
  5686. "attr4": "",
  5687. "attr5": "",
  5688. "attr6": "",
  5689. "attr7": "",
  5690. "attr8": "",
  5691. "attr9": "",
  5692. "id": "942F29C2-2C42-4340-92B2-FBD4A4EA57C5",
  5693. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  5694. "extProps": {},
  5695. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5696. },
  5697. {
  5698. "defKey": "TAGS",
  5699. "defName": "标签",
  5700. "comment": "[手法、明星、新人]等,根据评论数据计算",
  5701. "domain": "",
  5702. "type": "VARCHAR",
  5703. "len": "",
  5704. "scale": "",
  5705. "primaryKey": false,
  5706. "notNull": true,
  5707. "autoIncrement": false,
  5708. "defaultValue": "0",
  5709. "hideInGraph": false,
  5710. "refDict": "",
  5711. "attr1": "",
  5712. "attr2": "",
  5713. "attr3": "",
  5714. "attr4": "",
  5715. "attr5": "",
  5716. "attr6": "",
  5717. "attr7": "",
  5718. "attr8": "",
  5719. "attr9": "",
  5720. "id": "F2013645-CD4C-44F8-9B89-73E1D298FE1D",
  5721. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5722. "extProps": {},
  5723. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5724. },
  5725. {
  5726. "defKey": "STATUS_APPROVE",
  5727. "defName": "认证状态",
  5728. "comment": "",
  5729. "type": "",
  5730. "len": "",
  5731. "scale": "",
  5732. "primaryKey": false,
  5733. "notNull": true,
  5734. "autoIncrement": false,
  5735. "defaultValue": "",
  5736. "hideInGraph": false,
  5737. "refDict": "BDC62651-089D-4011-8694-93703CD7EE14",
  5738. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5739. "extProps": {},
  5740. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5741. "id": "9284BE3D-40D1-4391-9A62-2C93BCA96CAA"
  5742. },
  5743. {
  5744. "defKey": "STATUS_WORK",
  5745. "defName": "工作状态",
  5746. "comment": "",
  5747. "type": "",
  5748. "len": "",
  5749. "scale": "",
  5750. "primaryKey": false,
  5751. "notNull": false,
  5752. "autoIncrement": false,
  5753. "defaultValue": "",
  5754. "hideInGraph": false,
  5755. "refDict": "F9E7E9B5-5194-4AFF-97D2-4104DC18FAB9",
  5756. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5757. "extProps": {},
  5758. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5759. "id": "67DE41C4-B7A0-4708-80E0-AD374C7DBE89"
  5760. },
  5761. {
  5762. "defKey": "STATUS_AMOUNT",
  5763. "defName": "账户状态",
  5764. "comment": "",
  5765. "domain": "",
  5766. "type": "TINYINT",
  5767. "len": "",
  5768. "scale": "",
  5769. "primaryKey": false,
  5770. "notNull": true,
  5771. "autoIncrement": false,
  5772. "defaultValue": "1",
  5773. "hideInGraph": false,
  5774. "refDict": "69393071-560F-4C68-B612-1C11FEFD4E3C",
  5775. "attr1": "",
  5776. "attr2": "",
  5777. "attr3": "",
  5778. "attr4": "",
  5779. "attr5": "",
  5780. "attr6": "",
  5781. "attr7": "",
  5782. "attr8": "",
  5783. "attr9": "",
  5784. "id": "1E136AD4-2114-40AA-B5DA-D23AB63EDC42",
  5785. "baseType": "",
  5786. "extProps": {},
  5787. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5788. },
  5789. {
  5790. "defKey": "agreements",
  5791. "defName": "合同",
  5792. "comment": "[各种合同地址]",
  5793. "type": "VARCHAR",
  5794. "len": 255,
  5795. "scale": "",
  5796. "primaryKey": false,
  5797. "notNull": false,
  5798. "autoIncrement": false,
  5799. "defaultValue": "",
  5800. "hideInGraph": false,
  5801. "refDict": "",
  5802. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5803. "extProps": {},
  5804. "domain": "",
  5805. "id": "DA2F0E4F-A35E-4CCB-8F49-A52A7888D141"
  5806. },
  5807. {
  5808. "defKey": "approver",
  5809. "defName": "审核人",
  5810. "comment": "",
  5811. "type": "",
  5812. "len": "",
  5813. "scale": "",
  5814. "primaryKey": false,
  5815. "notNull": false,
  5816. "autoIncrement": false,
  5817. "defaultValue": "",
  5818. "hideInGraph": false,
  5819. "refDict": "",
  5820. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5821. "extProps": {},
  5822. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5823. "id": "FDD1E609-EABD-4D74-91D5-7F69A618CD0E"
  5824. },
  5825. {
  5826. "defKey": "approve_time",
  5827. "defName": "审核时间",
  5828. "comment": "",
  5829. "type": "",
  5830. "len": "",
  5831. "scale": "",
  5832. "primaryKey": false,
  5833. "notNull": false,
  5834. "autoIncrement": false,
  5835. "defaultValue": "",
  5836. "hideInGraph": false,
  5837. "refDict": "",
  5838. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5839. "extProps": {},
  5840. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5841. "id": "C70DADCB-0AE9-401C-928A-7FB11F44B6C8"
  5842. },
  5843. {
  5844. "defKey": "approve_note",
  5845. "defName": "审核回执",
  5846. "comment": "",
  5847. "type": "",
  5848. "len": "",
  5849. "scale": "",
  5850. "primaryKey": false,
  5851. "notNull": false,
  5852. "autoIncrement": false,
  5853. "defaultValue": "",
  5854. "hideInGraph": false,
  5855. "refDict": "",
  5856. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  5857. "extProps": {},
  5858. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5859. "id": "793B22B2-5B0A-4482-B7CA-EAB94F283A11"
  5860. }
  5861. ],
  5862. "indexes": [],
  5863. "type": "P",
  5864. "sysProps": {
  5865. "nameTemplate": "{defKey}[{defName}]"
  5866. },
  5867. "headers": [
  5868. {
  5869. "freeze": false,
  5870. "refKey": "hideInGraph",
  5871. "hideInGraph": true
  5872. },
  5873. {
  5874. "freeze": true,
  5875. "refKey": "defKey",
  5876. "hideInGraph": false
  5877. },
  5878. {
  5879. "freeze": true,
  5880. "refKey": "defName",
  5881. "hideInGraph": false
  5882. },
  5883. {
  5884. "freeze": false,
  5885. "refKey": "primaryKey",
  5886. "hideInGraph": false
  5887. },
  5888. {
  5889. "freeze": false,
  5890. "refKey": "notNull",
  5891. "hideInGraph": true
  5892. },
  5893. {
  5894. "freeze": false,
  5895. "refKey": "autoIncrement",
  5896. "hideInGraph": true
  5897. },
  5898. {
  5899. "freeze": false,
  5900. "refKey": "domain",
  5901. "hideInGraph": true
  5902. },
  5903. {
  5904. "freeze": false,
  5905. "refKey": "type",
  5906. "hideInGraph": false
  5907. },
  5908. {
  5909. "freeze": false,
  5910. "refKey": "len",
  5911. "hideInGraph": false
  5912. },
  5913. {
  5914. "freeze": false,
  5915. "refKey": "scale",
  5916. "hideInGraph": false
  5917. },
  5918. {
  5919. "freeze": false,
  5920. "refKey": "comment",
  5921. "hideInGraph": true
  5922. },
  5923. {
  5924. "freeze": false,
  5925. "refKey": "refDict",
  5926. "hideInGraph": true
  5927. },
  5928. {
  5929. "freeze": false,
  5930. "refKey": "defaultValue",
  5931. "hideInGraph": true
  5932. },
  5933. {
  5934. "freeze": false,
  5935. "refKey": "isStandard",
  5936. "hideInGraph": false
  5937. },
  5938. {
  5939. "freeze": false,
  5940. "refKey": "uiHint",
  5941. "hideInGraph": true
  5942. },
  5943. {
  5944. "freeze": false,
  5945. "refKey": "extProps",
  5946. "hideInGraph": true
  5947. }
  5948. ],
  5949. "correlations": [],
  5950. "notes": {}
  5951. },
  5952. {
  5953. "id": "5A15F1DD-29CF-4AA9-81AD-BB8C875BC76D",
  5954. "defKey": "SERVICE_CATEGORY",
  5955. "defName": "服务分类",
  5956. "comment": "",
  5957. "properties": {},
  5958. "fields": [
  5959. {
  5960. "defKey": "ID",
  5961. "defName": "编号",
  5962. "comment": "",
  5963. "domain": null,
  5964. "type": "BIGINT UNSIGNED",
  5965. "len": "",
  5966. "scale": "",
  5967. "primaryKey": true,
  5968. "notNull": true,
  5969. "autoIncrement": true,
  5970. "defaultValue": "",
  5971. "hideInGraph": false,
  5972. "refDict": null,
  5973. "attr1": "",
  5974. "attr2": "",
  5975. "attr3": "",
  5976. "attr4": "",
  5977. "attr5": "",
  5978. "attr6": "",
  5979. "attr7": "",
  5980. "attr8": "",
  5981. "attr9": "",
  5982. "id": "98C4796D-5DFE-4B0F-971B-135ACF9F5370",
  5983. "baseType": null,
  5984. "extProps": {},
  5985. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  5986. },
  5987. {
  5988. "defKey": "TITLE",
  5989. "defName": "分类名称",
  5990. "comment": "",
  5991. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5992. "type": "",
  5993. "len": "",
  5994. "scale": "",
  5995. "primaryKey": false,
  5996. "notNull": true,
  5997. "autoIncrement": false,
  5998. "defaultValue": "",
  5999. "hideInGraph": false,
  6000. "refDict": null,
  6001. "attr1": "",
  6002. "attr2": "",
  6003. "attr3": "",
  6004. "attr4": "",
  6005. "attr5": "",
  6006. "attr6": "",
  6007. "attr7": "",
  6008. "attr8": "",
  6009. "attr9": "",
  6010. "id": "D55C58B6-C29E-40BB-8FDD-5CBB2381DDE0",
  6011. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  6012. "extProps": {},
  6013. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  6014. },
  6015. {
  6016. "defKey": "COVER",
  6017. "defName": "封面图",
  6018. "comment": "",
  6019. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6020. "type": "",
  6021. "len": "",
  6022. "scale": "",
  6023. "primaryKey": false,
  6024. "notNull": false,
  6025. "autoIncrement": false,
  6026. "defaultValue": "",
  6027. "hideInGraph": false,
  6028. "refDict": null,
  6029. "attr1": "",
  6030. "attr2": "",
  6031. "attr3": "",
  6032. "attr4": "",
  6033. "attr5": "",
  6034. "attr6": "",
  6035. "attr7": "",
  6036. "attr8": "",
  6037. "attr9": "",
  6038. "id": "45B94CC2-B63C-4B87-A00D-B69A0F975E76",
  6039. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  6040. "extProps": {},
  6041. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  6042. },
  6043. {
  6044. "defKey": "SORT",
  6045. "defName": "排序",
  6046. "comment": "",
  6047. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6048. "type": "",
  6049. "len": "",
  6050. "scale": "",
  6051. "primaryKey": false,
  6052. "notNull": true,
  6053. "autoIncrement": false,
  6054. "defaultValue": "'0'",
  6055. "hideInGraph": false,
  6056. "refDict": null,
  6057. "attr1": "",
  6058. "attr2": "",
  6059. "attr3": "",
  6060. "attr4": "",
  6061. "attr5": "",
  6062. "attr6": "",
  6063. "attr7": "",
  6064. "attr8": "",
  6065. "attr9": "",
  6066. "id": "D82F3908-A205-4E99-8D0B-277740D20D23",
  6067. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  6068. "extProps": {},
  6069. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  6070. },
  6071. {
  6072. "defKey": "STATUS",
  6073. "defName": "状态",
  6074. "comment": "",
  6075. "type": "",
  6076. "len": "",
  6077. "scale": "",
  6078. "primaryKey": false,
  6079. "notNull": false,
  6080. "autoIncrement": false,
  6081. "defaultValue": "",
  6082. "hideInGraph": false,
  6083. "refDict": null,
  6084. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  6085. "extProps": {},
  6086. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6087. "id": "2D1F9E98-0FD6-42F4-94FA-4956F448D4A7",
  6088. "uiHint": null
  6089. }
  6090. ],
  6091. "indexes": [],
  6092. "type": "P",
  6093. "sysProps": {
  6094. "nameTemplate": "{defKey}[{defName}]"
  6095. },
  6096. "headers": [
  6097. {
  6098. "freeze": false,
  6099. "refKey": "hideInGraph",
  6100. "hideInGraph": true
  6101. },
  6102. {
  6103. "freeze": true,
  6104. "refKey": "defKey",
  6105. "hideInGraph": false
  6106. },
  6107. {
  6108. "freeze": true,
  6109. "refKey": "defName",
  6110. "hideInGraph": false
  6111. },
  6112. {
  6113. "freeze": false,
  6114. "refKey": "primaryKey",
  6115. "hideInGraph": false
  6116. },
  6117. {
  6118. "freeze": false,
  6119. "refKey": "notNull",
  6120. "hideInGraph": true
  6121. },
  6122. {
  6123. "freeze": false,
  6124. "refKey": "autoIncrement",
  6125. "hideInGraph": true
  6126. },
  6127. {
  6128. "freeze": false,
  6129. "refKey": "domain",
  6130. "hideInGraph": true
  6131. },
  6132. {
  6133. "freeze": false,
  6134. "refKey": "type",
  6135. "hideInGraph": false
  6136. },
  6137. {
  6138. "freeze": false,
  6139. "refKey": "len",
  6140. "hideInGraph": false
  6141. },
  6142. {
  6143. "freeze": false,
  6144. "refKey": "scale",
  6145. "hideInGraph": false
  6146. },
  6147. {
  6148. "freeze": false,
  6149. "refKey": "comment",
  6150. "hideInGraph": true
  6151. },
  6152. {
  6153. "freeze": false,
  6154. "refKey": "refDict",
  6155. "hideInGraph": true
  6156. },
  6157. {
  6158. "freeze": false,
  6159. "refKey": "defaultValue",
  6160. "hideInGraph": true
  6161. },
  6162. {
  6163. "freeze": false,
  6164. "refKey": "isStandard",
  6165. "hideInGraph": false
  6166. },
  6167. {
  6168. "freeze": false,
  6169. "refKey": "uiHint",
  6170. "hideInGraph": true
  6171. },
  6172. {
  6173. "freeze": false,
  6174. "refKey": "extProps",
  6175. "hideInGraph": true
  6176. }
  6177. ],
  6178. "correlations": [],
  6179. "notes": {}
  6180. },
  6181. {
  6182. "id": "464BC16A-1A71-48AF-B7CC-CF4B316994B0",
  6183. "defKey": "SERVICE_PROJECT",
  6184. "defName": "服务项目",
  6185. "comment": "",
  6186. "properties": {},
  6187. "fields": [
  6188. {
  6189. "defKey": "ID",
  6190. "defName": "编号",
  6191. "comment": "",
  6192. "domain": null,
  6193. "type": "BIGINT UNSIGNED",
  6194. "len": "",
  6195. "scale": "",
  6196. "primaryKey": true,
  6197. "notNull": true,
  6198. "autoIncrement": true,
  6199. "defaultValue": "",
  6200. "hideInGraph": false,
  6201. "refDict": null,
  6202. "attr1": "",
  6203. "attr2": "",
  6204. "attr3": "",
  6205. "attr4": "",
  6206. "attr5": "",
  6207. "attr6": "",
  6208. "attr7": "",
  6209. "attr8": "",
  6210. "attr9": "",
  6211. "id": "68C9F705-75F4-4C70-A6CF-1E9889278C32",
  6212. "baseType": null,
  6213. "extProps": {},
  6214. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  6215. },
  6216. {
  6217. "defKey": "CATEGORY_ID",
  6218. "defName": "分类外键",
  6219. "comment": "",
  6220. "domain": null,
  6221. "type": "BIGINT",
  6222. "len": "",
  6223. "scale": "",
  6224. "primaryKey": false,
  6225. "notNull": false,
  6226. "autoIncrement": false,
  6227. "defaultValue": "",
  6228. "hideInGraph": false,
  6229. "refDict": null,
  6230. "attr1": "",
  6231. "attr2": "",
  6232. "attr3": "",
  6233. "attr4": "",
  6234. "attr5": "",
  6235. "attr6": "",
  6236. "attr7": "",
  6237. "attr8": "",
  6238. "attr9": "",
  6239. "id": "1E768608-A3B1-49D4-94DD-3A5969CC48A1",
  6240. "baseType": null,
  6241. "extProps": {},
  6242. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  6243. },
  6244. {
  6245. "defKey": "TITLE",
  6246. "defName": "标题",
  6247. "comment": "",
  6248. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6249. "type": "",
  6250. "len": "",
  6251. "scale": "",
  6252. "primaryKey": false,
  6253. "notNull": true,
  6254. "autoIncrement": false,
  6255. "defaultValue": "",
  6256. "hideInGraph": false,
  6257. "refDict": null,
  6258. "attr1": "",
  6259. "attr2": "",
  6260. "attr3": "",
  6261. "attr4": "",
  6262. "attr5": "",
  6263. "attr6": "",
  6264. "attr7": "",
  6265. "attr8": "",
  6266. "attr9": "",
  6267. "id": "5BF87800-DF42-41B9-85A9-A32EBCE6EE7E",
  6268. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  6269. "extProps": {},
  6270. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  6271. },
  6272. {
  6273. "defKey": "SUB_TITLE",
  6274. "defName": "副标题",
  6275. "comment": "",
  6276. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6277. "type": "",
  6278. "len": "",
  6279. "scale": "",
  6280. "primaryKey": false,
  6281. "notNull": true,
  6282. "autoIncrement": false,
  6283. "defaultValue": "",
  6284. "hideInGraph": false,
  6285. "refDict": null,
  6286. "attr1": "",
  6287. "attr2": "",
  6288. "attr3": "",
  6289. "attr4": "",
  6290. "attr5": "",
  6291. "attr6": "",
  6292. "attr7": "",
  6293. "attr8": "",
  6294. "attr9": "",
  6295. "id": "1088DE45-DCD8-476A-B1FA-46E9AABBAB41",
  6296. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  6297. "extProps": {},
  6298. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  6299. },
  6300. {
  6301. "defKey": "IMG_COVER",
  6302. "defName": "封面",
  6303. "comment": "",
  6304. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6305. "type": "",
  6306. "len": "",
  6307. "scale": "",
  6308. "primaryKey": false,
  6309. "notNull": false,
  6310. "autoIncrement": false,
  6311. "defaultValue": "",
  6312. "hideInGraph": false,
  6313. "refDict": null,
  6314. "attr1": "",
  6315. "attr2": "",
  6316. "attr3": "",
  6317. "attr4": "",
  6318. "attr5": "",
  6319. "attr6": "",
  6320. "attr7": "",
  6321. "attr8": "",
  6322. "attr9": "",
  6323. "id": "EC7D80D0-0DD4-4BB3-AE59-5C68B95A0F7B",
  6324. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  6325. "extProps": {},
  6326. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  6327. },
  6328. {
  6329. "defKey": "PRICE",
  6330. "defName": "价格",
  6331. "comment": "",
  6332. "domain": null,
  6333. "type": "DOUBLE",
  6334. "len": 22,
  6335. "scale": "",
  6336. "primaryKey": false,
  6337. "notNull": false,
  6338. "autoIncrement": false,
  6339. "defaultValue": "0",
  6340. "hideInGraph": false,
  6341. "refDict": null,
  6342. "attr1": "",
  6343. "attr2": "",
  6344. "attr3": "",
  6345. "attr4": "",
  6346. "attr5": "",
  6347. "attr6": "",
  6348. "attr7": "",
  6349. "attr8": "",
  6350. "attr9": "",
  6351. "id": "FA06D097-C87B-4CDC-B742-5CA49936637C",
  6352. "baseType": null,
  6353. "extProps": {},
  6354. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  6355. },
  6356. {
  6357. "defKey": "INIT_PRICE",
  6358. "defName": "原价",
  6359. "comment": "",
  6360. "domain": null,
  6361. "type": "DOUBLE",
  6362. "len": 22,
  6363. "scale": "",
  6364. "primaryKey": false,
  6365. "notNull": false,
  6366. "autoIncrement": false,
  6367. "defaultValue": "0",
  6368. "hideInGraph": false,
  6369. "refDict": null,
  6370. "attr1": "",
  6371. "attr2": "",
  6372. "attr3": "",
  6373. "attr4": "",
  6374. "attr5": "",
  6375. "attr6": "",
  6376. "attr7": "",
  6377. "attr8": "",
  6378. "attr9": "",
  6379. "id": "8B644636-28A9-4E19-B66F-E92642074092",
  6380. "baseType": null,
  6381. "extProps": {},
  6382. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  6383. },
  6384. {
  6385. "defKey": "SALE",
  6386. "defName": "虚拟销量",
  6387. "comment": "",
  6388. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  6389. "type": "",
  6390. "len": "",
  6391. "scale": "",
  6392. "primaryKey": false,
  6393. "notNull": false,
  6394. "autoIncrement": false,
  6395. "defaultValue": "0",
  6396. "hideInGraph": false,
  6397. "refDict": null,
  6398. "attr1": "",
  6399. "attr2": "",
  6400. "attr3": "",
  6401. "attr4": "",
  6402. "attr5": "",
  6403. "attr6": "",
  6404. "attr7": "",
  6405. "attr8": "",
  6406. "attr9": "",
  6407. "id": "03D09A59-9E54-4F55-8124-40DAC849C185",
  6408. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  6409. "extProps": {},
  6410. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  6411. },
  6412. {
  6413. "defKey": "TRUE_SALE",
  6414. "defName": "实际销量",
  6415. "comment": "",
  6416. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  6417. "type": "",
  6418. "len": "",
  6419. "scale": "",
  6420. "primaryKey": false,
  6421. "notNull": false,
  6422. "autoIncrement": false,
  6423. "defaultValue": "0",
  6424. "hideInGraph": false,
  6425. "refDict": null,
  6426. "attr1": "",
  6427. "attr2": "",
  6428. "attr3": "",
  6429. "attr4": "",
  6430. "attr5": "",
  6431. "attr6": "",
  6432. "attr7": "",
  6433. "attr8": "",
  6434. "attr9": "",
  6435. "id": "B212790D-B11E-4E37-873B-39B98DAACDA4",
  6436. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  6437. "extProps": {},
  6438. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  6439. },
  6440. {
  6441. "defKey": "TIME_LONG",
  6442. "defName": "服务时长",
  6443. "comment": "",
  6444. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  6445. "type": "",
  6446. "len": "",
  6447. "scale": "",
  6448. "primaryKey": false,
  6449. "notNull": false,
  6450. "autoIncrement": false,
  6451. "defaultValue": "0",
  6452. "hideInGraph": false,
  6453. "refDict": null,
  6454. "attr1": "",
  6455. "attr2": "",
  6456. "attr3": "",
  6457. "attr4": "",
  6458. "attr5": "",
  6459. "attr6": "",
  6460. "attr7": "",
  6461. "attr8": "",
  6462. "attr9": "",
  6463. "id": "C863EB94-CBD1-46EA-B635-994290E6C8BB",
  6464. "baseType": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  6465. "extProps": {},
  6466. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  6467. },
  6468. {
  6469. "defKey": "INTRODUCE",
  6470. "defName": "介绍",
  6471. "comment": "",
  6472. "domain": null,
  6473. "type": "TEXT",
  6474. "len": "",
  6475. "scale": "",
  6476. "primaryKey": false,
  6477. "notNull": false,
  6478. "autoIncrement": false,
  6479. "defaultValue": "",
  6480. "hideInGraph": false,
  6481. "refDict": null,
  6482. "attr1": "",
  6483. "attr2": "",
  6484. "attr3": "",
  6485. "attr4": "",
  6486. "attr5": "",
  6487. "attr6": "",
  6488. "attr7": "",
  6489. "attr8": "",
  6490. "attr9": "",
  6491. "id": "78BB648E-3984-476D-95E6-7DE50B18805E",
  6492. "baseType": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
  6493. "extProps": {},
  6494. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  6495. },
  6496. {
  6497. "defKey": "EXPLAIN",
  6498. "defName": "禁忌说明",
  6499. "comment": "",
  6500. "domain": null,
  6501. "type": "TEXT",
  6502. "len": "",
  6503. "scale": "",
  6504. "primaryKey": false,
  6505. "notNull": false,
  6506. "autoIncrement": false,
  6507. "defaultValue": "",
  6508. "hideInGraph": false,
  6509. "refDict": null,
  6510. "attr1": "",
  6511. "attr2": "",
  6512. "attr3": "",
  6513. "attr4": "",
  6514. "attr5": "",
  6515. "attr6": "",
  6516. "attr7": "",
  6517. "attr8": "",
  6518. "attr9": "",
  6519. "id": "834E7AE2-2DCE-4E1B-96B2-3ACBA1C0872C",
  6520. "baseType": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
  6521. "extProps": {},
  6522. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  6523. },
  6524. {
  6525. "defKey": "SORT_KW",
  6526. "defName": "排序",
  6527. "comment": "",
  6528. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6529. "type": "",
  6530. "len": "",
  6531. "scale": "",
  6532. "primaryKey": false,
  6533. "notNull": true,
  6534. "autoIncrement": false,
  6535. "defaultValue": "'0'",
  6536. "hideInGraph": false,
  6537. "refDict": null,
  6538. "attr1": "",
  6539. "attr2": "",
  6540. "attr3": "",
  6541. "attr4": "",
  6542. "attr5": "",
  6543. "attr6": "",
  6544. "attr7": "",
  6545. "attr8": "",
  6546. "attr9": "",
  6547. "id": "0281EF20-07ED-428D-9EBD-82B72FBE2971",
  6548. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  6549. "extProps": {},
  6550. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  6551. },
  6552. {
  6553. "defKey": "COM_BALANCE",
  6554. "defName": "技师默认分佣比例",
  6555. "comment": "",
  6556. "domain": null,
  6557. "type": "TINYINT",
  6558. "len": "",
  6559. "scale": "",
  6560. "primaryKey": false,
  6561. "notNull": true,
  6562. "autoIncrement": false,
  6563. "defaultValue": "0",
  6564. "hideInGraph": false,
  6565. "refDict": null,
  6566. "attr1": "",
  6567. "attr2": "",
  6568. "attr3": "",
  6569. "attr4": "",
  6570. "attr5": "",
  6571. "attr6": "",
  6572. "attr7": "",
  6573. "attr8": "",
  6574. "attr9": "",
  6575. "id": "FD159B10-0FD9-4B07-9C34-A927D2D9E473",
  6576. "baseType": null,
  6577. "extProps": {},
  6578. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  6579. },
  6580. {
  6581. "defKey": "featureS",
  6582. "defName": "服务特性",
  6583. "comment": "[加钟、到店、上门]",
  6584. "type": "VARCHAR",
  6585. "len": 255,
  6586. "scale": "",
  6587. "primaryKey": false,
  6588. "notNull": false,
  6589. "autoIncrement": false,
  6590. "defaultValue": "",
  6591. "hideInGraph": false,
  6592. "refDict": null,
  6593. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  6594. "extProps": {},
  6595. "domain": null,
  6596. "id": "BAD852D3-B3A7-450B-96BB-4794374E0160",
  6597. "uiHint": null
  6598. },
  6599. {
  6600. "defKey": "STATUS",
  6601. "defName": "状态",
  6602. "comment": "",
  6603. "domain": null,
  6604. "type": "TINYINT",
  6605. "len": "",
  6606. "scale": "",
  6607. "primaryKey": false,
  6608. "notNull": true,
  6609. "autoIncrement": false,
  6610. "defaultValue": "0",
  6611. "hideInGraph": false,
  6612. "refDict": null,
  6613. "attr1": "",
  6614. "attr2": "",
  6615. "attr3": "",
  6616. "attr4": "",
  6617. "attr5": "",
  6618. "attr6": "",
  6619. "attr7": "",
  6620. "attr8": "",
  6621. "attr9": "",
  6622. "id": "0971CE63-F3F7-495E-B795-CC51437AFDFF",
  6623. "baseType": null,
  6624. "extProps": {},
  6625. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  6626. }
  6627. ],
  6628. "indexes": [],
  6629. "type": "P",
  6630. "sysProps": {
  6631. "nameTemplate": "{defKey}[{defName}]"
  6632. },
  6633. "headers": [
  6634. {
  6635. "freeze": false,
  6636. "refKey": "hideInGraph",
  6637. "hideInGraph": true
  6638. },
  6639. {
  6640. "freeze": true,
  6641. "refKey": "defKey",
  6642. "hideInGraph": false
  6643. },
  6644. {
  6645. "freeze": true,
  6646. "refKey": "defName",
  6647. "hideInGraph": false
  6648. },
  6649. {
  6650. "freeze": false,
  6651. "refKey": "primaryKey",
  6652. "hideInGraph": false
  6653. },
  6654. {
  6655. "freeze": false,
  6656. "refKey": "notNull",
  6657. "hideInGraph": true
  6658. },
  6659. {
  6660. "freeze": false,
  6661. "refKey": "autoIncrement",
  6662. "hideInGraph": true
  6663. },
  6664. {
  6665. "freeze": false,
  6666. "refKey": "domain",
  6667. "hideInGraph": true
  6668. },
  6669. {
  6670. "freeze": false,
  6671. "refKey": "type",
  6672. "hideInGraph": false
  6673. },
  6674. {
  6675. "freeze": false,
  6676. "refKey": "len",
  6677. "hideInGraph": false
  6678. },
  6679. {
  6680. "freeze": false,
  6681. "refKey": "scale",
  6682. "hideInGraph": false
  6683. },
  6684. {
  6685. "freeze": false,
  6686. "refKey": "comment",
  6687. "hideInGraph": true
  6688. },
  6689. {
  6690. "freeze": false,
  6691. "refKey": "refDict",
  6692. "hideInGraph": true
  6693. },
  6694. {
  6695. "freeze": false,
  6696. "refKey": "defaultValue",
  6697. "hideInGraph": true
  6698. },
  6699. {
  6700. "freeze": false,
  6701. "refKey": "isStandard",
  6702. "hideInGraph": false
  6703. },
  6704. {
  6705. "freeze": false,
  6706. "refKey": "uiHint",
  6707. "hideInGraph": true
  6708. },
  6709. {
  6710. "freeze": false,
  6711. "refKey": "extProps",
  6712. "hideInGraph": true
  6713. }
  6714. ],
  6715. "correlations": [],
  6716. "notes": {}
  6717. },
  6718. {
  6719. "id": "C401B2CE-9BDB-4D59-BE8A-B22534BD3E68",
  6720. "defKey": "SERVICE_PROJECT_COACH_CONFIG",
  6721. "headers": [
  6722. {
  6723. "refKey": "hideInGraph",
  6724. "hideInGraph": true
  6725. },
  6726. {
  6727. "refKey": "defKey",
  6728. "freeze": false,
  6729. "hideInGraph": false
  6730. },
  6731. {
  6732. "refKey": "defName",
  6733. "freeze": false,
  6734. "hideInGraph": false
  6735. },
  6736. {
  6737. "refKey": "primaryKey",
  6738. "freeze": false,
  6739. "hideInGraph": false
  6740. },
  6741. {
  6742. "refKey": "notNull",
  6743. "freeze": false,
  6744. "hideInGraph": true
  6745. },
  6746. {
  6747. "refKey": "autoIncrement",
  6748. "freeze": false,
  6749. "hideInGraph": true
  6750. },
  6751. {
  6752. "refKey": "domain",
  6753. "freeze": false,
  6754. "hideInGraph": true
  6755. },
  6756. {
  6757. "refKey": "type",
  6758. "freeze": false,
  6759. "hideInGraph": false
  6760. },
  6761. {
  6762. "refKey": "len",
  6763. "freeze": false,
  6764. "hideInGraph": false
  6765. },
  6766. {
  6767. "refKey": "scale",
  6768. "freeze": false,
  6769. "hideInGraph": false
  6770. },
  6771. {
  6772. "refKey": "comment",
  6773. "freeze": false,
  6774. "hideInGraph": true
  6775. },
  6776. {
  6777. "refKey": "refDict",
  6778. "freeze": false,
  6779. "hideInGraph": true
  6780. },
  6781. {
  6782. "refKey": "defaultValue",
  6783. "freeze": false,
  6784. "hideInGraph": true
  6785. },
  6786. {
  6787. "refKey": "isStandard",
  6788. "freeze": false,
  6789. "hideInGraph": false
  6790. },
  6791. {
  6792. "refKey": "uiHint",
  6793. "freeze": false,
  6794. "hideInGraph": true
  6795. },
  6796. {
  6797. "refKey": "extProps",
  6798. "freeze": false,
  6799. "hideInGraph": true
  6800. },
  6801. {
  6802. "refKey": "attr1",
  6803. "freeze": false,
  6804. "hideInGraph": true
  6805. },
  6806. {
  6807. "refKey": "attr2",
  6808. "freeze": false,
  6809. "hideInGraph": true
  6810. },
  6811. {
  6812. "refKey": "attr3",
  6813. "freeze": false,
  6814. "hideInGraph": true
  6815. },
  6816. {
  6817. "refKey": "attr4",
  6818. "freeze": false,
  6819. "hideInGraph": true
  6820. },
  6821. {
  6822. "refKey": "attr5",
  6823. "freeze": false,
  6824. "hideInGraph": true
  6825. },
  6826. {
  6827. "refKey": "attr6",
  6828. "freeze": false,
  6829. "hideInGraph": true
  6830. },
  6831. {
  6832. "refKey": "attr7",
  6833. "freeze": false,
  6834. "hideInGraph": true
  6835. },
  6836. {
  6837. "refKey": "attr8",
  6838. "freeze": false,
  6839. "hideInGraph": true
  6840. },
  6841. {
  6842. "refKey": "attr9",
  6843. "freeze": false,
  6844. "hideInGraph": true
  6845. }
  6846. ],
  6847. "fields": [
  6848. {
  6849. "defKey": "id",
  6850. "defName": "编号",
  6851. "comment": "",
  6852. "type": "",
  6853. "len": "",
  6854. "scale": "",
  6855. "primaryKey": false,
  6856. "notNull": false,
  6857. "autoIncrement": false,
  6858. "defaultValue": "",
  6859. "hideInGraph": false,
  6860. "refDict": null,
  6861. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  6862. "extProps": {},
  6863. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6864. "id": "0E7698B0-94EC-48BB-8158-538C7EDF4190",
  6865. "uiHint": null
  6866. },
  6867. {
  6868. "defKey": "project_id",
  6869. "defName": "服务项目外键",
  6870. "comment": "",
  6871. "type": "",
  6872. "len": "",
  6873. "scale": "",
  6874. "primaryKey": false,
  6875. "notNull": false,
  6876. "autoIncrement": false,
  6877. "defaultValue": "",
  6878. "hideInGraph": false,
  6879. "refDict": null,
  6880. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  6881. "extProps": {},
  6882. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6883. "id": "88DBC0E7-30EE-491C-82E0-BC606B810DAC",
  6884. "uiHint": null
  6885. },
  6886. {
  6887. "defKey": "coach_id",
  6888. "defName": "技师外键",
  6889. "comment": "",
  6890. "type": "",
  6891. "len": "",
  6892. "scale": "",
  6893. "primaryKey": false,
  6894. "notNull": false,
  6895. "autoIncrement": false,
  6896. "defaultValue": "",
  6897. "hideInGraph": false,
  6898. "refDict": "",
  6899. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  6900. "extProps": {},
  6901. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6902. "id": "58ECE99E-198A-439C-BD94-DA5555EDA284"
  6903. },
  6904. {
  6905. "defKey": "label",
  6906. "defName": "项",
  6907. "comment": "开启后下面的设置才可以用",
  6908. "type": "",
  6909. "len": "",
  6910. "scale": "",
  6911. "primaryKey": false,
  6912. "notNull": false,
  6913. "autoIncrement": false,
  6914. "defaultValue": "",
  6915. "hideInGraph": false,
  6916. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6917. "refDict": null,
  6918. "extProps": {},
  6919. "notes": {},
  6920. "attr1": "",
  6921. "attr2": "",
  6922. "attr3": "",
  6923. "attr4": "",
  6924. "attr5": "",
  6925. "attr6": "",
  6926. "attr7": "",
  6927. "attr8": "",
  6928. "attr9": "",
  6929. "id": "5AD12477-4C1E-420D-A0C7-DF29390F0373",
  6930. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  6931. "uiHint": null
  6932. },
  6933. {
  6934. "defKey": "value",
  6935. "defName": "值",
  6936. "comment": "",
  6937. "type": "",
  6938. "len": "",
  6939. "scale": "",
  6940. "primaryKey": false,
  6941. "notNull": false,
  6942. "autoIncrement": false,
  6943. "defaultValue": "",
  6944. "hideInGraph": false,
  6945. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6946. "refDict": null,
  6947. "extProps": {},
  6948. "notes": {},
  6949. "attr1": "",
  6950. "attr2": "",
  6951. "attr3": "",
  6952. "attr4": "",
  6953. "attr5": "",
  6954. "attr6": "",
  6955. "attr7": "",
  6956. "attr8": "",
  6957. "attr9": "",
  6958. "id": "34969141-1042-48A3-9ADD-A182F6A30EF9",
  6959. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  6960. "uiHint": null
  6961. },
  6962. {
  6963. "defKey": "sort_kw",
  6964. "defName": "顺序",
  6965. "comment": "",
  6966. "type": "",
  6967. "len": "",
  6968. "scale": "",
  6969. "primaryKey": false,
  6970. "notNull": false,
  6971. "autoIncrement": false,
  6972. "defaultValue": "",
  6973. "hideInGraph": false,
  6974. "refDict": null,
  6975. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  6976. "extProps": {},
  6977. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6978. "id": "E9EF86D5-8BFF-49F6-A800-3B8C22C56CFC",
  6979. "uiHint": null
  6980. }
  6981. ],
  6982. "properties": {
  6983. "partitioned by": "(date string)",
  6984. "row format delimited": "",
  6985. "fields terminated by ','": "",
  6986. "collection items terminated by '-'": "",
  6987. "map keys terminated by ':'": "",
  6988. "store as textfile;": ""
  6989. },
  6990. "type": "P",
  6991. "correlations": [],
  6992. "defName": "技师设置",
  6993. "notes": {},
  6994. "indexes": [],
  6995. "sysProps": {},
  6996. "comment": "todo list:\n1、如果project_id为null,则是技师全局设置\n2、如果coach_id为null,tenant_id不为null,则是代理商、店铺、业务员项目的设置\n"
  6997. },
  6998. {
  6999. "id": "6361C898-7C2E-40E1-80E0-5F74895AD476",
  7000. "defKey": "SERVICE_PROJECT_CONFIG",
  7001. "headers": [
  7002. {
  7003. "refKey": "hideInGraph",
  7004. "hideInGraph": true
  7005. },
  7006. {
  7007. "refKey": "defKey",
  7008. "freeze": false,
  7009. "hideInGraph": false
  7010. },
  7011. {
  7012. "refKey": "defName",
  7013. "freeze": false,
  7014. "hideInGraph": false
  7015. },
  7016. {
  7017. "refKey": "primaryKey",
  7018. "freeze": false,
  7019. "hideInGraph": false
  7020. },
  7021. {
  7022. "refKey": "notNull",
  7023. "freeze": false,
  7024. "hideInGraph": true
  7025. },
  7026. {
  7027. "refKey": "autoIncrement",
  7028. "freeze": false,
  7029. "hideInGraph": true
  7030. },
  7031. {
  7032. "refKey": "domain",
  7033. "freeze": false,
  7034. "hideInGraph": true
  7035. },
  7036. {
  7037. "refKey": "type",
  7038. "freeze": false,
  7039. "hideInGraph": false
  7040. },
  7041. {
  7042. "refKey": "len",
  7043. "freeze": false,
  7044. "hideInGraph": false
  7045. },
  7046. {
  7047. "refKey": "scale",
  7048. "freeze": false,
  7049. "hideInGraph": false
  7050. },
  7051. {
  7052. "refKey": "comment",
  7053. "freeze": false,
  7054. "hideInGraph": true
  7055. },
  7056. {
  7057. "refKey": "refDict",
  7058. "freeze": false,
  7059. "hideInGraph": true
  7060. },
  7061. {
  7062. "refKey": "defaultValue",
  7063. "freeze": false,
  7064. "hideInGraph": true
  7065. },
  7066. {
  7067. "refKey": "isStandard",
  7068. "freeze": false,
  7069. "hideInGraph": false
  7070. },
  7071. {
  7072. "refKey": "uiHint",
  7073. "freeze": false,
  7074. "hideInGraph": true
  7075. },
  7076. {
  7077. "refKey": "extProps",
  7078. "freeze": false,
  7079. "hideInGraph": true
  7080. },
  7081. {
  7082. "refKey": "attr1",
  7083. "freeze": false,
  7084. "hideInGraph": true
  7085. },
  7086. {
  7087. "refKey": "attr2",
  7088. "freeze": false,
  7089. "hideInGraph": true
  7090. },
  7091. {
  7092. "refKey": "attr3",
  7093. "freeze": false,
  7094. "hideInGraph": true
  7095. },
  7096. {
  7097. "refKey": "attr4",
  7098. "freeze": false,
  7099. "hideInGraph": true
  7100. },
  7101. {
  7102. "refKey": "attr5",
  7103. "freeze": false,
  7104. "hideInGraph": true
  7105. },
  7106. {
  7107. "refKey": "attr6",
  7108. "freeze": false,
  7109. "hideInGraph": true
  7110. },
  7111. {
  7112. "refKey": "attr7",
  7113. "freeze": false,
  7114. "hideInGraph": true
  7115. },
  7116. {
  7117. "refKey": "attr8",
  7118. "freeze": false,
  7119. "hideInGraph": true
  7120. },
  7121. {
  7122. "refKey": "attr9",
  7123. "freeze": false,
  7124. "hideInGraph": true
  7125. }
  7126. ],
  7127. "fields": [
  7128. {
  7129. "defKey": "id",
  7130. "defName": "编号",
  7131. "comment": "",
  7132. "type": "",
  7133. "len": "",
  7134. "scale": "",
  7135. "primaryKey": false,
  7136. "notNull": false,
  7137. "autoIncrement": false,
  7138. "defaultValue": "",
  7139. "hideInGraph": false,
  7140. "refDict": null,
  7141. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7142. "extProps": {},
  7143. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7144. "id": "AD9ED98B-50B9-4673-8A5E-B0250342C18F",
  7145. "uiHint": null
  7146. },
  7147. {
  7148. "defKey": "project_id",
  7149. "defName": "服务项目外键",
  7150. "comment": "",
  7151. "type": "",
  7152. "len": "",
  7153. "scale": "",
  7154. "primaryKey": false,
  7155. "notNull": false,
  7156. "autoIncrement": false,
  7157. "defaultValue": "",
  7158. "hideInGraph": false,
  7159. "refDict": null,
  7160. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7161. "extProps": {},
  7162. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7163. "id": "A360ED63-2132-48E6-8660-901C42CFC454",
  7164. "uiHint": null
  7165. },
  7166. {
  7167. "defKey": "label",
  7168. "defName": "项",
  7169. "comment": "开启后下面的设置才可以用",
  7170. "type": "",
  7171. "len": "",
  7172. "scale": "",
  7173. "primaryKey": false,
  7174. "notNull": false,
  7175. "autoIncrement": false,
  7176. "defaultValue": "",
  7177. "hideInGraph": false,
  7178. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7179. "refDict": null,
  7180. "extProps": {},
  7181. "notes": {},
  7182. "attr1": "",
  7183. "attr2": "",
  7184. "attr3": "",
  7185. "attr4": "",
  7186. "attr5": "",
  7187. "attr6": "",
  7188. "attr7": "",
  7189. "attr8": "",
  7190. "attr9": "",
  7191. "id": "81C84C53-5996-4E6F-B4F2-56B5A47DBB84",
  7192. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7193. "uiHint": null
  7194. },
  7195. {
  7196. "defKey": "value",
  7197. "defName": "值",
  7198. "comment": "",
  7199. "type": "",
  7200. "len": "",
  7201. "scale": "",
  7202. "primaryKey": false,
  7203. "notNull": false,
  7204. "autoIncrement": false,
  7205. "defaultValue": "",
  7206. "hideInGraph": false,
  7207. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7208. "refDict": null,
  7209. "extProps": {},
  7210. "notes": {},
  7211. "attr1": "",
  7212. "attr2": "",
  7213. "attr3": "",
  7214. "attr4": "",
  7215. "attr5": "",
  7216. "attr6": "",
  7217. "attr7": "",
  7218. "attr8": "",
  7219. "attr9": "",
  7220. "id": "C777E1EA-34D3-4C24-B037-361F8D49D568",
  7221. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7222. "uiHint": null
  7223. },
  7224. {
  7225. "defKey": "sort_kw",
  7226. "defName": "顺序",
  7227. "comment": "",
  7228. "type": "",
  7229. "len": "",
  7230. "scale": "",
  7231. "primaryKey": false,
  7232. "notNull": false,
  7233. "autoIncrement": false,
  7234. "defaultValue": "",
  7235. "hideInGraph": false,
  7236. "refDict": null,
  7237. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7238. "extProps": {},
  7239. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7240. "id": "838367AB-BF15-422D-A5FE-EB58AFD5BEA1",
  7241. "uiHint": null
  7242. }
  7243. ],
  7244. "properties": {
  7245. "partitioned by": "(date string)",
  7246. "row format delimited": "",
  7247. "fields terminated by ','": "",
  7248. "collection items terminated by '-'": "",
  7249. "map keys terminated by ':'": "",
  7250. "store as textfile;": ""
  7251. },
  7252. "type": "P",
  7253. "correlations": [],
  7254. "defName": "技师设置",
  7255. "notes": {},
  7256. "indexes": [],
  7257. "sysProps": {}
  7258. },
  7259. {
  7260. "id": "F5D5A1F0-45DA-454E-A0C1-3422F5085850",
  7261. "defKey": "ORDER_PROFITS",
  7262. "defName": "订单分润表",
  7263. "comment": "",
  7264. "properties": {},
  7265. "fields": [
  7266. {
  7267. "defKey": "ORDER_PROFIT_ID",
  7268. "defName": "订单分润编号",
  7269. "comment": "",
  7270. "domain": "",
  7271. "type": "BIGINT UNSIGNED",
  7272. "len": "",
  7273. "scale": "",
  7274. "primaryKey": true,
  7275. "notNull": true,
  7276. "autoIncrement": true,
  7277. "defaultValue": "",
  7278. "hideInGraph": false,
  7279. "refDict": "",
  7280. "attr1": "",
  7281. "attr2": "",
  7282. "attr3": "",
  7283. "attr4": "",
  7284. "attr5": "",
  7285. "attr6": "",
  7286. "attr7": "",
  7287. "attr8": "",
  7288. "attr9": "",
  7289. "id": "450A3CC4-927E-4BA7-A39A-BC4363B86EFB",
  7290. "baseType": "",
  7291. "extProps": {},
  7292. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7293. },
  7294. {
  7295. "defKey": "ORDER_ID",
  7296. "defName": "订单编号",
  7297. "comment": "",
  7298. "domain": "",
  7299. "type": "BIGINT UNSIGNED",
  7300. "len": "",
  7301. "scale": "",
  7302. "primaryKey": false,
  7303. "notNull": true,
  7304. "autoIncrement": false,
  7305. "defaultValue": "",
  7306. "hideInGraph": false,
  7307. "refDict": "",
  7308. "attr1": "",
  7309. "attr2": "",
  7310. "attr3": "",
  7311. "attr4": "",
  7312. "attr5": "",
  7313. "attr6": "",
  7314. "attr7": "",
  7315. "attr8": "",
  7316. "attr9": "",
  7317. "id": "104CFFB6-15AB-44D8-ABBB-38CFF9439342",
  7318. "baseType": "",
  7319. "extProps": {},
  7320. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7321. },
  7322. {
  7323. "defKey": "ACCOUNT_ID",
  7324. "defName": "账户编号",
  7325. "comment": "",
  7326. "domain": "",
  7327. "type": "BIGINT UNSIGNED",
  7328. "len": "",
  7329. "scale": "",
  7330. "primaryKey": false,
  7331. "notNull": true,
  7332. "autoIncrement": false,
  7333. "defaultValue": "",
  7334. "hideInGraph": false,
  7335. "refDict": "",
  7336. "attr1": "",
  7337. "attr2": "",
  7338. "attr3": "",
  7339. "attr4": "",
  7340. "attr5": "",
  7341. "attr6": "",
  7342. "attr7": "",
  7343. "attr8": "",
  7344. "attr9": "",
  7345. "id": "23EFBE2A-7C7E-414F-80C8-4ED4908855F3",
  7346. "baseType": "",
  7347. "extProps": {},
  7348. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7349. },
  7350. {
  7351. "defKey": "ACCOUNT_TYPE",
  7352. "defName": "账户类型",
  7353. "comment": "(用户、技师、平台、代理)",
  7354. "domain": "",
  7355. "type": "VARCHAR",
  7356. "len": 50,
  7357. "scale": "",
  7358. "primaryKey": false,
  7359. "notNull": true,
  7360. "autoIncrement": false,
  7361. "defaultValue": "",
  7362. "hideInGraph": false,
  7363. "refDict": "",
  7364. "attr1": "",
  7365. "attr2": "",
  7366. "attr3": "",
  7367. "attr4": "",
  7368. "attr5": "",
  7369. "attr6": "",
  7370. "attr7": "",
  7371. "attr8": "",
  7372. "attr9": "",
  7373. "id": "DA9BDFE3-50A8-4DA5-AAAE-BB42E5549C8E",
  7374. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7375. "extProps": {},
  7376. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7377. },
  7378. {
  7379. "defKey": "PROFIT_TYPE",
  7380. "defName": "裂变层级",
  7381. "comment": "(1、2)",
  7382. "domain": "",
  7383. "type": "VARCHAR",
  7384. "len": 50,
  7385. "scale": "",
  7386. "primaryKey": false,
  7387. "notNull": true,
  7388. "autoIncrement": false,
  7389. "defaultValue": "",
  7390. "hideInGraph": false,
  7391. "refDict": "",
  7392. "attr1": "",
  7393. "attr2": "",
  7394. "attr3": "",
  7395. "attr4": "",
  7396. "attr5": "",
  7397. "attr6": "",
  7398. "attr7": "",
  7399. "attr8": "",
  7400. "attr9": "",
  7401. "id": "8C39177B-EF96-4805-8AF4-6C2766D9B734",
  7402. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7403. "extProps": {},
  7404. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7405. },
  7406. {
  7407. "defKey": "PARTICIPATION_AMOUNT",
  7408. "defName": "参与分润金额",
  7409. "comment": "有可能 是 订单金额(去掉优惠、路费),有可能是剩余利润",
  7410. "domain": "",
  7411. "type": "DECIMAL",
  7412. "len": 10,
  7413. "scale": 2,
  7414. "primaryKey": false,
  7415. "notNull": true,
  7416. "autoIncrement": false,
  7417. "defaultValue": "",
  7418. "hideInGraph": false,
  7419. "refDict": "",
  7420. "attr1": "",
  7421. "attr2": "",
  7422. "attr3": "",
  7423. "attr4": "",
  7424. "attr5": "",
  7425. "attr6": "",
  7426. "attr7": "",
  7427. "attr8": "",
  7428. "attr9": "",
  7429. "id": "370F1614-EF31-4123-9DBE-6D84ECDCFC2E",
  7430. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  7431. "extProps": {},
  7432. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7433. },
  7434. {
  7435. "defKey": "PROFIT_RATIO",
  7436. "defName": "分润比例",
  7437. "comment": "",
  7438. "domain": "",
  7439. "type": "DECIMAL",
  7440. "len": 5,
  7441. "scale": 2,
  7442. "primaryKey": false,
  7443. "notNull": true,
  7444. "autoIncrement": false,
  7445. "defaultValue": "",
  7446. "hideInGraph": false,
  7447. "refDict": "",
  7448. "attr1": "",
  7449. "attr2": "",
  7450. "attr3": "",
  7451. "attr4": "",
  7452. "attr5": "",
  7453. "attr6": "",
  7454. "attr7": "",
  7455. "attr8": "",
  7456. "attr9": "",
  7457. "id": "AEBD8D11-0827-45FF-91EC-5E44CC1D211F",
  7458. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  7459. "extProps": {},
  7460. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7461. },
  7462. {
  7463. "defKey": "PROFIT_AMOUNT",
  7464. "defName": "分润金额",
  7465. "comment": "",
  7466. "domain": "",
  7467. "type": "DECIMAL",
  7468. "len": 10,
  7469. "scale": 2,
  7470. "primaryKey": false,
  7471. "notNull": true,
  7472. "autoIncrement": false,
  7473. "defaultValue": "",
  7474. "hideInGraph": false,
  7475. "refDict": "",
  7476. "attr1": "",
  7477. "attr2": "",
  7478. "attr3": "",
  7479. "attr4": "",
  7480. "attr5": "",
  7481. "attr6": "",
  7482. "attr7": "",
  7483. "attr8": "",
  7484. "attr9": "",
  7485. "id": "53B5E08B-FD07-4991-8884-64491B3AD96A",
  7486. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  7487. "extProps": {},
  7488. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7489. },
  7490. {
  7491. "defKey": "PROFIT_TIME",
  7492. "defName": "分润时间",
  7493. "comment": "",
  7494. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  7495. "type": "",
  7496. "len": "",
  7497. "scale": "",
  7498. "primaryKey": false,
  7499. "notNull": true,
  7500. "autoIncrement": false,
  7501. "defaultValue": "",
  7502. "hideInGraph": false,
  7503. "refDict": "",
  7504. "attr1": "",
  7505. "attr2": "",
  7506. "attr3": "",
  7507. "attr4": "",
  7508. "attr5": "",
  7509. "attr6": "",
  7510. "attr7": "",
  7511. "attr8": "",
  7512. "attr9": "",
  7513. "id": "8603863D-B20A-4FBE-A358-44946920DEAE",
  7514. "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098",
  7515. "extProps": {},
  7516. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7517. },
  7518. {
  7519. "defKey": "sdf",
  7520. "defName": "第三方支付接口相关信息记录",
  7521. "comment": "todo:可备查、可追溯??",
  7522. "type": "",
  7523. "len": "",
  7524. "scale": "",
  7525. "primaryKey": false,
  7526. "notNull": false,
  7527. "autoIncrement": false,
  7528. "defaultValue": "",
  7529. "hideInGraph": false,
  7530. "refDict": "",
  7531. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7532. "extProps": {},
  7533. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7534. "id": "AAF10059-E921-4C0E-B9B7-7BDFB9FE7AEF"
  7535. }
  7536. ],
  7537. "indexes": [
  7538. {
  7539. "defKey": "order_id",
  7540. "unique": false,
  7541. "defName": null,
  7542. "comment": "",
  7543. "fields": [
  7544. {
  7545. "ascOrDesc": "A",
  7546. "id": "CB93ECB8-74F4-4887-8601-BDCF82CFFC49",
  7547. "fieldDefKey": "104CFFB6-15AB-44D8-ABBB-38CFF9439342"
  7548. }
  7549. ],
  7550. "id": "0EA61AB1-9940-48B2-BE7C-85E251CBD23E"
  7551. }
  7552. ],
  7553. "type": "P",
  7554. "sysProps": {
  7555. "nameTemplate": "{defKey}[{defName}]"
  7556. },
  7557. "headers": [
  7558. {
  7559. "freeze": false,
  7560. "refKey": "hideInGraph",
  7561. "hideInGraph": true
  7562. },
  7563. {
  7564. "freeze": true,
  7565. "refKey": "defKey",
  7566. "hideInGraph": false
  7567. },
  7568. {
  7569. "freeze": true,
  7570. "refKey": "defName",
  7571. "hideInGraph": false
  7572. },
  7573. {
  7574. "freeze": false,
  7575. "refKey": "primaryKey",
  7576. "hideInGraph": false
  7577. },
  7578. {
  7579. "freeze": false,
  7580. "refKey": "notNull",
  7581. "hideInGraph": true
  7582. },
  7583. {
  7584. "freeze": false,
  7585. "refKey": "autoIncrement",
  7586. "hideInGraph": true
  7587. },
  7588. {
  7589. "freeze": false,
  7590. "refKey": "domain",
  7591. "hideInGraph": true
  7592. },
  7593. {
  7594. "freeze": false,
  7595. "refKey": "type",
  7596. "hideInGraph": false
  7597. },
  7598. {
  7599. "freeze": false,
  7600. "refKey": "len",
  7601. "hideInGraph": false
  7602. },
  7603. {
  7604. "freeze": false,
  7605. "refKey": "scale",
  7606. "hideInGraph": false
  7607. },
  7608. {
  7609. "freeze": false,
  7610. "refKey": "comment",
  7611. "hideInGraph": true
  7612. },
  7613. {
  7614. "freeze": false,
  7615. "refKey": "refDict",
  7616. "hideInGraph": true
  7617. },
  7618. {
  7619. "freeze": false,
  7620. "refKey": "defaultValue",
  7621. "hideInGraph": true
  7622. },
  7623. {
  7624. "freeze": false,
  7625. "refKey": "isStandard",
  7626. "hideInGraph": false
  7627. },
  7628. {
  7629. "freeze": false,
  7630. "refKey": "uiHint",
  7631. "hideInGraph": true
  7632. },
  7633. {
  7634. "freeze": false,
  7635. "refKey": "extProps",
  7636. "hideInGraph": true
  7637. }
  7638. ],
  7639. "correlations": [],
  7640. "notes": {}
  7641. },
  7642. {
  7643. "id": "CC9B3822-EA7F-4A47-B07E-5AC16AFCB1C0",
  7644. "defKey": "ORDER_SERVICES",
  7645. "defName": "订单服务表",
  7646. "comment": "",
  7647. "properties": {},
  7648. "fields": [
  7649. {
  7650. "defKey": "ORDER_SERVICE_ID",
  7651. "defName": "订单服务编号",
  7652. "comment": "",
  7653. "domain": "",
  7654. "type": "BIGINT UNSIGNED",
  7655. "len": "",
  7656. "scale": "",
  7657. "primaryKey": true,
  7658. "notNull": true,
  7659. "autoIncrement": true,
  7660. "defaultValue": "",
  7661. "hideInGraph": false,
  7662. "refDict": "",
  7663. "attr1": "",
  7664. "attr2": "",
  7665. "attr3": "",
  7666. "attr4": "",
  7667. "attr5": "",
  7668. "attr6": "",
  7669. "attr7": "",
  7670. "attr8": "",
  7671. "attr9": "",
  7672. "id": "F6E87C79-92B4-404F-9A9A-9E6FDFD11C3A",
  7673. "baseType": "",
  7674. "extProps": {},
  7675. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7676. },
  7677. {
  7678. "defKey": "ORDER_ID",
  7679. "defName": "订单编号",
  7680. "comment": "",
  7681. "domain": "",
  7682. "type": "BIGINT UNSIGNED",
  7683. "len": "",
  7684. "scale": "",
  7685. "primaryKey": false,
  7686. "notNull": true,
  7687. "autoIncrement": false,
  7688. "defaultValue": "",
  7689. "hideInGraph": false,
  7690. "refDict": "",
  7691. "attr1": "",
  7692. "attr2": "",
  7693. "attr3": "",
  7694. "attr4": "",
  7695. "attr5": "",
  7696. "attr6": "",
  7697. "attr7": "",
  7698. "attr8": "",
  7699. "attr9": "",
  7700. "id": "0E120DF7-1A43-4221-98E0-547B4A38D3C5",
  7701. "baseType": "",
  7702. "extProps": {},
  7703. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7704. },
  7705. {
  7706. "defKey": "TECHNICIAN_ID",
  7707. "defName": "技师编号",
  7708. "comment": "",
  7709. "domain": "",
  7710. "type": "BIGINT UNSIGNED",
  7711. "len": "",
  7712. "scale": "",
  7713. "primaryKey": false,
  7714. "notNull": true,
  7715. "autoIncrement": false,
  7716. "defaultValue": "",
  7717. "hideInGraph": false,
  7718. "refDict": "",
  7719. "attr1": "",
  7720. "attr2": "",
  7721. "attr3": "",
  7722. "attr4": "",
  7723. "attr5": "",
  7724. "attr6": "",
  7725. "attr7": "",
  7726. "attr8": "",
  7727. "attr9": "",
  7728. "id": "FCC00FFD-73EB-422C-AC3B-3C06FBB99E86",
  7729. "baseType": "",
  7730. "extProps": {},
  7731. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7732. },
  7733. {
  7734. "defKey": "SERVICE_STATUS",
  7735. "defName": "订单状态(创建、接单、出发、到达、开始服务、服务结束、撤离)",
  7736. "comment": "",
  7737. "domain": "",
  7738. "type": "VARCHAR",
  7739. "len": 50,
  7740. "scale": "",
  7741. "primaryKey": false,
  7742. "notNull": true,
  7743. "autoIncrement": false,
  7744. "defaultValue": "",
  7745. "hideInGraph": false,
  7746. "refDict": "",
  7747. "attr1": "",
  7748. "attr2": "",
  7749. "attr3": "",
  7750. "attr4": "",
  7751. "attr5": "",
  7752. "attr6": "",
  7753. "attr7": "",
  7754. "attr8": "",
  7755. "attr9": "",
  7756. "id": "7EA85A5E-0F72-40BB-99F7-B9CB97C1B19D",
  7757. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7758. "extProps": {},
  7759. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7760. },
  7761. {
  7762. "defKey": "LATITUDE",
  7763. "defName": "纬度",
  7764. "comment": "",
  7765. "domain": "",
  7766. "type": "DECIMAL",
  7767. "len": 9,
  7768. "scale": 6,
  7769. "primaryKey": false,
  7770. "notNull": false,
  7771. "autoIncrement": false,
  7772. "defaultValue": "",
  7773. "hideInGraph": false,
  7774. "refDict": "",
  7775. "attr1": "",
  7776. "attr2": "",
  7777. "attr3": "",
  7778. "attr4": "",
  7779. "attr5": "",
  7780. "attr6": "",
  7781. "attr7": "",
  7782. "attr8": "",
  7783. "attr9": "",
  7784. "id": "702AB1B8-138A-4EC0-83D4-DE558A072E4E",
  7785. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  7786. "extProps": {},
  7787. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7788. },
  7789. {
  7790. "defKey": "LONGITUDE",
  7791. "defName": "经度",
  7792. "comment": "",
  7793. "domain": "",
  7794. "type": "DECIMAL",
  7795. "len": 9,
  7796. "scale": 6,
  7797. "primaryKey": false,
  7798. "notNull": false,
  7799. "autoIncrement": false,
  7800. "defaultValue": "",
  7801. "hideInGraph": false,
  7802. "refDict": "",
  7803. "attr1": "",
  7804. "attr2": "",
  7805. "attr3": "",
  7806. "attr4": "",
  7807. "attr5": "",
  7808. "attr6": "",
  7809. "attr7": "",
  7810. "attr8": "",
  7811. "attr9": "",
  7812. "id": "167B0D80-B42B-49F8-B332-57FEFAB75190",
  7813. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  7814. "extProps": {},
  7815. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7816. },
  7817. {
  7818. "defKey": "ADDRESS",
  7819. "defName": "地址",
  7820. "comment": "",
  7821. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7822. "type": "",
  7823. "len": "",
  7824. "scale": "",
  7825. "primaryKey": false,
  7826. "notNull": false,
  7827. "autoIncrement": false,
  7828. "defaultValue": "",
  7829. "hideInGraph": false,
  7830. "refDict": "",
  7831. "attr1": "",
  7832. "attr2": "",
  7833. "attr3": "",
  7834. "attr4": "",
  7835. "attr5": "",
  7836. "attr6": "",
  7837. "attr7": "",
  7838. "attr8": "",
  7839. "attr9": "",
  7840. "id": "852297A6-5D0C-4700-B3C2-F30832A82B4F",
  7841. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7842. "extProps": {},
  7843. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7844. },
  7845. {
  7846. "defKey": "IMAGE_PATH",
  7847. "defName": "图片路径",
  7848. "comment": "",
  7849. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7850. "type": "",
  7851. "len": "",
  7852. "scale": "",
  7853. "primaryKey": false,
  7854. "notNull": false,
  7855. "autoIncrement": false,
  7856. "defaultValue": "",
  7857. "hideInGraph": false,
  7858. "refDict": "",
  7859. "attr1": "",
  7860. "attr2": "",
  7861. "attr3": "",
  7862. "attr4": "",
  7863. "attr5": "",
  7864. "attr6": "",
  7865. "attr7": "",
  7866. "attr8": "",
  7867. "attr9": "",
  7868. "id": "B245D4EE-B080-4817-A070-9FEC25691199",
  7869. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7870. "extProps": {},
  7871. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7872. },
  7873. {
  7874. "defKey": "CREATED_AT",
  7875. "defName": "创建时间",
  7876. "comment": "",
  7877. "domain": "",
  7878. "type": "TIMESTAMP",
  7879. "len": "",
  7880. "scale": "",
  7881. "primaryKey": false,
  7882. "notNull": false,
  7883. "autoIncrement": false,
  7884. "defaultValue": "CURRENT_TIMESTAMP",
  7885. "hideInGraph": false,
  7886. "refDict": "",
  7887. "attr1": "",
  7888. "attr2": "",
  7889. "attr3": "",
  7890. "attr4": "",
  7891. "attr5": "",
  7892. "attr6": "",
  7893. "attr7": "",
  7894. "attr8": "",
  7895. "attr9": "",
  7896. "id": "A5AD5C31-CDFC-4272-BBE4-17BAFC6CBC5E",
  7897. "baseType": "",
  7898. "extProps": {},
  7899. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7900. },
  7901. {
  7902. "defKey": "UPDATED_AT",
  7903. "defName": "更新时间",
  7904. "comment": "",
  7905. "domain": "",
  7906. "type": "TIMESTAMP",
  7907. "len": "",
  7908. "scale": "",
  7909. "primaryKey": false,
  7910. "notNull": false,
  7911. "autoIncrement": false,
  7912. "defaultValue": "CURRENT_TIMESTAMP",
  7913. "hideInGraph": false,
  7914. "refDict": "",
  7915. "attr1": "",
  7916. "attr2": "",
  7917. "attr3": "",
  7918. "attr4": "",
  7919. "attr5": "",
  7920. "attr6": "",
  7921. "attr7": "",
  7922. "attr8": "",
  7923. "attr9": "",
  7924. "id": "BE0ECF77-B586-4660-8D30-218CA88A53D6",
  7925. "baseType": "",
  7926. "extProps": {},
  7927. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  7928. }
  7929. ],
  7930. "indexes": [
  7931. {
  7932. "defKey": "order_id",
  7933. "unique": false,
  7934. "defName": null,
  7935. "comment": "",
  7936. "fields": [
  7937. {
  7938. "ascOrDesc": "A",
  7939. "id": "AE7CA208-9A37-47E4-B06A-5086D4BF9CA8",
  7940. "fieldDefKey": "0E120DF7-1A43-4221-98E0-547B4A38D3C5"
  7941. }
  7942. ],
  7943. "id": "372E9705-93D3-4249-85FB-AD24FEE513E3"
  7944. }
  7945. ],
  7946. "type": "P",
  7947. "sysProps": {
  7948. "nameTemplate": "{defKey}[{defName}]"
  7949. },
  7950. "headers": [
  7951. {
  7952. "freeze": false,
  7953. "refKey": "hideInGraph",
  7954. "hideInGraph": true
  7955. },
  7956. {
  7957. "freeze": true,
  7958. "refKey": "defKey",
  7959. "hideInGraph": false
  7960. },
  7961. {
  7962. "freeze": true,
  7963. "refKey": "defName",
  7964. "hideInGraph": false
  7965. },
  7966. {
  7967. "freeze": false,
  7968. "refKey": "primaryKey",
  7969. "hideInGraph": false
  7970. },
  7971. {
  7972. "freeze": false,
  7973. "refKey": "notNull",
  7974. "hideInGraph": true
  7975. },
  7976. {
  7977. "freeze": false,
  7978. "refKey": "autoIncrement",
  7979. "hideInGraph": true
  7980. },
  7981. {
  7982. "freeze": false,
  7983. "refKey": "domain",
  7984. "hideInGraph": true
  7985. },
  7986. {
  7987. "freeze": false,
  7988. "refKey": "type",
  7989. "hideInGraph": false
  7990. },
  7991. {
  7992. "freeze": false,
  7993. "refKey": "len",
  7994. "hideInGraph": false
  7995. },
  7996. {
  7997. "freeze": false,
  7998. "refKey": "scale",
  7999. "hideInGraph": false
  8000. },
  8001. {
  8002. "freeze": false,
  8003. "refKey": "comment",
  8004. "hideInGraph": true
  8005. },
  8006. {
  8007. "freeze": false,
  8008. "refKey": "refDict",
  8009. "hideInGraph": true
  8010. },
  8011. {
  8012. "freeze": false,
  8013. "refKey": "defaultValue",
  8014. "hideInGraph": true
  8015. },
  8016. {
  8017. "freeze": false,
  8018. "refKey": "isStandard",
  8019. "hideInGraph": false
  8020. },
  8021. {
  8022. "freeze": false,
  8023. "refKey": "uiHint",
  8024. "hideInGraph": true
  8025. },
  8026. {
  8027. "freeze": false,
  8028. "refKey": "extProps",
  8029. "hideInGraph": true
  8030. }
  8031. ],
  8032. "correlations": []
  8033. },
  8034. {
  8035. "id": "8D568399-31F1-42C1-A7D1-73C51EE97315",
  8036. "defKey": "ORDERS",
  8037. "defName": "订单表",
  8038. "comment": "",
  8039. "properties": {},
  8040. "fields": [
  8041. {
  8042. "defKey": "ID",
  8043. "defName": "订单编号",
  8044. "comment": "",
  8045. "domain": "",
  8046. "type": "BIGINT UNSIGNED",
  8047. "len": "",
  8048. "scale": "",
  8049. "primaryKey": true,
  8050. "notNull": true,
  8051. "autoIncrement": true,
  8052. "defaultValue": "",
  8053. "hideInGraph": false,
  8054. "refDict": "",
  8055. "attr1": "",
  8056. "attr2": "",
  8057. "attr3": "",
  8058. "attr4": "",
  8059. "attr5": "",
  8060. "attr6": "",
  8061. "attr7": "",
  8062. "attr8": "",
  8063. "attr9": "",
  8064. "id": "2CCF42CA-BBF7-4B7D-A6D0-2DAADF9FAD8E",
  8065. "baseType": "",
  8066. "extProps": {},
  8067. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8068. },
  8069. {
  8070. "defKey": "MEMBER_ID",
  8071. "defName": "会员编号",
  8072. "comment": "",
  8073. "domain": "",
  8074. "type": "BIGINT UNSIGNED",
  8075. "len": "",
  8076. "scale": "",
  8077. "primaryKey": false,
  8078. "notNull": true,
  8079. "autoIncrement": false,
  8080. "defaultValue": "",
  8081. "hideInGraph": false,
  8082. "refDict": "",
  8083. "attr1": "",
  8084. "attr2": "",
  8085. "attr3": "",
  8086. "attr4": "",
  8087. "attr5": "",
  8088. "attr6": "",
  8089. "attr7": "",
  8090. "attr8": "",
  8091. "attr9": "",
  8092. "id": "8AB78C37-A009-452F-AD24-03D5928C5917",
  8093. "baseType": "",
  8094. "extProps": {},
  8095. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8096. },
  8097. {
  8098. "defKey": "TECHNICIAN_ID",
  8099. "defName": "技师编号",
  8100. "comment": "",
  8101. "domain": "",
  8102. "type": "BIGINT UNSIGNED",
  8103. "len": "",
  8104. "scale": "",
  8105. "primaryKey": false,
  8106. "notNull": true,
  8107. "autoIncrement": false,
  8108. "defaultValue": "",
  8109. "hideInGraph": false,
  8110. "refDict": "",
  8111. "attr1": "",
  8112. "attr2": "",
  8113. "attr3": "",
  8114. "attr4": "",
  8115. "attr5": "",
  8116. "attr6": "",
  8117. "attr7": "",
  8118. "attr8": "",
  8119. "attr9": "",
  8120. "id": "C6B71FEA-39C4-4D46-BAE2-A1C28AEDF765",
  8121. "baseType": "",
  8122. "extProps": {},
  8123. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8124. },
  8125. {
  8126. "defKey": "TYPE",
  8127. "defName": "订单类型",
  8128. "comment": "",
  8129. "domain": "",
  8130. "type": "VARCHAR",
  8131. "len": 50,
  8132. "scale": "",
  8133. "primaryKey": false,
  8134. "notNull": true,
  8135. "autoIncrement": false,
  8136. "defaultValue": "",
  8137. "hideInGraph": false,
  8138. "refDict": "",
  8139. "attr1": "",
  8140. "attr2": "",
  8141. "attr3": "",
  8142. "attr4": "",
  8143. "attr5": "",
  8144. "attr6": "",
  8145. "attr7": "",
  8146. "attr8": "",
  8147. "attr9": "",
  8148. "id": "10244888-A354-455C-A103-6132272ACF93",
  8149. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  8150. "extProps": {},
  8151. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8152. },
  8153. {
  8154. "defKey": "PROJECT_AMOUNT",
  8155. "defName": "项目费用(服务费)",
  8156. "comment": "",
  8157. "domain": "",
  8158. "type": "DECIMAL",
  8159. "len": 10,
  8160. "scale": 2,
  8161. "primaryKey": false,
  8162. "notNull": true,
  8163. "autoIncrement": false,
  8164. "defaultValue": "",
  8165. "hideInGraph": false,
  8166. "refDict": "",
  8167. "attr1": "",
  8168. "attr2": "",
  8169. "attr3": "",
  8170. "attr4": "",
  8171. "attr5": "",
  8172. "attr6": "",
  8173. "attr7": "",
  8174. "attr8": "",
  8175. "attr9": "",
  8176. "id": "731B0C84-CB87-4EB5-AD75-FE65A5895680",
  8177. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  8178. "extProps": {},
  8179. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8180. },
  8181. {
  8182. "defKey": "TRAVEL_AMOUNT",
  8183. "defName": "车费",
  8184. "comment": "",
  8185. "domain": "",
  8186. "type": "DECIMAL",
  8187. "len": 10,
  8188. "scale": 2,
  8189. "primaryKey": false,
  8190. "notNull": true,
  8191. "autoIncrement": false,
  8192. "defaultValue": "",
  8193. "hideInGraph": false,
  8194. "refDict": "",
  8195. "attr1": "",
  8196. "attr2": "",
  8197. "attr3": "",
  8198. "attr4": "",
  8199. "attr5": "",
  8200. "attr6": "",
  8201. "attr7": "",
  8202. "attr8": "",
  8203. "attr9": "",
  8204. "id": "2411FA2E-720F-4A39-A9FC-5F7B19FED045",
  8205. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  8206. "extProps": {},
  8207. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8208. },
  8209. {
  8210. "defKey": "TIP_AMOUNT",
  8211. "defName": "打赏金额",
  8212. "comment": "",
  8213. "domain": "",
  8214. "type": "DECIMAL",
  8215. "len": 10,
  8216. "scale": 2,
  8217. "primaryKey": false,
  8218. "notNull": true,
  8219. "autoIncrement": false,
  8220. "defaultValue": "",
  8221. "hideInGraph": false,
  8222. "refDict": "",
  8223. "attr1": "",
  8224. "attr2": "",
  8225. "attr3": "",
  8226. "attr4": "",
  8227. "attr5": "",
  8228. "attr6": "",
  8229. "attr7": "",
  8230. "attr8": "",
  8231. "attr9": "",
  8232. "id": "86E6FA23-A291-42CC-B327-1505A8C1A9D7",
  8233. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  8234. "extProps": {},
  8235. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8236. },
  8237. {
  8238. "defKey": "DISCOUNT_AMOUNT",
  8239. "defName": "优惠金额",
  8240. "comment": "",
  8241. "domain": "",
  8242. "type": "DECIMAL",
  8243. "len": 10,
  8244. "scale": 2,
  8245. "primaryKey": false,
  8246. "notNull": true,
  8247. "autoIncrement": false,
  8248. "defaultValue": "",
  8249. "hideInGraph": false,
  8250. "refDict": "",
  8251. "attr1": "",
  8252. "attr2": "",
  8253. "attr3": "",
  8254. "attr4": "",
  8255. "attr5": "",
  8256. "attr6": "",
  8257. "attr7": "",
  8258. "attr8": "",
  8259. "attr9": "",
  8260. "id": "740DDC20-E920-4790-9CD9-403E96375533",
  8261. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  8262. "extProps": {},
  8263. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8264. },
  8265. {
  8266. "defKey": "AMOUNT",
  8267. "defName": "订单金额(车费+服务费+打赏金额-优惠金额)",
  8268. "comment": "",
  8269. "domain": "",
  8270. "type": "DECIMAL",
  8271. "len": 10,
  8272. "scale": 2,
  8273. "primaryKey": false,
  8274. "notNull": true,
  8275. "autoIncrement": false,
  8276. "defaultValue": "",
  8277. "hideInGraph": false,
  8278. "refDict": "",
  8279. "attr1": "",
  8280. "attr2": "",
  8281. "attr3": "",
  8282. "attr4": "",
  8283. "attr5": "",
  8284. "attr6": "",
  8285. "attr7": "",
  8286. "attr8": "",
  8287. "attr9": "",
  8288. "id": "4A36C01B-B456-4AFD-AEBB-5F10268BA4E0",
  8289. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  8290. "extProps": {},
  8291. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8292. },
  8293. {
  8294. "defKey": "PAYMENT_AMOUNT",
  8295. "defName": "支付金额",
  8296. "comment": "",
  8297. "domain": "",
  8298. "type": "DECIMAL",
  8299. "len": 10,
  8300. "scale": 2,
  8301. "primaryKey": false,
  8302. "notNull": true,
  8303. "autoIncrement": false,
  8304. "defaultValue": "",
  8305. "hideInGraph": false,
  8306. "refDict": "",
  8307. "attr1": "",
  8308. "attr2": "",
  8309. "attr3": "",
  8310. "attr4": "",
  8311. "attr5": "",
  8312. "attr6": "",
  8313. "attr7": "",
  8314. "attr8": "",
  8315. "attr9": "",
  8316. "id": "6F42A868-42B8-4574-9835-29CA897E7328",
  8317. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  8318. "extProps": {},
  8319. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8320. },
  8321. {
  8322. "defKey": "PAYMENT_BALANCE",
  8323. "defName": "支付余额(余额抵扣金额)",
  8324. "comment": "",
  8325. "domain": "",
  8326. "type": "DECIMAL",
  8327. "len": 10,
  8328. "scale": 2,
  8329. "primaryKey": false,
  8330. "notNull": true,
  8331. "autoIncrement": false,
  8332. "defaultValue": "",
  8333. "hideInGraph": false,
  8334. "refDict": "",
  8335. "attr1": "",
  8336. "attr2": "",
  8337. "attr3": "",
  8338. "attr4": "",
  8339. "attr5": "",
  8340. "attr6": "",
  8341. "attr7": "",
  8342. "attr8": "",
  8343. "attr9": "",
  8344. "id": "C93A639A-CD8F-4F32-B71A-5D699D96F960",
  8345. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  8346. "extProps": {},
  8347. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8348. },
  8349. {
  8350. "defKey": "PROJECT_ID",
  8351. "defName": "项目编号",
  8352. "comment": "",
  8353. "domain": "",
  8354. "type": "BIGINT UNSIGNED",
  8355. "len": "",
  8356. "scale": "",
  8357. "primaryKey": false,
  8358. "notNull": true,
  8359. "autoIncrement": false,
  8360. "defaultValue": "",
  8361. "hideInGraph": false,
  8362. "refDict": "",
  8363. "attr1": "",
  8364. "attr2": "",
  8365. "attr3": "",
  8366. "attr4": "",
  8367. "attr5": "",
  8368. "attr6": "",
  8369. "attr7": "",
  8370. "attr8": "",
  8371. "attr9": "",
  8372. "id": "184C9E88-BD40-40AC-A2FC-E8199B3CA291",
  8373. "baseType": "",
  8374. "extProps": {},
  8375. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8376. },
  8377. {
  8378. "defKey": "PROJECT_ICON",
  8379. "defName": "项目(快照)",
  8380. "comment": "",
  8381. "type": "",
  8382. "len": "",
  8383. "scale": "",
  8384. "primaryKey": false,
  8385. "notNull": false,
  8386. "autoIncrement": false,
  8387. "defaultValue": "",
  8388. "hideInGraph": false,
  8389. "refDict": "",
  8390. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  8391. "extProps": {},
  8392. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  8393. "id": "1AB7DD70-46A0-4838-9204-6BEB207FA953"
  8394. },
  8395. {
  8396. "defKey": "PROJECT_TITLE",
  8397. "defName": "项目标题(快照)",
  8398. "comment": "",
  8399. "type": "",
  8400. "len": "",
  8401. "scale": "",
  8402. "primaryKey": false,
  8403. "notNull": false,
  8404. "autoIncrement": false,
  8405. "defaultValue": "",
  8406. "hideInGraph": false,
  8407. "refDict": "",
  8408. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  8409. "extProps": {},
  8410. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  8411. "id": "32BC8EEB-9D83-497B-83D6-D93044F52F4F"
  8412. },
  8413. {
  8414. "defKey": "PROJECT_SUB_TITLE",
  8415. "defName": "项目副标题(快照)",
  8416. "comment": "",
  8417. "type": "",
  8418. "len": "",
  8419. "scale": "",
  8420. "primaryKey": false,
  8421. "notNull": false,
  8422. "autoIncrement": false,
  8423. "defaultValue": "",
  8424. "hideInGraph": false,
  8425. "refDict": "",
  8426. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  8427. "extProps": {},
  8428. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  8429. "id": "442CB3B2-7286-4D6E-9C7B-76A53F89EB65"
  8430. },
  8431. {
  8432. "defKey": "PROJECT_DURATION",
  8433. "defName": "项目时长(快照)",
  8434. "comment": "",
  8435. "type": "",
  8436. "len": "",
  8437. "scale": "",
  8438. "primaryKey": false,
  8439. "notNull": false,
  8440. "autoIncrement": false,
  8441. "defaultValue": "",
  8442. "hideInGraph": false,
  8443. "refDict": "",
  8444. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  8445. "extProps": {},
  8446. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  8447. "id": "756F25A4-F6C1-45DD-B5AF-A78D34BD7AD3"
  8448. },
  8449. {
  8450. "defKey": "APPT_TIME",
  8451. "defName": "订单时间(预约时间)",
  8452. "comment": "",
  8453. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  8454. "type": "",
  8455. "len": "",
  8456. "scale": "",
  8457. "primaryKey": false,
  8458. "notNull": true,
  8459. "autoIncrement": false,
  8460. "defaultValue": "",
  8461. "hideInGraph": false,
  8462. "refDict": "",
  8463. "attr1": "",
  8464. "attr2": "",
  8465. "attr3": "",
  8466. "attr4": "",
  8467. "attr5": "",
  8468. "attr6": "",
  8469. "attr7": "",
  8470. "attr8": "",
  8471. "attr9": "",
  8472. "id": "DA050222-ED5C-42B3-BE8B-B3BFDF846EA6",
  8473. "baseType": "89D69E81-EA34-42EE-9FA2-93B8BD27E098",
  8474. "extProps": {},
  8475. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8476. },
  8477. {
  8478. "defKey": "LATITUDE",
  8479. "defName": "订单纬度",
  8480. "comment": "",
  8481. "domain": "",
  8482. "type": "DECIMAL",
  8483. "len": 9,
  8484. "scale": 6,
  8485. "primaryKey": false,
  8486. "notNull": false,
  8487. "autoIncrement": false,
  8488. "defaultValue": "",
  8489. "hideInGraph": false,
  8490. "refDict": "",
  8491. "attr1": "",
  8492. "attr2": "",
  8493. "attr3": "",
  8494. "attr4": "",
  8495. "attr5": "",
  8496. "attr6": "",
  8497. "attr7": "",
  8498. "attr8": "",
  8499. "attr9": "",
  8500. "id": "1081C700-D3CC-4DE6-93FE-DF2DE157ED48",
  8501. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  8502. "extProps": {},
  8503. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8504. },
  8505. {
  8506. "defKey": "LONGITUDE",
  8507. "defName": "订单经度",
  8508. "comment": "",
  8509. "domain": "",
  8510. "type": "DECIMAL",
  8511. "len": 9,
  8512. "scale": 6,
  8513. "primaryKey": false,
  8514. "notNull": false,
  8515. "autoIncrement": false,
  8516. "defaultValue": "",
  8517. "hideInGraph": false,
  8518. "refDict": "",
  8519. "attr1": "",
  8520. "attr2": "",
  8521. "attr3": "",
  8522. "attr4": "",
  8523. "attr5": "",
  8524. "attr6": "",
  8525. "attr7": "",
  8526. "attr8": "",
  8527. "attr9": "",
  8528. "id": "FD9182A9-B1F2-4868-9B38-606C9983E3B3",
  8529. "baseType": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  8530. "extProps": {},
  8531. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8532. },
  8533. {
  8534. "defKey": "ADDRESS",
  8535. "defName": "订单地址(地图地址)",
  8536. "comment": "",
  8537. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  8538. "type": "",
  8539. "len": "",
  8540. "scale": "",
  8541. "primaryKey": false,
  8542. "notNull": true,
  8543. "autoIncrement": false,
  8544. "defaultValue": "",
  8545. "hideInGraph": false,
  8546. "refDict": "",
  8547. "attr1": "",
  8548. "attr2": "",
  8549. "attr3": "",
  8550. "attr4": "",
  8551. "attr5": "",
  8552. "attr6": "",
  8553. "attr7": "",
  8554. "attr8": "",
  8555. "attr9": "",
  8556. "id": "0C2C6561-FBD3-4349-AFEE-83EF661540E0",
  8557. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  8558. "extProps": {},
  8559. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8560. },
  8561. {
  8562. "defKey": "ADDRESS_INFO",
  8563. "defName": "订单地址详情(用户输入)",
  8564. "comment": "",
  8565. "type": "",
  8566. "len": "",
  8567. "scale": "",
  8568. "primaryKey": false,
  8569. "notNull": false,
  8570. "autoIncrement": false,
  8571. "defaultValue": "",
  8572. "hideInGraph": false,
  8573. "refDict": "",
  8574. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  8575. "extProps": {},
  8576. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  8577. "id": "542E5A3C-BB68-43CB-AD02-D7A8ADA4FD2E"
  8578. },
  8579. {
  8580. "defKey": "ADDRESS_CODE",
  8581. "defName": "订单地址编码",
  8582. "comment": "",
  8583. "domain": "",
  8584. "type": "VARCHAR",
  8585. "len": 50,
  8586. "scale": "",
  8587. "primaryKey": false,
  8588. "notNull": false,
  8589. "autoIncrement": false,
  8590. "defaultValue": "",
  8591. "hideInGraph": false,
  8592. "refDict": "",
  8593. "attr1": "",
  8594. "attr2": "",
  8595. "attr3": "",
  8596. "attr4": "",
  8597. "attr5": "",
  8598. "attr6": "",
  8599. "attr7": "",
  8600. "attr8": "",
  8601. "attr9": "",
  8602. "id": "B2324CE6-78D9-4423-AA5A-FD7E1B0A1A82",
  8603. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  8604. "extProps": {},
  8605. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8606. },
  8607. {
  8608. "defKey": "REMARK",
  8609. "defName": "订单备注",
  8610. "comment": "",
  8611. "domain": "",
  8612. "type": "TEXT",
  8613. "len": "",
  8614. "scale": "",
  8615. "primaryKey": false,
  8616. "notNull": false,
  8617. "autoIncrement": false,
  8618. "defaultValue": "",
  8619. "hideInGraph": false,
  8620. "refDict": "",
  8621. "attr1": "",
  8622. "attr2": "",
  8623. "attr3": "",
  8624. "attr4": "",
  8625. "attr5": "",
  8626. "attr6": "",
  8627. "attr7": "",
  8628. "attr8": "",
  8629. "attr9": "",
  8630. "id": "C59A99C6-AD67-4512-8F9A-CE9ED4F3D997",
  8631. "baseType": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
  8632. "extProps": {},
  8633. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8634. },
  8635. {
  8636. "defKey": "STATUS",
  8637. "defName": "订单状态",
  8638. "comment": "",
  8639. "domain": "",
  8640. "type": "VARCHAR",
  8641. "len": 50,
  8642. "scale": "",
  8643. "primaryKey": false,
  8644. "notNull": true,
  8645. "autoIncrement": false,
  8646. "defaultValue": "",
  8647. "hideInGraph": false,
  8648. "refDict": "",
  8649. "attr1": "",
  8650. "attr2": "",
  8651. "attr3": "",
  8652. "attr4": "",
  8653. "attr5": "",
  8654. "attr6": "",
  8655. "attr7": "",
  8656. "attr8": "",
  8657. "attr9": "",
  8658. "id": "94CDDE6B-425D-4589-B28C-67446C6571A5",
  8659. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  8660. "extProps": {},
  8661. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8662. },
  8663. {
  8664. "defKey": "CREATED_AT",
  8665. "defName": "创建时间",
  8666. "comment": "",
  8667. "domain": "",
  8668. "type": "TIMESTAMP",
  8669. "len": "",
  8670. "scale": "",
  8671. "primaryKey": false,
  8672. "notNull": false,
  8673. "autoIncrement": false,
  8674. "defaultValue": "CURRENT_TIMESTAMP",
  8675. "hideInGraph": false,
  8676. "refDict": "",
  8677. "attr1": "",
  8678. "attr2": "",
  8679. "attr3": "",
  8680. "attr4": "",
  8681. "attr5": "",
  8682. "attr6": "",
  8683. "attr7": "",
  8684. "attr8": "",
  8685. "attr9": "",
  8686. "id": "91152853-A41C-4533-85C0-F1370701A3D6",
  8687. "baseType": "",
  8688. "extProps": {},
  8689. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8690. },
  8691. {
  8692. "defKey": "UPDATED_AT",
  8693. "defName": "更新时间",
  8694. "comment": "",
  8695. "domain": "",
  8696. "type": "TIMESTAMP",
  8697. "len": "",
  8698. "scale": "",
  8699. "primaryKey": false,
  8700. "notNull": false,
  8701. "autoIncrement": false,
  8702. "defaultValue": "CURRENT_TIMESTAMP",
  8703. "hideInGraph": false,
  8704. "refDict": "",
  8705. "attr1": "",
  8706. "attr2": "",
  8707. "attr3": "",
  8708. "attr4": "",
  8709. "attr5": "",
  8710. "attr6": "",
  8711. "attr7": "",
  8712. "attr8": "",
  8713. "attr9": "",
  8714. "id": "C6039710-2154-4968-9E1D-803146C6B318",
  8715. "baseType": "",
  8716. "extProps": {},
  8717. "uiHint": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  8718. }
  8719. ],
  8720. "indexes": [],
  8721. "type": "P",
  8722. "sysProps": {
  8723. "nameTemplate": "{defKey}[{defName}]"
  8724. },
  8725. "headers": [
  8726. {
  8727. "freeze": false,
  8728. "refKey": "hideInGraph",
  8729. "hideInGraph": true
  8730. },
  8731. {
  8732. "freeze": true,
  8733. "refKey": "defKey",
  8734. "hideInGraph": false
  8735. },
  8736. {
  8737. "freeze": true,
  8738. "refKey": "defName",
  8739. "hideInGraph": false
  8740. },
  8741. {
  8742. "freeze": false,
  8743. "refKey": "primaryKey",
  8744. "hideInGraph": false
  8745. },
  8746. {
  8747. "freeze": false,
  8748. "refKey": "notNull",
  8749. "hideInGraph": true
  8750. },
  8751. {
  8752. "freeze": false,
  8753. "refKey": "autoIncrement",
  8754. "hideInGraph": true
  8755. },
  8756. {
  8757. "freeze": false,
  8758. "refKey": "domain",
  8759. "hideInGraph": true
  8760. },
  8761. {
  8762. "freeze": false,
  8763. "refKey": "type",
  8764. "hideInGraph": false
  8765. },
  8766. {
  8767. "freeze": false,
  8768. "refKey": "len",
  8769. "hideInGraph": false
  8770. },
  8771. {
  8772. "freeze": false,
  8773. "refKey": "scale",
  8774. "hideInGraph": false
  8775. },
  8776. {
  8777. "freeze": false,
  8778. "refKey": "comment",
  8779. "hideInGraph": true
  8780. },
  8781. {
  8782. "freeze": false,
  8783. "refKey": "refDict",
  8784. "hideInGraph": true
  8785. },
  8786. {
  8787. "freeze": false,
  8788. "refKey": "defaultValue",
  8789. "hideInGraph": true
  8790. },
  8791. {
  8792. "freeze": false,
  8793. "refKey": "isStandard",
  8794. "hideInGraph": false
  8795. },
  8796. {
  8797. "freeze": false,
  8798. "refKey": "uiHint",
  8799. "hideInGraph": true
  8800. },
  8801. {
  8802. "freeze": false,
  8803. "refKey": "extProps",
  8804. "hideInGraph": true
  8805. }
  8806. ],
  8807. "correlations": [],
  8808. "notes": {}
  8809. },
  8810. {
  8811. "id": "4C9221AA-4A5B-4D11-B8F3-DE353A5DAFBB",
  8812. "env": {
  8813. "base": {
  8814. "nameSpace": "",
  8815. "codeRoot": ""
  8816. }
  8817. },
  8818. "defKey": "ACCOUNNT_WALLET",
  8819. "defName": "钱包",
  8820. "comment": "",
  8821. "properties": {
  8822. "partitioned by": "(date string)",
  8823. "row format delimited": "",
  8824. "fields terminated by ','": "",
  8825. "collection items terminated by '-'": "",
  8826. "map keys terminated by ':'": "",
  8827. "store as textfile;": ""
  8828. },
  8829. "sysProps": {
  8830. "nameTemplate": "{defKey}[{defName}]"
  8831. },
  8832. "notes": {},
  8833. "headers": [
  8834. {
  8835. "refKey": "hideInGraph",
  8836. "hideInGraph": true
  8837. },
  8838. {
  8839. "refKey": "defKey",
  8840. "freeze": false,
  8841. "hideInGraph": false
  8842. },
  8843. {
  8844. "refKey": "defName",
  8845. "freeze": false,
  8846. "hideInGraph": false
  8847. },
  8848. {
  8849. "refKey": "primaryKey",
  8850. "freeze": false,
  8851. "hideInGraph": false
  8852. },
  8853. {
  8854. "refKey": "notNull",
  8855. "freeze": false,
  8856. "hideInGraph": true
  8857. },
  8858. {
  8859. "refKey": "autoIncrement",
  8860. "freeze": false,
  8861. "hideInGraph": true
  8862. },
  8863. {
  8864. "refKey": "domain",
  8865. "freeze": false,
  8866. "hideInGraph": true
  8867. },
  8868. {
  8869. "refKey": "type",
  8870. "freeze": false,
  8871. "hideInGraph": false
  8872. },
  8873. {
  8874. "refKey": "len",
  8875. "freeze": false,
  8876. "hideInGraph": false
  8877. },
  8878. {
  8879. "refKey": "scale",
  8880. "freeze": false,
  8881. "hideInGraph": false
  8882. },
  8883. {
  8884. "refKey": "comment",
  8885. "freeze": false,
  8886. "hideInGraph": true
  8887. },
  8888. {
  8889. "refKey": "refDict",
  8890. "freeze": false,
  8891. "hideInGraph": true
  8892. },
  8893. {
  8894. "refKey": "defaultValue",
  8895. "freeze": false,
  8896. "hideInGraph": true
  8897. },
  8898. {
  8899. "refKey": "isStandard",
  8900. "freeze": false,
  8901. "hideInGraph": false
  8902. },
  8903. {
  8904. "refKey": "uiHint",
  8905. "freeze": false,
  8906. "hideInGraph": true
  8907. },
  8908. {
  8909. "refKey": "extProps",
  8910. "freeze": false,
  8911. "hideInGraph": true
  8912. },
  8913. {
  8914. "refKey": "attr1",
  8915. "freeze": false,
  8916. "hideInGraph": true
  8917. },
  8918. {
  8919. "refKey": "attr2",
  8920. "freeze": false,
  8921. "hideInGraph": true
  8922. },
  8923. {
  8924. "refKey": "attr3",
  8925. "freeze": false,
  8926. "hideInGraph": true
  8927. },
  8928. {
  8929. "refKey": "attr4",
  8930. "freeze": false,
  8931. "hideInGraph": true
  8932. },
  8933. {
  8934. "refKey": "attr5",
  8935. "freeze": false,
  8936. "hideInGraph": true
  8937. },
  8938. {
  8939. "refKey": "attr6",
  8940. "freeze": false,
  8941. "hideInGraph": true
  8942. },
  8943. {
  8944. "refKey": "attr7",
  8945. "freeze": false,
  8946. "hideInGraph": true
  8947. },
  8948. {
  8949. "refKey": "attr8",
  8950. "freeze": false,
  8951. "hideInGraph": true
  8952. },
  8953. {
  8954. "refKey": "attr9",
  8955. "freeze": false,
  8956. "hideInGraph": true
  8957. }
  8958. ],
  8959. "fields": [
  8960. {
  8961. "defKey": "ACCOUNT_ID",
  8962. "defName": "账户编号",
  8963. "comment": "object_id",
  8964. "type": "",
  8965. "len": "",
  8966. "scale": "",
  8967. "primaryKey": false,
  8968. "notNull": false,
  8969. "autoIncrement": false,
  8970. "defaultValue": "",
  8971. "hideInGraph": false,
  8972. "refDict": "",
  8973. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  8974. "extProps": {},
  8975. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  8976. "id": "C1712F3B-6FDA-42A0-95CE-AE19A9DF8C14"
  8977. },
  8978. {
  8979. "defKey": "ACCOUNT_TYPE",
  8980. "defName": "账户类型",
  8981. "comment": "(用户、技师、代理、分销商)",
  8982. "type": "",
  8983. "len": "",
  8984. "scale": "",
  8985. "primaryKey": false,
  8986. "notNull": false,
  8987. "autoIncrement": false,
  8988. "defaultValue": "",
  8989. "hideInGraph": false,
  8990. "refDict": "",
  8991. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  8992. "extProps": {},
  8993. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  8994. "id": "7CE669F1-DAB7-48B4-AC9F-99A1E211F064"
  8995. },
  8996. {
  8997. "defKey": "BALANCE_AMOUNT",
  8998. "defName": "钱包总额",
  8999. "comment": "可用+冻结(不能提现 )",
  9000. "type": "",
  9001. "len": "",
  9002. "scale": "",
  9003. "primaryKey": false,
  9004. "notNull": false,
  9005. "autoIncrement": false,
  9006. "defaultValue": "",
  9007. "hideInGraph": false,
  9008. "refDict": "",
  9009. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  9010. "extProps": {},
  9011. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  9012. "id": "D7455D10-CD5A-4906-A705-CDD80EEDA8AB"
  9013. },
  9014. {
  9015. "defKey": "FROZEN_AMOUNT",
  9016. "defName": "冻结金额",
  9017. "comment": "",
  9018. "type": "",
  9019. "len": "",
  9020. "scale": "",
  9021. "primaryKey": false,
  9022. "notNull": false,
  9023. "autoIncrement": false,
  9024. "defaultValue": "",
  9025. "hideInGraph": false,
  9026. "refDict": "",
  9027. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  9028. "extProps": {},
  9029. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  9030. "id": "0D118A6E-C976-4DBD-9141-E3DA72F81796"
  9031. },
  9032. {
  9033. "defKey": "STATUS",
  9034. "defName": "状态",
  9035. "comment": "正常、冻结",
  9036. "type": "",
  9037. "len": "",
  9038. "scale": "",
  9039. "primaryKey": false,
  9040. "notNull": false,
  9041. "autoIncrement": false,
  9042. "defaultValue": "",
  9043. "hideInGraph": false,
  9044. "refDict": "",
  9045. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  9046. "extProps": {},
  9047. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  9048. "id": "13DC8FD6-1DA5-4D58-8512-D2EAB1D66C29"
  9049. }
  9050. ],
  9051. "correlations": [],
  9052. "indexes": [],
  9053. "type": "P"
  9054. },
  9055. {
  9056. "id": "8B1A81C2-CED5-4ADC-AEA0-23E8F225AB56",
  9057. "env": {
  9058. "base": {
  9059. "nameSpace": "",
  9060. "codeRoot": ""
  9061. }
  9062. },
  9063. "defKey": "ACCOUNNT_WALLET_1",
  9064. "defName": "钱包收支明细",
  9065. "comment": "",
  9066. "properties": {
  9067. "partitioned by": "(date string)",
  9068. "row format delimited": "",
  9069. "fields terminated by ','": "",
  9070. "collection items terminated by '-'": "",
  9071. "map keys terminated by ':'": "",
  9072. "store as textfile;": ""
  9073. },
  9074. "sysProps": {
  9075. "nameTemplate": "{defKey}[{defName}]"
  9076. },
  9077. "notes": {},
  9078. "headers": [
  9079. {
  9080. "refKey": "hideInGraph",
  9081. "hideInGraph": true
  9082. },
  9083. {
  9084. "refKey": "defKey",
  9085. "freeze": false,
  9086. "hideInGraph": false
  9087. },
  9088. {
  9089. "refKey": "defName",
  9090. "freeze": false,
  9091. "hideInGraph": false
  9092. },
  9093. {
  9094. "refKey": "primaryKey",
  9095. "freeze": false,
  9096. "hideInGraph": false
  9097. },
  9098. {
  9099. "refKey": "notNull",
  9100. "freeze": false,
  9101. "hideInGraph": true
  9102. },
  9103. {
  9104. "refKey": "autoIncrement",
  9105. "freeze": false,
  9106. "hideInGraph": true
  9107. },
  9108. {
  9109. "refKey": "domain",
  9110. "freeze": false,
  9111. "hideInGraph": true
  9112. },
  9113. {
  9114. "refKey": "type",
  9115. "freeze": false,
  9116. "hideInGraph": false
  9117. },
  9118. {
  9119. "refKey": "len",
  9120. "freeze": false,
  9121. "hideInGraph": false
  9122. },
  9123. {
  9124. "refKey": "scale",
  9125. "freeze": false,
  9126. "hideInGraph": false
  9127. },
  9128. {
  9129. "refKey": "comment",
  9130. "freeze": false,
  9131. "hideInGraph": true
  9132. },
  9133. {
  9134. "refKey": "refDict",
  9135. "freeze": false,
  9136. "hideInGraph": true
  9137. },
  9138. {
  9139. "refKey": "defaultValue",
  9140. "freeze": false,
  9141. "hideInGraph": true
  9142. },
  9143. {
  9144. "refKey": "isStandard",
  9145. "freeze": false,
  9146. "hideInGraph": false
  9147. },
  9148. {
  9149. "refKey": "uiHint",
  9150. "freeze": false,
  9151. "hideInGraph": true
  9152. },
  9153. {
  9154. "refKey": "extProps",
  9155. "freeze": false,
  9156. "hideInGraph": true
  9157. },
  9158. {
  9159. "refKey": "attr1",
  9160. "freeze": false,
  9161. "hideInGraph": true
  9162. },
  9163. {
  9164. "refKey": "attr2",
  9165. "freeze": false,
  9166. "hideInGraph": true
  9167. },
  9168. {
  9169. "refKey": "attr3",
  9170. "freeze": false,
  9171. "hideInGraph": true
  9172. },
  9173. {
  9174. "refKey": "attr4",
  9175. "freeze": false,
  9176. "hideInGraph": true
  9177. },
  9178. {
  9179. "refKey": "attr5",
  9180. "freeze": false,
  9181. "hideInGraph": true
  9182. },
  9183. {
  9184. "refKey": "attr6",
  9185. "freeze": false,
  9186. "hideInGraph": true
  9187. },
  9188. {
  9189. "refKey": "attr7",
  9190. "freeze": false,
  9191. "hideInGraph": true
  9192. },
  9193. {
  9194. "refKey": "attr8",
  9195. "freeze": false,
  9196. "hideInGraph": true
  9197. },
  9198. {
  9199. "refKey": "attr9",
  9200. "freeze": false,
  9201. "hideInGraph": true
  9202. }
  9203. ],
  9204. "fields": [
  9205. {
  9206. "defKey": "123",
  9207. "defName": "钱包ID",
  9208. "comment": "(用户、技师、代理、分销商)",
  9209. "type": "",
  9210. "len": "",
  9211. "scale": "",
  9212. "primaryKey": false,
  9213. "notNull": false,
  9214. "autoIncrement": false,
  9215. "defaultValue": "",
  9216. "hideInGraph": false,
  9217. "refDict": "",
  9218. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  9219. "extProps": {},
  9220. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  9221. "id": "7CE669F1-DAB7-48B4-AC9F-99A1E211F064"
  9222. },
  9223. {
  9224. "defKey": "PROFIT_ID",
  9225. "defName": "分账编号",
  9226. "comment": "",
  9227. "type": "",
  9228. "len": "",
  9229. "scale": "",
  9230. "primaryKey": false,
  9231. "notNull": false,
  9232. "autoIncrement": false,
  9233. "defaultValue": "",
  9234. "hideInGraph": false,
  9235. "refDict": "",
  9236. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  9237. "extProps": {},
  9238. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  9239. "id": "595418DD-FF99-40AD-BF1D-867A2081E002"
  9240. },
  9241. {
  9242. "defKey": "TRANSACTION_TYPE",
  9243. "defName": "交易类型(提现、消费、退款、分账)",
  9244. "comment": "",
  9245. "type": "",
  9246. "len": "",
  9247. "scale": "",
  9248. "primaryKey": false,
  9249. "notNull": false,
  9250. "autoIncrement": false,
  9251. "defaultValue": "",
  9252. "hideInGraph": false,
  9253. "refDict": "",
  9254. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  9255. "extProps": {},
  9256. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  9257. "id": "3DC3D6E5-EA08-407F-9642-5D53F65DF896"
  9258. },
  9259. {
  9260. "defKey": "TRANSACTION_ORDER_ID",
  9261. "defName": "交易单号",
  9262. "comment": "",
  9263. "type": "",
  9264. "len": "",
  9265. "scale": "",
  9266. "primaryKey": false,
  9267. "notNull": false,
  9268. "autoIncrement": false,
  9269. "defaultValue": "",
  9270. "hideInGraph": false,
  9271. "refDict": "",
  9272. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  9273. "extProps": {},
  9274. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  9275. "id": "CACB019B-6167-4D1C-A005-85E905D101EC"
  9276. },
  9277. {
  9278. "defKey": "TRANSACTION_AMOUNT",
  9279. "defName": "交易金额(分润金额、提现金额、消费金额、退款金额)",
  9280. "comment": "",
  9281. "type": "",
  9282. "len": "",
  9283. "scale": "",
  9284. "primaryKey": false,
  9285. "notNull": false,
  9286. "autoIncrement": false,
  9287. "defaultValue": "",
  9288. "hideInGraph": false,
  9289. "refDict": "",
  9290. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  9291. "extProps": {},
  9292. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  9293. "id": "74148CA3-DDA4-4959-82DD-CE9E0637388E"
  9294. },
  9295. {
  9296. "defKey": "BALANCE_AMOUNT",
  9297. "defName": "钱包余额",
  9298. "comment": "",
  9299. "type": "",
  9300. "len": "",
  9301. "scale": "",
  9302. "primaryKey": false,
  9303. "notNull": false,
  9304. "autoIncrement": false,
  9305. "defaultValue": "",
  9306. "hideInGraph": false,
  9307. "refDict": "",
  9308. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  9309. "extProps": {},
  9310. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  9311. "id": "D7455D10-CD5A-4906-A705-CDD80EEDA8AB"
  9312. },
  9313. {
  9314. "defKey": "FROZEN_AMOUNT",
  9315. "defName": "冻结金额",
  9316. "comment": "",
  9317. "type": "",
  9318. "len": "",
  9319. "scale": "",
  9320. "primaryKey": false,
  9321. "notNull": false,
  9322. "autoIncrement": false,
  9323. "defaultValue": "",
  9324. "hideInGraph": false,
  9325. "refDict": "",
  9326. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  9327. "extProps": {},
  9328. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  9329. "id": "0D118A6E-C976-4DBD-9141-E3DA72F81796"
  9330. },
  9331. {
  9332. "defKey": "REMARK",
  9333. "defName": "备注",
  9334. "comment": "",
  9335. "type": "",
  9336. "len": "",
  9337. "scale": "",
  9338. "primaryKey": false,
  9339. "notNull": false,
  9340. "autoIncrement": false,
  9341. "defaultValue": "",
  9342. "hideInGraph": false,
  9343. "refDict": "",
  9344. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  9345. "extProps": {},
  9346. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  9347. "id": "8DFDAC0F-820D-47AC-8139-7875A8951031"
  9348. },
  9349. {
  9350. "defKey": "STATUS",
  9351. "defName": "状态",
  9352. "comment": "",
  9353. "type": "",
  9354. "len": "",
  9355. "scale": "",
  9356. "primaryKey": false,
  9357. "notNull": false,
  9358. "autoIncrement": false,
  9359. "defaultValue": "",
  9360. "hideInGraph": false,
  9361. "refDict": "",
  9362. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  9363. "extProps": {},
  9364. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  9365. "id": "13DC8FD6-1DA5-4D58-8512-D2EAB1D66C29"
  9366. },
  9367. {
  9368. "defKey": "APPROVED_TIME",
  9369. "defName": "通过时间(发放时间)",
  9370. "comment": "",
  9371. "type": "",
  9372. "len": "",
  9373. "scale": "",
  9374. "primaryKey": false,
  9375. "notNull": false,
  9376. "autoIncrement": false,
  9377. "defaultValue": "",
  9378. "hideInGraph": false,
  9379. "refDict": "",
  9380. "baseType": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  9381. "extProps": {},
  9382. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  9383. "id": "91CB7CDC-7583-4683-8A8F-589DF486E316"
  9384. }
  9385. ],
  9386. "correlations": [],
  9387. "indexes": [],
  9388. "type": "P"
  9389. }
  9390. ],
  9391. "views": [],
  9392. "dicts": [
  9393. {
  9394. "defKey": "status_user",
  9395. "defName": "用户状态",
  9396. "sort": "",
  9397. "intro": "",
  9398. "id": "5CFE1458-173D-4071-B556-2CF4A3EFDE90",
  9399. "items": [
  9400. {
  9401. "defKey": "0",
  9402. "defName": "禁用",
  9403. "sort": "0",
  9404. "parentKey": "",
  9405. "intro": "",
  9406. "enabled": true,
  9407. "attr1": "",
  9408. "attr2": "",
  9409. "attr3": "",
  9410. "id": "227B130D-D2E8-4185-B31F-66AEE8ED39D9"
  9411. },
  9412. {
  9413. "defKey": "1",
  9414. "defName": "开启",
  9415. "sort": "1",
  9416. "parentKey": "",
  9417. "intro": "",
  9418. "enabled": true,
  9419. "attr1": "",
  9420. "attr2": "",
  9421. "attr3": "",
  9422. "id": "EE5E69DE-B8B7-4AC4-9C90-451E5D5D668F"
  9423. }
  9424. ]
  9425. },
  9426. {
  9427. "defKey": "status_address",
  9428. "defName": "地址状态",
  9429. "sort": "",
  9430. "intro": "",
  9431. "id": "5D2C2AF2-4F20-4E36-A394-281A87D0CB29",
  9432. "items": [
  9433. {
  9434. "defKey": "0",
  9435. "defName": "关闭",
  9436. "sort": "",
  9437. "parentKey": "",
  9438. "intro": "",
  9439. "enabled": true,
  9440. "attr1": "",
  9441. "attr2": "",
  9442. "attr3": "",
  9443. "id": "0A02971F-609D-44E1-924C-7871D3E7DB0C"
  9444. },
  9445. {
  9446. "defKey": "1",
  9447. "defName": "启用",
  9448. "sort": "",
  9449. "parentKey": "",
  9450. "intro": "",
  9451. "enabled": true,
  9452. "attr1": "",
  9453. "attr2": "",
  9454. "attr3": "",
  9455. "id": "6C85471C-8A0F-4360-B4B2-15E0A70C3A9D"
  9456. }
  9457. ]
  9458. },
  9459. {
  9460. "defKey": "STATUS_COACH_AMOUNT",
  9461. "defName": "技师账户状态",
  9462. "sort": "",
  9463. "intro": "",
  9464. "id": "69393071-560F-4C68-B612-1C11FEFD4E3C",
  9465. "items": [
  9466. {
  9467. "defKey": "0",
  9468. "defName": "禁用",
  9469. "sort": "",
  9470. "parentKey": "",
  9471. "intro": "",
  9472. "enabled": true,
  9473. "attr1": "",
  9474. "attr2": "",
  9475. "attr3": "",
  9476. "id": "A0FA494B-BDCA-4E8D-B568-843C04086886"
  9477. },
  9478. {
  9479. "defKey": "1",
  9480. "defName": "开启",
  9481. "sort": "",
  9482. "parentKey": "",
  9483. "intro": "",
  9484. "enabled": true,
  9485. "attr1": "",
  9486. "attr2": "",
  9487. "attr3": "",
  9488. "id": "B02C461F-58DD-40CE-B1FD-764999958559"
  9489. }
  9490. ]
  9491. },
  9492. {
  9493. "defKey": "STATUS_COACH_WORK",
  9494. "defName": "技师工作状态",
  9495. "sort": "",
  9496. "intro": "",
  9497. "id": "F9E7E9B5-5194-4AFF-97D2-4104DC18FAB9",
  9498. "items": [
  9499. {
  9500. "defKey": "1",
  9501. "defName": "空闲",
  9502. "sort": "",
  9503. "parentKey": "",
  9504. "intro": "",
  9505. "enabled": true,
  9506. "attr1": "",
  9507. "attr2": "",
  9508. "attr3": "",
  9509. "id": "25147B08-FAE7-4781-B344-973649F01B79"
  9510. },
  9511. {
  9512. "defKey": "2",
  9513. "defName": "忙碌",
  9514. "sort": "",
  9515. "parentKey": "",
  9516. "intro": "",
  9517. "enabled": true,
  9518. "attr1": "",
  9519. "attr2": "",
  9520. "attr3": "",
  9521. "id": "6F897C86-FCE7-4E96-9BFC-43253BD4BC13"
  9522. },
  9523. {
  9524. "defKey": "3",
  9525. "defName": "休息",
  9526. "sort": "",
  9527. "parentKey": "",
  9528. "intro": "",
  9529. "enabled": true,
  9530. "attr1": "",
  9531. "attr2": "",
  9532. "attr3": "",
  9533. "id": "C24E16F1-C8B0-4E36-98AF-96A524352D6E"
  9534. }
  9535. ]
  9536. },
  9537. {
  9538. "defKey": "STATUS_COACH_APPROVE",
  9539. "defName": "技师审核状态",
  9540. "sort": "",
  9541. "intro": "",
  9542. "id": "BDC62651-089D-4011-8694-93703CD7EE14",
  9543. "items": [
  9544. {
  9545. "defKey": "1",
  9546. "defName": "待审核",
  9547. "sort": "",
  9548. "parentKey": "",
  9549. "intro": "",
  9550. "enabled": true,
  9551. "attr1": "",
  9552. "attr2": "",
  9553. "attr3": "",
  9554. "id": "AD9B7444-EB74-4DC6-B95A-F5701D39DFCF"
  9555. },
  9556. {
  9557. "defKey": "2",
  9558. "defName": "审核通过",
  9559. "sort": "",
  9560. "parentKey": "",
  9561. "intro": "待认证",
  9562. "enabled": true,
  9563. "attr1": "",
  9564. "attr2": "",
  9565. "attr3": "",
  9566. "id": "F464666F-1A2E-48F3-B0BF-C918E5482EAA"
  9567. },
  9568. {
  9569. "defKey": "3",
  9570. "defName": "审核失败",
  9571. "sort": "",
  9572. "parentKey": "",
  9573. "intro": "",
  9574. "enabled": true,
  9575. "attr1": "",
  9576. "attr2": "",
  9577. "attr3": "",
  9578. "id": "8B6484BC-7A44-4F71-9774-D9B4FA1E07AF"
  9579. },
  9580. {
  9581. "defKey": "4",
  9582. "defName": "认证中",
  9583. "sort": "",
  9584. "parentKey": "",
  9585. "intro": "",
  9586. "enabled": true,
  9587. "attr1": "",
  9588. "attr2": "",
  9589. "attr3": "",
  9590. "id": "8212E4E8-AACF-4101-ADAF-472AC3F13D52"
  9591. },
  9592. {
  9593. "defKey": "5",
  9594. "defName": "认证通过",
  9595. "sort": "",
  9596. "parentKey": "",
  9597. "intro": "",
  9598. "enabled": true,
  9599. "attr1": "",
  9600. "attr2": "",
  9601. "attr3": "",
  9602. "id": "B8B68CE3-7F44-402D-AE54-BE9CAB0098E0"
  9603. },
  9604. {
  9605. "defKey": "6",
  9606. "defName": "认证失败",
  9607. "sort": "",
  9608. "parentKey": "",
  9609. "intro": "",
  9610. "enabled": true,
  9611. "attr1": "",
  9612. "attr2": "",
  9613. "attr3": "",
  9614. "id": "EF6B63A6-7070-438F-AC00-16B3F32E34FB"
  9615. }
  9616. ]
  9617. },
  9618. {
  9619. "defKey": "type_form_control",
  9620. "defName": "控件显示类型",
  9621. "sort": "",
  9622. "intro": "",
  9623. "id": "67B9FBEA-7F1F-4748-8718-85E1D067C334",
  9624. "items": [
  9625. {
  9626. "defKey": "1",
  9627. "defName": "input",
  9628. "sort": "",
  9629. "parentKey": "",
  9630. "intro": "",
  9631. "enabled": true,
  9632. "attr1": "",
  9633. "attr2": "",
  9634. "attr3": "",
  9635. "id": "C43F7802-16AF-4473-9202-6F7F2F78B37C"
  9636. },
  9637. {
  9638. "defKey": "2",
  9639. "defName": "radio",
  9640. "sort": "",
  9641. "parentKey": "",
  9642. "intro": "",
  9643. "enabled": true,
  9644. "attr1": "",
  9645. "attr2": "",
  9646. "attr3": "",
  9647. "id": "0536854E-BFE2-4DC2-84C1-E07191AAB52F"
  9648. },
  9649. {
  9650. "defKey": "3",
  9651. "defName": "select",
  9652. "sort": "",
  9653. "parentKey": "",
  9654. "intro": "",
  9655. "enabled": true,
  9656. "attr1": "",
  9657. "attr2": "",
  9658. "attr3": "",
  9659. "id": "4942ED29-60F3-4F19-ABFB-DB6C06EC5A1E"
  9660. },
  9661. {
  9662. "defKey": "4",
  9663. "defName": "range",
  9664. "sort": "",
  9665. "parentKey": "",
  9666. "intro": "",
  9667. "enabled": true,
  9668. "attr1": "",
  9669. "attr2": "",
  9670. "attr3": "",
  9671. "id": "9E4DA1E5-3D7A-4CFC-AE9B-C3A88B7A4146"
  9672. },
  9673. {
  9674. "defKey": "5",
  9675. "defName": "textarea",
  9676. "sort": "",
  9677. "parentKey": "",
  9678. "intro": "",
  9679. "enabled": true,
  9680. "attr1": "",
  9681. "attr2": "",
  9682. "attr3": "",
  9683. "id": "78685A0A-3461-4027-B9FC-61833B9F40B8"
  9684. },
  9685. {
  9686. "defKey": "6",
  9687. "defName": "number",
  9688. "sort": "",
  9689. "parentKey": "",
  9690. "intro": "",
  9691. "enabled": true,
  9692. "attr1": "",
  9693. "attr2": "",
  9694. "attr3": "",
  9695. "id": "05CF8D70-B31A-4B8D-97E6-7CD6E64FADD4"
  9696. }
  9697. ]
  9698. },
  9699. {
  9700. "defKey": "status_take",
  9701. "defName": "接单状态",
  9702. "sort": "",
  9703. "intro": "",
  9704. "id": "41AB9A85-948F-4E1A-9E45-E8D0A13D5D80",
  9705. "items": [
  9706. {
  9707. "defKey": "0",
  9708. "defName": "关闭",
  9709. "sort": "",
  9710. "parentKey": "",
  9711. "intro": "",
  9712. "enabled": true,
  9713. "attr1": "",
  9714. "attr2": "",
  9715. "attr3": "",
  9716. "id": "002187BD-F389-423E-A269-5953DEBFAA3D"
  9717. },
  9718. {
  9719. "defKey": "1",
  9720. "defName": "开启",
  9721. "sort": "",
  9722. "parentKey": "",
  9723. "intro": "",
  9724. "enabled": true,
  9725. "attr1": "",
  9726. "attr2": "",
  9727. "attr3": "",
  9728. "id": "6E7C4C40-C3E5-4672-B05D-8199EFECE055"
  9729. }
  9730. ]
  9731. }
  9732. ],
  9733. "viewGroups": [
  9734. {
  9735. "defKey": "member",
  9736. "defName": "会员",
  9737. "refEntities": [
  9738. "0E22E910-FDFF-48B0-8E61-DA2A03F6ACDB",
  9739. "356D354D-B0E8-40E7-82BA-E964485C7A73",
  9740. "163F1074-272D-4BB4-B28F-E63D314E5581",
  9741. "6B94A1CA-9F5C-4B7E-8739-A4AD7E92EA54"
  9742. ],
  9743. "refViews": [],
  9744. "refDiagrams": [
  9745. "24296392-1C3A-401D-A4D2-DAB283542537"
  9746. ],
  9747. "refDicts": [
  9748. "5CFE1458-173D-4071-B556-2CF4A3EFDE90",
  9749. "5D2C2AF2-4F20-4E36-A394-281A87D0CB29"
  9750. ],
  9751. "id": "88DAC9D9-0A45-43E7-B2BE-018A7969B405",
  9752. "refLogicEntities": []
  9753. },
  9754. {
  9755. "defKey": "coach",
  9756. "defName": "技师",
  9757. "refEntities": [
  9758. "89235217-825A-473F-96A8-E8798445A0EA",
  9759. "1E811525-8696-4E1D-AAB4-1FE20CE546A4",
  9760. "B18001A9-10A6-45AF-8601-D2A38A60D8A0",
  9761. "5A15F1DD-29CF-4AA9-81AD-BB8C875BC76D",
  9762. "464BC16A-1A71-48AF-B7CC-CF4B316994B0",
  9763. "C401B2CE-9BDB-4D59-BE8A-B22534BD3E68",
  9764. "6361C898-7C2E-40E1-80E0-5F74895AD476"
  9765. ],
  9766. "refViews": [],
  9767. "refDiagrams": [
  9768. "B818C969-B522-41DE-8671-5B92073C0805"
  9769. ],
  9770. "refDicts": [
  9771. "69393071-560F-4C68-B612-1C11FEFD4E3C",
  9772. "F9E7E9B5-5194-4AFF-97D2-4104DC18FAB9",
  9773. "BDC62651-089D-4011-8694-93703CD7EE14",
  9774. "67B9FBEA-7F1F-4748-8718-85E1D067C334",
  9775. "41AB9A85-948F-4E1A-9E45-E8D0A13D5D80"
  9776. ],
  9777. "id": "432A8297-F096-47B3-AF67-DC3F3367B532",
  9778. "refLogicEntities": []
  9779. },
  9780. {
  9781. "defKey": "order",
  9782. "defName": "订单",
  9783. "refEntities": [
  9784. "0BB71B25-37DD-4BE2-B9C5-804995806979",
  9785. "F5D5A1F0-45DA-454E-A0C1-3422F5085850",
  9786. "CC9B3822-EA7F-4A47-B07E-5AC16AFCB1C0",
  9787. "8D568399-31F1-42C1-A7D1-73C51EE97315",
  9788. "4C9221AA-4A5B-4D11-B8F3-DE353A5DAFBB",
  9789. "8B1A81C2-CED5-4ADC-AEA0-23E8F225AB56"
  9790. ],
  9791. "refViews": [],
  9792. "refDiagrams": [
  9793. "C2FC4082-F5E8-48CF-984E-E00F49DA13EF"
  9794. ],
  9795. "refDicts": [],
  9796. "id": "9095A025-9BEE-48F7-AB02-78BAFE68742C",
  9797. "refLogicEntities": []
  9798. }
  9799. ],
  9800. "dataTypeMapping": {
  9801. "referURL": "",
  9802. "mappings": [
  9803. {
  9804. "defKey": "string",
  9805. "id": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  9806. "defName": "字串",
  9807. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "VARCHAR",
  9808. "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "VARCHAR2",
  9809. "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "VARCHAR",
  9810. "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "VARCHAR",
  9811. "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "VARCHAR",
  9812. "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "VARCHAR2",
  9813. "592C7013-143D-4E7B-AF64-0D7BF1E28230": "VARCHAR",
  9814. "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "VARCHAR",
  9815. "11D1FB71-A587-4217-89BA-611B8A1F83E0": "STRING",
  9816. "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "TEXT",
  9817. "797A1496-D649-4261-89B4-544132EC3F36": "String",
  9818. "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "String",
  9819. "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "String",
  9820. "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "string",
  9821. "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "string",
  9822. "B91D99E0-9B7C-416C-8737-B760957DAF09": "string",
  9823. "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "String",
  9824. "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "VARCHAR",
  9825. "483F9346-C99E-4014-A1D2-A554606BD8A3": "VARCHAR",
  9826. "ABF5836C-0B7C-4007-A41C-F869325E5842": "VARCHAR"
  9827. },
  9828. {
  9829. "defKey": "double",
  9830. "id": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  9831. "defName": "小数",
  9832. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "DECIMAL",
  9833. "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "DECIMAL",
  9834. "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "DECIMAL",
  9835. "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "NUMERIC",
  9836. "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "DECIMAL",
  9837. "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "DECIMAL",
  9838. "592C7013-143D-4E7B-AF64-0D7BF1E28230": "NUMERIC",
  9839. "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "NUMERIC",
  9840. "11D1FB71-A587-4217-89BA-611B8A1F83E0": "DOUBLE",
  9841. "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "REAL",
  9842. "797A1496-D649-4261-89B4-544132EC3F36": "Double",
  9843. "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "Double",
  9844. "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "Double",
  9845. "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "decimal",
  9846. "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "double",
  9847. "B91D99E0-9B7C-416C-8737-B760957DAF09": "*float64",
  9848. "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "f64",
  9849. "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "DECIMAL",
  9850. "483F9346-C99E-4014-A1D2-A554606BD8A3": "DECIMAL",
  9851. "ABF5836C-0B7C-4007-A41C-F869325E5842": "NUMERIC"
  9852. },
  9853. {
  9854. "defKey": "int",
  9855. "id": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  9856. "defName": "整数",
  9857. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "INT",
  9858. "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "INT",
  9859. "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "INT",
  9860. "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "INTEGER",
  9861. "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "INT",
  9862. "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "INTEGER",
  9863. "592C7013-143D-4E7B-AF64-0D7BF1E28230": "INTEGER",
  9864. "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "INT4",
  9865. "11D1FB71-A587-4217-89BA-611B8A1F83E0": "INT",
  9866. "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "INTEGER",
  9867. "797A1496-D649-4261-89B4-544132EC3F36": "Integer",
  9868. "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "Integer",
  9869. "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "Integer",
  9870. "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "float",
  9871. "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "int",
  9872. "B91D99E0-9B7C-416C-8737-B760957DAF09": "*int",
  9873. "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "i32",
  9874. "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "INTEGER",
  9875. "483F9346-C99E-4014-A1D2-A554606BD8A3": "INT",
  9876. "ABF5836C-0B7C-4007-A41C-F869325E5842": "INTEGER"
  9877. },
  9878. {
  9879. "defKey": "date",
  9880. "id": "89D69E81-EA34-42EE-9FA2-93B8BD27E098",
  9881. "defName": "日期",
  9882. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "DATETIME",
  9883. "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "DATE",
  9884. "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "DATETIME",
  9885. "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "TIMESTAMP",
  9886. "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "DATE",
  9887. "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "DATE",
  9888. "592C7013-143D-4E7B-AF64-0D7BF1E28230": "DATE",
  9889. "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "DATE",
  9890. "11D1FB71-A587-4217-89BA-611B8A1F83E0": "DATETIME",
  9891. "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "NUMERIC",
  9892. "797A1496-D649-4261-89B4-544132EC3F36": "Date",
  9893. "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "Date",
  9894. "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "Date",
  9895. "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "DateTime",
  9896. "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "timestamp",
  9897. "B91D99E0-9B7C-416C-8737-B760957DAF09": "*time.Time",
  9898. "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "DateTime<Local>",
  9899. "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "DATE",
  9900. "483F9346-C99E-4014-A1D2-A554606BD8A3": "DATETIME",
  9901. "ABF5836C-0B7C-4007-A41C-F869325E5842": "DATE"
  9902. },
  9903. {
  9904. "defKey": "bytes",
  9905. "id": "D516E75B-90F5-4741-B9B3-A186A263F04C",
  9906. "defName": "二进制",
  9907. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "BLOB",
  9908. "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "BLOB",
  9909. "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "VARBINARY",
  9910. "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "BYTEA",
  9911. "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "BLOB",
  9912. "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "BLOB",
  9913. "592C7013-143D-4E7B-AF64-0D7BF1E28230": "BYTEA",
  9914. "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "BYTEA",
  9915. "11D1FB71-A587-4217-89BA-611B8A1F83E0": "BINARY",
  9916. "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "NONE",
  9917. "797A1496-D649-4261-89B4-544132EC3F36": "byte[]",
  9918. "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "byte[]",
  9919. "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "byte[]",
  9920. "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "binary",
  9921. "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "binary",
  9922. "B91D99E0-9B7C-416C-8737-B760957DAF09": "[]byte",
  9923. "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "BYTE",
  9924. "ABF5836C-0B7C-4007-A41C-F869325E5842": "BYTEA"
  9925. },
  9926. {
  9927. "defKey": "largeText",
  9928. "id": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
  9929. "defName": "大文本",
  9930. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "TEXT",
  9931. "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "CLOB",
  9932. "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "TEXT",
  9933. "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "TEXT",
  9934. "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "CLOB",
  9935. "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "CLOB",
  9936. "592C7013-143D-4E7B-AF64-0D7BF1E28230": "TEXT",
  9937. "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "TEXT",
  9938. "11D1FB71-A587-4217-89BA-611B8A1F83E0": "STRING",
  9939. "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "TEXT",
  9940. "797A1496-D649-4261-89B4-544132EC3F36": "String",
  9941. "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "String",
  9942. "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "String",
  9943. "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "string",
  9944. "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "string",
  9945. "B91D99E0-9B7C-416C-8737-B760957DAF09": "string",
  9946. "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "String",
  9947. "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "TEXT",
  9948. "483F9346-C99E-4014-A1D2-A554606BD8A3": "STRING",
  9949. "ABF5836C-0B7C-4007-A41C-F869325E5842": "TEXT"
  9950. },
  9951. {
  9952. "defKey": "数组/对象",
  9953. "id": "77023E85-ABEF-4D43-8808-9848810F3917",
  9954. "defName": "JSON",
  9955. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "JSON"
  9956. }
  9957. ]
  9958. },
  9959. "domains": [
  9960. {
  9961. "defKey": "DefaultString",
  9962. "defName": "默认字串",
  9963. "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  9964. "len": 255,
  9965. "scale": "",
  9966. "uiHint": "",
  9967. "id": "9092C4E0-1A54-4859-ABBB-5B62DBC27573"
  9968. },
  9969. {
  9970. "defKey": "IdOrKey",
  9971. "defName": "主键标识",
  9972. "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  9973. "len": 32,
  9974. "scale": "",
  9975. "uiHint": "",
  9976. "id": "16120F75-6AA7-4483-868D-F07F511BB081"
  9977. },
  9978. {
  9979. "defKey": "Name",
  9980. "defName": "名称",
  9981. "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  9982. "len": 90,
  9983. "scale": "",
  9984. "uiHint": "",
  9985. "id": "54611CCC-CA4B-42E1-9F32-4944C85B85A6"
  9986. },
  9987. {
  9988. "defKey": "Int",
  9989. "defName": "整数",
  9990. "applyFor": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  9991. "len": "",
  9992. "scale": "",
  9993. "uiHint": "",
  9994. "id": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E"
  9995. },
  9996. {
  9997. "defKey": "Double",
  9998. "defName": "小数",
  9999. "applyFor": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  10000. "len": 24,
  10001. "scale": 6,
  10002. "uiHint": "",
  10003. "id": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4"
  10004. },
  10005. {
  10006. "defKey": "Money",
  10007. "defName": "金额",
  10008. "applyFor": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  10009. "len": 24,
  10010. "scale": 6,
  10011. "uiHint": "",
  10012. "id": "C3B1681B-99F9-4818-9E80-DE1652A51D85"
  10013. },
  10014. {
  10015. "defKey": "DateTime",
  10016. "defName": "日期时间",
  10017. "applyFor": "89D69E81-EA34-42EE-9FA2-93B8BD27E098",
  10018. "len": "",
  10019. "scale": "",
  10020. "uiHint": "",
  10021. "id": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC"
  10022. },
  10023. {
  10024. "defKey": "YesNo",
  10025. "defName": "是否",
  10026. "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  10027. "len": "1",
  10028. "scale": "",
  10029. "uiHint": "",
  10030. "id": "6F7C1C5C-D159-41E6-BF9D-54DEEFA79AFF"
  10031. },
  10032. {
  10033. "defKey": "Dict",
  10034. "defName": "数据字典",
  10035. "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  10036. "len": "32",
  10037. "scale": "",
  10038. "uiHint": "",
  10039. "id": "73FD2BAD-2358-4336-B96D-45DC897BD792"
  10040. },
  10041. {
  10042. "defKey": "DescText",
  10043. "defName": "描述文本",
  10044. "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  10045. "len": "900",
  10046. "scale": "",
  10047. "uiHint": "",
  10048. "id": "3E948CEC-3070-472C-AF92-F3CA11EC9D15"
  10049. }
  10050. ],
  10051. "diagrams": [
  10052. {
  10053. "defKey": "会员物理模型",
  10054. "defName": "member",
  10055. "relationType": "field",
  10056. "canvasData": {
  10057. "cells": [
  10058. {
  10059. "id": "216cc9c7-1173-4035-962a-b10e5b1dd7ed",
  10060. "shape": "erdRelation",
  10061. "source": {
  10062. "cell": "bf713e24-b10c-4a61-bd85-e4e9a4f9c3a3",
  10063. "port": "FEBE7751-8C69-4553-BBF9-2AC9A8CF2D10%out"
  10064. },
  10065. "target": {
  10066. "cell": "90f14da5-5adf-4e40-a44a-b627c4decd38",
  10067. "port": "08FF20DC-2393-4709-B8F0-D17B9F45BAF5%in"
  10068. },
  10069. "relation": "1:n",
  10070. "fillColor": "#ACDAFC",
  10071. "attrs": {
  10072. "line": {
  10073. "strokeDasharray": ""
  10074. }
  10075. }
  10076. },
  10077. {
  10078. "id": "9e6d5978-8b2a-4788-85f7-233627f7550b",
  10079. "shape": "erdRelation",
  10080. "source": {
  10081. "cell": "bf713e24-b10c-4a61-bd85-e4e9a4f9c3a3",
  10082. "port": "FEBE7751-8C69-4553-BBF9-2AC9A8CF2D10%out"
  10083. },
  10084. "target": {
  10085. "cell": "6e241f66-8501-424f-87a8-ad295ddc556b",
  10086. "port": "517D4C4F-48DB-4233-8124-59369ACE5ED6%out"
  10087. },
  10088. "relation": "1:1",
  10089. "vertices": [
  10090. {
  10091. "x": 160,
  10092. "y": -420
  10093. },
  10094. {
  10095. "x": 160,
  10096. "y": -442
  10097. }
  10098. ],
  10099. "fillColor": "#ACDAFC",
  10100. "attrs": {
  10101. "line": {
  10102. "strokeDasharray": ""
  10103. }
  10104. }
  10105. },
  10106. {
  10107. "id": "2b104f9c-f5bf-4b7d-a874-2e9cdaf09175",
  10108. "shape": "erdRelation",
  10109. "source": {
  10110. "cell": "bf713e24-b10c-4a61-bd85-e4e9a4f9c3a3",
  10111. "port": "FEBE7751-8C69-4553-BBF9-2AC9A8CF2D10%in"
  10112. },
  10113. "target": {
  10114. "cell": "ab75ebea-bb4e-4545-a213-eee6304b6f1a",
  10115. "port": "528E5C44-E84F-4C5F-96D4-BC7CE14583C4%out"
  10116. },
  10117. "relation": "1:n",
  10118. "vertices": [
  10119. {
  10120. "x": -596,
  10121. "y": -230
  10122. }
  10123. ],
  10124. "fillColor": "#ACDAFC",
  10125. "router": {
  10126. "name": "manhattan"
  10127. },
  10128. "attrs": {
  10129. "line": {
  10130. "strokeDasharray": ""
  10131. }
  10132. }
  10133. },
  10134. {
  10135. "id": "90f14da5-5adf-4e40-a44a-b627c4decd38",
  10136. "shape": "table",
  10137. "position": {
  10138. "x": 340,
  10139. "y": -90
  10140. },
  10141. "count": 0,
  10142. "originKey": "6B94A1CA-9F5C-4B7E-8739-A4AD7E92EA54",
  10143. "type": "P",
  10144. "size": {
  10145. "width": 406,
  10146. "height": 238
  10147. }
  10148. },
  10149. {
  10150. "id": "6e241f66-8501-424f-87a8-ad295ddc556b",
  10151. "shape": "table",
  10152. "position": {
  10153. "x": -360,
  10154. "y": -490
  10155. },
  10156. "count": 0,
  10157. "originKey": "AE6B4994-AA06-4BE6-B0A7-652B58F21953",
  10158. "type": "P",
  10159. "size": {
  10160. "width": 370,
  10161. "height": 54
  10162. },
  10163. "autoSize": true
  10164. },
  10165. {
  10166. "id": "bf713e24-b10c-4a61-bd85-e4e9a4f9c3a3",
  10167. "shape": "table",
  10168. "position": {
  10169. "x": -450.00000000000085,
  10170. "y": -309.99999999999886
  10171. },
  10172. "count": 0,
  10173. "originKey": "163F1074-272D-4BB4-B28F-E63D314E5581",
  10174. "type": "P",
  10175. "size": {
  10176. "width": 590,
  10177. "height": 330
  10178. }
  10179. },
  10180. {
  10181. "id": "ab75ebea-bb4e-4545-a213-eee6304b6f1a",
  10182. "shape": "table",
  10183. "position": {
  10184. "x": -1070,
  10185. "y": -250
  10186. },
  10187. "count": 0,
  10188. "originKey": "0E22E910-FDFF-48B0-8E61-DA2A03F6ACDB",
  10189. "type": "P",
  10190. "size": {
  10191. "width": 424,
  10192. "height": 307
  10193. }
  10194. },
  10195. {
  10196. "id": "54fca141-8f93-4d08-81dc-0476d42fd770",
  10197. "shape": "table",
  10198. "position": {
  10199. "x": -660,
  10200. "y": 170
  10201. },
  10202. "count": 0,
  10203. "originKey": "356D354D-B0E8-40E7-82BA-E964485C7A73",
  10204. "type": "P",
  10205. "size": {
  10206. "width": 625,
  10207. "height": 261
  10208. }
  10209. }
  10210. ]
  10211. },
  10212. "id": "24296392-1C3A-401D-A4D2-DAB283542537",
  10213. "comment": ""
  10214. },
  10215. {
  10216. "defKey": "技师物理模型",
  10217. "defName": "coach",
  10218. "relationType": "field",
  10219. "canvasData": {
  10220. "cells": [
  10221. {
  10222. "id": "d2a7f984-a3df-4373-986f-2fb5cbaf4c57",
  10223. "shape": "erdRelation",
  10224. "source": {
  10225. "cell": "f19873d2-89d9-46ff-bff4-a6950ceebcde",
  10226. "port": "98C4796D-5DFE-4B0F-971B-135ACF9F5370%out"
  10227. },
  10228. "target": {
  10229. "cell": "0e888e0e-a788-4f03-8a1b-afb7a4bf95f6",
  10230. "port": "1E768608-A3B1-49D4-94DD-3A5969CC48A1%in"
  10231. },
  10232. "relation": "1:n",
  10233. "fillColor": "#ACDAFC",
  10234. "router": {
  10235. "name": "manhattan"
  10236. },
  10237. "attrs": {
  10238. "line": {
  10239. "strokeDasharray": ""
  10240. }
  10241. }
  10242. },
  10243. {
  10244. "id": "0ec2d10c-1902-44c0-90ae-e6545b8979d4",
  10245. "shape": "erdRelation",
  10246. "source": {
  10247. "cell": "2cb2712e-e4c9-478b-8d7a-8ccdd9b7c6a5",
  10248. "port": "1FA8A05F-CEDE-4BB5-A5C5-34DF0E37356D%out"
  10249. },
  10250. "target": {
  10251. "cell": "543f9428-886a-489d-b3da-0ac9dab4d7a8",
  10252. "port": "58ECE99E-198A-439C-BD94-DA5555EDA284%in"
  10253. },
  10254. "relation": "1:n",
  10255. "fillColor": "#ACDAFC",
  10256. "router": {
  10257. "name": "manhattan"
  10258. },
  10259. "attrs": {
  10260. "line": {
  10261. "strokeDasharray": ""
  10262. }
  10263. }
  10264. },
  10265. {
  10266. "id": "141a1ab4-da7a-478c-a82c-e61e300c857b",
  10267. "shape": "erdRelation",
  10268. "source": {
  10269. "cell": "0e888e0e-a788-4f03-8a1b-afb7a4bf95f6",
  10270. "port": "68C9F705-75F4-4C70-A6CF-1E9889278C32%out"
  10271. },
  10272. "target": {
  10273. "cell": "543f9428-886a-489d-b3da-0ac9dab4d7a8",
  10274. "port": "88DBC0E7-30EE-491C-82E0-BC606B810DAC%out"
  10275. },
  10276. "relation": "1:n",
  10277. "fillColor": "#ACDAFC",
  10278. "router": {
  10279. "name": "manhattan"
  10280. },
  10281. "attrs": {
  10282. "line": {
  10283. "strokeDasharray": ""
  10284. }
  10285. }
  10286. },
  10287. {
  10288. "id": "f19873d2-89d9-46ff-bff4-a6950ceebcde",
  10289. "shape": "table",
  10290. "position": {
  10291. "x": -950,
  10292. "y": 536
  10293. },
  10294. "count": 0,
  10295. "originKey": "5A15F1DD-29CF-4AA9-81AD-BB8C875BC76D",
  10296. "type": "P",
  10297. "size": {
  10298. "width": 370,
  10299. "height": 146
  10300. }
  10301. },
  10302. {
  10303. "id": "59a15069-f7e1-47e5-81ee-d85abefb42d6",
  10304. "shape": "table",
  10305. "position": {
  10306. "x": 210,
  10307. "y": -200
  10308. },
  10309. "count": 0,
  10310. "originKey": "B18001A9-10A6-45AF-8601-D2A38A60D8A0",
  10311. "type": "P",
  10312. "size": {
  10313. "width": 580,
  10314. "height": 630
  10315. }
  10316. },
  10317. {
  10318. "id": "0e888e0e-a788-4f03-8a1b-afb7a4bf95f6",
  10319. "shape": "table",
  10320. "position": {
  10321. "x": -400,
  10322. "y": 536
  10323. },
  10324. "count": 0,
  10325. "originKey": "464BC16A-1A71-48AF-B7CC-CF4B316994B0",
  10326. "type": "P",
  10327. "size": {
  10328. "width": 467,
  10329. "height": 399
  10330. }
  10331. },
  10332. {
  10333. "id": "2cb2712e-e4c9-478b-8d7a-8ccdd9b7c6a5",
  10334. "shape": "table",
  10335. "position": {
  10336. "x": -990.0000000000002,
  10337. "y": -189.99999999999977
  10338. },
  10339. "count": 0,
  10340. "originKey": "89235217-825A-473F-96A8-E8798445A0EA",
  10341. "type": "P",
  10342. "size": {
  10343. "width": 580,
  10344. "height": 630
  10345. }
  10346. },
  10347. {
  10348. "id": "543f9428-886a-489d-b3da-0ac9dab4d7a8",
  10349. "shape": "table",
  10350. "position": {
  10351. "x": -310,
  10352. "y": 140
  10353. },
  10354. "count": 0,
  10355. "originKey": "C401B2CE-9BDB-4D59-BE8A-B22534BD3E68",
  10356. "type": "P",
  10357. "size": {
  10358. "width": 390,
  10359. "height": 180
  10360. }
  10361. }
  10362. ]
  10363. },
  10364. "id": "B818C969-B522-41DE-8671-5B92073C0805",
  10365. "comment": ""
  10366. },
  10367. {
  10368. "defKey": "订单物理模型",
  10369. "defName": "order",
  10370. "relationType": "field",
  10371. "canvasData": {
  10372. "cells": [
  10373. {
  10374. "id": "1eead8e8-dbc0-43a4-aa1e-355f64fcc83e",
  10375. "shape": "erdRelation",
  10376. "source": {
  10377. "cell": "9fc201e3-0f7f-41a0-9a2f-a67b4b352ced",
  10378. "port": "2CCF42CA-BBF7-4B7D-A6D0-2DAADF9FAD8E%out"
  10379. },
  10380. "target": {
  10381. "cell": "fac8005e-7e77-4ff4-b847-ab2760aed209",
  10382. "port": "0E120DF7-1A43-4221-98E0-547B4A38D3C5%out"
  10383. },
  10384. "relation": "1:n",
  10385. "fillColor": "#ACDAFC",
  10386. "attrs": {
  10387. "line": {
  10388. "strokeDasharray": ""
  10389. }
  10390. }
  10391. },
  10392. {
  10393. "id": "fac8005e-7e77-4ff4-b847-ab2760aed209",
  10394. "shape": "table",
  10395. "position": {
  10396. "x": 281.5,
  10397. "y": 200
  10398. },
  10399. "count": 0,
  10400. "originKey": "CC9B3822-EA7F-4A47-B07E-5AC16AFCB1C0",
  10401. "type": "P",
  10402. "size": {
  10403. "width": 757,
  10404. "height": 261
  10405. }
  10406. },
  10407. {
  10408. "id": "c5884f3b-883a-4693-b0ad-6d0791a523b8",
  10409. "shape": "table",
  10410. "position": {
  10411. "x": 2090,
  10412. "y": -340
  10413. },
  10414. "count": 0,
  10415. "originKey": "0BB71B25-37DD-4BE2-B9C5-804995806979",
  10416. "fillColor": "rgb(207, 172, 19)",
  10417. "type": "P",
  10418. "size": {
  10419. "width": 300,
  10420. "height": 1530
  10421. }
  10422. },
  10423. {
  10424. "id": "ef8ab857-eaff-4f8e-8131-b761f6e453e3",
  10425. "shape": "table",
  10426. "position": {
  10427. "x": 1190,
  10428. "y": 461
  10429. },
  10430. "count": 0,
  10431. "originKey": "8B1A81C2-CED5-4ADC-AEA0-23E8F225AB56",
  10432. "type": "P",
  10433. "size": {
  10434. "width": 676,
  10435. "height": 307
  10436. }
  10437. },
  10438. {
  10439. "id": "9fc201e3-0f7f-41a0-9a2f-a67b4b352ced",
  10440. "shape": "table",
  10441. "position": {
  10442. "x": 280,
  10443. "y": -480
  10444. },
  10445. "count": 0,
  10446. "originKey": "8D568399-31F1-42C1-A7D1-73C51EE97315",
  10447. "type": "P",
  10448. "size": {
  10449. "width": 760,
  10450. "height": 514
  10451. }
  10452. },
  10453. {
  10454. "id": "5dae0712-5222-4cdf-b195-fc320a701903",
  10455. "shape": "table",
  10456. "position": {
  10457. "x": 1220,
  10458. "y": -390
  10459. },
  10460. "count": 0,
  10461. "originKey": "F5D5A1F0-45DA-454E-A0C1-3422F5085850",
  10462. "type": "P",
  10463. "size": {
  10464. "width": 603,
  10465. "height": 261
  10466. },
  10467. "autoSize": true
  10468. },
  10469. {
  10470. "id": "b84b007e-8078-4437-b68b-a85e5d1d2343",
  10471. "shape": "table",
  10472. "position": {
  10473. "x": 1220,
  10474. "y": -10
  10475. },
  10476. "count": 0,
  10477. "originKey": "4C9221AA-4A5B-4D11-B8F3-DE353A5DAFBB",
  10478. "type": "P",
  10479. "size": {
  10480. "width": 385,
  10481. "height": 146
  10482. },
  10483. "autoSize": true
  10484. }
  10485. ]
  10486. },
  10487. "id": "C2FC4082-F5E8-48CF-984E-E00F49DA13EF",
  10488. "comment": ""
  10489. }
  10490. ],
  10491. "standardFields": [],
  10492. "dbConn": [
  10493. {
  10494. "defKey": "B06FA810-2E74-4872-B051-4C59A6B88D52",
  10495. "defName": "192.168.110.5-massage-new",
  10496. "type": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E",
  10497. "properties": {
  10498. "driver_class_name": "com.mysql.cj.jdbc.Driver",
  10499. "url": "jdbc:mysql://192.168.110.5:3306/massage_new?characterEncoding=UTF-8&useSSL=false&useUnicode=true&serverTimezone=UTC+8",
  10500. "password": "Dd.123456",
  10501. "username": "dd"
  10502. }
  10503. },
  10504. {
  10505. "defKey": "4C0586F9-A505-4EC2-B254-25F619FD64BE",
  10506. "defName": "192.168.110.5-dcat-admin",
  10507. "type": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E",
  10508. "properties": {
  10509. "driver_class_name": "com.mysql.cj.jdbc.Driver",
  10510. "url": "jdbc:mysql://192.168.110.5:3306/dcat-admin?characterEncoding=UTF-8&useSSL=false&useUnicode=true&serverTimezone=UTC+8",
  10511. "password": "Dd.123456",
  10512. "username": "dd"
  10513. }
  10514. }
  10515. ],
  10516. "logicEntities": [],
  10517. "namingRules": [
  10518. {
  10519. "id": "63F1DC0E-6A76-4B75-B3DA-4B00657B4E1B",
  10520. "defName": "属性代码不能超过32",
  10521. "intro": "",
  10522. "controlIntensity": "S",
  10523. "applyObjectType": "L",
  10524. "applyFieldType": "field",
  10525. "programCode": "return (data.field.defName||\"\").length <= 32",
  10526. "enable": true
  10527. },
  10528. {
  10529. "id": "668CBEE6-E0B7-4ACE-B72E-63942963B191",
  10530. "defName": "长度不能超过32位",
  10531. "intro": "",
  10532. "controlIntensity": "F",
  10533. "applyObjectType": "P",
  10534. "applyFieldType": "entity",
  10535. "programCode": "return (data.entity.defName||\"\").length <= 32",
  10536. "enable": true
  10537. },
  10538. {
  10539. "id": "11BD987F-82E7-418E-A752-FDD84F1582A2",
  10540. "defName": "长度不能超过32位",
  10541. "intro": "",
  10542. "controlIntensity": "F",
  10543. "applyObjectType": "P",
  10544. "applyFieldType": "field",
  10545. "programCode": "return (data.field.defName||\"\").length <= 32",
  10546. "enable": true
  10547. },
  10548. {
  10549. "id": "29D0A8D9-ABE2-451F-8A39-52FAB02E62B9",
  10550. "defName": "索引名-长度不超过32个字符",
  10551. "intro": "",
  10552. "controlIntensity": "S",
  10553. "applyObjectType": "P",
  10554. "applyFieldType": "index",
  10555. "programCode": "return (data.index.defName||\"\").length <= 32",
  10556. "enable": true
  10557. },
  10558. {
  10559. "id": "B425A96F-6A31-4DBD-8743-A00DE28FB50F",
  10560. "defName": "不能使用保留字",
  10561. "intro": "",
  10562. "controlIntensity": "S",
  10563. "applyObjectType": "P",
  10564. "applyFieldType": "index",
  10565. "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;",
  10566. "enable": true
  10567. },
  10568. {
  10569. "id": "EF9E44D0-691A-4352-A079-CFF300107531",
  10570. "defName": "索引名-全小写",
  10571. "intro": "",
  10572. "controlIntensity": "F",
  10573. "applyObjectType": "P",
  10574. "applyFieldType": "index",
  10575. "programCode": "return !/[A-Z]+/.test(data.index.defKey);",
  10576. "enable": true
  10577. },
  10578. {
  10579. "id": "972EB2FB-4428-429D-8B0A-F082A8C7A94D",
  10580. "defName": "名称不能为空",
  10581. "intro": "",
  10582. "controlIntensity": "F",
  10583. "applyObjectType": "L",
  10584. "applyFieldType": "entity",
  10585. "programCode": "return data.logicEntity.defName",
  10586. "enable": true
  10587. },
  10588. {
  10589. "id": "EEAEB9C5-BB6C-4E92-949B-D27928690D85",
  10590. "defName": "名称长度不超过32",
  10591. "intro": "",
  10592. "controlIntensity": "S",
  10593. "applyObjectType": "L",
  10594. "applyFieldType": "entity",
  10595. "programCode": "return (data.logicEntity.defName||\"\").length <=32",
  10596. "enable": true
  10597. },
  10598. {
  10599. "id": "24E3F7E5-730D-4378-B72D-195D6B940352",
  10600. "defName": "不能使用保留字",
  10601. "intro": "",
  10602. "controlIntensity": "F",
  10603. "applyObjectType": "P",
  10604. "applyFieldType": "entity",
  10605. "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;",
  10606. "enable": true
  10607. },
  10608. {
  10609. "id": "039BF435-DC77-4DA4-81C7-7F8076BF22BB",
  10610. "defName": "表名-全小写",
  10611. "intro": "",
  10612. "controlIntensity": "S",
  10613. "applyObjectType": "P",
  10614. "applyFieldType": "entity",
  10615. "programCode": "return !/[A-Z]+/.test(data.entity.defKey);",
  10616. "enable": true
  10617. },
  10618. {
  10619. "id": "CBEB0E30-19C6-427D-A8BF-61FF10E27A0B",
  10620. "defName": "表名-不允许空格",
  10621. "intro": "",
  10622. "controlIntensity": "F",
  10623. "applyObjectType": "P",
  10624. "applyFieldType": "entity",
  10625. "programCode": "return !/\\s+/.test(data.entity.defKey);",
  10626. "enable": true
  10627. },
  10628. {
  10629. "id": "1168C7C2-8E8E-4FB7-B639-B3DE839C395A",
  10630. "defName": "表名-英文及下划线",
  10631. "intro": "",
  10632. "controlIntensity": "F",
  10633. "applyObjectType": "P",
  10634. "applyFieldType": "entity",
  10635. "programCode": "return /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(data.entity.defKey);",
  10636. "enable": true
  10637. },
  10638. {
  10639. "id": "D373637C-D3A6-4621-B656-6841A5444A76",
  10640. "defName": "表必须有comment注释",
  10641. "intro": "",
  10642. "controlIntensity": "S",
  10643. "applyObjectType": "P",
  10644. "applyFieldType": "entity",
  10645. "programCode": "return (data.entity.defName||\"\").length > 0 || (data.entity.comment||\"\").length > 0",
  10646. "enable": true
  10647. },
  10648. {
  10649. "id": "2BAB122B-8811-40BB-89F3-CDC24B5862D3",
  10650. "defName": "主键命名为 id,类型为 int 或 bigint,且为自增",
  10651. "intro": "",
  10652. "controlIntensity": "S",
  10653. "applyObjectType": "P",
  10654. "applyFieldType": "entity",
  10655. "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;",
  10656. "enable": true
  10657. },
  10658. {
  10659. "id": "0B2F0BD2-3B84-4AB1-BA29-9DE9620AF608",
  10660. "defName": "必须有数据的创建时间以及创建人字段",
  10661. "intro": "",
  10662. "controlIntensity": "S",
  10663. "applyObjectType": "P",
  10664. "applyFieldType": "entity",
  10665. "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;",
  10666. "enable": true
  10667. },
  10668. {
  10669. "id": "BEC54F19-52D5-4882-BCE1-4439785F8001",
  10670. "defName": "不能使用保留字",
  10671. "intro": "",
  10672. "controlIntensity": "S",
  10673. "applyObjectType": "P",
  10674. "applyFieldType": "field",
  10675. "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;",
  10676. "enable": true
  10677. },
  10678. {
  10679. "id": "082E186D-7B02-4F1C-9ECE-378AB98C4845",
  10680. "defName": "字段-全小写",
  10681. "intro": "",
  10682. "controlIntensity": "S",
  10683. "applyObjectType": "P",
  10684. "applyFieldType": "field",
  10685. "programCode": "return !/[A-Z]+/.test(data.field.defKey);",
  10686. "enable": true
  10687. },
  10688. {
  10689. "id": "F3CE5C67-23B6-4E7B-BA91-D5F0BCBC9E6A",
  10690. "defName": "字段-不允许空格",
  10691. "intro": "",
  10692. "controlIntensity": "F",
  10693. "applyObjectType": "P",
  10694. "applyFieldType": "field",
  10695. "programCode": "return !/\\s+/.test(data.field.defKey);",
  10696. "enable": true
  10697. },
  10698. {
  10699. "id": "21AFEAC8-96D7-467F-8320-A33887FC0C5D",
  10700. "defName": "字段-英文及下划线",
  10701. "intro": "",
  10702. "controlIntensity": "F",
  10703. "applyObjectType": "P",
  10704. "applyFieldType": "field",
  10705. "programCode": "return /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(data.field.defKey);",
  10706. "enable": true
  10707. },
  10708. {
  10709. "id": "2BBDE47B-6926-4E1A-AE57-D4F6E5399EE6",
  10710. "defName": "字段-必需有comment注释",
  10711. "intro": "",
  10712. "controlIntensity": "F",
  10713. "applyObjectType": "P",
  10714. "applyFieldType": "field",
  10715. "programCode": "return (data.field.defName||\"\").length > 0 || (data.field.comment||\"\").length > 0",
  10716. "enable": true
  10717. },
  10718. {
  10719. "id": "5E181E43-0D72-498F-8178-4C1CDBC89A16",
  10720. "defName": "字段-不能与表名相同",
  10721. "intro": "",
  10722. "controlIntensity": "F",
  10723. "applyObjectType": "P",
  10724. "applyFieldType": "field",
  10725. "programCode": "return data.field.defKey != data.entity.defKey;",
  10726. "enable": true
  10727. },
  10728. {
  10729. "id": "DE8F8598-5D53-4727-A837-7816C2AF99D9",
  10730. "defName": "外键-字段必须具有表名及其主键",
  10731. "intro": "",
  10732. "controlIntensity": "S",
  10733. "applyObjectType": "P",
  10734. "applyFieldType": "field",
  10735. "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;",
  10736. "enable": true
  10737. },
  10738. {
  10739. "id": "D330BCC3-DBAB-4677-8C5A-A301003A5878",
  10740. "defName": "时间字段类型尽量选取 timestamp",
  10741. "intro": "",
  10742. "controlIntensity": "S",
  10743. "applyObjectType": "P",
  10744. "applyFieldType": "field",
  10745. "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;",
  10746. "enable": true
  10747. },
  10748. {
  10749. "id": "2E7FDA44-989A-4C5B-A0C5-12B1E40E57B1",
  10750. "defName": "索引名-英文及下划线",
  10751. "intro": "",
  10752. "controlIntensity": "S",
  10753. "applyObjectType": "P",
  10754. "applyFieldType": "index",
  10755. "programCode": "return /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(data.index.defKey);",
  10756. "enable": true
  10757. },
  10758. {
  10759. "id": "023450B3-AAE2-4DC1-AE63-2196DD82823D",
  10760. "defName": "索引名-主键的名称以pk_开头,唯一键以uk_开头,普通索引以 ix_开头",
  10761. "intro": "",
  10762. "controlIntensity": "S",
  10763. "applyObjectType": "P",
  10764. "applyFieldType": "index",
  10765. "programCode": "if(data.index.unique){\n return data.index.defKey.indexOf(\"uk_\")==0;\n}else{\n return data.index.defKey.indexOf(\"ix_\")==0;\n}",
  10766. "enable": true
  10767. },
  10768. {
  10769. "id": "1C563E17-262B-4EB6-87F0-203CAC667CF0",
  10770. "defName": "不允许存在blob、text等大字段",
  10771. "intro": "",
  10772. "controlIntensity": "S",
  10773. "applyObjectType": "P",
  10774. "applyFieldType": "field",
  10775. "programCode": "if(\"blob,text\".indexOf(data.field.dbType.toLowerCase())>=0){\n return false;\n}\nreturn true;",
  10776. "enable": true
  10777. }
  10778. ]
  10779. }