ruoyi-vue-pro.sql 404 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : 127.0.0.1 PostgreSQL
  4. Source Server Type : PostgreSQL
  5. Source Server Version : 140002
  6. Source Host : 127.0.0.1:5432
  7. Source Catalog : ruoyi-vue-pro
  8. Source Schema : public
  9. Target Server Type : PostgreSQL
  10. Target Server Version : 140002
  11. File Encoding : 65001
  12. Date: 28/07/2022 23:48:10
  13. */
  14. -- ----------------------------
  15. -- Sequence structure for bpm_form_seq
  16. -- ----------------------------
  17. DROP SEQUENCE IF EXISTS "bpm_form_seq";
  18. CREATE SEQUENCE "bpm_form_seq"
  19. INCREMENT 1
  20. MAXVALUE 9223372036854775807
  21. CACHE 1;
  22. -- ----------------------------
  23. -- Sequence structure for bpm_oa_leave_seq
  24. -- ----------------------------
  25. DROP SEQUENCE IF EXISTS "bpm_oa_leave_seq";
  26. CREATE SEQUENCE "bpm_oa_leave_seq"
  27. INCREMENT 1
  28. MAXVALUE 9223372036854775807
  29. CACHE 1;
  30. -- ----------------------------
  31. -- Sequence structure for bpm_process_definition_ext_seq
  32. -- ----------------------------
  33. DROP SEQUENCE IF EXISTS "bpm_process_definition_ext_seq";
  34. CREATE SEQUENCE "bpm_process_definition_ext_seq"
  35. INCREMENT 1
  36. MAXVALUE 9223372036854775807
  37. CACHE 1;
  38. -- ----------------------------
  39. -- Sequence structure for bpm_process_instance_ext_seq
  40. -- ----------------------------
  41. DROP SEQUENCE IF EXISTS "bpm_process_instance_ext_seq";
  42. CREATE SEQUENCE "bpm_process_instance_ext_seq"
  43. INCREMENT 1
  44. MAXVALUE 9223372036854775807
  45. CACHE 1;
  46. -- ----------------------------
  47. -- Sequence structure for bpm_task_assign_rule_seq
  48. -- ----------------------------
  49. DROP SEQUENCE IF EXISTS "bpm_task_assign_rule_seq";
  50. CREATE SEQUENCE "bpm_task_assign_rule_seq"
  51. INCREMENT 1
  52. MAXVALUE 9223372036854775807
  53. CACHE 1;
  54. -- ----------------------------
  55. -- Sequence structure for bpm_task_ext_seq
  56. -- ----------------------------
  57. DROP SEQUENCE IF EXISTS "bpm_task_ext_seq";
  58. CREATE SEQUENCE "bpm_task_ext_seq"
  59. INCREMENT 1
  60. MAXVALUE 9223372036854775807
  61. CACHE 1;
  62. -- ----------------------------
  63. -- Sequence structure for bpm_user_group_seq
  64. -- ----------------------------
  65. DROP SEQUENCE IF EXISTS "bpm_user_group_seq";
  66. CREATE SEQUENCE "bpm_user_group_seq"
  67. INCREMENT 1
  68. MAXVALUE 9223372036854775807
  69. CACHE 1;
  70. -- ----------------------------
  71. -- Sequence structure for infra_api_access_log_seq
  72. -- ----------------------------
  73. DROP SEQUENCE IF EXISTS "infra_api_access_log_seq";
  74. CREATE SEQUENCE "infra_api_access_log_seq"
  75. INCREMENT 1
  76. MAXVALUE 9223372036854775807
  77. CACHE 1;
  78. -- ----------------------------
  79. -- Sequence structure for infra_api_error_log_seq
  80. -- ----------------------------
  81. DROP SEQUENCE IF EXISTS "infra_api_error_log_seq";
  82. CREATE SEQUENCE "infra_api_error_log_seq"
  83. INCREMENT 1
  84. MAXVALUE 9223372036854775807
  85. CACHE 1;
  86. -- ----------------------------
  87. -- Sequence structure for infra_codegen_column_seq
  88. -- ----------------------------
  89. DROP SEQUENCE IF EXISTS "infra_codegen_column_seq";
  90. CREATE SEQUENCE "infra_codegen_column_seq"
  91. INCREMENT 1
  92. MAXVALUE 9223372036854775807
  93. CACHE 1;
  94. -- ----------------------------
  95. -- Sequence structure for infra_codegen_table_seq
  96. -- ----------------------------
  97. DROP SEQUENCE IF EXISTS "infra_codegen_table_seq";
  98. CREATE SEQUENCE "infra_codegen_table_seq"
  99. INCREMENT 1
  100. MAXVALUE 9223372036854775807
  101. CACHE 1;
  102. -- ----------------------------
  103. -- Sequence structure for infra_config_seq
  104. -- ----------------------------
  105. DROP SEQUENCE IF EXISTS "infra_config_seq";
  106. CREATE SEQUENCE "infra_config_seq"
  107. INCREMENT 1
  108. MAXVALUE 9223372036854775807
  109. CACHE 1;
  110. -- ----------------------------
  111. -- Sequence structure for infra_data_source_config_seq
  112. -- ----------------------------
  113. DROP SEQUENCE IF EXISTS "infra_data_source_config_seq";
  114. CREATE SEQUENCE "infra_data_source_config_seq"
  115. INCREMENT 1
  116. MAXVALUE 9223372036854775807
  117. CACHE 1;
  118. -- ----------------------------
  119. -- Sequence structure for infra_file_config_seq
  120. -- ----------------------------
  121. DROP SEQUENCE IF EXISTS "infra_file_config_seq";
  122. CREATE SEQUENCE "infra_file_config_seq"
  123. INCREMENT 1
  124. MAXVALUE 9223372036854775807
  125. CACHE 1;
  126. -- ----------------------------
  127. -- Sequence structure for infra_file_content_seq
  128. -- ----------------------------
  129. DROP SEQUENCE IF EXISTS "infra_file_content_seq";
  130. CREATE SEQUENCE "infra_file_content_seq"
  131. INCREMENT 1
  132. MAXVALUE 9223372036854775807
  133. CACHE 1;
  134. -- ----------------------------
  135. -- Sequence structure for infra_file_seq
  136. -- ----------------------------
  137. DROP SEQUENCE IF EXISTS "infra_file_seq";
  138. CREATE SEQUENCE "infra_file_seq"
  139. INCREMENT 1
  140. MAXVALUE 9223372036854775807
  141. CACHE 1;
  142. -- ----------------------------
  143. -- Sequence structure for infra_job_log_seq
  144. -- ----------------------------
  145. DROP SEQUENCE IF EXISTS "infra_job_log_seq";
  146. CREATE SEQUENCE "infra_job_log_seq"
  147. INCREMENT 1
  148. MAXVALUE 9223372036854775807
  149. CACHE 1;
  150. -- ----------------------------
  151. -- Sequence structure for infra_job_seq
  152. -- ----------------------------
  153. DROP SEQUENCE IF EXISTS "infra_job_seq";
  154. CREATE SEQUENCE "infra_job_seq"
  155. INCREMENT 1
  156. MAXVALUE 9223372036854775807
  157. CACHE 1;
  158. -- ----------------------------
  159. -- Sequence structure for infra_test_demo_seq
  160. -- ----------------------------
  161. DROP SEQUENCE IF EXISTS "infra_test_demo_seq";
  162. CREATE SEQUENCE "infra_test_demo_seq"
  163. INCREMENT 1
  164. MAXVALUE 9223372036854775807
  165. CACHE 1;
  166. -- ----------------------------
  167. -- Sequence structure for member_user_seq
  168. -- ----------------------------
  169. DROP SEQUENCE IF EXISTS "member_user_seq";
  170. CREATE SEQUENCE "member_user_seq"
  171. INCREMENT 1
  172. MAXVALUE 9223372036854775807
  173. CACHE 1;
  174. -- ----------------------------
  175. -- Sequence structure for pay_app_seq
  176. -- ----------------------------
  177. DROP SEQUENCE IF EXISTS "pay_app_seq";
  178. CREATE SEQUENCE "pay_app_seq"
  179. INCREMENT 1
  180. MAXVALUE 9223372036854775807
  181. CACHE 1;
  182. -- ----------------------------
  183. -- Sequence structure for pay_channel_seq
  184. -- ----------------------------
  185. DROP SEQUENCE IF EXISTS "pay_channel_seq";
  186. CREATE SEQUENCE "pay_channel_seq"
  187. INCREMENT 1
  188. MAXVALUE 9223372036854775807
  189. CACHE 1;
  190. -- ----------------------------
  191. -- Sequence structure for pay_merchant_seq
  192. -- ----------------------------
  193. DROP SEQUENCE IF EXISTS "pay_merchant_seq";
  194. CREATE SEQUENCE "pay_merchant_seq"
  195. INCREMENT 1
  196. MAXVALUE 9223372036854775807
  197. CACHE 1;
  198. -- ----------------------------
  199. -- Sequence structure for pay_notify_log_seq
  200. -- ----------------------------
  201. DROP SEQUENCE IF EXISTS "pay_notify_log_seq";
  202. CREATE SEQUENCE "pay_notify_log_seq"
  203. INCREMENT 1
  204. MAXVALUE 9223372036854775807
  205. CACHE 1;
  206. -- ----------------------------
  207. -- Sequence structure for pay_notify_task_seq
  208. -- ----------------------------
  209. DROP SEQUENCE IF EXISTS "pay_notify_task_seq";
  210. CREATE SEQUENCE "pay_notify_task_seq"
  211. INCREMENT 1
  212. MAXVALUE 9223372036854775807
  213. CACHE 1;
  214. -- ----------------------------
  215. -- Sequence structure for pay_order_extension_seq
  216. -- ----------------------------
  217. DROP SEQUENCE IF EXISTS "pay_order_extension_seq";
  218. CREATE SEQUENCE "pay_order_extension_seq"
  219. INCREMENT 1
  220. MAXVALUE 9223372036854775807
  221. CACHE 1;
  222. -- ----------------------------
  223. -- Sequence structure for pay_order_seq
  224. -- ----------------------------
  225. DROP SEQUENCE IF EXISTS "pay_order_seq";
  226. CREATE SEQUENCE "pay_order_seq"
  227. INCREMENT 1
  228. MAXVALUE 9223372036854775807
  229. CACHE 1;
  230. -- ----------------------------
  231. -- Sequence structure for pay_refund_seq
  232. -- ----------------------------
  233. DROP SEQUENCE IF EXISTS "pay_refund_seq";
  234. CREATE SEQUENCE "pay_refund_seq"
  235. INCREMENT 1
  236. MAXVALUE 9223372036854775807
  237. CACHE 1;
  238. -- ----------------------------
  239. -- Sequence structure for system_dept_seq
  240. -- ----------------------------
  241. DROP SEQUENCE IF EXISTS "system_dept_seq";
  242. CREATE SEQUENCE "system_dept_seq"
  243. INCREMENT 1
  244. MAXVALUE 9223372036854775807
  245. CACHE 1;
  246. -- ----------------------------
  247. -- Sequence structure for system_dict_data_seq
  248. -- ----------------------------
  249. DROP SEQUENCE IF EXISTS "system_dict_data_seq";
  250. CREATE SEQUENCE "system_dict_data_seq"
  251. INCREMENT 1
  252. MAXVALUE 9223372036854775807
  253. CACHE 1;
  254. -- ----------------------------
  255. -- Sequence structure for system_dict_type_seq
  256. -- ----------------------------
  257. DROP SEQUENCE IF EXISTS "system_dict_type_seq";
  258. CREATE SEQUENCE "system_dict_type_seq"
  259. INCREMENT 1
  260. MAXVALUE 9223372036854775807
  261. CACHE 1;
  262. -- ----------------------------
  263. -- Sequence structure for system_error_code_seq
  264. -- ----------------------------
  265. DROP SEQUENCE IF EXISTS "system_error_code_seq";
  266. CREATE SEQUENCE "system_error_code_seq"
  267. INCREMENT 1
  268. MAXVALUE 9223372036854775807
  269. CACHE 1;
  270. -- ----------------------------
  271. -- Sequence structure for system_login_log_seq
  272. -- ----------------------------
  273. DROP SEQUENCE IF EXISTS "system_login_log_seq";
  274. CREATE SEQUENCE "system_login_log_seq"
  275. INCREMENT 1
  276. MAXVALUE 9223372036854775807
  277. CACHE 1;
  278. -- ----------------------------
  279. -- Sequence structure for system_menu_seq
  280. -- ----------------------------
  281. DROP SEQUENCE IF EXISTS "system_menu_seq";
  282. CREATE SEQUENCE "system_menu_seq"
  283. INCREMENT 1
  284. MAXVALUE 9223372036854775807
  285. CACHE 1;
  286. -- ----------------------------
  287. -- Sequence structure for system_notice_seq
  288. -- ----------------------------
  289. DROP SEQUENCE IF EXISTS "system_notice_seq";
  290. CREATE SEQUENCE "system_notice_seq"
  291. INCREMENT 1
  292. MAXVALUE 9223372036854775807
  293. CACHE 1;
  294. -- ----------------------------
  295. -- Sequence structure for system_oauth2_access_token_seq
  296. -- ----------------------------
  297. DROP SEQUENCE IF EXISTS "system_oauth2_access_token_seq";
  298. CREATE SEQUENCE "system_oauth2_access_token_seq"
  299. INCREMENT 1
  300. MINVALUE 1
  301. MAXVALUE 9223372036854775807
  302. START 1
  303. CACHE 1;
  304. -- ----------------------------
  305. -- Sequence structure for system_oauth2_approve_seq
  306. -- ----------------------------
  307. DROP SEQUENCE IF EXISTS "system_oauth2_approve_seq";
  308. CREATE SEQUENCE "system_oauth2_approve_seq"
  309. INCREMENT 1
  310. MINVALUE 1
  311. MAXVALUE 9223372036854775807
  312. START 1
  313. CACHE 1;
  314. -- ----------------------------
  315. -- Sequence structure for system_oauth2_client_seq
  316. -- ----------------------------
  317. DROP SEQUENCE IF EXISTS "system_oauth2_client_seq";
  318. CREATE SEQUENCE "system_oauth2_client_seq"
  319. INCREMENT 1
  320. MINVALUE 1
  321. MAXVALUE 9223372036854775807
  322. START 1
  323. CACHE 1;
  324. -- ----------------------------
  325. -- Sequence structure for system_oauth2_code_seq
  326. -- ----------------------------
  327. DROP SEQUENCE IF EXISTS "system_oauth2_code_seq";
  328. CREATE SEQUENCE "system_oauth2_code_seq"
  329. INCREMENT 1
  330. MINVALUE 1
  331. MAXVALUE 9223372036854775807
  332. START 1
  333. CACHE 1;
  334. -- ----------------------------
  335. -- Sequence structure for system_oauth2_refresh_token_seq
  336. -- ----------------------------
  337. DROP SEQUENCE IF EXISTS "system_oauth2_refresh_token_seq";
  338. CREATE SEQUENCE "system_oauth2_refresh_token_seq"
  339. INCREMENT 1
  340. MINVALUE 1
  341. MAXVALUE 9223372036854775807
  342. START 1
  343. CACHE 1;
  344. -- ----------------------------
  345. -- Sequence structure for system_operate_log_seq
  346. -- ----------------------------
  347. DROP SEQUENCE IF EXISTS "system_operate_log_seq";
  348. CREATE SEQUENCE "system_operate_log_seq"
  349. INCREMENT 1
  350. MAXVALUE 9223372036854775807
  351. CACHE 1;
  352. -- ----------------------------
  353. -- Sequence structure for system_post_seq
  354. -- ----------------------------
  355. DROP SEQUENCE IF EXISTS "system_post_seq";
  356. CREATE SEQUENCE "system_post_seq"
  357. INCREMENT 1
  358. MAXVALUE 9223372036854775807
  359. CACHE 1;
  360. -- ----------------------------
  361. -- Sequence structure for system_role_menu_seq
  362. -- ----------------------------
  363. DROP SEQUENCE IF EXISTS "system_role_menu_seq";
  364. CREATE SEQUENCE "system_role_menu_seq"
  365. INCREMENT 1
  366. MAXVALUE 9223372036854775807
  367. CACHE 1;
  368. -- ----------------------------
  369. -- Sequence structure for system_role_seq
  370. -- ----------------------------
  371. DROP SEQUENCE IF EXISTS "system_role_seq";
  372. CREATE SEQUENCE "system_role_seq"
  373. INCREMENT 1
  374. MAXVALUE 9223372036854775807
  375. CACHE 1;
  376. -- ----------------------------
  377. -- Sequence structure for system_sensitive_word_seq
  378. -- ----------------------------
  379. DROP SEQUENCE IF EXISTS "system_sensitive_word_seq";
  380. CREATE SEQUENCE "system_sensitive_word_seq"
  381. INCREMENT 1
  382. MAXVALUE 9223372036854775807
  383. CACHE 1;
  384. -- ----------------------------
  385. -- Sequence structure for system_sms_channel_seq
  386. -- ----------------------------
  387. DROP SEQUENCE IF EXISTS "system_sms_channel_seq";
  388. CREATE SEQUENCE "system_sms_channel_seq"
  389. INCREMENT 1
  390. MAXVALUE 9223372036854775807
  391. CACHE 1;
  392. -- ----------------------------
  393. -- Sequence structure for system_sms_code_seq
  394. -- ----------------------------
  395. DROP SEQUENCE IF EXISTS "system_sms_code_seq";
  396. CREATE SEQUENCE "system_sms_code_seq"
  397. INCREMENT 1
  398. MAXVALUE 9223372036854775807
  399. CACHE 1;
  400. -- ----------------------------
  401. -- Sequence structure for system_sms_log_seq
  402. -- ----------------------------
  403. DROP SEQUENCE IF EXISTS "system_sms_log_seq";
  404. CREATE SEQUENCE "system_sms_log_seq"
  405. INCREMENT 1
  406. MAXVALUE 9223372036854775807
  407. CACHE 1;
  408. -- ----------------------------
  409. -- Sequence structure for system_sms_template_seq
  410. -- ----------------------------
  411. DROP SEQUENCE IF EXISTS "system_sms_template_seq";
  412. CREATE SEQUENCE "system_sms_template_seq"
  413. INCREMENT 1
  414. MAXVALUE 9223372036854775807
  415. CACHE 1;
  416. -- ----------------------------
  417. -- Sequence structure for system_social_user_bind_seq
  418. -- ----------------------------
  419. DROP SEQUENCE IF EXISTS "system_social_user_bind_seq";
  420. CREATE SEQUENCE "system_social_user_bind_seq"
  421. INCREMENT 1
  422. MAXVALUE 9223372036854775807
  423. CACHE 1;
  424. -- ----------------------------
  425. -- Sequence structure for system_social_user_seq
  426. -- ----------------------------
  427. DROP SEQUENCE IF EXISTS "system_social_user_seq";
  428. CREATE SEQUENCE "system_social_user_seq"
  429. INCREMENT 1
  430. MAXVALUE 9223372036854775807
  431. CACHE 1;
  432. -- ----------------------------
  433. -- Sequence structure for system_tenant_package_seq
  434. -- ----------------------------
  435. DROP SEQUENCE IF EXISTS "system_tenant_package_seq";
  436. CREATE SEQUENCE "system_tenant_package_seq"
  437. INCREMENT 1
  438. MAXVALUE 9223372036854775807
  439. CACHE 1;
  440. -- ----------------------------
  441. -- Sequence structure for system_tenant_seq
  442. -- ----------------------------
  443. DROP SEQUENCE IF EXISTS "system_tenant_seq";
  444. CREATE SEQUENCE "system_tenant_seq"
  445. INCREMENT 1
  446. MAXVALUE 9223372036854775807
  447. CACHE 1;
  448. -- ----------------------------
  449. -- Sequence structure for system_user_post_seq
  450. -- ----------------------------
  451. DROP SEQUENCE IF EXISTS "system_user_post_seq";
  452. CREATE SEQUENCE "system_user_post_seq"
  453. INCREMENT 1
  454. MAXVALUE 9223372036854775807
  455. CACHE 1;
  456. -- ----------------------------
  457. -- Sequence structure for system_user_role_seq
  458. -- ----------------------------
  459. DROP SEQUENCE IF EXISTS "system_user_role_seq";
  460. CREATE SEQUENCE "system_user_role_seq"
  461. INCREMENT 1
  462. MAXVALUE 9223372036854775807
  463. CACHE 1;
  464. -- ----------------------------
  465. -- Sequence structure for system_user_seq
  466. -- ----------------------------
  467. DROP SEQUENCE IF EXISTS "system_user_seq";
  468. CREATE SEQUENCE "system_user_seq"
  469. INCREMENT 1
  470. MAXVALUE 9223372036854775807
  471. CACHE 1;
  472. -- ----------------------------
  473. -- Sequence structure for system_mail_account_seq
  474. -- ----------------------------
  475. DROP SEQUENCE IF EXISTS "system_mail_account_seq";
  476. CREATE SEQUENCE "system_mail_account_seq"
  477. INCREMENT 1
  478. MAXVALUE 9223372036854775807
  479. CACHE 1;
  480. -- ----------------------------
  481. -- Sequence structure for system_mail_log_seq
  482. -- ----------------------------
  483. DROP SEQUENCE IF EXISTS "system_mail_log_seq";
  484. CREATE SEQUENCE "system_mail_log_seq"
  485. INCREMENT 1
  486. MAXVALUE 9223372036854775807
  487. CACHE 1;
  488. -- ----------------------------
  489. -- Sequence structure for system_mail_template_seq
  490. -- ----------------------------
  491. DROP SEQUENCE IF EXISTS "system_mail_template_seq";
  492. CREATE SEQUENCE "system_mail_template_seq"
  493. INCREMENT 1
  494. MAXVALUE 9223372036854775807
  495. CACHE 1;
  496. -- ----------------------------
  497. -- Sequence structure for system_notify_message_seq
  498. -- ----------------------------
  499. DROP SEQUENCE IF EXISTS "system_notify_message_seq";
  500. CREATE SEQUENCE "system_notify_message_seq"
  501. INCREMENT 1
  502. MAXVALUE 9223372036854775807
  503. CACHE 1;
  504. -- ----------------------------
  505. -- Sequence structure for system_notify_template_seq
  506. -- ----------------------------
  507. DROP SEQUENCE IF EXISTS "system_notify_template_seq";
  508. CREATE SEQUENCE "system_notify_template_seq"
  509. INCREMENT 1
  510. MAXVALUE 9223372036854775807
  511. CACHE 1;
  512. -- ----------------------------
  513. -- Sequence structure for system_user_session_seq
  514. -- ----------------------------
  515. DROP SEQUENCE IF EXISTS "system_user_session_seq";
  516. CREATE SEQUENCE "system_user_session_seq"
  517. INCREMENT 1
  518. MAXVALUE 9223372036854775807
  519. CACHE 1;
  520. -- ----------------------------
  521. -- Table structure for bpm_form
  522. -- ----------------------------
  523. DROP TABLE IF EXISTS "bpm_form";
  524. CREATE TABLE "bpm_form" (
  525. "id" int8 NOT NULL,
  526. "name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  527. "status" int2 NOT NULL,
  528. "conf" varchar(1000) COLLATE "pg_catalog"."default" NOT NULL,
  529. "fields" varchar(5000) COLLATE "pg_catalog"."default" NOT NULL,
  530. "remark" varchar(255) COLLATE "pg_catalog"."default",
  531. "creator" varchar(64) COLLATE "pg_catalog"."default",
  532. "create_time" timestamp(6) NOT NULL,
  533. "updater" varchar(64) COLLATE "pg_catalog"."default",
  534. "update_time" timestamp(6) NOT NULL,
  535. "deleted" int2 NOT NULL DEFAULT 0,
  536. "tenant_id" int8 NOT NULL DEFAULT 0
  537. )
  538. ;
  539. COMMENT ON COLUMN "bpm_form"."id" IS '编号';
  540. COMMENT ON COLUMN "bpm_form"."name" IS '表单名';
  541. COMMENT ON COLUMN "bpm_form"."status" IS '开启状态';
  542. COMMENT ON COLUMN "bpm_form"."conf" IS '表单的配置';
  543. COMMENT ON COLUMN "bpm_form"."fields" IS '表单项的数组';
  544. COMMENT ON COLUMN "bpm_form"."remark" IS '备注';
  545. COMMENT ON COLUMN "bpm_form"."creator" IS '创建者';
  546. COMMENT ON COLUMN "bpm_form"."create_time" IS '创建时间';
  547. COMMENT ON COLUMN "bpm_form"."updater" IS '更新者';
  548. COMMENT ON COLUMN "bpm_form"."update_time" IS '更新时间';
  549. COMMENT ON COLUMN "bpm_form"."deleted" IS '是否删除';
  550. COMMENT ON COLUMN "bpm_form"."tenant_id" IS '租户编号';
  551. COMMENT ON TABLE "bpm_form" IS '工作流的表单定义';
  552. -- ----------------------------
  553. -- Records of bpm_form
  554. -- ----------------------------
  555. BEGIN;
  556. COMMIT;
  557. -- ----------------------------
  558. -- Table structure for bpm_oa_leave
  559. -- ----------------------------
  560. DROP TABLE IF EXISTS "bpm_oa_leave";
  561. CREATE TABLE "bpm_oa_leave" (
  562. "id" int8 NOT NULL,
  563. "user_id" int8 NOT NULL,
  564. "type" int2 NOT NULL,
  565. "reason" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  566. "start_time" timestamp(6) NOT NULL,
  567. "end_time" timestamp(6) NOT NULL,
  568. "day" int2 NOT NULL,
  569. "result" int2 NOT NULL,
  570. "process_instance_id" varchar(64) COLLATE "pg_catalog"."default",
  571. "creator" varchar(64) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  572. "create_time" timestamp(6) NOT NULL,
  573. "updater" varchar(64) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  574. "update_time" timestamp(6) NOT NULL,
  575. "deleted" int2 NOT NULL DEFAULT 0,
  576. "tenant_id" int8 NOT NULL DEFAULT 0
  577. )
  578. ;
  579. COMMENT ON COLUMN "bpm_oa_leave"."id" IS '请假表单主键';
  580. COMMENT ON COLUMN "bpm_oa_leave"."user_id" IS '申请人的用户编号';
  581. COMMENT ON COLUMN "bpm_oa_leave"."type" IS '请假类型';
  582. COMMENT ON COLUMN "bpm_oa_leave"."reason" IS '请假原因';
  583. COMMENT ON COLUMN "bpm_oa_leave"."start_time" IS '开始时间';
  584. COMMENT ON COLUMN "bpm_oa_leave"."end_time" IS '结束时间';
  585. COMMENT ON COLUMN "bpm_oa_leave"."day" IS '请假天数';
  586. COMMENT ON COLUMN "bpm_oa_leave"."result" IS '请假结果';
  587. COMMENT ON COLUMN "bpm_oa_leave"."process_instance_id" IS '流程实例的编号';
  588. COMMENT ON COLUMN "bpm_oa_leave"."creator" IS '创建者';
  589. COMMENT ON COLUMN "bpm_oa_leave"."create_time" IS '创建时间';
  590. COMMENT ON COLUMN "bpm_oa_leave"."updater" IS '更新者';
  591. COMMENT ON COLUMN "bpm_oa_leave"."update_time" IS '更新时间';
  592. COMMENT ON COLUMN "bpm_oa_leave"."deleted" IS '是否删除';
  593. COMMENT ON COLUMN "bpm_oa_leave"."tenant_id" IS '租户编号';
  594. COMMENT ON TABLE "bpm_oa_leave" IS 'OA 请假申请表';
  595. -- ----------------------------
  596. -- Records of bpm_oa_leave
  597. -- ----------------------------
  598. BEGIN;
  599. COMMIT;
  600. -- ----------------------------
  601. -- Table structure for bpm_process_definition_ext
  602. -- ----------------------------
  603. DROP TABLE IF EXISTS "bpm_process_definition_ext";
  604. CREATE TABLE "bpm_process_definition_ext" (
  605. "id" int8 NOT NULL,
  606. "process_definition_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  607. "model_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  608. "description" varchar(255) COLLATE "pg_catalog"."default",
  609. "form_type" int2 NOT NULL,
  610. "form_id" int8,
  611. "form_conf" varchar(1000) COLLATE "pg_catalog"."default",
  612. "form_fields" varchar(5000) COLLATE "pg_catalog"."default",
  613. "form_custom_create_path" varchar(255) COLLATE "pg_catalog"."default",
  614. "form_custom_view_path" varchar(255) COLLATE "pg_catalog"."default",
  615. "creator" varchar(64) COLLATE "pg_catalog"."default",
  616. "create_time" timestamp(6) NOT NULL,
  617. "updater" varchar(64) COLLATE "pg_catalog"."default",
  618. "update_time" timestamp(6) NOT NULL,
  619. "deleted" int2 NOT NULL DEFAULT 0,
  620. "tenant_id" int8 NOT NULL DEFAULT 0
  621. )
  622. ;
  623. COMMENT ON COLUMN "bpm_process_definition_ext"."id" IS '编号';
  624. COMMENT ON COLUMN "bpm_process_definition_ext"."process_definition_id" IS '流程定义的编号';
  625. COMMENT ON COLUMN "bpm_process_definition_ext"."model_id" IS '流程模型的编号';
  626. COMMENT ON COLUMN "bpm_process_definition_ext"."description" IS '描述';
  627. COMMENT ON COLUMN "bpm_process_definition_ext"."form_type" IS '表单类型';
  628. COMMENT ON COLUMN "bpm_process_definition_ext"."form_id" IS '表单编号';
  629. COMMENT ON COLUMN "bpm_process_definition_ext"."form_conf" IS '表单的配置';
  630. COMMENT ON COLUMN "bpm_process_definition_ext"."form_fields" IS '表单项的数组';
  631. COMMENT ON COLUMN "bpm_process_definition_ext"."form_custom_create_path" IS '自定义表单的提交路径';
  632. COMMENT ON COLUMN "bpm_process_definition_ext"."form_custom_view_path" IS '自定义表单的查看路径';
  633. COMMENT ON COLUMN "bpm_process_definition_ext"."creator" IS '创建者';
  634. COMMENT ON COLUMN "bpm_process_definition_ext"."create_time" IS '创建时间';
  635. COMMENT ON COLUMN "bpm_process_definition_ext"."updater" IS '更新者';
  636. COMMENT ON COLUMN "bpm_process_definition_ext"."update_time" IS '更新时间';
  637. COMMENT ON COLUMN "bpm_process_definition_ext"."deleted" IS '是否删除';
  638. COMMENT ON COLUMN "bpm_process_definition_ext"."tenant_id" IS '租户编号';
  639. COMMENT ON TABLE "bpm_process_definition_ext" IS 'Bpm 流程定义的拓展表
  640. ';
  641. -- ----------------------------
  642. -- Records of bpm_process_definition_ext
  643. -- ----------------------------
  644. BEGIN;
  645. COMMIT;
  646. -- ----------------------------
  647. -- Table structure for bpm_process_instance_ext
  648. -- ----------------------------
  649. DROP TABLE IF EXISTS "bpm_process_instance_ext";
  650. CREATE TABLE "bpm_process_instance_ext" (
  651. "id" int8 NOT NULL,
  652. "start_user_id" int8 NOT NULL,
  653. "name" varchar(64) COLLATE "pg_catalog"."default",
  654. "process_instance_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  655. "process_definition_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  656. "category" varchar(64) COLLATE "pg_catalog"."default",
  657. "status" int2 NOT NULL,
  658. "result" int2 NOT NULL,
  659. "end_time" timestamp(6),
  660. "form_variables" varchar(5000) COLLATE "pg_catalog"."default",
  661. "creator" varchar(64) COLLATE "pg_catalog"."default",
  662. "create_time" timestamp(6) NOT NULL,
  663. "updater" varchar(64) COLLATE "pg_catalog"."default",
  664. "update_time" timestamp(6) NOT NULL,
  665. "deleted" int2 NOT NULL DEFAULT 0,
  666. "tenant_id" int8 NOT NULL DEFAULT 0
  667. )
  668. ;
  669. COMMENT ON COLUMN "bpm_process_instance_ext"."id" IS '编号';
  670. COMMENT ON COLUMN "bpm_process_instance_ext"."start_user_id" IS '发起流程的用户编号';
  671. COMMENT ON COLUMN "bpm_process_instance_ext"."name" IS '流程实例的名字';
  672. COMMENT ON COLUMN "bpm_process_instance_ext"."process_instance_id" IS '流程实例的编号';
  673. COMMENT ON COLUMN "bpm_process_instance_ext"."process_definition_id" IS '流程定义的编号';
  674. COMMENT ON COLUMN "bpm_process_instance_ext"."category" IS '流程分类';
  675. COMMENT ON COLUMN "bpm_process_instance_ext"."status" IS '流程实例的状态';
  676. COMMENT ON COLUMN "bpm_process_instance_ext"."result" IS '流程实例的结果';
  677. COMMENT ON COLUMN "bpm_process_instance_ext"."end_time" IS '结束时间';
  678. COMMENT ON COLUMN "bpm_process_instance_ext"."form_variables" IS '表单值';
  679. COMMENT ON COLUMN "bpm_process_instance_ext"."creator" IS '创建者';
  680. COMMENT ON COLUMN "bpm_process_instance_ext"."create_time" IS '创建时间';
  681. COMMENT ON COLUMN "bpm_process_instance_ext"."updater" IS '更新者';
  682. COMMENT ON COLUMN "bpm_process_instance_ext"."update_time" IS '更新时间';
  683. COMMENT ON COLUMN "bpm_process_instance_ext"."deleted" IS '是否删除';
  684. COMMENT ON COLUMN "bpm_process_instance_ext"."tenant_id" IS '租户编号';
  685. COMMENT ON TABLE "bpm_process_instance_ext" IS '工作流的流程实例的拓展';
  686. -- ----------------------------
  687. -- Records of bpm_process_instance_ext
  688. -- ----------------------------
  689. BEGIN;
  690. COMMIT;
  691. -- ----------------------------
  692. -- Table structure for bpm_task_assign_rule
  693. -- ----------------------------
  694. DROP TABLE IF EXISTS "bpm_task_assign_rule";
  695. CREATE TABLE "bpm_task_assign_rule" (
  696. "id" int8 NOT NULL,
  697. "model_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  698. "process_definition_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  699. "task_definition_key" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  700. "type" int2 NOT NULL,
  701. "options" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  702. "creator" varchar(64) COLLATE "pg_catalog"."default",
  703. "create_time" timestamp(6) NOT NULL,
  704. "updater" varchar(64) COLLATE "pg_catalog"."default",
  705. "update_time" timestamp(6) NOT NULL,
  706. "deleted" int2 NOT NULL DEFAULT 0,
  707. "tenant_id" int8 NOT NULL DEFAULT 0
  708. )
  709. ;
  710. COMMENT ON COLUMN "bpm_task_assign_rule"."id" IS '编号';
  711. COMMENT ON COLUMN "bpm_task_assign_rule"."model_id" IS '流程模型的编号';
  712. COMMENT ON COLUMN "bpm_task_assign_rule"."process_definition_id" IS '流程定义的编号';
  713. COMMENT ON COLUMN "bpm_task_assign_rule"."task_definition_key" IS '流程任务定义的 key';
  714. COMMENT ON COLUMN "bpm_task_assign_rule"."type" IS '规则类型';
  715. COMMENT ON COLUMN "bpm_task_assign_rule"."options" IS '规则值,JSON 数组';
  716. COMMENT ON COLUMN "bpm_task_assign_rule"."creator" IS '创建者';
  717. COMMENT ON COLUMN "bpm_task_assign_rule"."create_time" IS '创建时间';
  718. COMMENT ON COLUMN "bpm_task_assign_rule"."updater" IS '更新者';
  719. COMMENT ON COLUMN "bpm_task_assign_rule"."update_time" IS '更新时间';
  720. COMMENT ON COLUMN "bpm_task_assign_rule"."deleted" IS '是否删除';
  721. COMMENT ON COLUMN "bpm_task_assign_rule"."tenant_id" IS '租户编号';
  722. COMMENT ON TABLE "bpm_task_assign_rule" IS 'Bpm 任务规则表';
  723. -- ----------------------------
  724. -- Records of bpm_task_assign_rule
  725. -- ----------------------------
  726. BEGIN;
  727. COMMIT;
  728. -- ----------------------------
  729. -- Table structure for bpm_task_ext
  730. -- ----------------------------
  731. DROP TABLE IF EXISTS "bpm_task_ext";
  732. CREATE TABLE "bpm_task_ext" (
  733. "id" int8 NOT NULL,
  734. "assignee_user_id" int8,
  735. "name" varchar(64) COLLATE "pg_catalog"."default",
  736. "task_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  737. "result" int2 NOT NULL,
  738. "reason" varchar(255) COLLATE "pg_catalog"."default",
  739. "end_time" timestamp(6),
  740. "process_instance_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  741. "process_definition_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  742. "creator" varchar(64) COLLATE "pg_catalog"."default",
  743. "create_time" timestamp(6) NOT NULL,
  744. "updater" varchar(64) COLLATE "pg_catalog"."default",
  745. "update_time" timestamp(6) NOT NULL,
  746. "deleted" int2 NOT NULL DEFAULT 0,
  747. "tenant_id" int8 NOT NULL DEFAULT 0
  748. )
  749. ;
  750. COMMENT ON COLUMN "bpm_task_ext"."id" IS '编号';
  751. COMMENT ON COLUMN "bpm_task_ext"."assignee_user_id" IS '任务的审批人';
  752. COMMENT ON COLUMN "bpm_task_ext"."name" IS '任务的名字';
  753. COMMENT ON COLUMN "bpm_task_ext"."task_id" IS '任务的编号';
  754. COMMENT ON COLUMN "bpm_task_ext"."result" IS '任务的结果';
  755. COMMENT ON COLUMN "bpm_task_ext"."reason" IS '审批建议';
  756. COMMENT ON COLUMN "bpm_task_ext"."end_time" IS '任务的结束时间';
  757. COMMENT ON COLUMN "bpm_task_ext"."process_instance_id" IS '流程实例的编号';
  758. COMMENT ON COLUMN "bpm_task_ext"."process_definition_id" IS '流程定义的编号';
  759. COMMENT ON COLUMN "bpm_task_ext"."creator" IS '创建者';
  760. COMMENT ON COLUMN "bpm_task_ext"."create_time" IS '创建时间';
  761. COMMENT ON COLUMN "bpm_task_ext"."updater" IS '更新者';
  762. COMMENT ON COLUMN "bpm_task_ext"."update_time" IS '更新时间';
  763. COMMENT ON COLUMN "bpm_task_ext"."deleted" IS '是否删除';
  764. COMMENT ON COLUMN "bpm_task_ext"."tenant_id" IS '租户编号';
  765. COMMENT ON TABLE "bpm_task_ext" IS '工作流的流程任务的拓展表';
  766. -- ----------------------------
  767. -- Records of bpm_task_ext
  768. -- ----------------------------
  769. BEGIN;
  770. COMMIT;
  771. -- ----------------------------
  772. -- Table structure for bpm_user_group
  773. -- ----------------------------
  774. DROP TABLE IF EXISTS "bpm_user_group";
  775. CREATE TABLE "bpm_user_group" (
  776. "id" int8 NOT NULL,
  777. "name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  778. "description" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  779. "member_user_ids" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  780. "status" int2 NOT NULL,
  781. "creator" varchar(64) COLLATE "pg_catalog"."default",
  782. "create_time" timestamp(6) NOT NULL,
  783. "updater" varchar(64) COLLATE "pg_catalog"."default",
  784. "update_time" timestamp(6) NOT NULL,
  785. "deleted" int2 NOT NULL DEFAULT 0,
  786. "tenant_id" int8 NOT NULL DEFAULT 0
  787. )
  788. ;
  789. COMMENT ON COLUMN "bpm_user_group"."id" IS '编号';
  790. COMMENT ON COLUMN "bpm_user_group"."name" IS '组名';
  791. COMMENT ON COLUMN "bpm_user_group"."description" IS '描述';
  792. COMMENT ON COLUMN "bpm_user_group"."member_user_ids" IS '成员编号数组';
  793. COMMENT ON COLUMN "bpm_user_group"."status" IS '状态(0正常 1停用)';
  794. COMMENT ON COLUMN "bpm_user_group"."creator" IS '创建者';
  795. COMMENT ON COLUMN "bpm_user_group"."create_time" IS '创建时间';
  796. COMMENT ON COLUMN "bpm_user_group"."updater" IS '更新者';
  797. COMMENT ON COLUMN "bpm_user_group"."update_time" IS '更新时间';
  798. COMMENT ON COLUMN "bpm_user_group"."deleted" IS '是否删除';
  799. COMMENT ON COLUMN "bpm_user_group"."tenant_id" IS '租户编号';
  800. COMMENT ON TABLE "bpm_user_group" IS '用户组';
  801. -- ----------------------------
  802. -- Records of bpm_user_group
  803. -- ----------------------------
  804. BEGIN;
  805. COMMIT;
  806. -- ----------------------------
  807. -- Table structure for dual
  808. -- ----------------------------
  809. DROP TABLE IF EXISTS "dual";
  810. CREATE TABLE "dual" (
  811. )
  812. ;
  813. -- ----------------------------
  814. -- Records of dual
  815. -- ----------------------------
  816. BEGIN;
  817. COMMIT;
  818. -- ----------------------------
  819. -- Table structure for infra_api_access_log
  820. -- ----------------------------
  821. DROP TABLE IF EXISTS "infra_api_access_log";
  822. CREATE TABLE "infra_api_access_log" (
  823. "id" int8 NOT NULL,
  824. "trace_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  825. "user_id" int8 NOT NULL DEFAULT 0,
  826. "user_type" int2 NOT NULL DEFAULT 0,
  827. "application_name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  828. "request_method" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  829. "request_url" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  830. "request_params" varchar(8000) COLLATE "pg_catalog"."default" NOT NULL,
  831. "user_ip" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  832. "user_agent" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  833. "begin_time" timestamp(6) NOT NULL,
  834. "end_time" timestamp(6) NOT NULL,
  835. "duration" int4 NOT NULL,
  836. "result_code" int4 NOT NULL,
  837. "result_msg" varchar(512) COLLATE "pg_catalog"."default",
  838. "creator" varchar(64) COLLATE "pg_catalog"."default",
  839. "create_time" timestamp(6) NOT NULL,
  840. "updater" varchar(64) COLLATE "pg_catalog"."default",
  841. "update_time" timestamp(6) NOT NULL,
  842. "deleted" int2 NOT NULL DEFAULT 0,
  843. "tenant_id" int8 NOT NULL DEFAULT 0
  844. )
  845. ;
  846. COMMENT ON COLUMN "infra_api_access_log"."id" IS '日志主键';
  847. COMMENT ON COLUMN "infra_api_access_log"."trace_id" IS '链路追踪编号';
  848. COMMENT ON COLUMN "infra_api_access_log"."user_id" IS '用户编号';
  849. COMMENT ON COLUMN "infra_api_access_log"."user_type" IS '用户类型';
  850. COMMENT ON COLUMN "infra_api_access_log"."application_name" IS '应用名';
  851. COMMENT ON COLUMN "infra_api_access_log"."request_method" IS '请求方法名';
  852. COMMENT ON COLUMN "infra_api_access_log"."request_url" IS '请求地址';
  853. COMMENT ON COLUMN "infra_api_access_log"."request_params" IS '请求参数';
  854. COMMENT ON COLUMN "infra_api_access_log"."user_ip" IS '用户 IP';
  855. COMMENT ON COLUMN "infra_api_access_log"."user_agent" IS '浏览器 UA';
  856. COMMENT ON COLUMN "infra_api_access_log"."begin_time" IS '开始请求时间';
  857. COMMENT ON COLUMN "infra_api_access_log"."end_time" IS '结束请求时间';
  858. COMMENT ON COLUMN "infra_api_access_log"."duration" IS '执行时长';
  859. COMMENT ON COLUMN "infra_api_access_log"."result_code" IS '结果码';
  860. COMMENT ON COLUMN "infra_api_access_log"."result_msg" IS '结果提示';
  861. COMMENT ON COLUMN "infra_api_access_log"."creator" IS '创建者';
  862. COMMENT ON COLUMN "infra_api_access_log"."create_time" IS '创建时间';
  863. COMMENT ON COLUMN "infra_api_access_log"."updater" IS '更新者';
  864. COMMENT ON COLUMN "infra_api_access_log"."update_time" IS '更新时间';
  865. COMMENT ON COLUMN "infra_api_access_log"."deleted" IS '是否删除';
  866. COMMENT ON COLUMN "infra_api_access_log"."tenant_id" IS '租户编号';
  867. COMMENT ON TABLE "infra_api_access_log" IS 'API 访问日志表';
  868. -- ----------------------------
  869. -- Records of infra_api_access_log
  870. -- ----------------------------
  871. BEGIN;
  872. COMMIT;
  873. -- ----------------------------
  874. -- Table structure for infra_api_error_log
  875. -- ----------------------------
  876. DROP TABLE IF EXISTS "infra_api_error_log";
  877. CREATE TABLE "infra_api_error_log" (
  878. "id" int4 NOT NULL,
  879. "trace_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  880. "user_id" int4 NOT NULL DEFAULT 0,
  881. "user_type" int2 NOT NULL DEFAULT 0,
  882. "application_name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  883. "request_method" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  884. "request_url" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  885. "request_params" varchar(8000) COLLATE "pg_catalog"."default" NOT NULL,
  886. "user_ip" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  887. "user_agent" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  888. "exception_time" timestamp(6) NOT NULL,
  889. "exception_name" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
  890. "exception_message" text COLLATE "pg_catalog"."default" NOT NULL,
  891. "exception_root_cause_message" text COLLATE "pg_catalog"."default" NOT NULL,
  892. "exception_stack_trace" text COLLATE "pg_catalog"."default" NOT NULL,
  893. "exception_class_name" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  894. "exception_file_name" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  895. "exception_method_name" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  896. "exception_line_number" int4 NOT NULL,
  897. "process_status" int2 NOT NULL,
  898. "process_time" timestamp(6),
  899. "process_user_id" int4,
  900. "creator" varchar(64) COLLATE "pg_catalog"."default",
  901. "create_time" timestamp(6) NOT NULL,
  902. "updater" varchar(64) COLLATE "pg_catalog"."default",
  903. "update_time" timestamp(6) NOT NULL,
  904. "deleted" int2 NOT NULL DEFAULT 0,
  905. "tenant_id" int8 NOT NULL DEFAULT 0
  906. )
  907. ;
  908. COMMENT ON COLUMN "infra_api_error_log"."id" IS '编号';
  909. COMMENT ON COLUMN "infra_api_error_log"."trace_id" IS '链路追踪编号
  910. *
  911. * 一般来说,通过链路追踪编号,可以将访问日志,错误日志,链路追踪日志,logger 打印日志等,结合在一起,从而进行排错。';
  912. COMMENT ON COLUMN "infra_api_error_log"."user_id" IS '用户编号';
  913. COMMENT ON COLUMN "infra_api_error_log"."user_type" IS '用户类型';
  914. COMMENT ON COLUMN "infra_api_error_log"."application_name" IS '应用名
  915. *
  916. * 目前读取 spring.application.name';
  917. COMMENT ON COLUMN "infra_api_error_log"."request_method" IS '请求方法名';
  918. COMMENT ON COLUMN "infra_api_error_log"."request_url" IS '请求地址';
  919. COMMENT ON COLUMN "infra_api_error_log"."request_params" IS '请求参数';
  920. COMMENT ON COLUMN "infra_api_error_log"."user_ip" IS '用户 IP';
  921. COMMENT ON COLUMN "infra_api_error_log"."user_agent" IS '浏览器 UA';
  922. COMMENT ON COLUMN "infra_api_error_log"."exception_time" IS '异常发生时间';
  923. COMMENT ON COLUMN "infra_api_error_log"."exception_name" IS '异常名
  924. *
  925. * {@link Throwable#getClass()} 的类全名';
  926. COMMENT ON COLUMN "infra_api_error_log"."exception_message" IS '异常导致的消息
  927. *
  928. * {@link cn.iocoder.common.framework.util.ExceptionUtil#getMessage(Throwable)}';
  929. COMMENT ON COLUMN "infra_api_error_log"."exception_root_cause_message" IS '异常导致的根消息
  930. *
  931. * {@link cn.iocoder.common.framework.util.ExceptionUtil#getRootCauseMessage(Throwable)}';
  932. COMMENT ON COLUMN "infra_api_error_log"."exception_stack_trace" IS '异常的栈轨迹
  933. *
  934. * {@link cn.iocoder.common.framework.util.ExceptionUtil#getServiceException(Exception)}';
  935. COMMENT ON COLUMN "infra_api_error_log"."exception_class_name" IS '异常发生的类全名
  936. *
  937. * {@link StackTraceElement#getClassName()}';
  938. COMMENT ON COLUMN "infra_api_error_log"."exception_file_name" IS '异常发生的类文件
  939. *
  940. * {@link StackTraceElement#getFileName()}';
  941. COMMENT ON COLUMN "infra_api_error_log"."exception_method_name" IS '异常发生的方法名
  942. *
  943. * {@link StackTraceElement#getMethodName()}';
  944. COMMENT ON COLUMN "infra_api_error_log"."exception_line_number" IS '异常发生的方法所在行
  945. *
  946. * {@link StackTraceElement#getLineNumber()}';
  947. COMMENT ON COLUMN "infra_api_error_log"."process_status" IS '处理状态';
  948. COMMENT ON COLUMN "infra_api_error_log"."process_time" IS '处理时间';
  949. COMMENT ON COLUMN "infra_api_error_log"."process_user_id" IS '处理用户编号';
  950. COMMENT ON COLUMN "infra_api_error_log"."creator" IS '创建者';
  951. COMMENT ON COLUMN "infra_api_error_log"."create_time" IS '创建时间';
  952. COMMENT ON COLUMN "infra_api_error_log"."updater" IS '更新者';
  953. COMMENT ON COLUMN "infra_api_error_log"."update_time" IS '更新时间';
  954. COMMENT ON COLUMN "infra_api_error_log"."deleted" IS '是否删除';
  955. COMMENT ON COLUMN "infra_api_error_log"."tenant_id" IS '租户编号';
  956. COMMENT ON TABLE "infra_api_error_log" IS '系统异常日志';
  957. -- ----------------------------
  958. -- Records of infra_api_error_log
  959. -- ----------------------------
  960. BEGIN;
  961. COMMIT;
  962. -- ----------------------------
  963. -- Table structure for infra_codegen_column
  964. -- ----------------------------
  965. DROP TABLE IF EXISTS "infra_codegen_column";
  966. CREATE TABLE "infra_codegen_column" (
  967. "id" int8 NOT NULL,
  968. "table_id" int8 NOT NULL,
  969. "column_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  970. "data_type" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  971. "column_comment" varchar(500) COLLATE "pg_catalog"."default" NOT NULL,
  972. "nullable" bool NOT NULL,
  973. "primary_key" bool NOT NULL,
  974. "auto_increment" bool NOT NULL,
  975. "ordinal_position" int4 NOT NULL,
  976. "java_type" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  977. "java_field" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  978. "dict_type" varchar(200) COLLATE "pg_catalog"."default",
  979. "example" varchar(255) COLLATE "pg_catalog"."default",
  980. "create_operation" bool NOT NULL,
  981. "update_operation" bool NOT NULL,
  982. "list_operation" bool NOT NULL,
  983. "list_operation_condition" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  984. "list_operation_result" bool NOT NULL,
  985. "html_type" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  986. "creator" varchar(64) COLLATE "pg_catalog"."default",
  987. "create_time" timestamp(6) NOT NULL,
  988. "updater" varchar(64) COLLATE "pg_catalog"."default",
  989. "update_time" timestamp(6) NOT NULL,
  990. "deleted" int2 NOT NULL DEFAULT 0
  991. )
  992. ;
  993. COMMENT ON COLUMN "infra_codegen_column"."id" IS '编号';
  994. COMMENT ON COLUMN "infra_codegen_column"."table_id" IS '表编号';
  995. COMMENT ON COLUMN "infra_codegen_column"."column_name" IS '字段名';
  996. COMMENT ON COLUMN "infra_codegen_column"."data_type" IS '字段类型';
  997. COMMENT ON COLUMN "infra_codegen_column"."column_comment" IS '字段描述';
  998. COMMENT ON COLUMN "infra_codegen_column"."nullable" IS '是否允许为空';
  999. COMMENT ON COLUMN "infra_codegen_column"."primary_key" IS '是否主键';
  1000. COMMENT ON COLUMN "infra_codegen_column"."auto_increment" IS '是否自增';
  1001. COMMENT ON COLUMN "infra_codegen_column"."ordinal_position" IS '排序';
  1002. COMMENT ON COLUMN "infra_codegen_column"."java_type" IS 'Java 属性类型';
  1003. COMMENT ON COLUMN "infra_codegen_column"."java_field" IS 'Java 属性名';
  1004. COMMENT ON COLUMN "infra_codegen_column"."dict_type" IS '字典类型';
  1005. COMMENT ON COLUMN "infra_codegen_column"."example" IS '数据示例';
  1006. COMMENT ON COLUMN "infra_codegen_column"."create_operation" IS '是否为 Create 创建操作的字段';
  1007. COMMENT ON COLUMN "infra_codegen_column"."update_operation" IS '是否为 Update 更新操作的字段';
  1008. COMMENT ON COLUMN "infra_codegen_column"."list_operation" IS '是否为 List 查询操作的字段';
  1009. COMMENT ON COLUMN "infra_codegen_column"."list_operation_condition" IS 'List 查询操作的条件类型';
  1010. COMMENT ON COLUMN "infra_codegen_column"."list_operation_result" IS '是否为 List 查询操作的返回字段';
  1011. COMMENT ON COLUMN "infra_codegen_column"."html_type" IS '显示类型';
  1012. COMMENT ON COLUMN "infra_codegen_column"."creator" IS '创建者';
  1013. COMMENT ON COLUMN "infra_codegen_column"."create_time" IS '创建时间';
  1014. COMMENT ON COLUMN "infra_codegen_column"."updater" IS '更新者';
  1015. COMMENT ON COLUMN "infra_codegen_column"."update_time" IS '更新时间';
  1016. COMMENT ON COLUMN "infra_codegen_column"."deleted" IS '是否删除';
  1017. COMMENT ON TABLE "infra_codegen_column" IS '代码生成表字段定义';
  1018. -- ----------------------------
  1019. -- Records of infra_codegen_column
  1020. -- ----------------------------
  1021. BEGIN;
  1022. COMMIT;
  1023. -- ----------------------------
  1024. -- Table structure for infra_codegen_table
  1025. -- ----------------------------
  1026. DROP TABLE IF EXISTS "infra_codegen_table";
  1027. CREATE TABLE "infra_codegen_table" (
  1028. "id" int8 NOT NULL,
  1029. "data_source_config_id" int8 NOT NULL,
  1030. "scene" int2 NOT NULL,
  1031. "table_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1032. "table_comment" varchar(500) COLLATE "pg_catalog"."default" NOT NULL,
  1033. "remark" varchar(500) COLLATE "pg_catalog"."default",
  1034. "module_name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  1035. "business_name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  1036. "class_name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  1037. "class_comment" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  1038. "author" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  1039. "template_type" int2 NOT NULL,
  1040. "parent_menu_id" int8,
  1041. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1042. "create_time" timestamp(6) NOT NULL,
  1043. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1044. "update_time" timestamp(6) NOT NULL,
  1045. "deleted" int2 NOT NULL DEFAULT 0
  1046. )
  1047. ;
  1048. COMMENT ON COLUMN "infra_codegen_table"."id" IS '编号';
  1049. COMMENT ON COLUMN "infra_codegen_table"."data_source_config_id" IS '数据源配置的编号';
  1050. COMMENT ON COLUMN "infra_codegen_table"."scene" IS '生成场景';
  1051. COMMENT ON COLUMN "infra_codegen_table"."table_name" IS '表名称';
  1052. COMMENT ON COLUMN "infra_codegen_table"."table_comment" IS '表描述';
  1053. COMMENT ON COLUMN "infra_codegen_table"."remark" IS '备注';
  1054. COMMENT ON COLUMN "infra_codegen_table"."module_name" IS '模块名';
  1055. COMMENT ON COLUMN "infra_codegen_table"."business_name" IS '业务名';
  1056. COMMENT ON COLUMN "infra_codegen_table"."class_name" IS '类名称';
  1057. COMMENT ON COLUMN "infra_codegen_table"."class_comment" IS '类描述';
  1058. COMMENT ON COLUMN "infra_codegen_table"."author" IS '作者';
  1059. COMMENT ON COLUMN "infra_codegen_table"."template_type" IS '模板类型';
  1060. COMMENT ON COLUMN "infra_codegen_table"."parent_menu_id" IS '父菜单编号';
  1061. COMMENT ON COLUMN "infra_codegen_table"."creator" IS '创建者';
  1062. COMMENT ON COLUMN "infra_codegen_table"."create_time" IS '创建时间';
  1063. COMMENT ON COLUMN "infra_codegen_table"."updater" IS '更新者';
  1064. COMMENT ON COLUMN "infra_codegen_table"."update_time" IS '更新时间';
  1065. COMMENT ON COLUMN "infra_codegen_table"."deleted" IS '是否删除';
  1066. COMMENT ON TABLE "infra_codegen_table" IS '代码生成表定义';
  1067. -- ----------------------------
  1068. -- Records of infra_codegen_table
  1069. -- ----------------------------
  1070. BEGIN;
  1071. COMMIT;
  1072. -- ----------------------------
  1073. -- Table structure for infra_config
  1074. -- ----------------------------
  1075. DROP TABLE IF EXISTS "infra_config";
  1076. CREATE TABLE "infra_config" (
  1077. "id" int4 NOT NULL,
  1078. "category" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  1079. "type" int2 NOT NULL,
  1080. "name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  1081. "config_key" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  1082. "value" varchar(500) COLLATE "pg_catalog"."default" NOT NULL,
  1083. "visible" varchar(5) COLLATE "pg_catalog"."default" NOT NULL,
  1084. "remark" varchar(500) COLLATE "pg_catalog"."default",
  1085. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1086. "create_time" timestamp(6) NOT NULL,
  1087. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1088. "update_time" timestamp(6) NOT NULL,
  1089. "deleted" int2 NOT NULL DEFAULT 0
  1090. )
  1091. ;
  1092. COMMENT ON COLUMN "infra_config"."id" IS '参数主键';
  1093. COMMENT ON COLUMN "infra_config"."category" IS '参数分组';
  1094. COMMENT ON COLUMN "infra_config"."type" IS '参数类型';
  1095. COMMENT ON COLUMN "infra_config"."name" IS '参数名称';
  1096. COMMENT ON COLUMN "infra_config"."config_key" IS '参数键名';
  1097. COMMENT ON COLUMN "infra_config"."value" IS '参数键值';
  1098. COMMENT ON COLUMN "infra_config"."visible" IS '是否可见';
  1099. COMMENT ON COLUMN "infra_config"."remark" IS '备注';
  1100. COMMENT ON COLUMN "infra_config"."creator" IS '创建者';
  1101. COMMENT ON COLUMN "infra_config"."create_time" IS '创建时间';
  1102. COMMENT ON COLUMN "infra_config"."updater" IS '更新者';
  1103. COMMENT ON COLUMN "infra_config"."update_time" IS '更新时间';
  1104. COMMENT ON COLUMN "infra_config"."deleted" IS '是否删除';
  1105. COMMENT ON TABLE "infra_config" IS '参数配置表';
  1106. -- ----------------------------
  1107. -- Records of infra_config
  1108. -- ----------------------------
  1109. BEGIN;
  1110. INSERT INTO "infra_config" ("id", "category", "type", "name", "config_key", "value", "visible", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1, 'ui', 1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', '0', '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow', 'admin', '2021-01-05 17:03:48', '1', '2022-03-26 23:10:31', 0);
  1111. INSERT INTO "infra_config" ("id", "category", "type", "name", "config_key", "value", "visible", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (2, 'biz', 1, '用户管理-账号初始密码', 'sys.user.init-password', '123456', '0', '初始化密码 123456', 'admin', '2021-01-05 17:03:48', '1', '2022-03-20 02:25:51', 0);
  1112. INSERT INTO "infra_config" ("id", "category", "type", "name", "config_key", "value", "visible", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (3, 'ui', 1, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', '0', '深色主题theme-dark,浅色主题theme-light', 'admin', '2021-01-05 17:03:48', '', '2021-01-19 03:05:21', 0);
  1113. INSERT INTO "infra_config" ("id", "category", "type", "name", "config_key", "value", "visible", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (4, '1', 2, 'xxx', 'demo.test', '10', '0', '5', '', '2021-01-19 03:10:26', '', '2021-01-20 09:25:55', 0);
  1114. INSERT INTO "infra_config" ("id", "category", "type", "name", "config_key", "value", "visible", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (5, 'xxx', 2, 'xxx', 'xxx', 'xxx', '1', 'xxx', '', '2021-02-09 20:06:47', '', '2021-02-09 20:06:47', 0);
  1115. INSERT INTO "infra_config" ("id", "category", "type", "name", "config_key", "value", "visible", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (6, 'biz', 2, '登陆验证码的开关', 'yudao.captcha.enable', 'true', '1', NULL, '1', '2022-02-17 00:03:11', '1', '2022-04-04 12:51:40', 0);
  1116. COMMIT;
  1117. -- ----------------------------
  1118. -- Table structure for infra_data_source_config
  1119. -- ----------------------------
  1120. DROP TABLE IF EXISTS "infra_data_source_config";
  1121. CREATE TABLE "infra_data_source_config" (
  1122. "id" int8 NOT NULL,
  1123. "name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  1124. "url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  1125. "username" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  1126. "password" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  1127. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1128. "create_time" timestamp(6) NOT NULL,
  1129. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1130. "update_time" timestamp(6) NOT NULL,
  1131. "deleted" int2 NOT NULL DEFAULT 0
  1132. )
  1133. ;
  1134. COMMENT ON COLUMN "infra_data_source_config"."id" IS '主键编号';
  1135. COMMENT ON COLUMN "infra_data_source_config"."name" IS '参数名称';
  1136. COMMENT ON COLUMN "infra_data_source_config"."url" IS '数据源连接';
  1137. COMMENT ON COLUMN "infra_data_source_config"."username" IS '用户名';
  1138. COMMENT ON COLUMN "infra_data_source_config"."password" IS '密码';
  1139. COMMENT ON COLUMN "infra_data_source_config"."creator" IS '创建者';
  1140. COMMENT ON COLUMN "infra_data_source_config"."create_time" IS '创建时间';
  1141. COMMENT ON COLUMN "infra_data_source_config"."updater" IS '更新者';
  1142. COMMENT ON COLUMN "infra_data_source_config"."update_time" IS '更新时间';
  1143. COMMENT ON COLUMN "infra_data_source_config"."deleted" IS '是否删除';
  1144. COMMENT ON TABLE "infra_data_source_config" IS '数据源配置表';
  1145. -- ----------------------------
  1146. -- Records of infra_data_source_config
  1147. -- ----------------------------
  1148. BEGIN;
  1149. COMMIT;
  1150. -- ----------------------------
  1151. -- Table structure for infra_file
  1152. -- ----------------------------
  1153. DROP TABLE IF EXISTS "infra_file";
  1154. CREATE TABLE "infra_file" (
  1155. "id" int8 NOT NULL DEFAULT 0,
  1156. "config_id" int8,
  1157. "path" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  1158. "url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  1159. "type" varchar(127) COLLATE "pg_catalog"."default",
  1160. "size" int4 NOT NULL,
  1161. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1162. "create_time" timestamp(6) NOT NULL,
  1163. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1164. "update_time" timestamp(6) NOT NULL,
  1165. "deleted" int2 NOT NULL DEFAULT 0,
  1166. "name" varchar(255) COLLATE "pg_catalog"."default"
  1167. )
  1168. ;
  1169. COMMENT ON COLUMN "infra_file"."id" IS '文件编号';
  1170. COMMENT ON COLUMN "infra_file"."config_id" IS '配置编号';
  1171. COMMENT ON COLUMN "infra_file"."path" IS '文件路径';
  1172. COMMENT ON COLUMN "infra_file"."url" IS '文件 URL';
  1173. COMMENT ON COLUMN "infra_file"."type" IS '文件类型';
  1174. COMMENT ON COLUMN "infra_file"."size" IS '文件大小';
  1175. COMMENT ON COLUMN "infra_file"."creator" IS '创建者';
  1176. COMMENT ON COLUMN "infra_file"."create_time" IS '创建时间';
  1177. COMMENT ON COLUMN "infra_file"."updater" IS '更新者';
  1178. COMMENT ON COLUMN "infra_file"."update_time" IS '更新时间';
  1179. COMMENT ON COLUMN "infra_file"."deleted" IS '是否删除';
  1180. COMMENT ON COLUMN "infra_file"."name" IS '文件名';
  1181. COMMENT ON TABLE "infra_file" IS '文件表';
  1182. -- ----------------------------
  1183. -- Records of infra_file
  1184. -- ----------------------------
  1185. BEGIN;
  1186. COMMIT;
  1187. -- ----------------------------
  1188. -- Table structure for infra_file_config
  1189. -- ----------------------------
  1190. DROP TABLE IF EXISTS "infra_file_config";
  1191. CREATE TABLE "infra_file_config" (
  1192. "id" int8 NOT NULL,
  1193. "name" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  1194. "storage" int2 NOT NULL,
  1195. "remark" varchar(255) COLLATE "pg_catalog"."default",
  1196. "master" bool NOT NULL,
  1197. "config" varchar(4096) COLLATE "pg_catalog"."default" NOT NULL,
  1198. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1199. "create_time" timestamp(6) NOT NULL,
  1200. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1201. "update_time" timestamp(6) NOT NULL,
  1202. "deleted" int2 NOT NULL DEFAULT 0
  1203. )
  1204. ;
  1205. COMMENT ON COLUMN "infra_file_config"."id" IS '编号';
  1206. COMMENT ON COLUMN "infra_file_config"."name" IS '配置名';
  1207. COMMENT ON COLUMN "infra_file_config"."storage" IS '存储器';
  1208. COMMENT ON COLUMN "infra_file_config"."remark" IS '备注';
  1209. COMMENT ON COLUMN "infra_file_config"."master" IS '是否为主配置';
  1210. COMMENT ON COLUMN "infra_file_config"."config" IS '存储配置';
  1211. COMMENT ON COLUMN "infra_file_config"."creator" IS '创建者';
  1212. COMMENT ON COLUMN "infra_file_config"."create_time" IS '创建时间';
  1213. COMMENT ON COLUMN "infra_file_config"."updater" IS '更新者';
  1214. COMMENT ON COLUMN "infra_file_config"."update_time" IS '更新时间';
  1215. COMMENT ON COLUMN "infra_file_config"."deleted" IS '是否删除';
  1216. COMMENT ON TABLE "infra_file_config" IS '文件配置表';
  1217. -- ----------------------------
  1218. -- Records of infra_file_config
  1219. -- ----------------------------
  1220. BEGIN;
  1221. INSERT INTO "infra_file_config" ("id", "name", "storage", "remark", "master", "config", "creator", "create_time", "updater", "update_time", "deleted") VALUES (4, '数据库', 1, '我是数据库', 'f', '{"@class":"cn.iocoder.yudao.framework.file.core.client.db.DBFileClientConfig","domain":"http://127.0.0.1:48080"}', '1', '2022-03-15 23:56:24', '1', '2022-03-26 21:39:26', 0);
  1222. INSERT INTO "infra_file_config" ("id", "name", "storage", "remark", "master", "config", "creator", "create_time", "updater", "update_time", "deleted") VALUES (5, '本地磁盘', 10, '测试下本地存储', 'f', '{"@class":"cn.iocoder.yudao.framework.file.core.client.local.LocalFileClientConfig","basePath":"/Users/yunai/file_test","domain":"http://127.0.0.1:48080"}', '1', '2022-03-15 23:57:00', '1', '2022-03-26 21:39:26', 0);
  1223. INSERT INTO "infra_file_config" ("id", "name", "storage", "remark", "master", "config", "creator", "create_time", "updater", "update_time", "deleted") VALUES (11, 'S3 - 七牛云', 20, NULL, 't', '{"@class":"cn.iocoder.yudao.framework.file.core.client.s3.S3FileClientConfig","endpoint":"s3-cn-south-1.qiniucs.com","domain":"http://test.yudao.iocoder.cn","bucket":"ruoyi-vue-pro","accessKey":"b7yvuhBSAGjmtPhMFcn9iMOxUOY_I06cA_p0ZUx8","accessSecret":"kXM1l5ia1RvSX3QaOEcwI3RLz3Y2rmNszWonKZtP"}', '1', '2022-03-19 18:00:03', '1', '2022-05-26 00:03:47.17', 0);
  1224. COMMIT;
  1225. -- ----------------------------
  1226. -- Table structure for infra_file_content
  1227. -- ----------------------------
  1228. DROP TABLE IF EXISTS "infra_file_content";
  1229. CREATE TABLE "infra_file_content" (
  1230. "id" int8 NOT NULL,
  1231. "config_id" int8 NOT NULL,
  1232. "path" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  1233. "content" bytea NOT NULL,
  1234. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1235. "create_time" timestamp(6) NOT NULL,
  1236. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1237. "update_time" timestamp(6) NOT NULL,
  1238. "deleted" int2 NOT NULL DEFAULT 0
  1239. )
  1240. ;
  1241. COMMENT ON COLUMN "infra_file_content"."id" IS '编号';
  1242. COMMENT ON COLUMN "infra_file_content"."config_id" IS '配置编号';
  1243. COMMENT ON COLUMN "infra_file_content"."path" IS '文件路径';
  1244. COMMENT ON COLUMN "infra_file_content"."content" IS '文件内容';
  1245. COMMENT ON COLUMN "infra_file_content"."creator" IS '创建者';
  1246. COMMENT ON COLUMN "infra_file_content"."create_time" IS '创建时间';
  1247. COMMENT ON COLUMN "infra_file_content"."updater" IS '更新者';
  1248. COMMENT ON COLUMN "infra_file_content"."update_time" IS '更新时间';
  1249. COMMENT ON COLUMN "infra_file_content"."deleted" IS '是否删除';
  1250. COMMENT ON TABLE "infra_file_content" IS '文件表';
  1251. -- ----------------------------
  1252. -- Records of infra_file_content
  1253. -- ----------------------------
  1254. BEGIN;
  1255. COMMIT;
  1256. -- ----------------------------
  1257. -- Table structure for infra_job
  1258. -- ----------------------------
  1259. DROP TABLE IF EXISTS "infra_job";
  1260. CREATE TABLE "infra_job" (
  1261. "id" int8 NOT NULL,
  1262. "name" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  1263. "status" int2 NOT NULL,
  1264. "handler_name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1265. "handler_param" varchar(255) COLLATE "pg_catalog"."default",
  1266. "cron_expression" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  1267. "retry_count" int4 NOT NULL,
  1268. "retry_interval" int4 NOT NULL,
  1269. "monitor_timeout" int4 NOT NULL,
  1270. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1271. "create_time" timestamp(6) NOT NULL,
  1272. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1273. "update_time" timestamp(6) NOT NULL,
  1274. "deleted" int2 NOT NULL DEFAULT 0
  1275. )
  1276. ;
  1277. COMMENT ON COLUMN "infra_job"."id" IS '任务编号';
  1278. COMMENT ON COLUMN "infra_job"."name" IS '任务名称';
  1279. COMMENT ON COLUMN "infra_job"."status" IS '任务状态';
  1280. COMMENT ON COLUMN "infra_job"."handler_name" IS '处理器的名字';
  1281. COMMENT ON COLUMN "infra_job"."handler_param" IS '处理器的参数';
  1282. COMMENT ON COLUMN "infra_job"."cron_expression" IS 'CRON 表达式';
  1283. COMMENT ON COLUMN "infra_job"."retry_count" IS '重试次数';
  1284. COMMENT ON COLUMN "infra_job"."retry_interval" IS '重试间隔';
  1285. COMMENT ON COLUMN "infra_job"."monitor_timeout" IS '监控超时时间';
  1286. COMMENT ON COLUMN "infra_job"."creator" IS '创建者';
  1287. COMMENT ON COLUMN "infra_job"."create_time" IS '创建时间';
  1288. COMMENT ON COLUMN "infra_job"."updater" IS '更新者';
  1289. COMMENT ON COLUMN "infra_job"."update_time" IS '更新时间';
  1290. COMMENT ON COLUMN "infra_job"."deleted" IS '是否删除';
  1291. COMMENT ON TABLE "infra_job" IS '定时任务表';
  1292. -- ----------------------------
  1293. -- Records of infra_job
  1294. -- ----------------------------
  1295. BEGIN;
  1296. INSERT INTO "infra_job" ("id", "name", "status", "handler_name", "handler_param", "cron_expression", "retry_count", "retry_interval", "monitor_timeout", "creator", "create_time", "updater", "update_time", "deleted") VALUES (5, '支付通知 Job', 2, 'payNotifyJob', NULL, '* * * * * ?', 0, 0, 0, '1', '2021-10-27 08:34:42', '1', '2022-04-03 20:35:25', 0);
  1297. COMMIT;
  1298. -- ----------------------------
  1299. -- Table structure for infra_job_log
  1300. -- ----------------------------
  1301. DROP TABLE IF EXISTS "infra_job_log";
  1302. CREATE TABLE "infra_job_log" (
  1303. "id" int8 NOT NULL,
  1304. "job_id" int8 NOT NULL,
  1305. "handler_name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1306. "handler_param" varchar(255) COLLATE "pg_catalog"."default",
  1307. "execute_index" int2 NOT NULL,
  1308. "begin_time" timestamp(6) NOT NULL,
  1309. "end_time" timestamp(6),
  1310. "duration" int4,
  1311. "status" int2 NOT NULL,
  1312. "result" varchar(4000) COLLATE "pg_catalog"."default",
  1313. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1314. "create_time" timestamp(6) NOT NULL,
  1315. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1316. "update_time" timestamp(6) NOT NULL,
  1317. "deleted" int2 NOT NULL DEFAULT 0
  1318. )
  1319. ;
  1320. COMMENT ON COLUMN "infra_job_log"."id" IS '日志编号';
  1321. COMMENT ON COLUMN "infra_job_log"."job_id" IS '任务编号';
  1322. COMMENT ON COLUMN "infra_job_log"."handler_name" IS '处理器的名字';
  1323. COMMENT ON COLUMN "infra_job_log"."handler_param" IS '处理器的参数';
  1324. COMMENT ON COLUMN "infra_job_log"."execute_index" IS '第几次执行';
  1325. COMMENT ON COLUMN "infra_job_log"."begin_time" IS '开始执行时间';
  1326. COMMENT ON COLUMN "infra_job_log"."end_time" IS '结束执行时间';
  1327. COMMENT ON COLUMN "infra_job_log"."duration" IS '执行时长';
  1328. COMMENT ON COLUMN "infra_job_log"."status" IS '任务状态';
  1329. COMMENT ON COLUMN "infra_job_log"."result" IS '结果数据';
  1330. COMMENT ON COLUMN "infra_job_log"."creator" IS '创建者';
  1331. COMMENT ON COLUMN "infra_job_log"."create_time" IS '创建时间';
  1332. COMMENT ON COLUMN "infra_job_log"."updater" IS '更新者';
  1333. COMMENT ON COLUMN "infra_job_log"."update_time" IS '更新时间';
  1334. COMMENT ON COLUMN "infra_job_log"."deleted" IS '是否删除';
  1335. COMMENT ON TABLE "infra_job_log" IS '定时任务日志表';
  1336. -- ----------------------------
  1337. -- Records of infra_job_log
  1338. -- ----------------------------
  1339. BEGIN;
  1340. COMMIT;
  1341. -- ----------------------------
  1342. -- Table structure for infra_test_demo
  1343. -- ----------------------------
  1344. DROP TABLE IF EXISTS "infra_test_demo";
  1345. CREATE TABLE "infra_test_demo" (
  1346. "id" int8 NOT NULL,
  1347. "name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  1348. "status" int2 NOT NULL,
  1349. "type" int2 NOT NULL,
  1350. "category" int2 NOT NULL,
  1351. "remark" varchar(500) COLLATE "pg_catalog"."default",
  1352. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1353. "create_time" timestamp(6) NOT NULL,
  1354. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1355. "update_time" timestamp(6) NOT NULL,
  1356. "deleted" int2 NOT NULL DEFAULT 0
  1357. )
  1358. ;
  1359. COMMENT ON COLUMN "infra_test_demo"."id" IS '编号';
  1360. COMMENT ON COLUMN "infra_test_demo"."name" IS '名字';
  1361. COMMENT ON COLUMN "infra_test_demo"."status" IS '状态';
  1362. COMMENT ON COLUMN "infra_test_demo"."type" IS '类型';
  1363. COMMENT ON COLUMN "infra_test_demo"."category" IS '分类';
  1364. COMMENT ON COLUMN "infra_test_demo"."remark" IS '备注';
  1365. COMMENT ON COLUMN "infra_test_demo"."creator" IS '创建者';
  1366. COMMENT ON COLUMN "infra_test_demo"."create_time" IS '创建时间';
  1367. COMMENT ON COLUMN "infra_test_demo"."updater" IS '更新者';
  1368. COMMENT ON COLUMN "infra_test_demo"."update_time" IS '更新时间';
  1369. COMMENT ON COLUMN "infra_test_demo"."deleted" IS '是否删除';
  1370. COMMENT ON TABLE "infra_test_demo" IS '字典类型表';
  1371. -- ----------------------------
  1372. -- Records of infra_test_demo
  1373. -- ----------------------------
  1374. BEGIN;
  1375. COMMIT;
  1376. -- ----------------------------
  1377. -- Table structure for member_user
  1378. -- ----------------------------
  1379. DROP TABLE IF EXISTS "member_user";
  1380. CREATE TABLE "member_user" (
  1381. "id" int8 NOT NULL,
  1382. "nickname" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  1383. "avatar" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  1384. "status" int2 NOT NULL,
  1385. "mobile" varchar(11) COLLATE "pg_catalog"."default" NOT NULL,
  1386. "password" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  1387. "register_ip" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  1388. "login_ip" varchar(50) COLLATE "pg_catalog"."default",
  1389. "login_date" timestamp(6),
  1390. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1391. "create_time" timestamp(6) NOT NULL,
  1392. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1393. "update_time" timestamp(6) NOT NULL,
  1394. "deleted" int2 NOT NULL DEFAULT 0,
  1395. "tenant_id" int8 NOT NULL DEFAULT 0
  1396. )
  1397. ;
  1398. COMMENT ON COLUMN "member_user"."id" IS '编号';
  1399. COMMENT ON COLUMN "member_user"."nickname" IS '用户昵称';
  1400. COMMENT ON COLUMN "member_user"."avatar" IS '头像';
  1401. COMMENT ON COLUMN "member_user"."status" IS '状态';
  1402. COMMENT ON COLUMN "member_user"."mobile" IS '手机号';
  1403. COMMENT ON COLUMN "member_user"."password" IS '密码';
  1404. COMMENT ON COLUMN "member_user"."register_ip" IS '注册 IP';
  1405. COMMENT ON COLUMN "member_user"."login_ip" IS '最后登录IP';
  1406. COMMENT ON COLUMN "member_user"."login_date" IS '最后登录时间';
  1407. COMMENT ON COLUMN "member_user"."creator" IS '创建者';
  1408. COMMENT ON COLUMN "member_user"."create_time" IS '创建时间';
  1409. COMMENT ON COLUMN "member_user"."updater" IS '更新者';
  1410. COMMENT ON COLUMN "member_user"."update_time" IS '更新时间';
  1411. COMMENT ON COLUMN "member_user"."deleted" IS '是否删除';
  1412. COMMENT ON COLUMN "member_user"."tenant_id" IS '租户编号';
  1413. COMMENT ON TABLE "member_user" IS '用户';
  1414. -- ----------------------------
  1415. -- Records of member_user
  1416. -- ----------------------------
  1417. BEGIN;
  1418. COMMIT;
  1419. -- ----------------------------
  1420. -- Table structure for pay_app
  1421. -- ----------------------------
  1422. DROP TABLE IF EXISTS "pay_app";
  1423. CREATE TABLE "pay_app" (
  1424. "id" int8 NOT NULL,
  1425. "name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1426. "status" int2 NOT NULL,
  1427. "remark" varchar(255) COLLATE "pg_catalog"."default",
  1428. "pay_notify_url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  1429. "refund_notify_url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  1430. "merchant_id" int8 NOT NULL,
  1431. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1432. "create_time" timestamp(6) NOT NULL,
  1433. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1434. "update_time" timestamp(6) NOT NULL,
  1435. "deleted" int2 NOT NULL DEFAULT 0,
  1436. "tenant_id" int8 NOT NULL DEFAULT 0
  1437. )
  1438. ;
  1439. COMMENT ON COLUMN "pay_app"."id" IS '应用编号';
  1440. COMMENT ON COLUMN "pay_app"."name" IS '应用名';
  1441. COMMENT ON COLUMN "pay_app"."status" IS '开启状态';
  1442. COMMENT ON COLUMN "pay_app"."remark" IS '备注';
  1443. COMMENT ON COLUMN "pay_app"."pay_notify_url" IS '支付结果的回调地址';
  1444. COMMENT ON COLUMN "pay_app"."refund_notify_url" IS '退款结果的回调地址';
  1445. COMMENT ON COLUMN "pay_app"."merchant_id" IS '商户编号';
  1446. COMMENT ON COLUMN "pay_app"."creator" IS '创建者';
  1447. COMMENT ON COLUMN "pay_app"."create_time" IS '创建时间';
  1448. COMMENT ON COLUMN "pay_app"."updater" IS '更新者';
  1449. COMMENT ON COLUMN "pay_app"."update_time" IS '更新时间';
  1450. COMMENT ON COLUMN "pay_app"."deleted" IS '是否删除';
  1451. COMMENT ON COLUMN "pay_app"."tenant_id" IS '租户编号';
  1452. COMMENT ON TABLE "pay_app" IS '支付应用信息';
  1453. -- ----------------------------
  1454. -- Records of pay_app
  1455. -- ----------------------------
  1456. BEGIN;
  1457. COMMIT;
  1458. -- ----------------------------
  1459. -- Table structure for pay_channel
  1460. -- ----------------------------
  1461. DROP TABLE IF EXISTS "pay_channel";
  1462. CREATE TABLE "pay_channel" (
  1463. "id" int8 NOT NULL,
  1464. "code" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  1465. "status" int2 NOT NULL,
  1466. "remark" varchar(255) COLLATE "pg_catalog"."default",
  1467. "fee_rate" float8 NOT NULL,
  1468. "merchant_id" int8 NOT NULL,
  1469. "app_id" int8 NOT NULL,
  1470. "config" varchar(4096) COLLATE "pg_catalog"."default" NOT NULL,
  1471. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1472. "create_time" timestamp(6) NOT NULL,
  1473. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1474. "update_time" timestamp(6) NOT NULL,
  1475. "deleted" int2 NOT NULL DEFAULT 0,
  1476. "tenant_id" int8 NOT NULL DEFAULT 0
  1477. )
  1478. ;
  1479. COMMENT ON COLUMN "pay_channel"."id" IS '商户编号';
  1480. COMMENT ON COLUMN "pay_channel"."code" IS '渠道编码';
  1481. COMMENT ON COLUMN "pay_channel"."status" IS '开启状态';
  1482. COMMENT ON COLUMN "pay_channel"."remark" IS '备注';
  1483. COMMENT ON COLUMN "pay_channel"."fee_rate" IS '渠道费率,单位:百分比';
  1484. COMMENT ON COLUMN "pay_channel"."merchant_id" IS '商户编号';
  1485. COMMENT ON COLUMN "pay_channel"."app_id" IS '应用编号';
  1486. COMMENT ON COLUMN "pay_channel"."config" IS '支付渠道配置';
  1487. COMMENT ON COLUMN "pay_channel"."creator" IS '创建者';
  1488. COMMENT ON COLUMN "pay_channel"."create_time" IS '创建时间';
  1489. COMMENT ON COLUMN "pay_channel"."updater" IS '更新者';
  1490. COMMENT ON COLUMN "pay_channel"."update_time" IS '更新时间';
  1491. COMMENT ON COLUMN "pay_channel"."deleted" IS '是否删除';
  1492. COMMENT ON COLUMN "pay_channel"."tenant_id" IS '租户编号';
  1493. COMMENT ON TABLE "pay_channel" IS '支付渠道
  1494. ';
  1495. -- ----------------------------
  1496. -- Records of pay_channel
  1497. -- ----------------------------
  1498. BEGIN;
  1499. COMMIT;
  1500. -- ----------------------------
  1501. -- Table structure for pay_merchant
  1502. -- ----------------------------
  1503. DROP TABLE IF EXISTS "pay_merchant";
  1504. CREATE TABLE "pay_merchant" (
  1505. "id" int8 NOT NULL,
  1506. "no" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  1507. "name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1508. "short_name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1509. "status" int2 NOT NULL,
  1510. "remark" varchar(255) COLLATE "pg_catalog"."default",
  1511. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1512. "create_time" timestamp(6) NOT NULL,
  1513. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1514. "update_time" timestamp(6) NOT NULL,
  1515. "deleted" int2 NOT NULL DEFAULT 0,
  1516. "tenant_id" int8 NOT NULL DEFAULT 0
  1517. )
  1518. ;
  1519. COMMENT ON COLUMN "pay_merchant"."id" IS '商户编号';
  1520. COMMENT ON COLUMN "pay_merchant"."no" IS '商户号';
  1521. COMMENT ON COLUMN "pay_merchant"."name" IS '商户全称';
  1522. COMMENT ON COLUMN "pay_merchant"."short_name" IS '商户简称';
  1523. COMMENT ON COLUMN "pay_merchant"."status" IS '开启状态';
  1524. COMMENT ON COLUMN "pay_merchant"."remark" IS '备注';
  1525. COMMENT ON COLUMN "pay_merchant"."creator" IS '创建者';
  1526. COMMENT ON COLUMN "pay_merchant"."create_time" IS '创建时间';
  1527. COMMENT ON COLUMN "pay_merchant"."updater" IS '更新者';
  1528. COMMENT ON COLUMN "pay_merchant"."update_time" IS '更新时间';
  1529. COMMENT ON COLUMN "pay_merchant"."deleted" IS '是否删除';
  1530. COMMENT ON COLUMN "pay_merchant"."tenant_id" IS '租户编号';
  1531. COMMENT ON TABLE "pay_merchant" IS '支付商户信息';
  1532. -- ----------------------------
  1533. -- Records of pay_merchant
  1534. -- ----------------------------
  1535. BEGIN;
  1536. COMMIT;
  1537. -- ----------------------------
  1538. -- Table structure for pay_notify_log
  1539. -- ----------------------------
  1540. DROP TABLE IF EXISTS "pay_notify_log";
  1541. CREATE TABLE "pay_notify_log" (
  1542. "id" int8 NOT NULL,
  1543. "task_id" int8 NOT NULL,
  1544. "notify_times" int2 NOT NULL,
  1545. "response" varchar(2048) COLLATE "pg_catalog"."default" NOT NULL,
  1546. "status" int2 NOT NULL,
  1547. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1548. "create_time" timestamp(6) NOT NULL,
  1549. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1550. "update_time" timestamp(6) NOT NULL,
  1551. "deleted" int2 NOT NULL DEFAULT 0,
  1552. "tenant_id" int8 NOT NULL DEFAULT 0
  1553. )
  1554. ;
  1555. COMMENT ON COLUMN "pay_notify_log"."id" IS '日志编号';
  1556. COMMENT ON COLUMN "pay_notify_log"."task_id" IS '通知任务编号';
  1557. COMMENT ON COLUMN "pay_notify_log"."notify_times" IS '第几次被通知';
  1558. COMMENT ON COLUMN "pay_notify_log"."response" IS '请求参数';
  1559. COMMENT ON COLUMN "pay_notify_log"."status" IS '通知状态';
  1560. COMMENT ON COLUMN "pay_notify_log"."creator" IS '创建者';
  1561. COMMENT ON COLUMN "pay_notify_log"."create_time" IS '创建时间';
  1562. COMMENT ON COLUMN "pay_notify_log"."updater" IS '更新者';
  1563. COMMENT ON COLUMN "pay_notify_log"."update_time" IS '更新时间';
  1564. COMMENT ON COLUMN "pay_notify_log"."deleted" IS '是否删除';
  1565. COMMENT ON COLUMN "pay_notify_log"."tenant_id" IS '租户编号';
  1566. COMMENT ON TABLE "pay_notify_log" IS '支付通知 App 的日志';
  1567. -- ----------------------------
  1568. -- Records of pay_notify_log
  1569. -- ----------------------------
  1570. BEGIN;
  1571. COMMIT;
  1572. -- ----------------------------
  1573. -- Table structure for pay_notify_task
  1574. -- ----------------------------
  1575. DROP TABLE IF EXISTS "pay_notify_task";
  1576. CREATE TABLE "pay_notify_task" (
  1577. "id" int8 NOT NULL,
  1578. "merchant_id" int8 NOT NULL,
  1579. "app_id" int8 NOT NULL,
  1580. "type" int2 NOT NULL,
  1581. "data_id" int8 NOT NULL,
  1582. "status" int2 NOT NULL,
  1583. "merchant_order_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1584. "next_notify_time" timestamp(6) NOT NULL,
  1585. "last_execute_time" timestamp(6) NOT NULL,
  1586. "notify_times" int2 NOT NULL,
  1587. "max_notify_times" int2 NOT NULL,
  1588. "notify_url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  1589. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1590. "create_time" timestamp(6) NOT NULL,
  1591. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1592. "update_time" timestamp(6) NOT NULL,
  1593. "deleted" int2 NOT NULL DEFAULT 0,
  1594. "tenant_id" int8 NOT NULL DEFAULT 0
  1595. )
  1596. ;
  1597. COMMENT ON COLUMN "pay_notify_task"."id" IS '任务编号';
  1598. COMMENT ON COLUMN "pay_notify_task"."merchant_id" IS '商户编号';
  1599. COMMENT ON COLUMN "pay_notify_task"."app_id" IS '应用编号';
  1600. COMMENT ON COLUMN "pay_notify_task"."type" IS '通知类型';
  1601. COMMENT ON COLUMN "pay_notify_task"."data_id" IS '数据编号';
  1602. COMMENT ON COLUMN "pay_notify_task"."status" IS '通知状态';
  1603. COMMENT ON COLUMN "pay_notify_task"."merchant_order_id" IS '商户订单编号';
  1604. COMMENT ON COLUMN "pay_notify_task"."next_notify_time" IS '下一次通知时间';
  1605. COMMENT ON COLUMN "pay_notify_task"."last_execute_time" IS '最后一次执行时间';
  1606. COMMENT ON COLUMN "pay_notify_task"."notify_times" IS '当前通知次数';
  1607. COMMENT ON COLUMN "pay_notify_task"."max_notify_times" IS '最大可通知次数';
  1608. COMMENT ON COLUMN "pay_notify_task"."notify_url" IS '异步通知地址';
  1609. COMMENT ON COLUMN "pay_notify_task"."creator" IS '创建者';
  1610. COMMENT ON COLUMN "pay_notify_task"."create_time" IS '创建时间';
  1611. COMMENT ON COLUMN "pay_notify_task"."updater" IS '更新者';
  1612. COMMENT ON COLUMN "pay_notify_task"."update_time" IS '更新时间';
  1613. COMMENT ON COLUMN "pay_notify_task"."deleted" IS '是否删除';
  1614. COMMENT ON COLUMN "pay_notify_task"."tenant_id" IS '租户编号';
  1615. COMMENT ON TABLE "pay_notify_task" IS '商户支付、退款等的通知
  1616. ';
  1617. -- ----------------------------
  1618. -- Records of pay_notify_task
  1619. -- ----------------------------
  1620. BEGIN;
  1621. COMMIT;
  1622. -- ----------------------------
  1623. -- Table structure for pay_order
  1624. -- ----------------------------
  1625. DROP TABLE IF EXISTS "pay_order";
  1626. CREATE TABLE "pay_order" (
  1627. "id" int8 NOT NULL,
  1628. "merchant_id" int8 NOT NULL,
  1629. "app_id" int8 NOT NULL,
  1630. "channel_id" int8,
  1631. "channel_code" varchar(32) COLLATE "pg_catalog"."default",
  1632. "merchant_order_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1633. "subject" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  1634. "body" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
  1635. "notify_url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  1636. "notify_status" int2 NOT NULL,
  1637. "amount" int8 NOT NULL,
  1638. "channel_fee_rate" float8,
  1639. "channel_fee_amount" int8,
  1640. "status" int2 NOT NULL,
  1641. "user_ip" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  1642. "expire_time" timestamp(6) NOT NULL,
  1643. "success_time" timestamp(6),
  1644. "notify_time" timestamp(6),
  1645. "success_extension_id" int8,
  1646. "refund_status" int2 NOT NULL,
  1647. "refund_times" int2 NOT NULL,
  1648. "refund_amount" int8 NOT NULL,
  1649. "channel_user_id" varchar(255) COLLATE "pg_catalog"."default",
  1650. "channel_order_no" varchar(64) COLLATE "pg_catalog"."default",
  1651. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1652. "create_time" timestamp(6) NOT NULL,
  1653. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1654. "update_time" timestamp(6) NOT NULL,
  1655. "deleted" int2 NOT NULL DEFAULT 0,
  1656. "tenant_id" int8 NOT NULL DEFAULT 0
  1657. )
  1658. ;
  1659. COMMENT ON COLUMN "pay_order"."id" IS '支付订单编号';
  1660. COMMENT ON COLUMN "pay_order"."merchant_id" IS '商户编号';
  1661. COMMENT ON COLUMN "pay_order"."app_id" IS '应用编号';
  1662. COMMENT ON COLUMN "pay_order"."channel_id" IS '渠道编号';
  1663. COMMENT ON COLUMN "pay_order"."channel_code" IS '渠道编码';
  1664. COMMENT ON COLUMN "pay_order"."merchant_order_id" IS '商户订单编号';
  1665. COMMENT ON COLUMN "pay_order"."subject" IS '商品标题';
  1666. COMMENT ON COLUMN "pay_order"."body" IS '商品描述';
  1667. COMMENT ON COLUMN "pay_order"."notify_url" IS '异步通知地址';
  1668. COMMENT ON COLUMN "pay_order"."notify_status" IS '通知商户支付结果的回调状态';
  1669. COMMENT ON COLUMN "pay_order"."amount" IS '支付金额,单位:分';
  1670. COMMENT ON COLUMN "pay_order"."channel_fee_rate" IS '渠道手续费,单位:百分比';
  1671. COMMENT ON COLUMN "pay_order"."channel_fee_amount" IS '渠道手续金额,单位:分';
  1672. COMMENT ON COLUMN "pay_order"."status" IS '支付状态';
  1673. COMMENT ON COLUMN "pay_order"."user_ip" IS '用户 IP';
  1674. COMMENT ON COLUMN "pay_order"."expire_time" IS '订单失效时间';
  1675. COMMENT ON COLUMN "pay_order"."success_time" IS '订单支付成功时间';
  1676. COMMENT ON COLUMN "pay_order"."notify_time" IS '订单支付通知时间';
  1677. COMMENT ON COLUMN "pay_order"."success_extension_id" IS '支付成功的订单拓展单编号';
  1678. COMMENT ON COLUMN "pay_order"."refund_status" IS '退款状态';
  1679. COMMENT ON COLUMN "pay_order"."refund_times" IS '退款次数';
  1680. COMMENT ON COLUMN "pay_order"."refund_amount" IS '退款总金额,单位:分';
  1681. COMMENT ON COLUMN "pay_order"."channel_user_id" IS '渠道用户编号';
  1682. COMMENT ON COLUMN "pay_order"."channel_order_no" IS '渠道订单号';
  1683. COMMENT ON COLUMN "pay_order"."creator" IS '创建者';
  1684. COMMENT ON COLUMN "pay_order"."create_time" IS '创建时间';
  1685. COMMENT ON COLUMN "pay_order"."updater" IS '更新者';
  1686. COMMENT ON COLUMN "pay_order"."update_time" IS '更新时间';
  1687. COMMENT ON COLUMN "pay_order"."deleted" IS '是否删除';
  1688. COMMENT ON COLUMN "pay_order"."tenant_id" IS '租户编号';
  1689. COMMENT ON TABLE "pay_order" IS '支付订单
  1690. ';
  1691. -- ----------------------------
  1692. -- Records of pay_order
  1693. -- ----------------------------
  1694. BEGIN;
  1695. COMMIT;
  1696. -- ----------------------------
  1697. -- Table structure for pay_order_extension
  1698. -- ----------------------------
  1699. DROP TABLE IF EXISTS "pay_order_extension";
  1700. CREATE TABLE "pay_order_extension" (
  1701. "id" int8 NOT NULL,
  1702. "no" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1703. "order_id" int8 NOT NULL,
  1704. "channel_id" int8 NOT NULL,
  1705. "channel_code" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  1706. "user_ip" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  1707. "status" int2 NOT NULL,
  1708. "channel_extras" varchar(256) COLLATE "pg_catalog"."default",
  1709. "channel_notify_data" varchar(1024) COLLATE "pg_catalog"."default",
  1710. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1711. "create_time" timestamp(6) NOT NULL,
  1712. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1713. "update_time" timestamp(6) NOT NULL,
  1714. "deleted" int2 NOT NULL DEFAULT 0,
  1715. "tenant_id" int8 NOT NULL DEFAULT 0
  1716. )
  1717. ;
  1718. COMMENT ON COLUMN "pay_order_extension"."id" IS '支付订单编号';
  1719. COMMENT ON COLUMN "pay_order_extension"."no" IS '支付订单号';
  1720. COMMENT ON COLUMN "pay_order_extension"."order_id" IS '支付订单编号';
  1721. COMMENT ON COLUMN "pay_order_extension"."channel_id" IS '渠道编号';
  1722. COMMENT ON COLUMN "pay_order_extension"."channel_code" IS '渠道编码';
  1723. COMMENT ON COLUMN "pay_order_extension"."user_ip" IS '用户 IP';
  1724. COMMENT ON COLUMN "pay_order_extension"."status" IS '支付状态';
  1725. COMMENT ON COLUMN "pay_order_extension"."channel_extras" IS '支付渠道的额外参数';
  1726. COMMENT ON COLUMN "pay_order_extension"."channel_notify_data" IS '支付渠道异步通知的内容';
  1727. COMMENT ON COLUMN "pay_order_extension"."creator" IS '创建者';
  1728. COMMENT ON COLUMN "pay_order_extension"."create_time" IS '创建时间';
  1729. COMMENT ON COLUMN "pay_order_extension"."updater" IS '更新者';
  1730. COMMENT ON COLUMN "pay_order_extension"."update_time" IS '更新时间';
  1731. COMMENT ON COLUMN "pay_order_extension"."deleted" IS '是否删除';
  1732. COMMENT ON COLUMN "pay_order_extension"."tenant_id" IS '租户编号';
  1733. COMMENT ON TABLE "pay_order_extension" IS '支付订单
  1734. ';
  1735. -- ----------------------------
  1736. -- Records of pay_order_extension
  1737. -- ----------------------------
  1738. BEGIN;
  1739. COMMIT;
  1740. -- ----------------------------
  1741. -- Table structure for pay_refund
  1742. -- ----------------------------
  1743. DROP TABLE IF EXISTS "pay_refund";
  1744. CREATE TABLE "pay_refund" (
  1745. "id" int8 NOT NULL,
  1746. "merchant_id" int8 NOT NULL,
  1747. "app_id" int8 NOT NULL,
  1748. "channel_id" int8 NOT NULL,
  1749. "channel_code" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  1750. "order_id" int8 NOT NULL,
  1751. "trade_no" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1752. "merchant_order_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1753. "merchant_refund_no" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1754. "notify_url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  1755. "notify_status" int2 NOT NULL,
  1756. "status" int2 NOT NULL,
  1757. "type" int2 NOT NULL,
  1758. "pay_amount" int8 NOT NULL,
  1759. "refund_amount" int8 NOT NULL,
  1760. "reason" varchar(256) COLLATE "pg_catalog"."default" NOT NULL,
  1761. "user_ip" varchar(50) COLLATE "pg_catalog"."default",
  1762. "channel_order_no" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1763. "channel_refund_no" varchar(64) COLLATE "pg_catalog"."default",
  1764. "channel_error_code" varchar(128) COLLATE "pg_catalog"."default",
  1765. "channel_error_msg" varchar(256) COLLATE "pg_catalog"."default",
  1766. "channel_extras" varchar(1024) COLLATE "pg_catalog"."default",
  1767. "expire_time" timestamp(6),
  1768. "success_time" timestamp(6),
  1769. "notify_time" timestamp(6),
  1770. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1771. "create_time" timestamp(6) NOT NULL,
  1772. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1773. "update_time" timestamp(6) NOT NULL,
  1774. "deleted" int2 NOT NULL DEFAULT 0,
  1775. "tenant_id" int8 NOT NULL DEFAULT 0
  1776. )
  1777. ;
  1778. COMMENT ON COLUMN "pay_refund"."id" IS '支付退款编号';
  1779. COMMENT ON COLUMN "pay_refund"."merchant_id" IS '商户编号';
  1780. COMMENT ON COLUMN "pay_refund"."app_id" IS '应用编号';
  1781. COMMENT ON COLUMN "pay_refund"."channel_id" IS '渠道编号';
  1782. COMMENT ON COLUMN "pay_refund"."channel_code" IS '渠道编码';
  1783. COMMENT ON COLUMN "pay_refund"."order_id" IS '支付订单编号 pay_order 表id';
  1784. COMMENT ON COLUMN "pay_refund"."trade_no" IS '交易订单号 pay_extension 表no 字段';
  1785. COMMENT ON COLUMN "pay_refund"."merchant_order_id" IS '商户订单编号(商户系统生成)';
  1786. COMMENT ON COLUMN "pay_refund"."merchant_refund_no" IS '商户退款订单号(商户系统生成)';
  1787. COMMENT ON COLUMN "pay_refund"."notify_url" IS '异步通知商户地址';
  1788. COMMENT ON COLUMN "pay_refund"."notify_status" IS '通知商户退款结果的回调状态';
  1789. COMMENT ON COLUMN "pay_refund"."status" IS '退款状态';
  1790. COMMENT ON COLUMN "pay_refund"."type" IS '退款类型(部分退款,全部退款)';
  1791. COMMENT ON COLUMN "pay_refund"."pay_amount" IS '支付金额,单位分';
  1792. COMMENT ON COLUMN "pay_refund"."refund_amount" IS '退款金额,单位分';
  1793. COMMENT ON COLUMN "pay_refund"."reason" IS '退款原因';
  1794. COMMENT ON COLUMN "pay_refund"."user_ip" IS '用户 IP';
  1795. COMMENT ON COLUMN "pay_refund"."channel_order_no" IS '渠道订单号,pay_order 中的channel_order_no 对应';
  1796. COMMENT ON COLUMN "pay_refund"."channel_refund_no" IS '渠道退款单号,渠道返回';
  1797. COMMENT ON COLUMN "pay_refund"."channel_error_code" IS '渠道调用报错时,错误码';
  1798. COMMENT ON COLUMN "pay_refund"."channel_error_msg" IS '渠道调用报错时,错误信息';
  1799. COMMENT ON COLUMN "pay_refund"."channel_extras" IS '支付渠道的额外参数';
  1800. COMMENT ON COLUMN "pay_refund"."expire_time" IS '退款失效时间';
  1801. COMMENT ON COLUMN "pay_refund"."success_time" IS '退款成功时间';
  1802. COMMENT ON COLUMN "pay_refund"."notify_time" IS '退款通知时间';
  1803. COMMENT ON COLUMN "pay_refund"."creator" IS '创建者';
  1804. COMMENT ON COLUMN "pay_refund"."create_time" IS '创建时间';
  1805. COMMENT ON COLUMN "pay_refund"."updater" IS '更新者';
  1806. COMMENT ON COLUMN "pay_refund"."update_time" IS '更新时间';
  1807. COMMENT ON COLUMN "pay_refund"."deleted" IS '是否删除';
  1808. COMMENT ON COLUMN "pay_refund"."tenant_id" IS '租户编号';
  1809. COMMENT ON TABLE "pay_refund" IS '退款订单';
  1810. -- ----------------------------
  1811. -- Records of pay_refund
  1812. -- ----------------------------
  1813. BEGIN;
  1814. COMMIT;
  1815. -- ----------------------------
  1816. -- Table structure for qrtz_blob_triggers
  1817. -- ----------------------------
  1818. DROP TABLE IF EXISTS "qrtz_blob_triggers";
  1819. CREATE TABLE "qrtz_blob_triggers" (
  1820. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1821. "trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1822. "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1823. "blob_data" bytea
  1824. )
  1825. ;
  1826. -- ----------------------------
  1827. -- Records of qrtz_blob_triggers
  1828. -- ----------------------------
  1829. BEGIN;
  1830. COMMIT;
  1831. -- ----------------------------
  1832. -- Table structure for qrtz_calendars
  1833. -- ----------------------------
  1834. DROP TABLE IF EXISTS "qrtz_calendars";
  1835. CREATE TABLE "qrtz_calendars" (
  1836. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1837. "calendar_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1838. "calendar" bytea NOT NULL
  1839. )
  1840. ;
  1841. -- ----------------------------
  1842. -- Records of qrtz_calendars
  1843. -- ----------------------------
  1844. BEGIN;
  1845. COMMIT;
  1846. -- ----------------------------
  1847. -- Table structure for qrtz_cron_triggers
  1848. -- ----------------------------
  1849. DROP TABLE IF EXISTS "qrtz_cron_triggers";
  1850. CREATE TABLE "qrtz_cron_triggers" (
  1851. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1852. "trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1853. "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1854. "cron_expression" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1855. "time_zone_id" varchar(80) COLLATE "pg_catalog"."default"
  1856. )
  1857. ;
  1858. -- ----------------------------
  1859. -- Records of qrtz_cron_triggers
  1860. -- ----------------------------
  1861. BEGIN;
  1862. COMMIT;
  1863. -- ----------------------------
  1864. -- Table structure for qrtz_fired_triggers
  1865. -- ----------------------------
  1866. DROP TABLE IF EXISTS "qrtz_fired_triggers";
  1867. CREATE TABLE "qrtz_fired_triggers" (
  1868. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1869. "entry_id" varchar(95) COLLATE "pg_catalog"."default" NOT NULL,
  1870. "trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1871. "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1872. "instance_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1873. "fired_time" int8 NOT NULL,
  1874. "sched_time" int8 NOT NULL,
  1875. "priority" int4 NOT NULL,
  1876. "state" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  1877. "job_name" varchar(200) COLLATE "pg_catalog"."default",
  1878. "job_group" varchar(200) COLLATE "pg_catalog"."default",
  1879. "is_nonconcurrent" bool,
  1880. "requests_recovery" bool
  1881. )
  1882. ;
  1883. -- ----------------------------
  1884. -- Records of qrtz_fired_triggers
  1885. -- ----------------------------
  1886. BEGIN;
  1887. COMMIT;
  1888. -- ----------------------------
  1889. -- Table structure for qrtz_job_details
  1890. -- ----------------------------
  1891. DROP TABLE IF EXISTS "qrtz_job_details";
  1892. CREATE TABLE "qrtz_job_details" (
  1893. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1894. "job_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1895. "job_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1896. "description" varchar(250) COLLATE "pg_catalog"."default",
  1897. "job_class_name" varchar(250) COLLATE "pg_catalog"."default" NOT NULL,
  1898. "is_durable" bool NOT NULL,
  1899. "is_nonconcurrent" bool NOT NULL,
  1900. "is_update_data" bool NOT NULL,
  1901. "requests_recovery" bool NOT NULL,
  1902. "job_data" bytea
  1903. )
  1904. ;
  1905. -- ----------------------------
  1906. -- Records of qrtz_job_details
  1907. -- ----------------------------
  1908. BEGIN;
  1909. INSERT INTO "qrtz_job_details" ("sched_name", "job_name", "job_group", "description", "job_class_name", "is_durable", "is_nonconcurrent", "is_update_data", "requests_recovery", "job_data") VALUES ('schedulerName', 'userSessionTimeoutJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', 'f', 't', 't', 'f', E'\\254\\355\\000\\005sr\\000\\025org.quartz.JobDataMap\\237\\260\\203\\350\\277\\251\\260\\313\\002\\000\\000xr\\000&org.quartz.utils.StringKeyDirtyFlagMap\\202\\010\\350\\303\\373\\305](\\002\\000\\001Z\\000\\023allowsTransientDataxr\\000\\035org.quartz.utils.DirtyFlagMap\\023\\346.\\255(v\\012\\316\\002\\000\\002Z\\000\\005dirtyL\\000\\003mapt\\000\\017Ljava/util/Map;xp\\001sr\\000\\021java.util.HashMap\\005\\007\\332\\301\\303\\026`\\321\\003\\000\\002F\\000\\012loadFactorI\\000\\011thresholdxp?@\\000\\000\\000\\000\\000\\014w\\010\\000\\000\\000\\020\\000\\000\\000\\002t\\000\\006JOB_IDsr\\000\\016java.lang.Long;\\213\\344\\220\\314\\217#\\337\\002\\000\\001J\\000\\005valuexr\\000\\020java.lang.Number\\206\\254\\225\\035\\013\\224\\340\\213\\002\\000\\000xp\\000\\000\\000\\000\\000\\000\\000\\002t\\000\\020JOB_HANDLER_NAMEt\\000\\025userSessionTimeoutJobx\\000');
  1910. COMMIT;
  1911. -- ----------------------------
  1912. -- Table structure for qrtz_locks
  1913. -- ----------------------------
  1914. DROP TABLE IF EXISTS "qrtz_locks";
  1915. CREATE TABLE "qrtz_locks" (
  1916. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1917. "lock_name" varchar(40) COLLATE "pg_catalog"."default" NOT NULL
  1918. )
  1919. ;
  1920. -- ----------------------------
  1921. -- Records of qrtz_locks
  1922. -- ----------------------------
  1923. BEGIN;
  1924. INSERT INTO "qrtz_locks" ("sched_name", "lock_name") VALUES ('schedulerName', 'TRIGGER_ACCESS');
  1925. INSERT INTO "qrtz_locks" ("sched_name", "lock_name") VALUES ('schedulerName', 'STATE_ACCESS');
  1926. COMMIT;
  1927. -- ----------------------------
  1928. -- Table structure for qrtz_paused_trigger_grps
  1929. -- ----------------------------
  1930. DROP TABLE IF EXISTS "qrtz_paused_trigger_grps";
  1931. CREATE TABLE "qrtz_paused_trigger_grps" (
  1932. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1933. "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL
  1934. )
  1935. ;
  1936. -- ----------------------------
  1937. -- Records of qrtz_paused_trigger_grps
  1938. -- ----------------------------
  1939. BEGIN;
  1940. COMMIT;
  1941. -- ----------------------------
  1942. -- Table structure for qrtz_scheduler_state
  1943. -- ----------------------------
  1944. DROP TABLE IF EXISTS "qrtz_scheduler_state";
  1945. CREATE TABLE "qrtz_scheduler_state" (
  1946. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1947. "instance_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1948. "last_checkin_time" int8 NOT NULL,
  1949. "checkin_interval" int8 NOT NULL
  1950. )
  1951. ;
  1952. -- ----------------------------
  1953. -- Records of qrtz_scheduler_state
  1954. -- ----------------------------
  1955. BEGIN;
  1956. INSERT INTO "qrtz_scheduler_state" ("sched_name", "instance_name", "last_checkin_time", "checkin_interval") VALUES ('schedulerName', 'Yunai.local1651328569660', 1651328650075, 15000);
  1957. COMMIT;
  1958. -- ----------------------------
  1959. -- Table structure for qrtz_simple_triggers
  1960. -- ----------------------------
  1961. DROP TABLE IF EXISTS "qrtz_simple_triggers";
  1962. CREATE TABLE "qrtz_simple_triggers" (
  1963. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1964. "trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1965. "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1966. "repeat_count" int8 NOT NULL,
  1967. "repeat_interval" int8 NOT NULL,
  1968. "times_triggered" int8 NOT NULL
  1969. )
  1970. ;
  1971. -- ----------------------------
  1972. -- Records of qrtz_simple_triggers
  1973. -- ----------------------------
  1974. BEGIN;
  1975. COMMIT;
  1976. -- ----------------------------
  1977. -- Table structure for qrtz_simprop_triggers
  1978. -- ----------------------------
  1979. DROP TABLE IF EXISTS "qrtz_simprop_triggers";
  1980. CREATE TABLE "qrtz_simprop_triggers" (
  1981. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1982. "trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1983. "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1984. "str_prop_1" varchar(512) COLLATE "pg_catalog"."default",
  1985. "str_prop_2" varchar(512) COLLATE "pg_catalog"."default",
  1986. "str_prop_3" varchar(512) COLLATE "pg_catalog"."default",
  1987. "int_prop_1" int4,
  1988. "int_prop_2" int4,
  1989. "long_prop_1" int8,
  1990. "long_prop_2" int8,
  1991. "dec_prop_1" numeric(13,4),
  1992. "dec_prop_2" numeric(13,4),
  1993. "bool_prop_1" bool,
  1994. "bool_prop_2" bool
  1995. )
  1996. ;
  1997. -- ----------------------------
  1998. -- Records of qrtz_simprop_triggers
  1999. -- ----------------------------
  2000. BEGIN;
  2001. COMMIT;
  2002. -- ----------------------------
  2003. -- Table structure for qrtz_triggers
  2004. -- ----------------------------
  2005. DROP TABLE IF EXISTS "qrtz_triggers";
  2006. CREATE TABLE "qrtz_triggers" (
  2007. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  2008. "trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  2009. "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  2010. "job_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  2011. "job_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  2012. "description" varchar(250) COLLATE "pg_catalog"."default",
  2013. "next_fire_time" int8,
  2014. "prev_fire_time" int8,
  2015. "priority" int4,
  2016. "trigger_state" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  2017. "trigger_type" varchar(8) COLLATE "pg_catalog"."default" NOT NULL,
  2018. "start_time" int8 NOT NULL,
  2019. "end_time" int8,
  2020. "calendar_name" varchar(200) COLLATE "pg_catalog"."default",
  2021. "misfire_instr" int2,
  2022. "job_data" bytea
  2023. )
  2024. ;
  2025. -- ----------------------------
  2026. -- Records of qrtz_triggers
  2027. -- ----------------------------
  2028. BEGIN;
  2029. INSERT INTO "qrtz_triggers" ("sched_name", "trigger_name", "trigger_group", "job_name", "job_group", "description", "next_fire_time", "prev_fire_time", "priority", "trigger_state", "trigger_type", "start_time", "end_time", "calendar_name", "misfire_instr", "job_data") VALUES ('schedulerName', 'userSessionTimeoutJob', 'DEFAULT', 'userSessionTimeoutJob', 'DEFAULT', NULL, 1651328700000, 1651328640000, 5, 'WAITING', 'CRON', 1651328526000, 0, NULL, 0, E'\\254\\355\\000\\005sr\\000\\025org.quartz.JobDataMap\\237\\260\\203\\350\\277\\251\\260\\313\\002\\000\\000xr\\000&org.quartz.utils.StringKeyDirtyFlagMap\\202\\010\\350\\303\\373\\305](\\002\\000\\001Z\\000\\023allowsTransientDataxr\\000\\035org.quartz.utils.DirtyFlagMap\\023\\346.\\255(v\\012\\316\\002\\000\\002Z\\000\\005dirtyL\\000\\003mapt\\000\\017Ljava/util/Map;xp\\001sr\\000\\021java.util.HashMap\\005\\007\\332\\301\\303\\026`\\321\\003\\000\\002F\\000\\012loadFactorI\\000\\011thresholdxp?@\\000\\000\\000\\000\\000\\014w\\010\\000\\000\\000\\020\\000\\000\\000\\003t\\000\\021JOB_HANDLER_PARAMpt\\000\\022JOB_RETRY_INTERVALsr\\000\\021java.lang.Integer\\022\\342\\240\\244\\367\\201\\2078\\002\\000\\001I\\000\\005valuexr\\000\\020java.lang.Number\\206\\254\\225\\035\\013\\224\\340\\213\\002\\000\\000xp\\000\\000\\007\\320t\\000\\017JOB_RETRY_COUNTsq\\000~\\000\\011\\000\\000\\000\\003x\\000');
  2030. COMMIT;
  2031. -- ----------------------------
  2032. -- Table structure for system_dept
  2033. -- ----------------------------
  2034. DROP TABLE IF EXISTS "system_dept";
  2035. CREATE TABLE "system_dept" (
  2036. "id" int8 NOT NULL,
  2037. "name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  2038. "parent_id" int8 NOT NULL,
  2039. "sort" int4 NOT NULL,
  2040. "leader_user_id" int8,
  2041. "phone" varchar(11) COLLATE "pg_catalog"."default",
  2042. "email" varchar(50) COLLATE "pg_catalog"."default",
  2043. "status" int2 NOT NULL,
  2044. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2045. "create_time" timestamp(6) NOT NULL,
  2046. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2047. "update_time" timestamp(6) NOT NULL,
  2048. "deleted" int2 NOT NULL DEFAULT 0,
  2049. "tenant_id" int8 NOT NULL DEFAULT 0
  2050. )
  2051. ;
  2052. COMMENT ON COLUMN "system_dept"."id" IS '部门id';
  2053. COMMENT ON COLUMN "system_dept"."name" IS '部门名称';
  2054. COMMENT ON COLUMN "system_dept"."parent_id" IS '父部门id';
  2055. COMMENT ON COLUMN "system_dept"."sort" IS '显示顺序';
  2056. COMMENT ON COLUMN "system_dept"."leader_user_id" IS '负责人';
  2057. COMMENT ON COLUMN "system_dept"."phone" IS '联系电话';
  2058. COMMENT ON COLUMN "system_dept"."email" IS '邮箱';
  2059. COMMENT ON COLUMN "system_dept"."status" IS '部门状态(0正常 1停用)';
  2060. COMMENT ON COLUMN "system_dept"."creator" IS '创建者';
  2061. COMMENT ON COLUMN "system_dept"."create_time" IS '创建时间';
  2062. COMMENT ON COLUMN "system_dept"."updater" IS '更新者';
  2063. COMMENT ON COLUMN "system_dept"."update_time" IS '更新时间';
  2064. COMMENT ON COLUMN "system_dept"."deleted" IS '是否删除';
  2065. COMMENT ON COLUMN "system_dept"."tenant_id" IS '租户编号';
  2066. COMMENT ON TABLE "system_dept" IS '部门表';
  2067. -- ----------------------------
  2068. -- Records of system_dept
  2069. -- ----------------------------
  2070. BEGIN;
  2071. INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (100, '芋道源码', 0, 0, 1, '15888888888', 'ry@qq.com', 0, 'admin', '2021-01-05 17:03:47', '103', '2022-01-14 01:04:05', 0, 1);
  2072. INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (101, '深圳总公司', 100, 1, 104, '15888888888', 'ry@qq.com', 0, 'admin', '2021-01-05 17:03:47', '1', '2022-02-22 19:47:48', 0, 1);
  2073. INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (102, '长沙分公司', 100, 2, NULL, '15888888888', 'ry@qq.com', 0, 'admin', '2021-01-05 17:03:47', '', '2021-12-15 05:01:40', 0, 1);
  2074. INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (103, '研发部门', 101, 1, 104, '15888888888', 'ry@qq.com', 0, 'admin', '2021-01-05 17:03:47', '103', '2022-01-14 01:04:14', 0, 1);
  2075. INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (104, '市场部门', 101, 2, NULL, '15888888888', 'ry@qq.com', 0, 'admin', '2021-01-05 17:03:47', '', '2021-12-15 05:01:38', 0, 1);
  2076. INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (105, '测试部门', 101, 3, NULL, '15888888888', 'ry@qq.com', 0, 'admin', '2021-01-05 17:03:47', '', '2021-12-15 05:01:37', 0, 1);
  2077. INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (106, '财务部门', 101, 4, 103, '15888888888', 'ry@qq.com', 0, 'admin', '2021-01-05 17:03:47', '103', '2022-01-15 21:32:22', 0, 1);
  2078. INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (107, '运维部门', 101, 5, NULL, '15888888888', 'ry@qq.com', 0, 'admin', '2021-01-05 17:03:47', '', '2021-12-15 05:01:33', 0, 1);
  2079. INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (108, '市场部门', 102, 1, NULL, '15888888888', 'ry@qq.com', 0, 'admin', '2021-01-05 17:03:47', '1', '2022-02-16 08:35:45', 0, 1);
  2080. INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (109, '财务部门', 102, 2, NULL, '15888888888', 'ry@qq.com', 0, 'admin', '2021-01-05 17:03:47', '', '2021-12-15 05:01:29', 0, 1);
  2081. INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (110, '新部门', 0, 1, NULL, NULL, NULL, 0, '110', '2022-02-23 20:46:30', '110', '2022-02-23 20:46:30', 0, 121);
  2082. INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (111, '顶级部门', 0, 1, NULL, NULL, NULL, 0, '113', '2022-03-07 21:44:50', '113', '2022-03-07 21:44:50', 0, 122);
  2083. COMMIT;
  2084. -- ----------------------------
  2085. -- Table structure for system_dict_data
  2086. -- ----------------------------
  2087. DROP TABLE IF EXISTS "system_dict_data";
  2088. CREATE TABLE "system_dict_data" (
  2089. "id" int8 NOT NULL,
  2090. "sort" int4 NOT NULL,
  2091. "label" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  2092. "value" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  2093. "dict_type" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  2094. "status" int2 NOT NULL,
  2095. "color_type" varchar(100) COLLATE "pg_catalog"."default",
  2096. "css_class" varchar(100) COLLATE "pg_catalog"."default",
  2097. "remark" varchar(500) COLLATE "pg_catalog"."default",
  2098. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2099. "create_time" timestamp(6) NOT NULL,
  2100. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2101. "update_time" timestamp(6) NOT NULL,
  2102. "deleted" int2 NOT NULL DEFAULT 0
  2103. )
  2104. ;
  2105. COMMENT ON COLUMN "system_dict_data"."id" IS '字典编码';
  2106. COMMENT ON COLUMN "system_dict_data"."sort" IS '字典排序';
  2107. COMMENT ON COLUMN "system_dict_data"."label" IS '字典标签';
  2108. COMMENT ON COLUMN "system_dict_data"."value" IS '字典键值';
  2109. COMMENT ON COLUMN "system_dict_data"."dict_type" IS '字典类型';
  2110. COMMENT ON COLUMN "system_dict_data"."status" IS '状态(0正常 1停用)';
  2111. COMMENT ON COLUMN "system_dict_data"."color_type" IS '颜色类型';
  2112. COMMENT ON COLUMN "system_dict_data"."css_class" IS 'css 样式';
  2113. COMMENT ON COLUMN "system_dict_data"."remark" IS '备注';
  2114. COMMENT ON COLUMN "system_dict_data"."creator" IS '创建者';
  2115. COMMENT ON COLUMN "system_dict_data"."create_time" IS '创建时间';
  2116. COMMENT ON COLUMN "system_dict_data"."updater" IS '更新者';
  2117. COMMENT ON COLUMN "system_dict_data"."update_time" IS '更新时间';
  2118. COMMENT ON COLUMN "system_dict_data"."deleted" IS '是否删除';
  2119. COMMENT ON TABLE "system_dict_data" IS '字典数据表';
  2120. -- ----------------------------
  2121. -- Records of system_dict_data
  2122. -- ----------------------------
  2123. BEGIN;
  2124. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1, 1, '男', '1', 'system_user_sex', 0, 'default', 'A', '性别男', 'admin', '2021-01-05 17:03:48', '1', '2022-03-29 00:14:39', 0);
  2125. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (2, 2, '女', '2', 'system_user_sex', 1, 'success', '', '性别女', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 01:30:51', 0);
  2126. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (8, 1, '正常', '1', 'infra_job_status', 0, 'success', '', '正常状态', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 19:33:38', 0);
  2127. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (9, 2, '暂停', '2', 'infra_job_status', 0, 'danger', '', '停用状态', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 19:33:45', 0);
  2128. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (12, 1, '系统内置', '1', 'infra_config_type', 0, 'danger', '', '参数类型 - 系统内置', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 19:06:02', 0);
  2129. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (13, 2, '自定义', '2', 'infra_config_type', 0, 'primary', '', '参数类型 - 自定义', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 19:06:07', 0);
  2130. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (14, 1, '通知', '1', 'system_notice_type', 0, 'success', '', '通知', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 13:05:57', 0);
  2131. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (15, 2, '公告', '2', 'system_notice_type', 0, 'info', '', '公告', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 13:06:01', 0);
  2132. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (16, 0, '其它', '0', 'system_operate_type', 0, 'default', '', '其它操作', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 09:32:46', 0);
  2133. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (17, 1, '查询', '1', 'system_operate_type', 0, 'info', '', '查询操作', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 09:33:16', 0);
  2134. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (18, 2, '新增', '2', 'system_operate_type', 0, 'primary', '', '新增操作', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 09:33:13', 0);
  2135. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (19, 3, '修改', '3', 'system_operate_type', 0, 'warning', '', '修改操作', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 09:33:22', 0);
  2136. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (20, 4, '删除', '4', 'system_operate_type', 0, 'danger', '', '删除操作', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 09:33:27', 0);
  2137. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (22, 5, '导出', '5', 'system_operate_type', 0, 'default', '', '导出操作', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 09:33:32', 0);
  2138. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (23, 6, '导入', '6', 'system_operate_type', 0, 'default', '', '导入操作', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 09:33:35', 0);
  2139. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (27, 1, '开启', '0', 'common_status', 0, 'primary', '', '开启状态', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 08:00:39', 0);
  2140. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (28, 2, '关闭', '1', 'common_status', 0, 'info', '', '关闭状态', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 08:00:44', 0);
  2141. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (29, 1, '目录', '1', 'system_menu_type', 0, '', '', '目录', 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:43:45', 0);
  2142. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (30, 2, '菜单', '2', 'system_menu_type', 0, '', '', '菜单', 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:43:41', 0);
  2143. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (31, 3, '按钮', '3', 'system_menu_type', 0, '', '', '按钮', 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:43:39', 0);
  2144. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (32, 1, '内置', '1', 'system_role_type', 0, 'danger', '', '内置角色', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 13:02:08', 0);
  2145. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (33, 2, '自定义', '2', 'system_role_type', 0, 'primary', '', '自定义角色', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 13:02:12', 0);
  2146. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (34, 1, '全部数据权限', '1', 'system_data_scope', 0, '', '', '全部数据权限', 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:47:17', 0);
  2147. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (35, 2, '指定部门数据权限', '2', 'system_data_scope', 0, '', '', '指定部门数据权限', 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:47:18', 0);
  2148. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (36, 3, '本部门数据权限', '3', 'system_data_scope', 0, '', '', '本部门数据权限', 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:47:16', 0);
  2149. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (37, 4, '本部门及以下数据权限', '4', 'system_data_scope', 0, '', '', '本部门及以下数据权限', 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:47:21', 0);
  2150. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (38, 5, '仅本人数据权限', '5', 'system_data_scope', 0, '', '', '仅本人数据权限', 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:47:23', 0);
  2151. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (39, 0, '成功', '0', 'system_login_result', 0, 'success', '', '登陆结果 - 成功', '', '2021-01-18 06:17:36', '1', '2022-02-16 13:23:49', 0);
  2152. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (40, 10, '账号或密码不正确', '10', 'system_login_result', 0, 'primary', '', '登陆结果 - 账号或密码不正确', '', '2021-01-18 06:17:54', '1', '2022-02-16 13:24:27', 0);
  2153. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (41, 20, '用户被禁用', '20', 'system_login_result', 0, 'warning', '', '登陆结果 - 用户被禁用', '', '2021-01-18 06:17:54', '1', '2022-02-16 13:23:57', 0);
  2154. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (42, 30, '验证码不存在', '30', 'system_login_result', 0, 'info', '', '登陆结果 - 验证码不存在', '', '2021-01-18 06:17:54', '1', '2022-02-16 13:24:07', 0);
  2155. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (43, 31, '验证码不正确', '31', 'system_login_result', 0, 'info', '', '登陆结果 - 验证码不正确', '', '2021-01-18 06:17:54', '1', '2022-02-16 13:24:11', 0);
  2156. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (44, 100, '未知异常', '100', 'system_login_result', 0, 'danger', '', '登陆结果 - 未知异常', '', '2021-01-18 06:17:54', '1', '2022-02-16 13:24:23', 0);
  2157. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (45, 1, '是', 'true', 'infra_boolean_string', 0, 'danger', '', 'Boolean 是否类型 - 是', '', '2021-01-19 03:20:55', '1', '2022-03-15 23:01:45', 0);
  2158. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (46, 1, '否', 'false', 'infra_boolean_string', 0, 'info', '', 'Boolean 是否类型 - 否', '', '2021-01-19 03:20:55', '1', '2022-03-15 23:09:45', 0);
  2159. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (47, 1, '永不超时', '1', 'infra_redis_timeout_type', 0, 'primary', '', 'Redis 未设置超时的情况', '', '2021-01-26 00:53:17', '1', '2022-02-16 19:03:35', 0);
  2160. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (48, 1, '动态超时', '2', 'infra_redis_timeout_type', 0, 'info', '', '程序里动态传入超时时间,无法固定', '', '2021-01-26 00:55:00', '1', '2022-02-16 19:03:41', 0);
  2161. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (49, 3, '固定超时', '3', 'infra_redis_timeout_type', 0, 'success', '', 'Redis 设置了过期时间', '', '2021-01-26 00:55:26', '1', '2022-02-16 19:03:45', 0);
  2162. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (50, 1, '单表(增删改查)', '1', 'infra_codegen_template_type', 0, '', '', NULL, '', '2021-02-05 07:09:06', '', '2022-03-10 16:33:15', 0);
  2163. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (51, 2, '树表(增删改查)', '2', 'infra_codegen_template_type', 0, '', '', NULL, '', '2021-02-05 07:14:46', '', '2022-03-10 16:33:19', 0);
  2164. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (53, 0, '初始化中', '0', 'infra_job_status', 0, 'primary', '', NULL, '', '2021-02-07 07:46:49', '1', '2022-02-16 19:33:29', 0);
  2165. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (57, 0, '运行中', '0', 'infra_job_log_status', 0, 'primary', '', 'RUNNING', '', '2021-02-08 10:04:24', '1', '2022-02-16 19:07:48', 0);
  2166. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (58, 1, '成功', '1', 'infra_job_log_status', 0, 'success', '', NULL, '', '2021-02-08 10:06:57', '1', '2022-02-16 19:07:52', 0);
  2167. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (59, 2, '失败', '2', 'infra_job_log_status', 0, 'warning', '', '失败', '', '2021-02-08 10:07:38', '1', '2022-02-16 19:07:56', 0);
  2168. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (60, 1, '会员', '1', 'user_type', 0, 'primary', '', NULL, '', '2021-02-26 00:16:27', '1', '2022-02-16 10:22:19', 0);
  2169. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (61, 2, '管理员', '2', 'user_type', 0, 'success', '', NULL, '', '2021-02-26 00:16:34', '1', '2022-02-16 10:22:22', 0);
  2170. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (62, 0, '未处理', '0', 'infra_api_error_log_process_status', 0, 'primary', '', NULL, '', '2021-02-26 07:07:19', '1', '2022-02-16 20:14:17', 0);
  2171. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (63, 1, '已处理', '1', 'infra_api_error_log_process_status', 0, 'success', '', NULL, '', '2021-02-26 07:07:26', '1', '2022-02-16 20:14:08', 0);
  2172. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (64, 2, '已忽略', '2', 'infra_api_error_log_process_status', 0, 'danger', '', NULL, '', '2021-02-26 07:07:34', '1', '2022-02-16 20:14:14', 0);
  2173. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (66, 2, '阿里云', 'ALIYUN', 'system_sms_channel_code', 0, 'primary', '', NULL, '1', '2021-04-05 01:05:26', '1', '2022-02-16 10:09:52', 0);
  2174. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (67, 1, '验证码', '1', 'system_sms_template_type', 0, 'warning', '', NULL, '1', '2021-04-05 21:50:57', '1', '2022-02-16 12:48:30', 0);
  2175. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (68, 2, '通知', '2', 'system_sms_template_type', 0, 'primary', '', NULL, '1', '2021-04-05 21:51:08', '1', '2022-02-16 12:48:27', 0);
  2176. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (69, 0, '营销', '3', 'system_sms_template_type', 0, 'danger', '', NULL, '1', '2021-04-05 21:51:15', '1', '2022-02-16 12:48:22', 0);
  2177. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (70, 0, '初始化', '0', 'system_sms_send_status', 0, 'primary', '', NULL, '1', '2021-04-11 20:18:33', '1', '2022-02-16 10:26:07', 0);
  2178. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (71, 1, '发送成功', '10', 'system_sms_send_status', 0, 'success', '', NULL, '1', '2021-04-11 20:18:43', '1', '2022-02-16 10:25:56', 0);
  2179. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (72, 2, '发送失败', '20', 'system_sms_send_status', 0, 'danger', '', NULL, '1', '2021-04-11 20:18:49', '1', '2022-02-16 10:26:03', 0);
  2180. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (73, 3, '不发送', '30', 'system_sms_send_status', 0, 'info', '', NULL, '1', '2021-04-11 20:19:44', '1', '2022-02-16 10:26:10', 0);
  2181. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (74, 0, '等待结果', '0', 'system_sms_receive_status', 0, 'primary', '', NULL, '1', '2021-04-11 20:27:43', '1', '2022-02-16 10:28:24', 0);
  2182. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (75, 1, '接收成功', '10', 'system_sms_receive_status', 0, 'success', '', NULL, '1', '2021-04-11 20:29:25', '1', '2022-02-16 10:28:28', 0);
  2183. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (76, 2, '接收失败', '20', 'system_sms_receive_status', 0, 'danger', '', NULL, '1', '2021-04-11 20:29:31', '1', '2022-02-16 10:28:32', 0);
  2184. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (77, 0, '调试(钉钉)', 'DEBUG_DING_TALK', 'system_sms_channel_code', 0, 'info', '', NULL, '1', '2021-04-13 00:20:37', '1', '2022-02-16 10:10:00', 0);
  2185. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (78, 1, '自动生成', '1', 'system_error_code_type', 0, 'warning', '', NULL, '1', '2021-04-21 00:06:48', '1', '2022-02-16 13:57:20', 0);
  2186. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (79, 2, '手动编辑', '2', 'system_error_code_type', 0, 'primary', '', NULL, '1', '2021-04-21 00:07:14', '1', '2022-02-16 13:57:24', 0);
  2187. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (80, 100, '账号登录', '100', 'system_login_type', 0, 'primary', '', '账号登录', '1', '2021-10-06 00:52:02', '1', '2022-02-16 13:11:34', 0);
  2188. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (81, 101, '社交登录', '101', 'system_login_type', 0, 'info', '', '社交登录', '1', '2021-10-06 00:52:17', '1', '2022-02-16 13:11:40', 0);
  2189. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (83, 200, '主动登出', '200', 'system_login_type', 0, 'primary', '', '主动登出', '1', '2021-10-06 00:52:58', '1', '2022-02-16 13:11:49', 0);
  2190. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (85, 202, '强制登出', '202', 'system_login_type', 0, 'danger', '', '强制退出', '1', '2021-10-06 00:53:41', '1', '2022-02-16 13:11:57', 0);
  2191. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (86, 0, '病假', '1', 'bpm_oa_leave_type', 0, 'primary', '', NULL, '1', '2021-09-21 22:35:28', '1', '2022-02-16 10:00:41', 0);
  2192. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (87, 1, '事假', '2', 'bpm_oa_leave_type', 0, 'info', '', NULL, '1', '2021-09-21 22:36:11', '1', '2022-02-16 10:00:49', 0);
  2193. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (88, 2, '婚假', '3', 'bpm_oa_leave_type', 0, 'warning', '', NULL, '1', '2021-09-21 22:36:38', '1', '2022-02-16 10:00:53', 0);
  2194. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (98, 1, 'v2', 'v2', 'pay_channel_wechat_version', 0, '', '', 'v2版本', '1', '2021-11-08 17:00:58', '1', '2021-11-08 17:00:58', 0);
  2195. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (99, 2, 'v3', 'v3', 'pay_channel_wechat_version', 0, '', '', 'v3版本', '1', '2021-11-08 17:01:07', '1', '2021-11-08 17:01:07', 0);
  2196. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (108, 1, 'RSA2', 'RSA2', 'pay_channel_alipay_sign_type', 0, '', '', 'RSA2', '1', '2021-11-18 15:39:29', '1', '2021-11-18 15:39:29', 0);
  2197. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (109, 1, '公钥模式', '1', 'pay_channel_alipay_mode', 0, '', '', '公钥模式:privateKey + alipayPublicKey', '1', '2021-11-18 15:45:23', '1', '2021-11-18 15:45:23', 0);
  2198. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (110, 2, '证书模式', '2', 'pay_channel_alipay_mode', 0, '', '', '证书模式:appCertContent + alipayPublicCertContent + rootCertContent', '1', '2021-11-18 15:45:40', '1', '2021-11-18 15:45:40', 0);
  2199. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (111, 1, '线上', 'https://openapi.alipay.com/gateway.do', 'pay_channel_alipay_server_type', 0, '', '', '网关地址 - 线上', '1', '2021-11-18 16:59:32', '1', '2021-11-21 17:37:29', 0);
  2200. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (112, 2, '沙箱', 'https://openapi.alipaydev.com/gateway.do', 'pay_channel_alipay_server_type', 0, '', '', '网关地址 - 沙箱', '1', '2021-11-18 16:59:48', '1', '2021-11-21 17:37:39', 0);
  2201. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (113, 1, '微信 JSAPI 支付', 'wx_pub', 'pay_channel_code_type', 0, '', '', '微信 JSAPI(公众号) 支付', '1', '2021-12-03 10:40:24', '1', '2021-12-04 16:41:00', 0);
  2202. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (114, 2, '微信小程序支付', 'wx_lite', 'pay_channel_code_type', 0, '', '', '微信小程序支付', '1', '2021-12-03 10:41:06', '1', '2021-12-03 10:41:06', 0);
  2203. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (115, 3, '微信 App 支付', 'wx_app', 'pay_channel_code_type', 0, '', '', '微信 App 支付', '1', '2021-12-03 10:41:20', '1', '2021-12-03 10:41:20', 0);
  2204. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (116, 4, '支付宝 PC 网站支付', 'alipay_pc', 'pay_channel_code_type', 0, '', '', '支付宝 PC 网站支付', '1', '2021-12-03 10:42:09', '1', '2021-12-03 10:42:09', 0);
  2205. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (117, 5, '支付宝 Wap 网站支付', 'alipay_wap', 'pay_channel_code_type', 0, '', '', '支付宝 Wap 网站支付', '1', '2021-12-03 10:42:26', '1', '2021-12-03 10:42:26', 0);
  2206. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (118, 6, '支付宝App 支付', 'alipay_app', 'pay_channel_code_type', 0, '', '', '支付宝App 支付', '1', '2021-12-03 10:42:55', '1', '2021-12-03 10:42:55', 0);
  2207. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (119, 7, '支付宝扫码支付', 'alipay_qr', 'pay_channel_code_type', 0, '', '', '支付宝扫码支付', '1', '2021-12-03 10:43:10', '1', '2021-12-03 10:43:10', 0);
  2208. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (120, 1, '通知成功', '10', 'pay_order_notify_status', 0, 'success', '', '通知成功', '1', '2021-12-03 11:02:41', '1', '2022-02-16 13:59:13', 0);
  2209. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (121, 2, '通知失败', '20', 'pay_order_notify_status', 0, 'danger', '', '通知失败', '1', '2021-12-03 11:02:59', '1', '2022-02-16 13:59:17', 0);
  2210. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (122, 3, '未通知', '0', 'pay_order_notify_status', 0, 'info', '', '未通知', '1', '2021-12-03 11:03:10', '1', '2022-02-16 13:59:23', 0);
  2211. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (123, 1, '支付成功', '10', 'pay_order_status', 0, 'success', '', '支付成功', '1', '2021-12-03 11:18:29', '1', '2022-02-16 15:24:25', 0);
  2212. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (124, 2, '支付关闭', '20', 'pay_order_status', 0, 'danger', '', '支付关闭', '1', '2021-12-03 11:18:42', '1', '2022-02-16 15:24:31', 0);
  2213. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (125, 3, '未支付', '0', 'pay_order_status', 0, 'info', '', '未支付', '1', '2021-12-03 11:18:18', '1', '2022-02-16 15:24:35', 0);
  2214. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (126, 1, '未退款', '0', 'pay_order_refund_status', 0, '', '', '未退款', '1', '2021-12-03 11:30:35', '1', '2021-12-03 11:34:05', 0);
  2215. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (127, 2, '部分退款', '10', 'pay_order_refund_status', 0, '', '', '部分退款', '1', '2021-12-03 11:30:44', '1', '2021-12-03 11:34:10', 0);
  2216. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (128, 3, '全部退款', '20', 'pay_order_refund_status', 0, '', '', '全部退款', '1', '2021-12-03 11:30:52', '1', '2021-12-03 11:34:14', 0);
  2217. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1117, 1, '退款订单生成', '0', 'pay_refund_order_status', 0, 'primary', '', '退款订单生成', '1', '2021-12-10 16:44:44', '1', '2022-02-16 14:05:24', 0);
  2218. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1118, 2, '退款成功', '1', 'pay_refund_order_status', 0, 'success', '', '退款成功', '1', '2021-12-10 16:44:59', '1', '2022-02-16 14:05:28', 0);
  2219. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1119, 3, '退款失败', '2', 'pay_refund_order_status', 0, 'danger', '', '退款失败', '1', '2021-12-10 16:45:10', '1', '2022-02-16 14:05:34', 0);
  2220. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1124, 8, '退款关闭', '99', 'pay_refund_order_status', 0, 'info', '', '退款关闭', '1', '2021-12-10 16:46:26', '1', '2022-02-16 14:05:40', 0);
  2221. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1125, 0, '默认', '1', 'bpm_model_category', 0, 'primary', '', '流程分类 - 默认', '1', '2022-01-02 08:41:11', '1', '2022-02-16 20:01:42', 0);
  2222. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1126, 0, 'OA', '2', 'bpm_model_category', 0, 'success', '', '流程分类 - OA', '1', '2022-01-02 08:41:22', '1', '2022-02-16 20:01:50', 0);
  2223. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1127, 0, '进行中', '1', 'bpm_process_instance_status', 0, 'primary', '', '流程实例的状态 - 进行中', '1', '2022-01-07 23:47:22', '1', '2022-02-16 20:07:49', 0);
  2224. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1128, 2, '已完成', '2', 'bpm_process_instance_status', 0, 'success', '', '流程实例的状态 - 已完成', '1', '2022-01-07 23:47:49', '1', '2022-02-16 20:07:54', 0);
  2225. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1129, 1, '处理中', '1', 'bpm_process_instance_result', 0, 'primary', '', '流程实例的结果 - 处理中', '1', '2022-01-07 23:48:32', '1', '2022-02-16 09:53:26', 0);
  2226. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1130, 2, '通过', '2', 'bpm_process_instance_result', 0, 'success', '', '流程实例的结果 - 通过', '1', '2022-01-07 23:48:45', '1', '2022-02-16 09:53:31', 0);
  2227. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1131, 3, '不通过', '3', 'bpm_process_instance_result', 0, 'danger', '', '流程实例的结果 - 不通过', '1', '2022-01-07 23:48:55', '1', '2022-02-16 09:53:38', 0);
  2228. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1132, 4, '已取消', '4', 'bpm_process_instance_result', 0, 'info', '', '流程实例的结果 - 撤销', '1', '2022-01-07 23:49:06', '1', '2022-02-16 09:53:42', 0);
  2229. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1133, 10, '流程表单', '10', 'bpm_model_form_type', 0, '', '', '流程的表单类型 - 流程表单', '103', '2022-01-11 23:51:30', '103', '2022-01-11 23:51:30', 0);
  2230. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1134, 20, '业务表单', '20', 'bpm_model_form_type', 0, '', '', '流程的表单类型 - 业务表单', '103', '2022-01-11 23:51:47', '103', '2022-01-11 23:51:47', 0);
  2231. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1135, 10, '角色', '10', 'bpm_task_assign_rule_type', 0, 'info', '', '任务分配规则的类型 - 角色', '103', '2022-01-12 23:21:22', '1', '2022-02-16 20:06:14', 0);
  2232. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1136, 20, '部门的成员', '20', 'bpm_task_assign_rule_type', 0, 'primary', '', '任务分配规则的类型 - 部门的成员', '103', '2022-01-12 23:21:47', '1', '2022-02-16 20:05:28', 0);
  2233. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1137, 21, '部门的负责人', '21', 'bpm_task_assign_rule_type', 0, 'primary', '', '任务分配规则的类型 - 部门的负责人', '103', '2022-01-12 23:33:36', '1', '2022-02-16 20:05:31', 0);
  2234. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1138, 30, '用户', '30', 'bpm_task_assign_rule_type', 0, 'info', '', '任务分配规则的类型 - 用户', '103', '2022-01-12 23:34:02', '1', '2022-02-16 20:05:50', 0);
  2235. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1139, 40, '用户组', '40', 'bpm_task_assign_rule_type', 0, 'warning', '', '任务分配规则的类型 - 用户组', '103', '2022-01-12 23:34:21', '1', '2022-02-16 20:05:57', 0);
  2236. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1140, 50, '自定义脚本', '50', 'bpm_task_assign_rule_type', 0, 'danger', '', '任务分配规则的类型 - 自定义脚本', '103', '2022-01-12 23:34:43', '1', '2022-02-16 20:06:01', 0);
  2237. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1141, 22, '岗位', '22', 'bpm_task_assign_rule_type', 0, 'success', '', '任务分配规则的类型 - 岗位', '103', '2022-01-14 18:41:55', '1', '2022-02-16 20:05:39', 0);
  2238. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1142, 10, '流程发起人', '10', 'bpm_task_assign_script', 0, '', '', '任务分配自定义脚本 - 流程发起人', '103', '2022-01-15 00:10:57', '103', '2022-01-15 21:24:10', 0);
  2239. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1143, 20, '流程发起人的一级领导', '20', 'bpm_task_assign_script', 0, '', '', '任务分配自定义脚本 - 流程发起人的一级领导', '103', '2022-01-15 21:24:31', '103', '2022-01-15 21:24:31', 0);
  2240. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1144, 21, '流程发起人的二级领导', '21', 'bpm_task_assign_script', 0, '', '', '任务分配自定义脚本 - 流程发起人的二级领导', '103', '2022-01-15 21:24:46', '103', '2022-01-15 21:24:57', 0);
  2241. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1145, 1, '管理后台', '1', 'infra_codegen_scene', 0, '', '', '代码生成的场景枚举 - 管理后台', '1', '2022-02-02 13:15:06', '1', '2022-03-10 16:32:59', 0);
  2242. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1146, 2, '用户 APP', '2', 'infra_codegen_scene', 0, '', '', '代码生成的场景枚举 - 用户 APP', '1', '2022-02-02 13:15:19', '1', '2022-03-10 16:33:03', 0);
  2243. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1147, 0, '未退款', '0', 'pay_refund_order_type', 0, 'info', '', '退款类型 - 未退款', '1', '2022-02-16 14:09:01', '1', '2022-02-16 14:09:01', 0);
  2244. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1148, 10, '部分退款', '10', 'pay_refund_order_type', 0, 'success', '', '退款类型 - 部分退款', '1', '2022-02-16 14:09:25', '1', '2022-02-16 14:11:38', 0);
  2245. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1149, 20, '全部退款', '20', 'pay_refund_order_type', 0, 'warning', '', '退款类型 - 全部退款', '1', '2022-02-16 14:11:33', '1', '2022-02-16 14:11:33', 0);
  2246. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1150, 1, '数据库', '1', 'infra_file_storage', 0, 'default', '', NULL, '1', '2022-03-15 00:25:28', '1', '2022-03-15 00:25:28', 0);
  2247. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1151, 10, '本地磁盘', '10', 'infra_file_storage', 0, 'default', '', NULL, '1', '2022-03-15 00:25:41', '1', '2022-03-15 00:25:56', 0);
  2248. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1152, 11, 'FTP 服务器', '11', 'infra_file_storage', 0, 'default', '', NULL, '1', '2022-03-15 00:26:06', '1', '2022-03-15 00:26:10', 0);
  2249. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1153, 12, 'SFTP 服务器', '12', 'infra_file_storage', 0, 'default', '', NULL, '1', '2022-03-15 00:26:22', '1', '2022-03-15 00:26:22', 0);
  2250. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1154, 20, 'S3 对象存储', '20', 'infra_file_storage', 0, 'default', '', NULL, '1', '2022-03-15 00:26:31', '1', '2022-03-15 00:26:45', 0);
  2251. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1155, 103, '短信登录', '103', 'system_login_type', 0, 'default', '', NULL, '1', '2022-05-09 23:57:58', '1', '2022-05-09 23:58:09', 0);
  2252. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1156, 1, 'password', 'password', 'system_oauth2_grant_type', 0, 'default', '', '密码模式', '1', '2022-05-12 00:22:05', '1', '2022-05-11 16:26:01', 0);
  2253. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1157, 2, 'authorization_code', 'authorization_code', 'system_oauth2_grant_type', 0, 'primary', '', '授权码模式', '1', '2022-05-12 00:22:59', '1', '2022-05-11 16:26:02', 0);
  2254. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1158, 3, 'implicit', 'implicit', 'system_oauth2_grant_type', 0, 'success', '', '简化模式', '1', '2022-05-12 00:23:40', '1', '2022-05-11 16:26:05', 0);
  2255. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1159, 4, 'client_credentials', 'client_credentials', 'system_oauth2_grant_type', 0, 'default', '', '客户端模式', '1', '2022-05-12 00:23:51', '1', '2022-05-11 16:26:08', 0);
  2256. INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1160, 5, 'refresh_token', 'refresh_token', 'system_oauth2_grant_type', 0, 'info', '', '刷新模式', '1', '2022-05-12 00:24:02', '1', '2022-05-11 16:26:11', 0);
  2257. COMMIT;
  2258. -- ----------------------------
  2259. -- Table structure for system_dict_type
  2260. -- ----------------------------
  2261. DROP TABLE IF EXISTS "system_dict_type";
  2262. CREATE TABLE "system_dict_type"(
  2263. "id" int8 NOT NULL,
  2264. "name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  2265. "type" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  2266. "status" int2 NOT NULL,
  2267. "remark" varchar(500) COLLATE "pg_catalog"."default",
  2268. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2269. "create_time" timestamp(6) NOT NULL,
  2270. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2271. "update_time" timestamp(6) NOT NULL,
  2272. "deleted_time" timestamp(6),
  2273. "deleted" int2 NOT NULL DEFAULT 0
  2274. )
  2275. ;
  2276. COMMENT
  2277. ON COLUMN "system_dict_type"."id" IS '字典主键';
  2278. COMMENT
  2279. ON COLUMN "system_dict_type"."name" IS '字典名称';
  2280. COMMENT
  2281. ON COLUMN "system_dict_type"."type" IS '字典类型';
  2282. COMMENT
  2283. ON COLUMN "system_dict_type"."status" IS '状态(0正常 1停用)';
  2284. COMMENT
  2285. ON COLUMN "system_dict_type"."remark" IS '备注';
  2286. COMMENT
  2287. ON COLUMN "system_dict_type"."creator" IS '创建者';
  2288. COMMENT
  2289. ON COLUMN "system_dict_type"."create_time" IS '创建时间';
  2290. COMMENT
  2291. ON COLUMN "system_dict_type"."updater" IS '更新者';
  2292. COMMENT
  2293. ON COLUMN "system_dict_type"."update_time" IS '更新时间';
  2294. COMMENT
  2295. ON COLUMN "system_dict_type"."deleted_time" IS '删除时间';
  2296. COMMENT
  2297. ON COLUMN "system_dict_type"."deleted" IS '是否删除';
  2298. COMMENT
  2299. ON TABLE "system_dict_type" IS '字典类型表';
  2300. -- ----------------------------
  2301. -- Records of system_dict_type
  2302. -- ----------------------------
  2303. BEGIN;
  2304. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater",
  2305. "update_time", "deleted")
  2306. VALUES (1, '用户性别', 'system_user_sex', 0, NULL, 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:30:31', 0);
  2307. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater",
  2308. "update_time", "deleted")
  2309. VALUES (6, '参数类型', 'infra_config_type', 0, NULL, 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:36:54', 0);
  2310. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater",
  2311. "update_time", "deleted")
  2312. VALUES (7, '通知类型', 'system_notice_type', 0, NULL, 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:35:26', 0);
  2313. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (9, '操作类型', 'system_operate_type', 0, NULL, 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 09:32:21', 0);
  2314. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (10, '系统状态', 'common_status', 0, NULL, 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:21:28', 0);
  2315. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (11, 'Boolean 是否类型', 'infra_boolean_string', 0, 'boolean 转是否', '', '2021-01-19 03:20:08', '', '2022-02-01 16:37:10', 0);
  2316. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (104, '登陆结果', 'system_login_result', 0, '登陆结果', '', '2021-01-18 06:17:11', '', '2022-02-01 16:36:00', 0);
  2317. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (105, 'Redis 超时类型', 'infra_redis_timeout_type', 0, 'RedisKeyDefine.TimeoutTypeEnum', '', '2021-01-26 00:52:50', '', '2022-02-01 16:50:29', 0);
  2318. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (106, '代码生成模板类型', 'infra_codegen_template_type', 0, NULL, '', '2021-02-05 07:08:06', '', '2022-03-10 16:33:42', 0);
  2319. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (107, '定时任务状态', 'infra_job_status', 0, NULL, '', '2021-02-07 07:44:16', '', '2022-02-01 16:51:11', 0);
  2320. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (108, '定时任务日志状态', 'infra_job_log_status', 0, NULL, '', '2021-02-08 10:03:51', '', '2022-02-01 16:50:43', 0);
  2321. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (109, '用户类型', 'user_type', 0, NULL, '', '2021-02-26 00:15:51', '', '2021-02-26 00:15:51', 0);
  2322. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (110, 'API 异常数据的处理状态', 'infra_api_error_log_process_status', 0, NULL, '', '2021-02-26 07:07:01', '', '2022-02-01 16:50:53', 0);
  2323. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (111, '短信渠道编码', 'system_sms_channel_code', 0, NULL, '1', '2021-04-05 01:04:50', '1', '2022-02-16 02:09:08', 0);
  2324. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (112, '短信模板的类型', 'system_sms_template_type', 0, NULL, '1', '2021-04-05 21:50:43', '1', '2022-02-01 16:35:06', 0);
  2325. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (113, '短信发送状态', 'system_sms_send_status', 0, NULL, '1', '2021-04-11 20:18:03', '1', '2022-02-01 16:35:09', 0);
  2326. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (114, '短信接收状态', 'system_sms_receive_status', 0, NULL, '1', '2021-04-11 20:27:14', '1', '2022-02-01 16:35:14', 0);
  2327. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (115, '错误码的类型', 'system_error_code_type', 0, NULL, '1', '2021-04-21 00:06:30', '1', '2022-02-01 16:36:49', 0);
  2328. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (116, '登陆日志的类型', 'system_login_type', 0, '登陆日志的类型', '1', '2021-10-06 00:50:46', '1', '2022-02-01 16:35:56', 0);
  2329. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (117, 'OA 请假类型', 'bpm_oa_leave_type', 0, NULL, '1', '2021-09-21 22:34:33', '1', '2022-01-22 10:41:37', 0);
  2330. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (122, '支付渠道微信版本', 'pay_channel_wechat_version', 0, '支付渠道微信版本', '1', '2021-11-08 17:00:26', '1', '2021-11-08 17:00:26', 0);
  2331. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (127, '支付渠道支付宝算法类型', 'pay_channel_alipay_sign_type', 0, '支付渠道支付宝算法类型', '1', '2021-11-18 15:39:09', '1', '2021-11-18 15:39:09', 0);
  2332. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (128, '支付渠道支付宝公钥类型', 'pay_channel_alipay_mode', 0, '支付渠道支付宝公钥类型', '1', '2021-11-18 15:44:28', '1', '2021-11-18 15:44:28', 0);
  2333. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (129, '支付宝网关地址', 'pay_channel_alipay_server_type', 0, '支付宝网关地址', '1', '2021-11-18 16:58:55', '1', '2021-11-18 17:01:34', 0);
  2334. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (130, '支付渠道编码类型', 'pay_channel_code_type', 0, '支付渠道的编码', '1', '2021-12-03 10:35:08', '1', '2021-12-03 10:35:08', 0);
  2335. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (131, '支付订单回调状态', 'pay_order_notify_status', 0, '支付订单回调状态', '1', '2021-12-03 10:53:29', '1', '2021-12-03 10:53:29', 0);
  2336. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (132, '支付订单状态', 'pay_order_status', 0, '支付订单状态', '1', '2021-12-03 11:17:50', '1', '2021-12-03 11:17:50', 0);
  2337. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (133, '支付订单退款状态', 'pay_order_refund_status', 0, '支付订单退款状态', '1', '2021-12-03 11:27:31', '1', '2021-12-03 11:27:31', 0);
  2338. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (134, '退款订单状态', 'pay_refund_order_status', 0, '退款订单状态', '1', '2021-12-10 16:42:50', '1', '2021-12-10 16:42:50', 0);
  2339. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (135, '退款订单类别', 'pay_refund_order_type', 0, '退款订单类别', '1', '2021-12-10 17:14:53', '1', '2021-12-10 17:14:53', 0);
  2340. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (138, '流程分类', 'bpm_model_category', 0, '流程分类', '1', '2022-01-02 08:40:45', '1', '2022-01-02 08:40:45', 0);
  2341. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (139, '流程实例的状态', 'bpm_process_instance_status', 0, '流程实例的状态', '1', '2022-01-07 23:46:42', '1', '2022-01-07 23:46:42', 0);
  2342. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (140, '流程实例的结果', 'bpm_process_instance_result', 0, '流程实例的结果', '1', '2022-01-07 23:48:10', '1', '2022-01-07 23:48:10', 0);
  2343. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (141, '流程的表单类型', 'bpm_model_form_type', 0, '流程的表单类型', '103', '2022-01-11 23:50:45', '103', '2022-01-11 23:50:45', 0);
  2344. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (142, '任务分配规则的类型', 'bpm_task_assign_rule_type', 0, '任务分配规则的类型', '103', '2022-01-12 23:21:04', '103', '2022-01-12 15:46:10', 0);
  2345. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (143, '任务分配自定义脚本', 'bpm_task_assign_script', 0, '任务分配自定义脚本', '103', '2022-01-15 00:10:35', '103', '2022-01-15 00:10:35', 0);
  2346. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (144, '代码生成的场景枚举', 'infra_codegen_scene', 0, '代码生成的场景枚举', '1', '2022-02-02 13:14:45', '1', '2022-03-10 16:33:46', 0);
  2347. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (145, '角色类型', 'system_role_type', 0, '角色类型', '1', '2022-02-16 13:01:46', '1', '2022-02-16 13:01:46', 0);
  2348. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (146, '文件存储器', 'infra_file_storage', 0, '文件存储器', '1', '2022-03-15 00:24:38', '1', '2022-03-15 00:24:38', 0);
  2349. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (147, 'OAuth 2.0 授权类型', 'system_oauth2_grant_type', 0, 'OAuth 2.0 授权类型(模式)', '1', '2022-05-12 00:20:52', '1', '2022-05-11 16:25:49', 0);
  2350. COMMIT;
  2351. -- ----------------------------
  2352. -- Table structure for system_error_code
  2353. -- ----------------------------
  2354. DROP TABLE IF EXISTS "system_error_code";
  2355. CREATE TABLE "system_error_code" (
  2356. "id" int8 NOT NULL,
  2357. "type" int2 NOT NULL,
  2358. "application_name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  2359. "code" int4 NOT NULL,
  2360. "message" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  2361. "memo" varchar(512) COLLATE "pg_catalog"."default",
  2362. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2363. "create_time" timestamp(6) NOT NULL,
  2364. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2365. "update_time" timestamp(6) NOT NULL,
  2366. "deleted" int2 NOT NULL DEFAULT 0
  2367. )
  2368. ;
  2369. COMMENT ON COLUMN "system_error_code"."id" IS '错误码编号';
  2370. COMMENT ON COLUMN "system_error_code"."type" IS '错误码类型';
  2371. COMMENT ON COLUMN "system_error_code"."application_name" IS '应用名';
  2372. COMMENT ON COLUMN "system_error_code"."code" IS '错误码编码';
  2373. COMMENT ON COLUMN "system_error_code"."message" IS '错误码错误提示';
  2374. COMMENT ON COLUMN "system_error_code"."memo" IS '备注';
  2375. COMMENT ON COLUMN "system_error_code"."creator" IS '创建者';
  2376. COMMENT ON COLUMN "system_error_code"."create_time" IS '创建时间';
  2377. COMMENT ON COLUMN "system_error_code"."updater" IS '更新者';
  2378. COMMENT ON COLUMN "system_error_code"."update_time" IS '更新时间';
  2379. COMMENT ON COLUMN "system_error_code"."deleted" IS '是否删除';
  2380. COMMENT ON TABLE "system_error_code" IS '错误码表';
  2381. -- ----------------------------
  2382. -- Records of system_error_code
  2383. -- ----------------------------
  2384. BEGIN;
  2385. COMMIT;
  2386. -- ----------------------------
  2387. -- Table structure for system_login_log
  2388. -- ----------------------------
  2389. DROP TABLE IF EXISTS "system_login_log";
  2390. CREATE TABLE "system_login_log" (
  2391. "id" int8 NOT NULL,
  2392. "log_type" int8 NOT NULL,
  2393. "trace_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  2394. "user_id" int8 NOT NULL DEFAULT 0,
  2395. "user_type" int2 NOT NULL,
  2396. "username" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  2397. "result" int2 NOT NULL,
  2398. "user_ip" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  2399. "user_agent" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  2400. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2401. "create_time" timestamp(6) NOT NULL,
  2402. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2403. "update_time" timestamp(6) NOT NULL,
  2404. "deleted" int2 NOT NULL DEFAULT 0,
  2405. "tenant_id" int8 NOT NULL DEFAULT 0
  2406. )
  2407. ;
  2408. COMMENT ON COLUMN "system_login_log"."id" IS '访问ID';
  2409. COMMENT ON COLUMN "system_login_log"."log_type" IS '日志类型';
  2410. COMMENT ON COLUMN "system_login_log"."trace_id" IS '链路追踪编号';
  2411. COMMENT ON COLUMN "system_login_log"."user_id" IS '用户编号';
  2412. COMMENT ON COLUMN "system_login_log"."user_type" IS '用户类型';
  2413. COMMENT ON COLUMN "system_login_log"."username" IS '用户账号';
  2414. COMMENT ON COLUMN "system_login_log"."result" IS '登陆结果';
  2415. COMMENT ON COLUMN "system_login_log"."user_ip" IS '用户 IP';
  2416. COMMENT ON COLUMN "system_login_log"."user_agent" IS '浏览器 UA';
  2417. COMMENT ON COLUMN "system_login_log"."creator" IS '创建者';
  2418. COMMENT ON COLUMN "system_login_log"."create_time" IS '创建时间';
  2419. COMMENT ON COLUMN "system_login_log"."updater" IS '更新者';
  2420. COMMENT ON COLUMN "system_login_log"."update_time" IS '更新时间';
  2421. COMMENT ON COLUMN "system_login_log"."deleted" IS '是否删除';
  2422. COMMENT ON COLUMN "system_login_log"."tenant_id" IS '租户编号';
  2423. COMMENT ON TABLE "system_login_log" IS '系统访问记录';
  2424. -- ----------------------------
  2425. -- Records of system_login_log
  2426. -- ----------------------------
  2427. BEGIN;
  2428. COMMIT;
  2429. -- ----------------------------
  2430. -- Table structure for system_menu
  2431. -- ----------------------------
  2432. DROP TABLE IF EXISTS "system_menu";
  2433. CREATE TABLE "system_menu" (
  2434. "id" int8 NOT NULL,
  2435. "name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  2436. "permission" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  2437. "type" int2 NOT NULL,
  2438. "sort" int4 NOT NULL,
  2439. "parent_id" int8 NOT NULL,
  2440. "path" varchar(200) COLLATE "pg_catalog"."default",
  2441. "icon" varchar(100) COLLATE "pg_catalog"."default",
  2442. "component" varchar(255) COLLATE "pg_catalog"."default",
  2443. "status" int2 NOT NULL,
  2444. "visible" bool NOT NULL,
  2445. "keep_alive" bool NOT NULL,
  2446. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2447. "create_time" timestamp(6) NOT NULL,
  2448. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2449. "update_time" timestamp(6) NOT NULL,
  2450. "deleted" int2 NOT NULL DEFAULT 0,
  2451. "component_name" varchar(255) COLLATE "pg_catalog"."default",
  2452. "always_show" bool NULL
  2453. )
  2454. ;
  2455. COMMENT ON COLUMN "system_menu"."id" IS '菜单ID';
  2456. COMMENT ON COLUMN "system_menu"."name" IS '菜单名称';
  2457. COMMENT ON COLUMN "system_menu"."permission" IS '权限标识';
  2458. COMMENT ON COLUMN "system_menu"."type" IS '菜单类型';
  2459. COMMENT ON COLUMN "system_menu"."sort" IS '显示顺序';
  2460. COMMENT ON COLUMN "system_menu"."parent_id" IS '父菜单ID';
  2461. COMMENT ON COLUMN "system_menu"."path" IS '路由地址';
  2462. COMMENT ON COLUMN "system_menu"."icon" IS '菜单图标';
  2463. COMMENT ON COLUMN "system_menu"."component" IS '组件路径';
  2464. COMMENT ON COLUMN "system_menu"."status" IS '菜单状态';
  2465. COMMENT ON COLUMN "system_menu"."visible" IS '是否可见';
  2466. COMMENT ON COLUMN "system_menu"."keep_alive" IS '是否缓存';
  2467. COMMENT ON COLUMN "system_menu"."creator" IS '创建者';
  2468. COMMENT ON COLUMN "system_menu"."create_time" IS '创建时间';
  2469. COMMENT ON COLUMN "system_menu"."updater" IS '更新者';
  2470. COMMENT ON COLUMN "system_menu"."update_time" IS '更新时间';
  2471. COMMENT ON COLUMN "system_menu"."deleted" IS '是否删除';
  2472. COMMENT ON COLUMN "system_menu"."component_name" IS '组件名称';
  2473. COMMENT ON COLUMN "system_menu"."always_show" IS '是否总是显示';
  2474. COMMENT ON TABLE "system_menu" IS '菜单权限表';
  2475. -- ----------------------------
  2476. -- Records of system_menu
  2477. -- ----------------------------
  2478. BEGIN;
  2479. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1, '系统管理', '', 1, 10, 0, '/system', 'system', NULL, 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-05-13 01:02:57.073', 0, NULL, '1');
  2480. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (2, '基础设施', '', 1, 20, 0, '/infra', 'monitor', NULL, 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2481. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (5, 'OA 示例', '', 1, 40, 1185, 'oa', 'people', NULL, 0, 't', 't', 'admin', '2021-09-20 16:26:19', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2482. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (100, '用户管理', 'system:user:list', 2, 1, 1, 'user', 'user', 'system/user/index', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, 'User', '1');
  2483. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (101, '角色管理', '', 2, 2, 1, 'role', 'peoples', 'system/role/index', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2484. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (102, '菜单管理', '', 2, 3, 1, 'menu', 'tree-table', 'system/menu/index', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2485. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (103, '部门管理', '', 2, 4, 1, 'dept', 'tree', 'system/dept/index', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2486. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (104, '岗位管理', '', 2, 5, 1, 'post', 'post', 'system/post/index', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2487. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (105, '字典管理', '', 2, 6, 1, 'dict', 'dict', 'system/dict/index', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2488. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (106, '配置管理', '', 2, 6, 2, 'config', 'edit', 'infra/config/index', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2489. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (107, '通知公告', '', 2, 8, 1, 'notice', 'message', 'system/notice/index', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2490. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (108, '审计日志', '', 1, 9, 1, 'log', 'log', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2491. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (109, '令牌管理', '', 2, 2, 1261, 'token', 'online', 'system/oauth2/token/index', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-05-11 23:31:42', 0, NULL, '1');
  2492. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (110, '定时任务', '', 2, 12, 2, 'job', 'job', 'infra/job/index', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2493. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (111, 'MySQL 监控', '', 2, 9, 2, 'druid', 'druid', 'infra/druid/index', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2494. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (112, 'Java 监控', '', 2, 11, 2, 'admin-server', 'server', 'infra/server/index', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2495. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (113, 'Redis 监控', '', 2, 10, 2, 'redis', 'redis', 'infra/redis/index', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2496. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (114, '表单构建', 'infra:build:list', 2, 2, 2, 'build', 'build', 'infra/build/index', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2497. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (115, '代码生成', 'infra:codegen:query', 2, 1, 2, 'codegen', 'code', 'infra/codegen/index', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2498. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (116, '系统接口', 'infra:swagger:list', 2, 3, 2, 'swagger', 'swagger', 'infra/swagger/index', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2499. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (500, '操作日志', '', 2, 1, 108, 'operate-log', 'form', 'system/operatelog/index', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2500. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (501, '登录日志', '', 2, 2, 108, 'login-log', 'logininfor', 'system/loginlog/index', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2501. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1001, '用户查询', 'system:user:query', 3, 1, 100, '', '#', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2502. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1002, '用户新增', 'system:user:create', 3, 2, 100, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2503. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1003, '用户修改', 'system:user:update', 3, 3, 100, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2504. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1004, '用户删除', 'system:user:delete', 3, 4, 100, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2505. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1005, '用户导出', 'system:user:export', 3, 5, 100, '', '#', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2506. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1006, '用户导入', 'system:user:import', 3, 6, 100, '', '#', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2507. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1007, '重置密码', 'system:user:update-password', 3, 7, 100, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2508. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1008, '角色查询', 'system:role:query', 3, 1, 101, '', '#', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2509. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1009, '角色新增', 'system:role:create', 3, 2, 101, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2510. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1010, '角色修改', 'system:role:update', 3, 3, 101, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2511. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1011, '角色删除', 'system:role:delete', 3, 4, 101, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2512. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1012, '角色导出', 'system:role:export', 3, 5, 101, '', '#', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2513. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1013, '菜单查询', 'system:menu:query', 3, 1, 102, '', '#', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2514. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1014, '菜单新增', 'system:menu:create', 3, 2, 102, '', '#', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2515. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1015, '菜单修改', 'system:menu:update', 3, 3, 102, '', '#', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2516. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1016, '菜单删除', 'system:menu:delete', 3, 4, 102, '', '#', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2517. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1017, '部门查询', 'system:dept:query', 3, 1, 103, '', '#', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2518. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1018, '部门新增', 'system:dept:create', 3, 2, 103, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2519. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1019, '部门修改', 'system:dept:update', 3, 3, 103, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2520. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1020, '部门删除', 'system:dept:delete', 3, 4, 103, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2521. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1021, '岗位查询', 'system:post:query', 3, 1, 104, '', '#', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2522. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1022, '岗位新增', 'system:post:create', 3, 2, 104, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2523. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1023, '岗位修改', 'system:post:update', 3, 3, 104, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2524. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1024, '岗位删除', 'system:post:delete', 3, 4, 104, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2525. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1025, '岗位导出', 'system:post:export', 3, 5, 104, '', '#', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2526. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1026, '字典查询', 'system:dict:query', 3, 1, 105, '#', '#', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2527. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1027, '字典新增', 'system:dict:create', 3, 2, 105, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2528. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1028, '字典修改', 'system:dict:update', 3, 3, 105, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2529. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1029, '字典删除', 'system:dict:delete', 3, 4, 105, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2530. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1030, '字典导出', 'system:dict:export', 3, 5, 105, '#', '#', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2531. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1031, '配置查询', 'infra:config:query', 3, 1, 106, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2532. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1032, '配置新增', 'infra:config:create', 3, 2, 106, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2533. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1033, '配置修改', 'infra:config:update', 3, 3, 106, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2534. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1034, '配置删除', 'infra:config:delete', 3, 4, 106, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2535. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1035, '配置导出', 'infra:config:export', 3, 5, 106, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2536. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1036, '公告查询', 'system:notice:query', 3, 1, 107, '#', '#', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2537. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1037, '公告新增', 'system:notice:create', 3, 2, 107, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2538. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1038, '公告修改', 'system:notice:update', 3, 3, 107, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2539. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1039, '公告删除', 'system:notice:delete', 3, 4, 107, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2540. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1040, '操作查询', 'system:operate-log:query', 3, 1, 500, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2541. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1042, '日志导出', 'system:operate-log:export', 3, 2, 500, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2542. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1043, '登录查询', 'system:login-log:query', 3, 1, 501, '#', '#', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2543. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1045, '日志导出', 'system:login-log:export', 3, 3, 501, '#', '#', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2544. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1046, '令牌列表', 'system:oauth2-token:page', 3, 1, 109, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-05-09 23:54:42', 0, NULL, '1');
  2545. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1048, '令牌删除', 'system:oauth2-token:delete', 3, 2, 109, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-05-09 23:54:53', 0, NULL, '1');
  2546. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1050, '任务新增', 'infra:job:create', 3, 2, 110, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2547. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1051, '任务修改', 'infra:job:update', 3, 3, 110, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2548. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1052, '任务删除', 'infra:job:delete', 3, 4, 110, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2549. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1053, '状态修改', 'infra:job:update', 3, 5, 110, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2550. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1054, '任务导出', 'infra:job:export', 3, 7, 110, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2551. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1056, '生成修改', 'infra:codegen:update', 3, 2, 115, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2552. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1057, '生成删除', 'infra:codegen:delete', 3, 3, 115, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2553. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1058, '导入代码', 'infra:codegen:create', 3, 2, 115, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2554. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1059, '预览代码', 'infra:codegen:preview', 3, 4, 115, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2555. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1060, '生成代码', 'infra:codegen:download', 3, 5, 115, '', '', '', 0, 't', 't', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2556. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1063, '设置角色菜单权限', 'system:permission:assign-role-menu', 3, 6, 101, '', '', '', 0, 't', 't', '', '2021-01-06 17:53:44', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2557. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1064, '设置角色数据权限', 'system:permission:assign-role-data-scope', 3, 7, 101, '', '', '', 0, 't', 't', '', '2021-01-06 17:56:31', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2558. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1065, '设置用户角色', 'system:permission:assign-user-role', 3, 8, 101, '', '', '', 0, 't', 't', '', '2021-01-07 10:23:28', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2559. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1066, '获得 Redis 监控信息', 'infra:redis:get-monitor-info', 3, 1, 113, '', '', '', 0, 't', 't', '', '2021-01-26 01:02:31', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2560. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1067, '获得 Redis Key 列表', 'infra:redis:get-key-list', 3, 2, 113, '', '', '', 0, 't', 't', '', '2021-01-26 01:02:52', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2561. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1070, '代码生成示例', 'infra:test-demo:query', 2, 1, 2, 'test-demo', 'validCode', 'infra/testDemo/index', 0, 't', 't', '', '2021-02-06 12:42:49', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2562. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1071, '测试示例表创建', 'infra:test-demo:create', 3, 1, 1070, '', '', '', 0, 't', 't', '', '2021-02-06 12:42:49', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2563. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1072, '测试示例表更新', 'infra:test-demo:update', 3, 2, 1070, '', '', '', 0, 't', 't', '', '2021-02-06 12:42:49', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2564. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1073, '测试示例表删除', 'infra:test-demo:delete', 3, 3, 1070, '', '', '', 0, 't', 't', '', '2021-02-06 12:42:49', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2565. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1074, '测试示例表导出', 'infra:test-demo:export', 3, 4, 1070, '', '', '', 0, 't', 't', '', '2021-02-06 12:42:49', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2566. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1075, '任务触发', 'infra:job:trigger', 3, 8, 110, '', '', '', 0, 't', 't', '', '2021-02-07 13:03:10', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2567. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1076, '数据库文档', '', 2, 4, 2, 'db-doc', 'table', 'infra/dbDoc/index', 0, 't', 't', '', '2021-02-08 01:41:47', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2568. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1077, '监控平台', '', 2, 13, 2, 'skywalking', 'eye-open', 'infra/skywalking/index', 0, 't', 't', '', '2021-02-08 20:41:31', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2569. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1078, '访问日志', '', 2, 1, 1083, 'api-access-log', 'log', 'infra/apiAccessLog/index', 0, 't', 't', '', '2021-02-26 01:32:59', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2570. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1082, '日志导出', 'infra:api-access-log:export', 3, 2, 1078, '', '', '', 0, 't', 't', '', '2021-02-26 01:32:59', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2571. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1083, 'API 日志', '', 2, 8, 2, 'log', 'log', NULL, 0, 't', 't', '', '2021-02-26 02:18:24', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2572. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1084, '错误日志', 'infra:api-error-log:query', 2, 2, 1083, 'api-error-log', 'log', 'infra/apiErrorLog/index', 0, 't', 't', '', '2021-02-26 07:53:20', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2573. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1085, '日志处理', 'infra:api-error-log:update-status', 3, 2, 1084, '', '', '', 0, 't', 't', '', '2021-02-26 07:53:20', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2574. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1086, '日志导出', 'infra:api-error-log:export', 3, 3, 1084, '', '', '', 0, 't', 't', '', '2021-02-26 07:53:20', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2575. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1087, '任务查询', 'infra:job:query', 3, 1, 110, '', '', '', 0, 't', 't', '1', '2021-03-10 01:26:19', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2576. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1088, '日志查询', 'infra:api-access-log:query', 3, 1, 1078, '', '', '', 0, 't', 't', '1', '2021-03-10 01:28:04', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2577. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1089, '日志查询', 'infra:api-error-log:query', 3, 1, 1084, '', '', '', 0, 't', 't', '1', '2021-03-10 01:29:09', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2578. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1090, '文件列表', '', 2, 5, 1243, 'file', 'upload', 'infra/file/index', 0, 't', 't', '', '2021-03-12 20:16:20', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2579. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1091, '文件查询', 'infra:file:query', 3, 1, 1090, '', '', '', 0, 't', 't', '', '2021-03-12 20:16:20', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2580. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1092, '文件删除', 'infra:file:delete', 3, 4, 1090, '', '', '', 0, 't', 't', '', '2021-03-12 20:16:20', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2581. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1093, '短信管理', '', 1, 11, 1, 'sms', 'validCode', NULL, 0, 't', 't', '1', '2021-04-05 01:10:16', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2582. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1094, '短信渠道', '', 2, 0, 1093, 'sms-channel', 'phone', 'system/sms/channel', 0, 't', 't', '', '2021-04-01 11:07:15', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2583. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1095, '短信渠道查询', 'system:sms-channel:query', 3, 1, 1094, '', '', '', 0, 't', 't', '', '2021-04-01 11:07:15', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2584. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1096, '短信渠道创建', 'system:sms-channel:create', 3, 2, 1094, '', '', '', 0, 't', 't', '', '2021-04-01 11:07:15', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2585. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1097, '短信渠道更新', 'system:sms-channel:update', 3, 3, 1094, '', '', '', 0, 't', 't', '', '2021-04-01 11:07:15', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2586. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1098, '短信渠道删除', 'system:sms-channel:delete', 3, 4, 1094, '', '', '', 0, 't', 't', '', '2021-04-01 11:07:15', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2587. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1100, '短信模板', '', 2, 1, 1093, 'sms-template', 'phone', 'system/sms/template', 0, 't', 't', '', '2021-04-01 17:35:17', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2588. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1101, '短信模板查询', 'system:sms-template:query', 3, 1, 1100, '', '', '', 0, 't', 't', '', '2021-04-01 17:35:17', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2589. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1102, '短信模板创建', 'system:sms-template:create', 3, 2, 1100, '', '', '', 0, 't', 't', '', '2021-04-01 17:35:17', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2590. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1103, '短信模板更新', 'system:sms-template:update', 3, 3, 1100, '', '', '', 0, 't', 't', '', '2021-04-01 17:35:17', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2591. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1104, '短信模板删除', 'system:sms-template:delete', 3, 4, 1100, '', '', '', 0, 't', 't', '', '2021-04-01 17:35:17', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2592. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1105, '短信模板导出', 'system:sms-template:export', 3, 5, 1100, '', '', '', 0, 't', 't', '', '2021-04-01 17:35:17', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2593. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1106, '发送测试短信', 'system:sms-template:send-sms', 3, 6, 1100, '', '', '', 0, 't', 't', '1', '2021-04-11 00:26:40', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2594. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1107, '短信日志', '', 2, 2, 1093, 'sms-log', 'phone', 'system/sms/log', 0, 't', 't', '', '2021-04-11 08:37:05', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2595. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1108, '短信日志查询', 'system:sms-log:query', 3, 1, 1107, '', '', '', 0, 't', 't', '', '2021-04-11 08:37:05', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2596. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1109, '短信日志导出', 'system:sms-log:export', 3, 5, 1107, '', '', '', 0, 't', 't', '', '2021-04-11 08:37:05', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2597. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1110, '错误码管理', '', 2, 12, 1, 'error-code', 'code', 'system/errorCode/index', 0, 't', 't', '', '2021-04-13 21:46:42', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2598. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1111, '错误码查询', 'system:error-code:query', 3, 1, 1110, '', '', '', 0, 't', 't', '', '2021-04-13 21:46:42', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2599. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1112, '错误码创建', 'system:error-code:create', 3, 2, 1110, '', '', '', 0, 't', 't', '', '2021-04-13 21:46:42', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2600. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1113, '错误码更新', 'system:error-code:update', 3, 3, 1110, '', '', '', 0, 't', 't', '', '2021-04-13 21:46:42', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2601. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1114, '错误码删除', 'system:error-code:delete', 3, 4, 1110, '', '', '', 0, 't', 't', '', '2021-04-13 21:46:42', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2602. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1115, '错误码导出', 'system:error-code:export', 3, 5, 1110, '', '', '', 0, 't', 't', '', '2021-04-13 21:46:42', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2603. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1117, '支付管理', '', 1, 11, 0, '/pay', 'money', NULL, 0, 't', 't', '1', '2021-12-25 16:43:41', '1', '2022-05-13 01:02:25.244', 0, NULL, '1');
  2604. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1118, '请假查询', '', 2, 0, 5, 'leave', 'user', 'bpm/oa/leave/index', 0, 't', 't', '', '2021-09-20 08:51:03', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2605. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1119, '请假申请查询', 'bpm:oa-leave:query', 3, 1, 1118, '', '', '', 0, 't', 't', '', '2021-09-20 08:51:03', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2606. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1120, '请假申请创建', 'bpm:oa-leave:create', 3, 2, 1118, '', '', '', 0, 't', 't', '', '2021-09-20 08:51:03', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2607. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1126, '应用信息', '', 2, 1, 1117, 'app', 'table', 'pay/app/index', 0, 't', 't', '', '2021-11-10 01:13:30', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2608. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1127, '支付应用信息查询', 'pay:app:query', 3, 1, 1126, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:31', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2609. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1128, '支付应用信息创建', 'pay:app:create', 3, 2, 1126, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:31', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2610. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1129, '支付应用信息更新', 'pay:app:update', 3, 3, 1126, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:31', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2611. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1130, '支付应用信息删除', 'pay:app:delete', 3, 4, 1126, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:31', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2612. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1131, '支付应用信息导出', 'pay:app:export', 3, 5, 1126, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:31', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2613. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1132, '秘钥解析', 'pay:channel:parsing', 3, 6, 1129, '', '', '', 0, 't', 't', '1', '2021-11-08 15:15:47', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2614. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1133, '支付商户信息查询', 'pay:merchant:query', 3, 1, 1132, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:41', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2615. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1134, '支付商户信息创建', 'pay:merchant:create', 3, 2, 1132, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:41', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2616. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1135, '支付商户信息更新', 'pay:merchant:update', 3, 3, 1132, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:41', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2617. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1136, '支付商户信息删除', 'pay:merchant:delete', 3, 4, 1132, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:41', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2618. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1137, '支付商户信息导出', 'pay:merchant:export', 3, 5, 1132, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:41', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2619. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1138, '租户列表', '', 2, 0, 1224, 'list', 'peoples', 'system/tenant/index', 0, 't', 't', '', '2021-12-14 12:31:43', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2620. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1139, '租户查询', 'system:tenant:query', 3, 1, 1138, '', '', '', 0, 't', 't', '', '2021-12-14 12:31:44', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2621. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1140, '租户创建', 'system:tenant:create', 3, 2, 1138, '', '', '', 0, 't', 't', '', '2021-12-14 12:31:44', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2622. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1141, '租户更新', 'system:tenant:update', 3, 3, 1138, '', '', '', 0, 't', 't', '', '2021-12-14 12:31:44', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2623. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1142, '租户删除', 'system:tenant:delete', 3, 4, 1138, '', '', '', 0, 't', 't', '', '2021-12-14 12:31:44', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2624. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1143, '租户导出', 'system:tenant:export', 3, 5, 1138, '', '', '', 0, 't', 't', '', '2021-12-14 12:31:44', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2625. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1150, '秘钥解析', '', 3, 6, 1129, '', '', '', 0, 't', 't', '1', '2021-11-08 15:15:47', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2626. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1161, '退款订单', '', 2, 3, 1117, 'refund', 'order', 'pay/refund/index', 0, 't', 't', '', '2021-12-25 08:29:07', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2627. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1162, '退款订单查询', 'pay:refund:query', 3, 1, 1161, '', '', '', 0, 't', 't', '', '2021-12-25 08:29:07', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2628. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1163, '退款订单创建', 'pay:refund:create', 3, 2, 1161, '', '', '', 0, 't', 't', '', '2021-12-25 08:29:07', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2629. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1164, '退款订单更新', 'pay:refund:update', 3, 3, 1161, '', '', '', 0, 't', 't', '', '2021-12-25 08:29:07', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2630. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1165, '退款订单删除', 'pay:refund:delete', 3, 4, 1161, '', '', '', 0, 't', 't', '', '2021-12-25 08:29:07', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2631. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1166, '退款订单导出', 'pay:refund:export', 3, 5, 1161, '', '', '', 0, 't', 't', '', '2021-12-25 08:29:07', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2632. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1173, '支付订单', '', 2, 2, 1117, 'order', 'pay', 'pay/order/index', 0, 't', 't', '', '2021-12-25 08:49:43', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2633. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1174, '支付订单查询', 'pay:order:query', 3, 1, 1173, '', '', '', 0, 't', 't', '', '2021-12-25 08:49:43', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2634. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1175, '支付订单创建', 'pay:order:create', 3, 2, 1173, '', '', '', 0, 't', 't', '', '2021-12-25 08:49:43', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2635. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1176, '支付订单更新', 'pay:order:update', 3, 3, 1173, '', '', '', 0, 't', 't', '', '2021-12-25 08:49:43', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2636. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1177, '支付订单删除', 'pay:order:delete', 3, 4, 1173, '', '', '', 0, 't', 't', '', '2021-12-25 08:49:43', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2637. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1178, '支付订单导出', 'pay:order:export', 3, 5, 1173, '', '', '', 0, 't', 't', '', '2021-12-25 08:49:43', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2638. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1179, '商户信息', '', 2, 0, 1117, 'merchant', 'merchant', 'pay/merchant/index', 0, 't', 't', '', '2021-12-25 09:01:44', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2639. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1180, '支付商户信息查询', 'pay:merchant:query', 3, 1, 1179, '', '', '', 0, 't', 't', '', '2021-12-25 09:01:44', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2640. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1181, '支付商户信息创建', 'pay:merchant:create', 3, 2, 1179, '', '', '', 0, 't', 't', '', '2021-12-25 09:01:44', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2641. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1182, '支付商户信息更新', 'pay:merchant:update', 3, 3, 1179, '', '', '', 0, 't', 't', '', '2021-12-25 09:01:44', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2642. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1183, '支付商户信息删除', '', 3, 4, 1179, '', '', '', 0, 't', 't', '', '2021-12-25 09:01:44', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2643. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1184, '支付商户信息导出', 'pay:merchant:export', 3, 5, 1179, '', '', '', 0, 't', 't', '', '2021-12-25 09:01:44', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2644. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1185, '工作流程', '', 1, 50, 0, '/bpm', 'tool', NULL, 0, 't', 't', '1', '2021-12-30 20:26:36', '103', '2022-04-20 17:03:10', 0, NULL, '1');
  2645. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1186, '流程管理', '', 1, 10, 1185, 'manager', 'nested', NULL, 0, 't', 't', '1', '2021-12-30 20:28:30', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2646. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1187, '流程表单', '', 2, 0, 1186, 'form', 'form', 'bpm/form/index', 0, 't', 't', '', '2021-12-30 12:38:22', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2647. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1188, '表单查询', 'bpm:form:query', 3, 1, 1187, '', '', '', 0, 't', 't', '', '2021-12-30 12:38:22', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2648. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1189, '表单创建', 'bpm:form:create', 3, 2, 1187, '', '', '', 0, 't', 't', '', '2021-12-30 12:38:22', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2649. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1190, '表单更新', 'bpm:form:update', 3, 3, 1187, '', '', '', 0, 't', 't', '', '2021-12-30 12:38:22', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2650. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1191, '表单删除', 'bpm:form:delete', 3, 4, 1187, '', '', '', 0, 't', 't', '', '2021-12-30 12:38:22', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2651. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1192, '表单导出', 'bpm:form:export', 3, 5, 1187, '', '', '', 0, 't', 't', '', '2021-12-30 12:38:22', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2652. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1193, '流程模型', '', 2, 5, 1186, 'model', 'guide', 'bpm/model/index', 0, 't', 't', '1', '2021-12-31 23:24:58', '103', '2022-04-20 17:03:10', 0, NULL, '1');
  2653. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1194, '模型查询', 'bpm:model:query', 3, 1, 1193, '', '', '', 0, 't', 't', '1', '2022-01-03 19:01:10', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2654. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1195, '模型创建', 'bpm:model:create', 3, 2, 1193, '', '', '', 0, 't', 't', '1', '2022-01-03 19:01:24', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2655. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1196, '模型导入', 'bpm:model:import', 3, 3, 1193, '', '', '', 0, 't', 't', '1', '2022-01-03 19:01:35', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2656. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1197, '模型更新', 'bpm:model:update', 3, 4, 1193, '', '', '', 0, 't', 't', '1', '2022-01-03 19:02:28', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2657. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1198, '模型删除', 'bpm:model:delete', 3, 5, 1193, '', '', '', 0, 't', 't', '1', '2022-01-03 19:02:43', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2658. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1199, '模型发布', 'bpm:model:deploy', 3, 6, 1193, '', '', '', 0, 't', 't', '1', '2022-01-03 19:03:24', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2659. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1200, '任务管理', '', 1, 20, 1185, 'task', 'cascader', NULL, 0, 't', 't', '1', '2022-01-07 23:51:48', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2660. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1201, '我的流程', '', 2, 0, 1200, 'my', 'people', 'bpm/processInstance/index', 0, 't', 't', '', '2022-01-07 15:53:44', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2661. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1202, '流程实例的查询', 'bpm:process-instance:query', 3, 1, 1201, '', '', '', 0, 't', 't', '', '2022-01-07 15:53:44', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2662. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1207, '待办任务', '', 2, 10, 1200, 'todo', 'eye-open', 'bpm/task/todo', 0, 't', 't', '1', '2022-01-08 10:33:37', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2663. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1208, '已办任务', '', 2, 20, 1200, 'done', 'eye', 'bpm/task/done', 0, 't', 't', '1', '2022-01-08 10:34:13', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2664. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1209, '用户分组', '', 2, 2, 1186, 'user-group', 'people', 'bpm/group/index', 0, 't', 't', '', '2022-01-14 02:14:20', '103', '2022-04-20 17:03:10', 0, NULL, '1');
  2665. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1210, '用户组查询', 'bpm:user-group:query', 3, 1, 1209, '', '', '', 0, 't', 't', '', '2022-01-14 02:14:20', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2666. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1211, '用户组创建', 'bpm:user-group:create', 3, 2, 1209, '', '', '', 0, 't', 't', '', '2022-01-14 02:14:20', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2667. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1212, '用户组更新', 'bpm:user-group:update', 3, 3, 1209, '', '', '', 0, 't', 't', '', '2022-01-14 02:14:20', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2668. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1213, '用户组删除', 'bpm:user-group:delete', 3, 4, 1209, '', '', '', 0, 't', 't', '', '2022-01-14 02:14:20', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2669. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1215, '流程定义查询', 'bpm:process-definition:query', 3, 10, 1193, '', '', '', 0, 't', 't', '1', '2022-01-23 00:21:43', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2670. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1216, '流程任务分配规则查询', 'bpm:task-assign-rule:query', 3, 20, 1193, '', '', '', 0, 't', 't', '1', '2022-01-23 00:26:53', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2671. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1217, '流程任务分配规则创建', 'bpm:task-assign-rule:create', 3, 21, 1193, '', '', '', 0, 't', 't', '1', '2022-01-23 00:28:15', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2672. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1218, '流程任务分配规则更新', 'bpm:task-assign-rule:update', 3, 22, 1193, '', '', '', 0, 't', 't', '1', '2022-01-23 00:28:41', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2673. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1219, '流程实例的创建', 'bpm:process-instance:create', 3, 2, 1201, '', '', '', 0, 't', 't', '1', '2022-01-23 00:36:15', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2674. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1220, '流程实例的取消', 'bpm:process-instance:cancel', 3, 3, 1201, '', '', '', 0, 't', 't', '1', '2022-01-23 00:36:33', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2675. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1221, '流程任务的查询', 'bpm:task:query', 3, 1, 1207, '', '', '', 0, 't', 't', '1', '2022-01-23 00:38:52', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2676. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1222, '流程任务的更新', 'bpm:task:update', 3, 2, 1207, '', '', '', 0, 't', 't', '1', '2022-01-23 00:39:24', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2677. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1224, '租户管理', '', 2, 0, 1, 'tenant', 'peoples', NULL, 0, 't', 't', '1', '2022-02-20 01:41:13', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2678. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1225, '租户套餐', '', 2, 0, 1224, 'package', 'eye', 'system/tenantPackage/index', 0, 't', 't', '', '2022-02-19 17:44:06', '1', '2022-04-21 01:21:25', 0, NULL, '1');
  2679. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1226, '租户套餐查询', 'system:tenant-package:query', 3, 1, 1225, '', '', '', 0, 't', 't', '', '2022-02-19 17:44:06', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2680. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1227, '租户套餐创建', 'system:tenant-package:create', 3, 2, 1225, '', '', '', 0, 't', 't', '', '2022-02-19 17:44:06', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2681. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1228, '租户套餐更新', 'system:tenant-package:update', 3, 3, 1225, '', '', '', 0, 't', 't', '', '2022-02-19 17:44:06', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2682. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1229, '租户套餐删除', 'system:tenant-package:delete', 3, 4, 1225, '', '', '', 0, 't', 't', '', '2022-02-19 17:44:06', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2683. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1237, '文件配置', '', 2, 0, 1243, 'file-config', 'config', 'infra/fileConfig/index', 0, 't', 't', '', '2022-03-15 14:35:28', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2684. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1238, '文件配置查询', 'infra:file-config:query', 3, 1, 1237, '', '', '', 0, 't', 't', '', '2022-03-15 14:35:28', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2685. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1239, '文件配置创建', 'infra:file-config:create', 3, 2, 1237, '', '', '', 0, 't', 't', '', '2022-03-15 14:35:28', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2686. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1240, '文件配置更新', 'infra:file-config:update', 3, 3, 1237, '', '', '', 0, 't', 't', '', '2022-03-15 14:35:28', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2687. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1241, '文件配置删除', 'infra:file-config:delete', 3, 4, 1237, '', '', '', 0, 't', 't', '', '2022-03-15 14:35:28', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2688. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1242, '文件配置导出', 'infra:file-config:export', 3, 5, 1237, '', '', '', 0, 't', 't', '', '2022-03-15 14:35:28', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2689. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1243, '文件管理', '', 2, 5, 2, 'file', 'download', NULL, 0, 't', 't', '1', '2022-03-16 23:47:40', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2690. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1247, '敏感词管理', '', 2, 13, 1, 'sensitive-word', 'education', 'system/sensitiveWord/index', 0, 't', 't', '', '2022-04-07 16:55:03', '1', '2022-04-20 17:03:10', 0, NULL, '1');
  2691. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1248, '敏感词查询', 'system:sensitive-word:query', 3, 1, 1247, '', '', '', 0, 't', 't', '', '2022-04-07 16:55:03', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2692. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1249, '敏感词创建', 'system:sensitive-word:create', 3, 2, 1247, '', '', '', 0, 't', 't', '', '2022-04-07 16:55:03', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2693. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1250, '敏感词更新', 'system:sensitive-word:update', 3, 3, 1247, '', '', '', 0, 't', 't', '', '2022-04-07 16:55:03', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2694. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1251, '敏感词删除', 'system:sensitive-word:delete', 3, 4, 1247, '', '', '', 0, 't', 't', '', '2022-04-07 16:55:03', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2695. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1252, '敏感词导出', 'system:sensitive-word:export', 3, 5, 1247, '', '', '', 0, 't', 't', '', '2022-04-07 16:55:03', '', '2022-04-20 17:03:10', 0, NULL, '1');
  2696. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1254, '作者动态', '', 1, 0, 0, 'https://www.iocoder.cn', 'people', NULL, 0, 't', 't', '1', '2022-04-23 01:03:15', '1', '2022-04-23 01:03:15', 0, NULL, '1');
  2697. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1255, '数据源配置', '', 2, 1, 2, 'data-source-config', 'rate', 'infra/dataSourceConfig/index', 0, 't', 't', '', '2022-04-27 14:37:32', '1', '2022-04-27 22:42:06', 0, NULL, '1');
  2698. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1256, '数据源配置查询', 'infra:data-source-config:query', 3, 1, 1255, '', '', '', 0, 't', 't', '', '2022-04-27 14:37:32', '', '2022-04-27 14:37:32', 0, NULL, '1');
  2699. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1257, '数据源配置创建', 'infra:data-source-config:create', 3, 2, 1255, '', '', '', 0, 't', 't', '', '2022-04-27 14:37:32', '', '2022-04-27 14:37:32', 0, NULL, '1');
  2700. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1258, '数据源配置更新', 'infra:data-source-config:update', 3, 3, 1255, '', '', '', 0, 't', 't', '', '2022-04-27 14:37:32', '', '2022-04-27 14:37:32', 0, NULL, '1');
  2701. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1259, '数据源配置删除', 'infra:data-source-config:delete', 3, 4, 1255, '', '', '', 0, 't', 't', '', '2022-04-27 14:37:32', '', '2022-04-27 14:37:32', 0, NULL, '1');
  2702. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1260, '数据源配置导出', 'infra:data-source-config:export', 3, 5, 1255, '', '', '', 0, 't', 't', '', '2022-04-27 14:37:32', '', '2022-04-27 14:37:32', 0, NULL, '1');
  2703. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1261, 'OAuth 2.0', '', 1, 10, 1, 'oauth2', 'people', NULL, 0, 't', 't', '1', '2022-05-09 23:38:17', '1', '2022-05-11 23:51:46', 0, NULL, '1');
  2704. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1263, '应用管理', '', 2, 0, 1261, 'oauth2/application', 'tool', 'system/oauth2/client/index', 0, 't', 't', '', '2022-05-10 16:26:33', '1', '2022-05-11 23:31:36', 0, NULL, '1');
  2705. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1264, '客户端查询', 'system:oauth2-client:query', 3, 1, 1263, '', '', '', 0, 't', 't', '', '2022-05-10 16:26:33', '1', '2022-05-11 00:31:06', 0, NULL, '1');
  2706. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1265, '客户端创建', 'system:oauth2-client:create', 3, 2, 1263, '', '', '', 0, 't', 't', '', '2022-05-10 16:26:33', '1', '2022-05-11 00:31:23', 0, NULL, '1');
  2707. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1266, '客户端更新', 'system:oauth2-client:update', 3, 3, 1263, '', '', '', 0, 't', 't', '', '2022-05-10 16:26:33', '1', '2022-05-11 00:31:28', 0, NULL, '1');
  2708. INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted", "component_name", "always_show") VALUES (1267, '客户端删除', 'system:oauth2-client:delete', 3, 4, 1263, '', '', '', 0, 't', 't', '', '2022-05-10 16:26:33', '1', '2022-05-11 00:31:33', 0, NULL, '1');
  2709. COMMIT;
  2710. -- ----------------------------
  2711. -- Table structure for system_notice
  2712. -- ----------------------------
  2713. DROP TABLE IF EXISTS "system_notice";
  2714. CREATE TABLE "system_notice" (
  2715. "id" int8 NOT NULL,
  2716. "title" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  2717. "content" text COLLATE "pg_catalog"."default" NOT NULL,
  2718. "type" int2 NOT NULL,
  2719. "status" int2 NOT NULL,
  2720. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2721. "create_time" timestamp(6) NOT NULL,
  2722. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2723. "update_time" timestamp(6) NOT NULL,
  2724. "deleted" int2 NOT NULL DEFAULT 0,
  2725. "tenant_id" int8 NOT NULL DEFAULT 0
  2726. )
  2727. ;
  2728. COMMENT ON COLUMN "system_notice"."id" IS '公告ID';
  2729. COMMENT ON COLUMN "system_notice"."title" IS '公告标题';
  2730. COMMENT ON COLUMN "system_notice"."content" IS '公告内容';
  2731. COMMENT ON COLUMN "system_notice"."type" IS '公告类型(1通知 2公告)';
  2732. COMMENT ON COLUMN "system_notice"."status" IS '公告状态(0正常 1关闭)';
  2733. COMMENT ON COLUMN "system_notice"."creator" IS '创建者';
  2734. COMMENT ON COLUMN "system_notice"."create_time" IS '创建时间';
  2735. COMMENT ON COLUMN "system_notice"."updater" IS '更新者';
  2736. COMMENT ON COLUMN "system_notice"."update_time" IS '更新时间';
  2737. COMMENT ON COLUMN "system_notice"."deleted" IS '是否删除';
  2738. COMMENT ON COLUMN "system_notice"."tenant_id" IS '租户编号';
  2739. COMMENT ON TABLE "system_notice" IS '通知公告表';
  2740. -- ----------------------------
  2741. -- Records of system_notice
  2742. -- ----------------------------
  2743. BEGIN;
  2744. INSERT INTO "system_notice" ("id", "title", "content", "type", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1, '芋道的公众', '<p>新版本内容133</p>', 1, 0, 'admin', '2021-01-05 17:03:48', '1', '2022-05-04 21:00:20', 0, 1);
  2745. INSERT INTO "system_notice" ("id", "title", "content", "type", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (2, '维护通知:2018-07-01 若依系统凌晨维护', '<p><img src="http://test.yudao.iocoder.cn/b7cb3cf49b4b3258bf7309a09dd2f4e5.jpg">维护内容</p>', 2, 1, 'admin', '2021-01-05 17:03:48', '1', '2022-05-11 12:34:24', 0, 1);
  2746. INSERT INTO "system_notice" ("id", "title", "content", "type", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (4, '我是测试标题', '<p>哈哈哈哈123</p>', 1, 0, '110', '2022-02-22 01:01:25', '110', '2022-02-22 01:01:46', 0, 121);
  2747. COMMIT;
  2748. -- ----------------------------
  2749. -- Table structure for system_oauth2_access_token
  2750. -- ----------------------------
  2751. DROP TABLE IF EXISTS "system_oauth2_access_token";
  2752. CREATE TABLE "system_oauth2_access_token" (
  2753. "id" int8 NOT NULL,
  2754. "user_id" int8 NOT NULL,
  2755. "access_token" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2756. "refresh_token" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  2757. "user_type" int2 NOT NULL,
  2758. "client_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2759. "expires_time" timestamp(6) NOT NULL,
  2760. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2761. "create_time" timestamp(6) NOT NULL,
  2762. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2763. "update_time" timestamp(6) NOT NULL,
  2764. "deleted" int2 NOT NULL DEFAULT 0,
  2765. "tenant_id" int8 NOT NULL DEFAULT 0,
  2766. "scopes" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  2767. )
  2768. ;
  2769. COMMENT ON COLUMN "system_oauth2_access_token"."id" IS '编号';
  2770. COMMENT ON COLUMN "system_oauth2_access_token"."user_id" IS '用户编号';
  2771. COMMENT ON COLUMN "system_oauth2_access_token"."access_token" IS '访问令牌';
  2772. COMMENT ON COLUMN "system_oauth2_access_token"."refresh_token" IS '刷新令牌';
  2773. COMMENT ON COLUMN "system_oauth2_access_token"."user_type" IS '用户类型';
  2774. COMMENT ON COLUMN "system_oauth2_access_token"."client_id" IS '客户端编号';
  2775. COMMENT ON COLUMN "system_oauth2_access_token"."expires_time" IS '过期时间';
  2776. COMMENT ON COLUMN "system_oauth2_access_token"."creator" IS '创建者';
  2777. COMMENT ON COLUMN "system_oauth2_access_token"."create_time" IS '创建时间';
  2778. COMMENT ON COLUMN "system_oauth2_access_token"."updater" IS '更新者';
  2779. COMMENT ON COLUMN "system_oauth2_access_token"."update_time" IS '更新时间';
  2780. COMMENT ON COLUMN "system_oauth2_access_token"."deleted" IS '是否删除';
  2781. COMMENT ON COLUMN "system_oauth2_access_token"."tenant_id" IS '租户编号';
  2782. COMMENT ON COLUMN "system_oauth2_access_token"."scopes" IS '授权范围';
  2783. COMMENT ON TABLE "system_oauth2_access_token" IS '刷新令牌';
  2784. -- ----------------------------
  2785. -- Records of system_oauth2_access_token
  2786. -- ----------------------------
  2787. BEGIN;
  2788. COMMIT;
  2789. -- ----------------------------
  2790. -- Table structure for system_oauth2_approve
  2791. -- ----------------------------
  2792. DROP TABLE IF EXISTS "system_oauth2_approve";
  2793. CREATE TABLE "system_oauth2_approve" (
  2794. "id" int8 NOT NULL,
  2795. "user_id" int8 NOT NULL,
  2796. "user_type" int2 NOT NULL,
  2797. "client_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2798. "scope" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2799. "approved" bool NOT NULL,
  2800. "expires_time" timestamp(6) NOT NULL,
  2801. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2802. "create_time" timestamp(6) NOT NULL,
  2803. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2804. "update_time" timestamp(6) NOT NULL,
  2805. "deleted" int2 NOT NULL DEFAULT 0,
  2806. "tenant_id" int8 NOT NULL DEFAULT 0
  2807. )
  2808. ;
  2809. COMMENT ON COLUMN "system_oauth2_approve"."id" IS '编号';
  2810. COMMENT ON COLUMN "system_oauth2_approve"."user_id" IS '用户编号';
  2811. COMMENT ON COLUMN "system_oauth2_approve"."user_type" IS '用户类型';
  2812. COMMENT ON COLUMN "system_oauth2_approve"."client_id" IS '客户端编号';
  2813. COMMENT ON COLUMN "system_oauth2_approve"."scope" IS '授权范围';
  2814. COMMENT ON COLUMN "system_oauth2_approve"."approved" IS '是否接受';
  2815. COMMENT ON COLUMN "system_oauth2_approve"."expires_time" IS '过期时间';
  2816. COMMENT ON COLUMN "system_oauth2_approve"."creator" IS '创建者';
  2817. COMMENT ON COLUMN "system_oauth2_approve"."create_time" IS '创建时间';
  2818. COMMENT ON COLUMN "system_oauth2_approve"."updater" IS '更新者';
  2819. COMMENT ON COLUMN "system_oauth2_approve"."update_time" IS '更新时间';
  2820. COMMENT ON COLUMN "system_oauth2_approve"."deleted" IS '是否删除';
  2821. COMMENT ON COLUMN "system_oauth2_approve"."tenant_id" IS '租户编号';
  2822. COMMENT ON TABLE "system_oauth2_approve" IS 'OAuth2 批准表';
  2823. -- ----------------------------
  2824. -- Records of system_oauth2_approve
  2825. -- ----------------------------
  2826. BEGIN;
  2827. COMMIT;
  2828. -- ----------------------------
  2829. -- Table structure for system_oauth2_client
  2830. -- ----------------------------
  2831. DROP TABLE IF EXISTS "system_oauth2_client";
  2832. CREATE TABLE "system_oauth2_client" (
  2833. "id" int8 NOT NULL,
  2834. "client_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2835. "secret" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2836. "name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2837. "logo" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2838. "description" varchar(255) COLLATE "pg_catalog"."default",
  2839. "status" int2 NOT NULL,
  2840. "access_token_validity_seconds" int4 NOT NULL,
  2841. "refresh_token_validity_seconds" int4 NOT NULL,
  2842. "redirect_uris" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2843. "authorized_grant_types" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2844. "scopes" varchar(255) COLLATE "pg_catalog"."default",
  2845. "authorities" varchar(255) COLLATE "pg_catalog"."default",
  2846. "resource_ids" varchar(255) COLLATE "pg_catalog"."default",
  2847. "additional_information" varchar(4096) COLLATE "pg_catalog"."default",
  2848. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2849. "create_time" timestamp(6) NOT NULL,
  2850. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2851. "update_time" timestamp(6) NOT NULL,
  2852. "deleted" int2 NOT NULL DEFAULT 0,
  2853. "auto_approve_scopes" varchar(255) COLLATE "pg_catalog"."default"
  2854. )
  2855. ;
  2856. COMMENT ON COLUMN "system_oauth2_client"."id" IS '编号';
  2857. COMMENT ON COLUMN "system_oauth2_client"."client_id" IS '客户端编号';
  2858. COMMENT ON COLUMN "system_oauth2_client"."secret" IS '客户端密钥';
  2859. COMMENT ON COLUMN "system_oauth2_client"."name" IS '应用名';
  2860. COMMENT ON COLUMN "system_oauth2_client"."logo" IS '应用图标';
  2861. COMMENT ON COLUMN "system_oauth2_client"."description" IS '应用描述';
  2862. COMMENT ON COLUMN "system_oauth2_client"."status" IS '状态';
  2863. COMMENT ON COLUMN "system_oauth2_client"."access_token_validity_seconds" IS '访问令牌的有效期';
  2864. COMMENT ON COLUMN "system_oauth2_client"."refresh_token_validity_seconds" IS '刷新令牌的有效期';
  2865. COMMENT ON COLUMN "system_oauth2_client"."redirect_uris" IS '可重定向的 URI 地址';
  2866. COMMENT ON COLUMN "system_oauth2_client"."authorized_grant_types" IS '授权类型';
  2867. COMMENT ON COLUMN "system_oauth2_client"."scopes" IS '授权范围';
  2868. COMMENT ON COLUMN "system_oauth2_client"."authorities" IS '权限';
  2869. COMMENT ON COLUMN "system_oauth2_client"."resource_ids" IS '资源';
  2870. COMMENT ON COLUMN "system_oauth2_client"."additional_information" IS '附加信息';
  2871. COMMENT ON COLUMN "system_oauth2_client"."creator" IS '创建者';
  2872. COMMENT ON COLUMN "system_oauth2_client"."create_time" IS '创建时间';
  2873. COMMENT ON COLUMN "system_oauth2_client"."updater" IS '更新者';
  2874. COMMENT ON COLUMN "system_oauth2_client"."update_time" IS '更新时间';
  2875. COMMENT ON COLUMN "system_oauth2_client"."deleted" IS '是否删除';
  2876. COMMENT ON COLUMN "system_oauth2_client"."auto_approve_scopes" IS '自动通过的授权范围';
  2877. COMMENT ON TABLE "system_oauth2_client" IS 'OAuth2 客户端表';
  2878. -- ----------------------------
  2879. -- Records of system_oauth2_client
  2880. -- ----------------------------
  2881. BEGIN;
  2882. INSERT INTO "system_oauth2_client" ("id", "client_id", "secret", "name", "logo", "description", "status", "access_token_validity_seconds", "refresh_token_validity_seconds", "redirect_uris", "authorized_grant_types", "scopes", "authorities", "resource_ids", "additional_information", "creator", "create_time", "updater", "update_time", "deleted", "auto_approve_scopes") VALUES (1, 'default', 'admin123', '芋道源码', 'http://test.yudao.iocoder.cn/a5e2e244368878a366b516805a4aabf1.png', '我是描述', 0, 180, 8640, '["https://www.iocoder.cn","https://doc.iocoder.cn"]', '["password","authorization_code","implicit","refresh_token"]', '["user.read","user.write"]', '["system:user:query"]', '[]', '{}', '1', '2022-05-11 21:47:12', '1', '2022-05-12 01:00:20', 0, NULL);
  2883. INSERT INTO "system_oauth2_client" ("id", "client_id", "secret", "name", "logo", "description", "status", "access_token_validity_seconds", "refresh_token_validity_seconds", "redirect_uris", "authorized_grant_types", "scopes", "authorities", "resource_ids", "additional_information", "creator", "create_time", "updater", "update_time", "deleted", "auto_approve_scopes") VALUES (40, 'test', 'test2', 'biubiu', 'http://test.yudao.iocoder.cn/277a899d573723f1fcdfb57340f00379.png', NULL, 0, 1800, 43200, '["https://www.iocoder.cn"]', '["password","authorization_code","implicit"]', '[]', '[]', '[]', '{}', '1', '2022-05-12 00:28:20', '1', '2022-05-25 23:45:33.005', 0, '[]');
  2884. COMMIT;
  2885. -- ----------------------------
  2886. -- Table structure for system_oauth2_code
  2887. -- ----------------------------
  2888. DROP TABLE IF EXISTS "system_oauth2_code";
  2889. CREATE TABLE "system_oauth2_code" (
  2890. "id" int8 NOT NULL,
  2891. "user_id" int8 NOT NULL,
  2892. "user_type" int2 NOT NULL,
  2893. "code" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  2894. "client_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2895. "scopes" varchar(255) COLLATE "pg_catalog"."default",
  2896. "expires_time" timestamp(6) NOT NULL,
  2897. "redirect_uri" varchar(255) COLLATE "pg_catalog"."default",
  2898. "state" varchar(255) COLLATE "pg_catalog"."default",
  2899. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2900. "create_time" timestamp(6) NOT NULL,
  2901. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2902. "update_time" timestamp(6) NOT NULL,
  2903. "deleted" int2 NOT NULL DEFAULT 0,
  2904. "tenant_id" int8 NOT NULL DEFAULT 0
  2905. )
  2906. ;
  2907. COMMENT ON COLUMN "system_oauth2_code"."id" IS '编号';
  2908. COMMENT ON COLUMN "system_oauth2_code"."user_id" IS '用户编号';
  2909. COMMENT ON COLUMN "system_oauth2_code"."user_type" IS '用户类型';
  2910. COMMENT ON COLUMN "system_oauth2_code"."code" IS '授权码';
  2911. COMMENT ON COLUMN "system_oauth2_code"."client_id" IS '客户端编号';
  2912. COMMENT ON COLUMN "system_oauth2_code"."scopes" IS '授权范围';
  2913. COMMENT ON COLUMN "system_oauth2_code"."expires_time" IS '过期时间';
  2914. COMMENT ON COLUMN "system_oauth2_code"."redirect_uri" IS '可重定向的 URI 地址';
  2915. COMMENT ON COLUMN "system_oauth2_code"."state" IS '状态';
  2916. COMMENT ON COLUMN "system_oauth2_code"."creator" IS '创建者';
  2917. COMMENT ON COLUMN "system_oauth2_code"."create_time" IS '创建时间';
  2918. COMMENT ON COLUMN "system_oauth2_code"."updater" IS '更新者';
  2919. COMMENT ON COLUMN "system_oauth2_code"."update_time" IS '更新时间';
  2920. COMMENT ON COLUMN "system_oauth2_code"."deleted" IS '是否删除';
  2921. COMMENT ON COLUMN "system_oauth2_code"."tenant_id" IS '租户编号';
  2922. COMMENT ON TABLE "system_oauth2_code" IS 'OAuth2 授权码表';
  2923. -- ----------------------------
  2924. -- Records of system_oauth2_code
  2925. -- ----------------------------
  2926. BEGIN;
  2927. COMMIT;
  2928. -- ----------------------------
  2929. -- Table structure for system_oauth2_refresh_token
  2930. -- ----------------------------
  2931. DROP TABLE IF EXISTS "system_oauth2_refresh_token";
  2932. CREATE TABLE "system_oauth2_refresh_token" (
  2933. "id" int8 NOT NULL,
  2934. "user_id" int8 NOT NULL,
  2935. "refresh_token" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  2936. "user_type" int2 NOT NULL,
  2937. "client_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2938. "expires_time" timestamp(6) NOT NULL,
  2939. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2940. "create_time" timestamp(6) NOT NULL,
  2941. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2942. "update_time" timestamp(6) NOT NULL,
  2943. "deleted" int2 NOT NULL DEFAULT 0,
  2944. "tenant_id" int8 NOT NULL DEFAULT 0,
  2945. "scopes" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  2946. )
  2947. ;
  2948. COMMENT ON COLUMN "system_oauth2_refresh_token"."id" IS '编号';
  2949. COMMENT ON COLUMN "system_oauth2_refresh_token"."user_id" IS '用户编号';
  2950. COMMENT ON COLUMN "system_oauth2_refresh_token"."refresh_token" IS '刷新令牌';
  2951. COMMENT ON COLUMN "system_oauth2_refresh_token"."user_type" IS '用户类型';
  2952. COMMENT ON COLUMN "system_oauth2_refresh_token"."client_id" IS '客户端编号';
  2953. COMMENT ON COLUMN "system_oauth2_refresh_token"."expires_time" IS '过期时间';
  2954. COMMENT ON COLUMN "system_oauth2_refresh_token"."creator" IS '创建者';
  2955. COMMENT ON COLUMN "system_oauth2_refresh_token"."create_time" IS '创建时间';
  2956. COMMENT ON COLUMN "system_oauth2_refresh_token"."updater" IS '更新者';
  2957. COMMENT ON COLUMN "system_oauth2_refresh_token"."update_time" IS '更新时间';
  2958. COMMENT ON COLUMN "system_oauth2_refresh_token"."deleted" IS '是否删除';
  2959. COMMENT ON COLUMN "system_oauth2_refresh_token"."tenant_id" IS '租户编号';
  2960. COMMENT ON COLUMN "system_oauth2_refresh_token"."scopes" IS '授权范围';
  2961. COMMENT ON TABLE "system_oauth2_refresh_token" IS '刷新令牌';
  2962. -- ----------------------------
  2963. -- Records of system_oauth2_refresh_token
  2964. -- ----------------------------
  2965. BEGIN;
  2966. COMMIT;
  2967. -- ----------------------------
  2968. -- Table structure for system_operate_log
  2969. -- ----------------------------
  2970. DROP TABLE IF EXISTS "system_operate_log";
  2971. CREATE TABLE "system_operate_log" (
  2972. "id" int8 NOT NULL,
  2973. "trace_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  2974. "user_id" int8 NOT NULL,
  2975. "user_type" int2 NOT NULL,
  2976. "module" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  2977. "name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  2978. "type" int8 NOT NULL,
  2979. "content" varchar(2000) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  2980. "exts" varchar(512) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  2981. "request_method" varchar(16) COLLATE "pg_catalog"."default",
  2982. "request_url" varchar(255) COLLATE "pg_catalog"."default",
  2983. "user_ip" varchar(50) COLLATE "pg_catalog"."default",
  2984. "user_agent" varchar(200) COLLATE "pg_catalog"."default",
  2985. "java_method" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  2986. "java_method_args" varchar(8000) COLLATE "pg_catalog"."default",
  2987. "start_time" timestamp(6) NOT NULL,
  2988. "duration" int4 NOT NULL,
  2989. "result_code" int4 NOT NULL,
  2990. "result_msg" varchar(512) COLLATE "pg_catalog"."default",
  2991. "result_data" varchar(4000) COLLATE "pg_catalog"."default",
  2992. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2993. "create_time" timestamp(6) NOT NULL,
  2994. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2995. "update_time" timestamp(6) NOT NULL,
  2996. "deleted" int2 NOT NULL DEFAULT 0,
  2997. "tenant_id" int8 NOT NULL DEFAULT 0
  2998. )
  2999. ;
  3000. COMMENT ON COLUMN "system_operate_log"."id" IS '日志主键';
  3001. COMMENT ON COLUMN "system_operate_log"."trace_id" IS '链路追踪编号';
  3002. COMMENT ON COLUMN "system_operate_log"."user_id" IS '用户编号';
  3003. COMMENT ON COLUMN "system_operate_log"."user_type" IS '用户类型';
  3004. COMMENT ON COLUMN "system_operate_log"."module" IS '模块标题';
  3005. COMMENT ON COLUMN "system_operate_log"."name" IS '操作名';
  3006. COMMENT ON COLUMN "system_operate_log"."type" IS '操作分类';
  3007. COMMENT ON COLUMN "system_operate_log"."content" IS '操作内容';
  3008. COMMENT ON COLUMN "system_operate_log"."exts" IS '拓展字段';
  3009. COMMENT ON COLUMN "system_operate_log"."request_method" IS '请求方法名';
  3010. COMMENT ON COLUMN "system_operate_log"."request_url" IS '请求地址';
  3011. COMMENT ON COLUMN "system_operate_log"."user_ip" IS '用户 IP';
  3012. COMMENT ON COLUMN "system_operate_log"."user_agent" IS '浏览器 UA';
  3013. COMMENT ON COLUMN "system_operate_log"."java_method" IS 'Java 方法名';
  3014. COMMENT ON COLUMN "system_operate_log"."java_method_args" IS 'Java 方法的参数';
  3015. COMMENT ON COLUMN "system_operate_log"."start_time" IS '操作时间';
  3016. COMMENT ON COLUMN "system_operate_log"."duration" IS '执行时长';
  3017. COMMENT ON COLUMN "system_operate_log"."result_code" IS '结果码';
  3018. COMMENT ON COLUMN "system_operate_log"."result_msg" IS '结果提示';
  3019. COMMENT ON COLUMN "system_operate_log"."result_data" IS '结果数据';
  3020. COMMENT ON COLUMN "system_operate_log"."creator" IS '创建者';
  3021. COMMENT ON COLUMN "system_operate_log"."create_time" IS '创建时间';
  3022. COMMENT ON COLUMN "system_operate_log"."updater" IS '更新者';
  3023. COMMENT ON COLUMN "system_operate_log"."update_time" IS '更新时间';
  3024. COMMENT ON COLUMN "system_operate_log"."deleted" IS '是否删除';
  3025. COMMENT ON COLUMN "system_operate_log"."tenant_id" IS '租户编号';
  3026. COMMENT ON TABLE "system_operate_log" IS '操作日志记录';
  3027. -- ----------------------------
  3028. -- Records of system_operate_log
  3029. -- ----------------------------
  3030. BEGIN;
  3031. COMMIT;
  3032. -- ----------------------------
  3033. -- Table structure for system_post
  3034. -- ----------------------------
  3035. DROP TABLE IF EXISTS "system_post";
  3036. CREATE TABLE "system_post" (
  3037. "id" int8 NOT NULL DEFAULT 0,
  3038. "code" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  3039. "name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  3040. "sort" int4 NOT NULL,
  3041. "status" int2 NOT NULL,
  3042. "remark" varchar(500) COLLATE "pg_catalog"."default",
  3043. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3044. "create_time" timestamp(6) NOT NULL,
  3045. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3046. "update_time" timestamp(6) NOT NULL,
  3047. "deleted" int2 NOT NULL DEFAULT 0,
  3048. "tenant_id" int8 NOT NULL DEFAULT 0
  3049. )
  3050. ;
  3051. COMMENT ON COLUMN "system_post"."id" IS '岗位ID';
  3052. COMMENT ON COLUMN "system_post"."code" IS '岗位编码';
  3053. COMMENT ON COLUMN "system_post"."name" IS '岗位名称';
  3054. COMMENT ON COLUMN "system_post"."sort" IS '显示顺序';
  3055. COMMENT ON COLUMN "system_post"."status" IS '状态(0正常 1停用)';
  3056. COMMENT ON COLUMN "system_post"."remark" IS '备注';
  3057. COMMENT ON COLUMN "system_post"."creator" IS '创建者';
  3058. COMMENT ON COLUMN "system_post"."create_time" IS '创建时间';
  3059. COMMENT ON COLUMN "system_post"."updater" IS '更新者';
  3060. COMMENT ON COLUMN "system_post"."update_time" IS '更新时间';
  3061. COMMENT ON COLUMN "system_post"."deleted" IS '是否删除';
  3062. COMMENT ON COLUMN "system_post"."tenant_id" IS '租户编号';
  3063. COMMENT ON TABLE "system_post" IS '岗位信息表';
  3064. -- ----------------------------
  3065. -- Records of system_post
  3066. -- ----------------------------
  3067. BEGIN;
  3068. INSERT INTO "system_post" ("id", "code", "name", "sort", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1, 'ceo', '董事长', 1, 0, '', 'admin', '2021-01-06 17:03:48', '1', '2022-04-19 16:53:39', 0, 1);
  3069. INSERT INTO "system_post" ("id", "code", "name", "sort", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (2, 'se', '项目经理', 2, 0, '', 'admin', '2021-01-05 17:03:48', '1', '2021-12-12 10:47:47', 0, 1);
  3070. INSERT INTO "system_post" ("id", "code", "name", "sort", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (4, 'user', '普通员工', 4, 0, '111', 'admin', '2021-01-05 17:03:48', '1', '2022-05-04 22:46:35', 0, 1);
  3071. COMMIT;
  3072. -- ----------------------------
  3073. -- Table structure for system_role
  3074. -- ----------------------------
  3075. DROP TABLE IF EXISTS "system_role";
  3076. CREATE TABLE "system_role" (
  3077. "id" int8 NOT NULL,
  3078. "name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  3079. "code" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  3080. "sort" int4 NOT NULL,
  3081. "data_scope" int2 NOT NULL,
  3082. "data_scope_dept_ids" varchar(500) COLLATE "pg_catalog"."default" NOT NULL,
  3083. "status" int2 NOT NULL,
  3084. "type" int2 NOT NULL,
  3085. "remark" varchar(500) COLLATE "pg_catalog"."default",
  3086. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3087. "create_time" timestamp(6) NOT NULL,
  3088. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3089. "update_time" timestamp(6) NOT NULL,
  3090. "deleted" int2 NOT NULL DEFAULT 0,
  3091. "tenant_id" int8 NOT NULL DEFAULT 0
  3092. )
  3093. ;
  3094. COMMENT ON COLUMN "system_role"."id" IS '角色ID';
  3095. COMMENT ON COLUMN "system_role"."name" IS '角色名称';
  3096. COMMENT ON COLUMN "system_role"."code" IS '角色权限字符串';
  3097. COMMENT ON COLUMN "system_role"."sort" IS '显示顺序';
  3098. COMMENT ON COLUMN "system_role"."data_scope" IS '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)';
  3099. COMMENT ON COLUMN "system_role"."data_scope_dept_ids" IS '数据范围(指定部门数组)';
  3100. COMMENT ON COLUMN "system_role"."status" IS '角色状态(0正常 1停用)';
  3101. COMMENT ON COLUMN "system_role"."type" IS '角色类型';
  3102. COMMENT ON COLUMN "system_role"."remark" IS '备注';
  3103. COMMENT ON COLUMN "system_role"."creator" IS '创建者';
  3104. COMMENT ON COLUMN "system_role"."create_time" IS '创建时间';
  3105. COMMENT ON COLUMN "system_role"."updater" IS '更新者';
  3106. COMMENT ON COLUMN "system_role"."update_time" IS '更新时间';
  3107. COMMENT ON COLUMN "system_role"."deleted" IS '是否删除';
  3108. COMMENT ON COLUMN "system_role"."tenant_id" IS '租户编号';
  3109. COMMENT ON TABLE "system_role" IS '角色信息表';
  3110. -- ----------------------------
  3111. -- Records of system_role
  3112. -- ----------------------------
  3113. BEGIN;
  3114. INSERT INTO "system_role" ("id", "name", "code", "sort", "data_scope", "data_scope_dept_ids", "status", "type", "remark", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1, '超级管理员', 'super_admin', 1, 1, '', 0, 1, '超级管理员', 'admin', '2021-01-05 17:03:48', '', '2022-02-22 05:08:21', 0, 1);
  3115. INSERT INTO "system_role" ("id", "name", "code", "sort", "data_scope", "data_scope_dept_ids", "status", "type", "remark", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (2, '普通角色', 'common', 2, 2, '', 0, 1, '普通角色', 'admin', '2021-01-05 17:03:48', '', '2022-02-22 05:08:20', 0, 1);
  3116. INSERT INTO "system_role" ("id", "name", "code", "sort", "data_scope", "data_scope_dept_ids", "status", "type", "remark", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (101, '测试账号', 'test', 0, 1, '[]', 0, 2, '132', '', '2021-01-06 13:49:35', '1', '2022-04-01 21:37:13', 0, 1);
  3117. INSERT INTO "system_role" ("id", "name", "code", "sort", "data_scope", "data_scope_dept_ids", "status", "type", "remark", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (109, '租户管理员', 'tenant_admin', 0, 1, '', 0, 1, '系统自动生成', '1', '2022-02-22 00:56:14', '1', '2022-02-22 00:56:14', 0, 121);
  3118. INSERT INTO "system_role" ("id", "name", "code", "sort", "data_scope", "data_scope_dept_ids", "status", "type", "remark", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (110, '测试角色', 'test', 0, 1, '[]', 0, 2, '嘿嘿', '110', '2022-02-23 00:14:34', '110', '2022-02-23 13:14:58', 0, 121);
  3119. INSERT INTO "system_role" ("id", "name", "code", "sort", "data_scope", "data_scope_dept_ids", "status", "type", "remark", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (111, '租户管理员', 'tenant_admin', 0, 1, '', 0, 1, '系统自动生成', '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
  3120. COMMIT;
  3121. -- ----------------------------
  3122. -- Table structure for system_role_menu
  3123. -- ----------------------------
  3124. DROP TABLE IF EXISTS "system_role_menu";
  3125. CREATE TABLE "system_role_menu" (
  3126. "id" int8 NOT NULL,
  3127. "role_id" int8 NOT NULL,
  3128. "menu_id" int8 NOT NULL,
  3129. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3130. "create_time" timestamp(6) NOT NULL,
  3131. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3132. "update_time" timestamp(6) NOT NULL,
  3133. "deleted" int2 NOT NULL DEFAULT 0,
  3134. "tenant_id" int8 NOT NULL DEFAULT 0
  3135. )
  3136. ;
  3137. COMMENT ON COLUMN "system_role_menu"."id" IS '自增编号';
  3138. COMMENT ON COLUMN "system_role_menu"."role_id" IS '角色ID';
  3139. COMMENT ON COLUMN "system_role_menu"."menu_id" IS '菜单ID';
  3140. COMMENT ON COLUMN "system_role_menu"."creator" IS '创建者';
  3141. COMMENT ON COLUMN "system_role_menu"."create_time" IS '创建时间';
  3142. COMMENT ON COLUMN "system_role_menu"."updater" IS '更新者';
  3143. COMMENT ON COLUMN "system_role_menu"."update_time" IS '更新时间';
  3144. COMMENT ON COLUMN "system_role_menu"."deleted" IS '是否删除';
  3145. COMMENT ON COLUMN "system_role_menu"."tenant_id" IS '租户编号';
  3146. COMMENT ON TABLE "system_role_menu" IS '角色和菜单关联表';
  3147. -- ----------------------------
  3148. -- Records of system_role_menu
  3149. -- ----------------------------
  3150. BEGIN;
  3151. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (263, 109, 1, '1', '2022-02-22 00:56:14', '1', '2022-02-22 00:56:14', 0, 121);
  3152. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (434, 2, 1, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3153. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (454, 2, 1093, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3154. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (455, 2, 1094, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3155. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (460, 2, 1100, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3156. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (467, 2, 1107, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3157. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (470, 2, 1110, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3158. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (476, 2, 1117, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3159. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (477, 2, 100, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3160. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (478, 2, 101, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3161. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (479, 2, 102, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3162. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (480, 2, 1126, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3163. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (481, 2, 103, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3164. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (483, 2, 104, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3165. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (485, 2, 105, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3166. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (488, 2, 107, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3167. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (490, 2, 108, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3168. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (492, 2, 109, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3169. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (498, 2, 1138, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3170. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (523, 2, 1224, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3171. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (524, 2, 1225, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3172. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (541, 2, 500, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3173. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (543, 2, 501, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
  3174. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (675, 2, 2, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
  3175. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (689, 2, 1077, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
  3176. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (690, 2, 1078, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
  3177. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (692, 2, 1083, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
  3178. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (693, 2, 1084, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
  3179. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (699, 2, 1090, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
  3180. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (703, 2, 106, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
  3181. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (704, 2, 110, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
  3182. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (705, 2, 111, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
  3183. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (706, 2, 112, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
  3184. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (707, 2, 113, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
  3185. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1296, 110, 1, '110', '2022-02-23 00:23:55', '110', '2022-02-23 00:23:55', 0, 121);
  3186. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1486, 109, 103, '1', '2022-02-23 19:32:14', '1', '2022-02-23 19:32:14', 0, 121);
  3187. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1487, 109, 104, '1', '2022-02-23 19:32:14', '1', '2022-02-23 19:32:14', 0, 121);
  3188. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1489, 1, 1, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3189. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1490, 1, 2, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3190. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1494, 1, 1077, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3191. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1495, 1, 1078, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3192. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1496, 1, 1083, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3193. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1497, 1, 1084, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3194. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1498, 1, 1090, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3195. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1499, 1, 1093, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3196. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1500, 1, 1094, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3197. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1501, 1, 1100, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3198. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1502, 1, 1107, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3199. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1503, 1, 1110, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3200. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1505, 1, 1117, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3201. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1506, 1, 100, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3202. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1507, 1, 101, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3203. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1508, 1, 102, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3204. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1509, 1, 1126, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3205. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1510, 1, 103, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3206. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1511, 1, 104, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3207. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1512, 1, 105, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3208. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1513, 1, 106, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3209. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1514, 1, 107, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3210. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1515, 1, 108, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3211. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1516, 1, 109, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3212. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1517, 1, 110, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3213. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1518, 1, 111, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3214. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1519, 1, 112, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3215. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1520, 1, 113, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3216. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1522, 1, 1138, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3217. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1525, 1, 1224, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3218. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1526, 1, 1225, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3219. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1527, 1, 500, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3220. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1528, 1, 501, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
  3221. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1529, 109, 1024, '1', '2022-02-23 20:30:14', '1', '2022-02-23 20:30:14', 0, 121);
  3222. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1530, 109, 1025, '1', '2022-02-23 20:30:14', '1', '2022-02-23 20:30:14', 0, 121);
  3223. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1536, 109, 1017, '1', '2022-02-23 20:30:14', '1', '2022-02-23 20:30:14', 0, 121);
  3224. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1537, 109, 1018, '1', '2022-02-23 20:30:14', '1', '2022-02-23 20:30:14', 0, 121);
  3225. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1538, 109, 1019, '1', '2022-02-23 20:30:14', '1', '2022-02-23 20:30:14', 0, 121);
  3226. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1539, 109, 1020, '1', '2022-02-23 20:30:14', '1', '2022-02-23 20:30:14', 0, 121);
  3227. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1540, 109, 1021, '1', '2022-02-23 20:30:14', '1', '2022-02-23 20:30:14', 0, 121);
  3228. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1541, 109, 1022, '1', '2022-02-23 20:30:14', '1', '2022-02-23 20:30:14', 0, 121);
  3229. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1542, 109, 1023, '1', '2022-02-23 20:30:14', '1', '2022-02-23 20:30:14', 0, 121);
  3230. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1576, 111, 1024, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
  3231. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1577, 111, 1025, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
  3232. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1578, 111, 1, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
  3233. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1584, 111, 103, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
  3234. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1585, 111, 104, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
  3235. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1587, 111, 1017, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
  3236. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1588, 111, 1018, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
  3237. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1589, 111, 1019, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
  3238. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1590, 111, 1020, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
  3239. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1591, 111, 1021, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
  3240. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1592, 111, 1022, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
  3241. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1593, 111, 1023, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
  3242. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1594, 109, 102, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 121);
  3243. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1595, 109, 1013, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 121);
  3244. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1596, 109, 1014, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 121);
  3245. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1597, 109, 1015, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 121);
  3246. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1598, 109, 1016, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 121);
  3247. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1599, 111, 102, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 122);
  3248. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1600, 111, 1013, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 122);
  3249. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1601, 111, 1014, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 122);
  3250. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1602, 111, 1015, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 122);
  3251. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1603, 111, 1016, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 122);
  3252. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1604, 101, 1216, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3253. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1605, 101, 1217, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3254. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1606, 101, 1218, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3255. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1607, 101, 1219, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3256. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1608, 101, 1220, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3257. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1609, 101, 1221, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3258. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1610, 101, 5, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3259. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1611, 101, 1222, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3260. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1612, 101, 1118, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3261. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1613, 101, 1119, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3262. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1614, 101, 1120, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3263. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1615, 101, 1185, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3264. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1616, 101, 1186, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3265. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1617, 101, 1187, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3266. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1618, 101, 1188, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3267. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1619, 101, 1189, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3268. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1620, 101, 1190, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3269. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1621, 101, 1191, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3270. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1622, 101, 1192, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3271. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1623, 101, 1193, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3272. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1624, 101, 1194, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3273. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1625, 101, 1195, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3274. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1626, 101, 1196, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3275. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1627, 101, 1197, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3276. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1628, 101, 1198, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3277. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1629, 101, 1199, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3278. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1630, 101, 1200, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3279. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1631, 101, 1201, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3280. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1632, 101, 1202, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3281. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1633, 101, 1207, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3282. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1634, 101, 1208, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3283. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1635, 101, 1209, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3284. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1636, 101, 1210, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3285. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1637, 101, 1211, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3286. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1638, 101, 1212, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3287. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1639, 101, 1213, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3288. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1640, 101, 1215, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
  3289. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1641, 101, 2, '1', '2022-04-01 22:21:24', '1', '2022-04-01 22:21:24', 0, 1);
  3290. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1642, 101, 1031, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3291. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1643, 101, 1032, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3292. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1644, 101, 1033, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3293. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1645, 101, 1034, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3294. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1646, 101, 1035, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3295. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1647, 101, 1050, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3296. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1648, 101, 1051, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3297. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1649, 101, 1052, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3298. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1650, 101, 1053, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3299. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1651, 101, 1054, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3300. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1652, 101, 1056, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3301. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1653, 101, 1057, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3302. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1654, 101, 1058, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3303. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1655, 101, 1059, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3304. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1656, 101, 1060, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3305. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1657, 101, 1066, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3306. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1658, 101, 1067, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3307. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1659, 101, 1070, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3308. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1660, 101, 1071, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3309. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1661, 101, 1072, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3310. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1662, 101, 1073, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3311. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1663, 101, 1074, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3312. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1664, 101, 1075, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3313. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1665, 101, 1076, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3314. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1666, 101, 1077, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3315. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1667, 101, 1078, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3316. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1668, 101, 1082, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3317. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1669, 101, 1083, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3318. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1670, 101, 1084, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3319. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1671, 101, 1085, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3320. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1672, 101, 1086, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3321. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1673, 101, 1087, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3322. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1674, 101, 1088, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3323. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1675, 101, 1089, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3324. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1676, 101, 1090, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3325. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1677, 101, 1091, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3326. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1678, 101, 1092, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3327. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1679, 101, 1237, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3328. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1680, 101, 1238, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3329. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1681, 101, 1239, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3330. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1682, 101, 1240, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3331. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1683, 101, 1241, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3332. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1684, 101, 1242, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3333. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1685, 101, 1243, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3334. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1687, 101, 106, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3335. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1688, 101, 110, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3336. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1689, 101, 111, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3337. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1690, 101, 112, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3338. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1691, 101, 113, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3339. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1692, 101, 114, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3340. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1693, 101, 115, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3341. INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1694, 101, 116, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
  3342. COMMIT;
  3343. -- ----------------------------
  3344. -- Table structure for system_sensitive_word
  3345. -- ----------------------------
  3346. DROP TABLE IF EXISTS "system_sensitive_word";
  3347. CREATE TABLE "system_sensitive_word" (
  3348. "id" int8 NOT NULL,
  3349. "name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3350. "description" varchar(512) COLLATE "pg_catalog"."default",
  3351. "tags" varchar(255) COLLATE "pg_catalog"."default",
  3352. "status" int2 NOT NULL,
  3353. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3354. "create_time" timestamp(6) NOT NULL,
  3355. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3356. "update_time" timestamp(6) NOT NULL,
  3357. "deleted" int2 NOT NULL DEFAULT 0
  3358. )
  3359. ;
  3360. COMMENT ON COLUMN "system_sensitive_word"."id" IS '编号';
  3361. COMMENT ON COLUMN "system_sensitive_word"."name" IS '敏感词';
  3362. COMMENT ON COLUMN "system_sensitive_word"."description" IS '描述';
  3363. COMMENT ON COLUMN "system_sensitive_word"."tags" IS '标签数组';
  3364. COMMENT ON COLUMN "system_sensitive_word"."status" IS '状态';
  3365. COMMENT ON COLUMN "system_sensitive_word"."creator" IS '创建者';
  3366. COMMENT ON COLUMN "system_sensitive_word"."create_time" IS '创建时间';
  3367. COMMENT ON COLUMN "system_sensitive_word"."updater" IS '更新者';
  3368. COMMENT ON COLUMN "system_sensitive_word"."update_time" IS '更新时间';
  3369. COMMENT ON COLUMN "system_sensitive_word"."deleted" IS '是否删除';
  3370. COMMENT ON TABLE "system_sensitive_word" IS '敏感词';
  3371. -- ----------------------------
  3372. -- Records of system_sensitive_word
  3373. -- ----------------------------
  3374. BEGIN;
  3375. INSERT INTO "system_sensitive_word" ("id", "name", "description", "tags", "status", "creator", "create_time", "updater", "update_time", "deleted") VALUES (3, '土豆', '好呀', '蔬菜,短信', 0, '1', '2022-04-08 21:07:12', '1', '2022-04-09 10:28:14', 0);
  3376. INSERT INTO "system_sensitive_word" ("id", "name", "description", "tags", "status", "creator", "create_time", "updater", "update_time", "deleted") VALUES (4, 'XXX', NULL, '短信', 0, '1', '2022-04-08 21:27:49', '1', '2022-04-08 21:27:49', 0);
  3377. COMMIT;
  3378. -- ----------------------------
  3379. -- Table structure for system_sms_channel
  3380. -- ----------------------------
  3381. DROP TABLE IF EXISTS "system_sms_channel";
  3382. CREATE TABLE "system_sms_channel" (
  3383. "id" int8 NOT NULL,
  3384. "signature" varchar(12) COLLATE "pg_catalog"."default" NOT NULL,
  3385. "code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3386. "status" int2 NOT NULL,
  3387. "remark" varchar(255) COLLATE "pg_catalog"."default",
  3388. "api_key" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
  3389. "api_secret" varchar(128) COLLATE "pg_catalog"."default",
  3390. "callback_url" varchar(255) COLLATE "pg_catalog"."default",
  3391. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3392. "create_time" timestamp(6) NOT NULL,
  3393. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3394. "update_time" timestamp(6) NOT NULL,
  3395. "deleted" int2 NOT NULL DEFAULT 0
  3396. )
  3397. ;
  3398. COMMENT ON COLUMN "system_sms_channel"."id" IS '编号';
  3399. COMMENT ON COLUMN "system_sms_channel"."signature" IS '短信签名';
  3400. COMMENT ON COLUMN "system_sms_channel"."code" IS '渠道编码';
  3401. COMMENT ON COLUMN "system_sms_channel"."status" IS '开启状态';
  3402. COMMENT ON COLUMN "system_sms_channel"."remark" IS '备注';
  3403. COMMENT ON COLUMN "system_sms_channel"."api_key" IS '短信 API 的账号';
  3404. COMMENT ON COLUMN "system_sms_channel"."api_secret" IS '短信 API 的秘钥';
  3405. COMMENT ON COLUMN "system_sms_channel"."callback_url" IS '短信发送回调 URL';
  3406. COMMENT ON COLUMN "system_sms_channel"."creator" IS '创建者';
  3407. COMMENT ON COLUMN "system_sms_channel"."create_time" IS '创建时间';
  3408. COMMENT ON COLUMN "system_sms_channel"."updater" IS '更新者';
  3409. COMMENT ON COLUMN "system_sms_channel"."update_time" IS '更新时间';
  3410. COMMENT ON COLUMN "system_sms_channel"."deleted" IS '是否删除';
  3411. COMMENT ON TABLE "system_sms_channel" IS '短信渠道';
  3412. -- ----------------------------
  3413. -- Records of system_sms_channel
  3414. -- ----------------------------
  3415. BEGIN;
  3416. INSERT INTO "system_sms_channel" ("id", "signature", "code", "status", "remark", "api_key", "api_secret", "callback_url", "creator", "create_time", "updater", "update_time", "deleted") VALUES (2, 'Ballcat', 'ALIYUN', 0, '啦啦啦', 'LTAI5tCnKso2uG3kJ5gRav88', 'fGJ5SNXL7P1NHNRmJ7DJaMJGPyE55C', NULL, '', '2021-03-31 11:53:10', '1', '2021-04-14 00:08:37', 0);
  3417. INSERT INTO "system_sms_channel" ("id", "signature", "code", "status", "remark", "api_key", "api_secret", "callback_url", "creator", "create_time", "updater", "update_time", "deleted") VALUES (4, '测试渠道', 'DEBUG_DING_TALK', 0, '123', '696b5d8ead48071237e4aa5861ff08dbadb2b4ded1c688a7b7c9afc615579859', 'SEC5c4e5ff888bc8a9923ae47f59e7ccd30af1f14d93c55b4e2c9cb094e35aeed67', NULL, '1', '2021-04-13 00:23:14', '1', '2022-03-27 20:29:49', 0);
  3418. INSERT INTO "system_sms_channel" ("id", "signature", "code", "status", "remark", "api_key", "api_secret", "callback_url", "creator", "create_time", "updater", "update_time", "deleted") VALUES (6, '测试演示', 'DEBUG_DING_TALK', 0, NULL, '696b5d8ead48071237e4aa5861ff08dbadb2b4ded1c688a7b7c9afc615579859', 'SEC5c4e5ff888bc8a9923ae47f59e7ccd30af1f14d93c55b4e2c9cb094e35aeed67', NULL, '1', '2022-04-10 23:07:59', '1', '2022-04-10 23:07:59', 0);
  3419. COMMIT;
  3420. -- ----------------------------
  3421. -- Table structure for system_sms_code
  3422. -- ----------------------------
  3423. DROP TABLE IF EXISTS "system_sms_code";
  3424. CREATE TABLE "system_sms_code" (
  3425. "id" int8 NOT NULL,
  3426. "mobile" varchar(11) COLLATE "pg_catalog"."default" NOT NULL,
  3427. "code" varchar(6) COLLATE "pg_catalog"."default" NOT NULL,
  3428. "create_ip" varchar(15) COLLATE "pg_catalog"."default" NOT NULL,
  3429. "scene" int2 NOT NULL,
  3430. "today_index" int2 NOT NULL,
  3431. "used" bool NOT NULL,
  3432. "used_time" timestamp(6),
  3433. "used_ip" varchar(255) COLLATE "pg_catalog"."default",
  3434. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3435. "create_time" timestamp(6) NOT NULL,
  3436. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3437. "update_time" timestamp(6) NOT NULL,
  3438. "deleted" int2 NOT NULL DEFAULT 0,
  3439. "tenant_id" int8 NOT NULL DEFAULT 0
  3440. )
  3441. ;
  3442. COMMENT ON COLUMN "system_sms_code"."id" IS '编号';
  3443. COMMENT ON COLUMN "system_sms_code"."mobile" IS '手机号';
  3444. COMMENT ON COLUMN "system_sms_code"."code" IS '验证码';
  3445. COMMENT ON COLUMN "system_sms_code"."create_ip" IS '创建 IP';
  3446. COMMENT ON COLUMN "system_sms_code"."scene" IS '发送场景';
  3447. COMMENT ON COLUMN "system_sms_code"."today_index" IS '今日发送的第几条';
  3448. COMMENT ON COLUMN "system_sms_code"."used" IS '是否使用';
  3449. COMMENT ON COLUMN "system_sms_code"."used_time" IS '使用时间';
  3450. COMMENT ON COLUMN "system_sms_code"."used_ip" IS '使用 IP';
  3451. COMMENT ON COLUMN "system_sms_code"."creator" IS '创建者';
  3452. COMMENT ON COLUMN "system_sms_code"."create_time" IS '创建时间';
  3453. COMMENT ON COLUMN "system_sms_code"."updater" IS '更新者';
  3454. COMMENT ON COLUMN "system_sms_code"."update_time" IS '更新时间';
  3455. COMMENT ON COLUMN "system_sms_code"."deleted" IS '是否删除';
  3456. COMMENT ON COLUMN "system_sms_code"."tenant_id" IS '租户编号';
  3457. COMMENT ON TABLE "system_sms_code" IS '手机验证码';
  3458. -- ----------------------------
  3459. -- Records of system_sms_code
  3460. -- ----------------------------
  3461. BEGIN;
  3462. COMMIT;
  3463. -- ----------------------------
  3464. -- Table structure for system_sms_log
  3465. -- ----------------------------
  3466. DROP TABLE IF EXISTS "system_sms_log";
  3467. CREATE TABLE "system_sms_log" (
  3468. "id" int8 NOT NULL,
  3469. "channel_id" int8 NOT NULL,
  3470. "channel_code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3471. "template_id" int8 NOT NULL,
  3472. "template_code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3473. "template_type" int2 NOT NULL,
  3474. "template_content" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3475. "template_params" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3476. "api_template_id" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3477. "mobile" varchar(11) COLLATE "pg_catalog"."default" NOT NULL,
  3478. "user_id" int8,
  3479. "user_type" int2,
  3480. "send_status" int2 NOT NULL,
  3481. "send_time" timestamp(6),
  3482. "send_code" int4,
  3483. "send_msg" varchar(255) COLLATE "pg_catalog"."default",
  3484. "api_send_code" varchar(63) COLLATE "pg_catalog"."default",
  3485. "api_send_msg" varchar(255) COLLATE "pg_catalog"."default",
  3486. "api_request_id" varchar(255) COLLATE "pg_catalog"."default",
  3487. "api_serial_no" varchar(255) COLLATE "pg_catalog"."default",
  3488. "receive_status" int2 NOT NULL,
  3489. "receive_time" timestamp(6),
  3490. "api_receive_code" varchar(63) COLLATE "pg_catalog"."default",
  3491. "api_receive_msg" varchar(255) COLLATE "pg_catalog"."default",
  3492. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3493. "create_time" timestamp(6) NOT NULL,
  3494. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3495. "update_time" timestamp(6) NOT NULL,
  3496. "deleted" int2 NOT NULL DEFAULT 0
  3497. )
  3498. ;
  3499. COMMENT ON COLUMN "system_sms_log"."id" IS '编号';
  3500. COMMENT ON COLUMN "system_sms_log"."channel_id" IS '短信渠道编号';
  3501. COMMENT ON COLUMN "system_sms_log"."channel_code" IS '短信渠道编码';
  3502. COMMENT ON COLUMN "system_sms_log"."template_id" IS '模板编号';
  3503. COMMENT ON COLUMN "system_sms_log"."template_code" IS '模板编码';
  3504. COMMENT ON COLUMN "system_sms_log"."template_type" IS '短信类型';
  3505. COMMENT ON COLUMN "system_sms_log"."template_content" IS '短信内容';
  3506. COMMENT ON COLUMN "system_sms_log"."template_params" IS '短信参数';
  3507. COMMENT ON COLUMN "system_sms_log"."api_template_id" IS '短信 API 的模板编号';
  3508. COMMENT ON COLUMN "system_sms_log"."mobile" IS '手机号';
  3509. COMMENT ON COLUMN "system_sms_log"."user_id" IS '用户编号';
  3510. COMMENT ON COLUMN "system_sms_log"."user_type" IS '用户类型';
  3511. COMMENT ON COLUMN "system_sms_log"."send_status" IS '发送状态';
  3512. COMMENT ON COLUMN "system_sms_log"."send_time" IS '发送时间';
  3513. COMMENT ON COLUMN "system_sms_log"."send_code" IS '发送结果的编码';
  3514. COMMENT ON COLUMN "system_sms_log"."send_msg" IS '发送结果的提示';
  3515. COMMENT ON COLUMN "system_sms_log"."api_send_code" IS '短信 API 发送结果的编码';
  3516. COMMENT ON COLUMN "system_sms_log"."api_send_msg" IS '短信 API 发送失败的提示';
  3517. COMMENT ON COLUMN "system_sms_log"."api_request_id" IS '短信 API 发送返回的唯一请求 ID';
  3518. COMMENT ON COLUMN "system_sms_log"."api_serial_no" IS '短信 API 发送返回的序号';
  3519. COMMENT ON COLUMN "system_sms_log"."receive_status" IS '接收状态';
  3520. COMMENT ON COLUMN "system_sms_log"."receive_time" IS '接收时间';
  3521. COMMENT ON COLUMN "system_sms_log"."api_receive_code" IS 'API 接收结果的编码';
  3522. COMMENT ON COLUMN "system_sms_log"."api_receive_msg" IS 'API 接收结果的说明';
  3523. COMMENT ON COLUMN "system_sms_log"."creator" IS '创建者';
  3524. COMMENT ON COLUMN "system_sms_log"."create_time" IS '创建时间';
  3525. COMMENT ON COLUMN "system_sms_log"."updater" IS '更新者';
  3526. COMMENT ON COLUMN "system_sms_log"."update_time" IS '更新时间';
  3527. COMMENT ON COLUMN "system_sms_log"."deleted" IS '是否删除';
  3528. COMMENT ON TABLE "system_sms_log" IS '短信日志';
  3529. -- ----------------------------
  3530. -- Records of system_sms_log
  3531. -- ----------------------------
  3532. BEGIN;
  3533. COMMIT;
  3534. -- ----------------------------
  3535. -- Table structure for system_sms_template
  3536. -- ----------------------------
  3537. DROP TABLE IF EXISTS "system_sms_template";
  3538. CREATE TABLE "system_sms_template" (
  3539. "id" int8 NOT NULL,
  3540. "type" int2 NOT NULL,
  3541. "status" int2 NOT NULL,
  3542. "code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3543. "name" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3544. "content" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3545. "params" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3546. "remark" varchar(255) COLLATE "pg_catalog"."default",
  3547. "api_template_id" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3548. "channel_id" int8 NOT NULL,
  3549. "channel_code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3550. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3551. "create_time" timestamp(6) NOT NULL,
  3552. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3553. "update_time" timestamp(6) NOT NULL,
  3554. "deleted" int2 NOT NULL DEFAULT 0
  3555. )
  3556. ;
  3557. COMMENT ON COLUMN "system_sms_template"."id" IS '编号';
  3558. COMMENT ON COLUMN "system_sms_template"."type" IS '短信签名';
  3559. COMMENT ON COLUMN "system_sms_template"."status" IS '开启状态';
  3560. COMMENT ON COLUMN "system_sms_template"."code" IS '模板编码';
  3561. COMMENT ON COLUMN "system_sms_template"."name" IS '模板名称';
  3562. COMMENT ON COLUMN "system_sms_template"."content" IS '模板内容';
  3563. COMMENT ON COLUMN "system_sms_template"."params" IS '参数数组';
  3564. COMMENT ON COLUMN "system_sms_template"."remark" IS '备注';
  3565. COMMENT ON COLUMN "system_sms_template"."api_template_id" IS '短信 API 的模板编号';
  3566. COMMENT ON COLUMN "system_sms_template"."channel_id" IS '短信渠道编号';
  3567. COMMENT ON COLUMN "system_sms_template"."channel_code" IS '短信渠道编码';
  3568. COMMENT ON COLUMN "system_sms_template"."creator" IS '创建者';
  3569. COMMENT ON COLUMN "system_sms_template"."create_time" IS '创建时间';
  3570. COMMENT ON COLUMN "system_sms_template"."updater" IS '更新者';
  3571. COMMENT ON COLUMN "system_sms_template"."update_time" IS '更新时间';
  3572. COMMENT ON COLUMN "system_sms_template"."deleted" IS '是否删除';
  3573. COMMENT ON TABLE "system_sms_template" IS '短信模板';
  3574. -- ----------------------------
  3575. -- Records of system_sms_template
  3576. -- ----------------------------
  3577. BEGIN;
  3578. INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (2, 1, 0, 'test_01', '测试验证码短信', '正在进行登录操作{operation},您的验证码是{code}', '["operation","code"]', NULL, '4383920', 1, 'YUN_PIAN', '', '2021-03-31 10:49:38', '1', '2021-04-10 01:22:00', 0);
  3579. INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (3, 1, 0, 'test_02', '公告通知', '您的验证码{code},该验证码5分钟内有效,请勿泄漏于他人!', '["code"]', NULL, 'SMS_207945135', 2, 'ALIYUN', '', '2021-03-31 11:56:30', '1', '2021-04-10 01:22:02', 0);
  3580. INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (6, 3, 0, 'test-01', '测试模板', '哈哈哈 {name}', '["name"]', 'f哈哈哈', '4383920', 1, 'YUN_PIAN', '1', '2021-04-10 01:07:21', '1', '2021-04-10 01:22:05', 0);
  3581. INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (7, 3, 0, 'test-04', '测试下', '老鸡{name},牛逼{code}', '["name","code"]', NULL, 'suibian', 4, 'DEBUG_DING_TALK', '1', '2021-04-13 00:29:53', '1', '2021-04-14 00:30:38', 0);
  3582. INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (8, 1, 0, 'user-sms-login', '前台用户短信登录', '您的验证码是{code}', '["code"]', NULL, '4372216', 1, 'YUN_PIAN', '1', '2021-10-11 08:10:00', '1', '2021-10-11 08:10:00', 0);
  3583. INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (9, 2, 0, 'bpm_task_assigned', '【工作流】任务被分配', '您收到了一条新的待办任务:{processInstanceName}-{taskName},申请人:{startUserNickname},处理链接:{detailUrl}', '["processInstanceName","taskName","startUserNickname","detailUrl"]', NULL, 'suibian', 4, 'DEBUG_DING_TALK', '1', '2022-01-21 22:31:19', '1', '2022-01-22 00:03:36', 0);
  3584. INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (10, 2, 0, 'bpm_process_instance_reject', '【工作流】流程被不通过', '您的流程被审批不通过:{processInstanceName},原因:{reason},查看链接:{detailUrl}', '["processInstanceName","reason","detailUrl"]', NULL, 'suibian', 4, 'DEBUG_DING_TALK', '1', '2022-01-22 00:03:31', '1', '2022-05-01 12:33:14', 0);
  3585. INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (11, 2, 0, 'bpm_process_instance_approve', '【工作流】流程被通过', '您的流程被审批通过:{processInstanceName},查看链接:{detailUrl}', '["processInstanceName","detailUrl"]', NULL, 'suibian', 4, 'DEBUG_DING_TALK', '1', '2022-01-22 00:04:31', '1', '2022-03-27 20:32:21', 0);
  3586. INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (12, 2, 0, 'demo', '演示模板', '我就是测试一下下', '[]', NULL, 'biubiubiu', 6, 'DEBUG_DING_TALK', '1', '2022-04-10 23:22:49', '1', '2022-04-10 23:22:49', 0);
  3587. INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (13, 1, 0, 'admin-sms-login', '后台用户短信登录', '您的验证码是{code}', '["code"]', '', '4372216', 1, 'YUN_PIAN', '1', '2021-10-11 08:10:00', '1', '2021-10-11 08:10:00', 0);
  3588. COMMIT;
  3589. -- ----------------------------
  3590. -- Table structure for system_social_user
  3591. -- ----------------------------
  3592. DROP TABLE IF EXISTS "system_social_user";
  3593. CREATE TABLE "system_social_user" (
  3594. "id" numeric(20,0) NOT NULL,
  3595. "type" int2 NOT NULL,
  3596. "openid" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  3597. "token" varchar(256) COLLATE "pg_catalog"."default",
  3598. "raw_token_info" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  3599. "nickname" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  3600. "avatar" varchar(255) COLLATE "pg_catalog"."default",
  3601. "raw_user_info" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  3602. "code" varchar(256) COLLATE "pg_catalog"."default" NOT NULL,
  3603. "state" varchar(256) COLLATE "pg_catalog"."default",
  3604. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3605. "create_time" timestamp(6) NOT NULL,
  3606. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3607. "update_time" timestamp(6) NOT NULL,
  3608. "deleted" int2 NOT NULL DEFAULT 0,
  3609. "tenant_id" int8 NOT NULL DEFAULT 0
  3610. )
  3611. ;
  3612. COMMENT ON COLUMN "system_social_user"."id" IS '主键(自增策略)';
  3613. COMMENT ON COLUMN "system_social_user"."type" IS '社交平台的类型';
  3614. COMMENT ON COLUMN "system_social_user"."openid" IS '社交 openid';
  3615. COMMENT ON COLUMN "system_social_user"."token" IS '社交 token';
  3616. COMMENT ON COLUMN "system_social_user"."raw_token_info" IS '原始 Token 数据,一般是 JSON 格式';
  3617. COMMENT ON COLUMN "system_social_user"."nickname" IS '用户昵称';
  3618. COMMENT ON COLUMN "system_social_user"."avatar" IS '用户头像';
  3619. COMMENT ON COLUMN "system_social_user"."raw_user_info" IS '原始用户数据,一般是 JSON 格式';
  3620. COMMENT ON COLUMN "system_social_user"."code" IS '最后一次的认证 code';
  3621. COMMENT ON COLUMN "system_social_user"."state" IS '最后一次的认证 state';
  3622. COMMENT ON COLUMN "system_social_user"."creator" IS '创建者';
  3623. COMMENT ON COLUMN "system_social_user"."create_time" IS '创建时间';
  3624. COMMENT ON COLUMN "system_social_user"."updater" IS '更新者';
  3625. COMMENT ON COLUMN "system_social_user"."update_time" IS '更新时间';
  3626. COMMENT ON COLUMN "system_social_user"."deleted" IS '是否删除';
  3627. COMMENT ON COLUMN "system_social_user"."tenant_id" IS '租户编号';
  3628. COMMENT ON TABLE "system_social_user" IS '社交用户表';
  3629. -- ----------------------------
  3630. -- Records of system_social_user
  3631. -- ----------------------------
  3632. BEGIN;
  3633. COMMIT;
  3634. -- ----------------------------
  3635. -- Table structure for system_social_user_bind
  3636. -- ----------------------------
  3637. DROP TABLE IF EXISTS "system_social_user_bind";
  3638. CREATE TABLE "system_social_user_bind" (
  3639. "id" numeric(20,0) NOT NULL,
  3640. "user_id" int8 NOT NULL,
  3641. "user_type" int2 NOT NULL,
  3642. "social_type" int2 NOT NULL,
  3643. "social_user_id" int8 NOT NULL,
  3644. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3645. "create_time" timestamp(6) NOT NULL,
  3646. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3647. "update_time" timestamp(6) NOT NULL,
  3648. "deleted" int2 NOT NULL DEFAULT 0,
  3649. "tenant_id" int8 NOT NULL DEFAULT 0
  3650. )
  3651. ;
  3652. COMMENT ON COLUMN "system_social_user_bind"."id" IS '主键(自增策略)';
  3653. COMMENT ON COLUMN "system_social_user_bind"."user_id" IS '用户编号';
  3654. COMMENT ON COLUMN "system_social_user_bind"."user_type" IS '用户类型';
  3655. COMMENT ON COLUMN "system_social_user_bind"."social_type" IS '社交平台的类型';
  3656. COMMENT ON COLUMN "system_social_user_bind"."social_user_id" IS '社交用户的编号';
  3657. COMMENT ON COLUMN "system_social_user_bind"."creator" IS '创建者';
  3658. COMMENT ON COLUMN "system_social_user_bind"."create_time" IS '创建时间';
  3659. COMMENT ON COLUMN "system_social_user_bind"."updater" IS '更新者';
  3660. COMMENT ON COLUMN "system_social_user_bind"."update_time" IS '更新时间';
  3661. COMMENT ON COLUMN "system_social_user_bind"."deleted" IS '是否删除';
  3662. COMMENT ON COLUMN "system_social_user_bind"."tenant_id" IS '租户编号';
  3663. COMMENT ON TABLE "system_social_user_bind" IS '社交绑定表';
  3664. -- ----------------------------
  3665. -- Records of system_social_user_bind
  3666. -- ----------------------------
  3667. BEGIN;
  3668. COMMIT;
  3669. -- ----------------------------
  3670. -- Table structure for system_tenant
  3671. -- ----------------------------
  3672. DROP TABLE IF EXISTS "system_tenant";
  3673. CREATE TABLE "system_tenant" (
  3674. "id" int8 NOT NULL,
  3675. "name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  3676. "contact_user_id" int8,
  3677. "contact_name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  3678. "contact_mobile" varchar(500) COLLATE "pg_catalog"."default",
  3679. "status" int2 NOT NULL,
  3680. "domain" varchar(256) COLLATE "pg_catalog"."default",
  3681. "package_id" int8 NOT NULL,
  3682. "expire_time" timestamp(6) NOT NULL,
  3683. "account_count" int4 NOT NULL,
  3684. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3685. "create_time" timestamp(6) NOT NULL,
  3686. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3687. "update_time" timestamp(6) NOT NULL,
  3688. "deleted" int2 NOT NULL DEFAULT 0
  3689. )
  3690. ;
  3691. COMMENT ON COLUMN "system_tenant"."id" IS '租户编号';
  3692. COMMENT ON COLUMN "system_tenant"."name" IS '租户名';
  3693. COMMENT ON COLUMN "system_tenant"."contact_user_id" IS '联系人的用户编号';
  3694. COMMENT ON COLUMN "system_tenant"."contact_name" IS '联系人';
  3695. COMMENT ON COLUMN "system_tenant"."contact_mobile" IS '联系手机';
  3696. COMMENT ON COLUMN "system_tenant"."status" IS '租户状态(0正常 1停用)';
  3697. COMMENT ON COLUMN "system_tenant"."domain" IS '绑定域名';
  3698. COMMENT ON COLUMN "system_tenant"."package_id" IS '租户套餐编号';
  3699. COMMENT ON COLUMN "system_tenant"."expire_time" IS '过期时间';
  3700. COMMENT ON COLUMN "system_tenant"."account_count" IS '账号数量';
  3701. COMMENT ON COLUMN "system_tenant"."creator" IS '创建者';
  3702. COMMENT ON COLUMN "system_tenant"."create_time" IS '创建时间';
  3703. COMMENT ON COLUMN "system_tenant"."updater" IS '更新者';
  3704. COMMENT ON COLUMN "system_tenant"."update_time" IS '更新时间';
  3705. COMMENT ON COLUMN "system_tenant"."deleted" IS '是否删除';
  3706. COMMENT ON TABLE "system_tenant" IS '租户表';
  3707. -- ----------------------------
  3708. -- Records of system_tenant
  3709. -- ----------------------------
  3710. BEGIN;
  3711. INSERT INTO "system_tenant" ("id", "name", "contact_user_id", "contact_name", "contact_mobile", "status", "domain", "package_id", "expire_time", "account_count", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1, '芋道源码', NULL, '芋艿', '17321315478', 0, 'https://www.iocoder.cn', 0, '2099-02-19 17:14:16', 9999, '1', '2021-01-05 17:03:47', '1', '2022-02-23 12:15:11', 0);
  3712. INSERT INTO "system_tenant" ("id", "name", "contact_user_id", "contact_name", "contact_mobile", "status", "domain", "package_id", "expire_time", "account_count", "creator", "create_time", "updater", "update_time", "deleted") VALUES (121, '小租户', 110, '小王2', '15601691300', 0, 'http://www.iocoder.cn', 111, '2024-03-11 00:00:00', 20, '1', '2022-02-22 00:56:14', '1', '2022-03-19 18:37:20', 0);
  3713. INSERT INTO "system_tenant" ("id", "name", "contact_user_id", "contact_name", "contact_mobile", "status", "domain", "package_id", "expire_time", "account_count", "creator", "create_time", "updater", "update_time", "deleted") VALUES (122, '测试租户', 113, '芋道', '15601691300', 0, 'https://www.iocoder.cn', 111, '2022-04-30 00:00:00', 50, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0);
  3714. COMMIT;
  3715. -- ----------------------------
  3716. -- Table structure for system_tenant_package
  3717. -- ----------------------------
  3718. DROP TABLE IF EXISTS "system_tenant_package";
  3719. CREATE TABLE "system_tenant_package" (
  3720. "id" int8 NOT NULL,
  3721. "name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  3722. "status" int2 NOT NULL,
  3723. "remark" varchar(256) COLLATE "pg_catalog"."default",
  3724. "menu_ids" varchar(2048) COLLATE "pg_catalog"."default" NOT NULL,
  3725. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3726. "create_time" timestamp(6) NOT NULL,
  3727. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3728. "update_time" timestamp(6) NOT NULL,
  3729. "deleted" int2 NOT NULL DEFAULT 0
  3730. )
  3731. ;
  3732. COMMENT ON COLUMN "system_tenant_package"."id" IS '套餐编号';
  3733. COMMENT ON COLUMN "system_tenant_package"."name" IS '套餐名';
  3734. COMMENT ON COLUMN "system_tenant_package"."status" IS '租户状态(0正常 1停用)';
  3735. COMMENT ON COLUMN "system_tenant_package"."remark" IS '备注';
  3736. COMMENT ON COLUMN "system_tenant_package"."menu_ids" IS '关联的菜单编号';
  3737. COMMENT ON COLUMN "system_tenant_package"."creator" IS '创建者';
  3738. COMMENT ON COLUMN "system_tenant_package"."create_time" IS '创建时间';
  3739. COMMENT ON COLUMN "system_tenant_package"."updater" IS '更新者';
  3740. COMMENT ON COLUMN "system_tenant_package"."update_time" IS '更新时间';
  3741. COMMENT ON COLUMN "system_tenant_package"."deleted" IS '是否删除';
  3742. COMMENT ON TABLE "system_tenant_package" IS '租户套餐表';
  3743. -- ----------------------------
  3744. -- Records of system_tenant_package
  3745. -- ----------------------------
  3746. BEGIN;
  3747. INSERT INTO "system_tenant_package" ("id", "name", "status", "remark", "menu_ids", "creator", "create_time", "updater", "update_time", "deleted") VALUES (111, '普通套餐', 0, '小功能', '[1024,1025,1,102,103,104,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023]', '1', '2022-02-22 00:54:00', '1', '2022-03-19 18:39:13', 0);
  3748. COMMIT;
  3749. -- ----------------------------
  3750. -- Table structure for system_user_post
  3751. -- ----------------------------
  3752. DROP TABLE IF EXISTS "system_user_post";
  3753. CREATE TABLE "system_user_post" (
  3754. "id" int8 NOT NULL,
  3755. "user_id" int8 NOT NULL,
  3756. "post_id" int8 NOT NULL,
  3757. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3758. "create_time" timestamp(6) NOT NULL,
  3759. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3760. "update_time" timestamp(6) NOT NULL,
  3761. "tenant_id" int8 NOT NULL,
  3762. "deleted" int2 NOT NULL DEFAULT 0
  3763. )
  3764. ;
  3765. COMMENT ON COLUMN "system_user_post"."id" IS 'id';
  3766. COMMENT ON COLUMN "system_user_post"."user_id" IS '用户ID';
  3767. COMMENT ON COLUMN "system_user_post"."post_id" IS '岗位ID';
  3768. COMMENT ON COLUMN "system_user_post"."creator" IS '创建者';
  3769. COMMENT ON COLUMN "system_user_post"."create_time" IS '创建时间';
  3770. COMMENT ON COLUMN "system_user_post"."updater" IS '更新者';
  3771. COMMENT ON COLUMN "system_user_post"."update_time" IS '更新时间';
  3772. COMMENT ON COLUMN "system_user_post"."tenant_id" IS '租户编号';
  3773. COMMENT ON COLUMN "system_user_post"."deleted" IS '是否删除';
  3774. COMMENT ON TABLE "system_user_post" IS '用户岗位表';
  3775. -- ----------------------------
  3776. -- Records of system_user_post
  3777. -- ----------------------------
  3778. BEGIN;
  3779. INSERT INTO "system_user_post" ("id", "user_id", "post_id", "creator", "create_time", "updater", "update_time", "tenant_id", "deleted") VALUES (112, 1, 1, 'admin', '2022-05-02 07:25:24', 'admin', '2022-05-02 07:25:24', 1, 0);
  3780. INSERT INTO "system_user_post" ("id", "user_id", "post_id", "creator", "create_time", "updater", "update_time", "tenant_id", "deleted") VALUES (113, 100, 1, 'admin', '2022-05-02 07:25:24', 'admin', '2022-05-02 07:25:24', 1, 0);
  3781. INSERT INTO "system_user_post" ("id", "user_id", "post_id", "creator", "create_time", "updater", "update_time", "tenant_id", "deleted") VALUES (114, 114, 3, 'admin', '2022-05-02 07:25:24', 'admin', '2022-05-02 07:25:24', 1, 0);
  3782. COMMIT;
  3783. -- ----------------------------
  3784. -- Table structure for system_user_role
  3785. -- ----------------------------
  3786. DROP TABLE IF EXISTS "system_user_role";
  3787. CREATE TABLE "system_user_role" (
  3788. "id" int8 NOT NULL,
  3789. "user_id" int8 NOT NULL,
  3790. "role_id" int8 NOT NULL,
  3791. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3792. "create_time" timestamp(6),
  3793. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3794. "update_time" timestamp(6),
  3795. "deleted" int2 NOT NULL DEFAULT 0,
  3796. "tenant_id" int8 NOT NULL DEFAULT 0
  3797. )
  3798. ;
  3799. COMMENT ON COLUMN "system_user_role"."id" IS '自增编号';
  3800. COMMENT ON COLUMN "system_user_role"."user_id" IS '用户ID';
  3801. COMMENT ON COLUMN "system_user_role"."role_id" IS '角色ID';
  3802. COMMENT ON COLUMN "system_user_role"."creator" IS '创建者';
  3803. COMMENT ON COLUMN "system_user_role"."create_time" IS '创建时间';
  3804. COMMENT ON COLUMN "system_user_role"."updater" IS '更新者';
  3805. COMMENT ON COLUMN "system_user_role"."update_time" IS '更新时间';
  3806. COMMENT ON COLUMN "system_user_role"."deleted" IS '是否删除';
  3807. COMMENT ON COLUMN "system_user_role"."tenant_id" IS '租户编号';
  3808. COMMENT ON TABLE "system_user_role" IS '用户和角色关联表';
  3809. -- ----------------------------
  3810. -- Records of system_user_role
  3811. -- ----------------------------
  3812. BEGIN;
  3813. INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1, 1, 1, '', '2022-01-11 13:19:45', '', '2022-05-12 12:35:17', 0, 1);
  3814. INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (2, 2, 2, '', '2022-01-11 13:19:45', '', '2022-05-12 12:35:13', 0, 1);
  3815. INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (4, 100, 101, '', '2022-01-11 13:19:45', '', '2022-05-12 12:35:13', 0, 1);
  3816. INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (5, 100, 1, '', '2022-01-11 13:19:45', '', '2022-05-12 12:35:12', 0, 1);
  3817. INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (6, 100, 2, '', '2022-01-11 13:19:45', '', '2022-05-12 12:35:11', 0, 1);
  3818. INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (7, 104, 101, '', '2022-01-11 13:19:45', '', '2022-05-12 12:35:11', 0, 1);
  3819. INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (10, 103, 1, '1', '2022-01-11 13:19:45', '1', '2022-01-11 13:19:45', 0, 1);
  3820. INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (11, 107, 106, '1', '2022-02-20 22:59:33', '1', '2022-02-20 22:59:33', 0, 118);
  3821. INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (12, 108, 107, '1', '2022-02-20 23:00:50', '1', '2022-02-20 23:00:50', 0, 119);
  3822. INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (13, 109, 108, '1', '2022-02-20 23:11:50', '1', '2022-02-20 23:11:50', 0, 120);
  3823. INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (14, 110, 109, '1', '2022-02-22 00:56:14', '1', '2022-02-22 00:56:14', 0, 121);
  3824. INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (15, 111, 110, '110', '2022-02-23 13:14:38', '110', '2022-02-23 13:14:38', 0, 121);
  3825. INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (16, 113, 111, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
  3826. INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (17, 114, 101, '1', '2022-03-19 21:51:13', '1', '2022-03-19 21:51:13', 0, 1);
  3827. INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (18, 1, 2, '1', '2022-05-12 20:39:29', '1', '2022-05-12 20:39:29', 0, 1);
  3828. COMMIT;
  3829. -- ----------------------------
  3830. -- Table structure for system_users
  3831. -- ----------------------------
  3832. DROP TABLE IF EXISTS "system_users";
  3833. CREATE TABLE "system_users" (
  3834. "id" int8 NOT NULL,
  3835. "username" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  3836. "password" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  3837. "nickname" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  3838. "remark" varchar(500) COLLATE "pg_catalog"."default",
  3839. "dept_id" int8,
  3840. "post_ids" varchar(255) COLLATE "pg_catalog"."default",
  3841. "email" varchar(50) COLLATE "pg_catalog"."default",
  3842. "mobile" varchar(11) COLLATE "pg_catalog"."default",
  3843. "sex" int2,
  3844. "avatar" varchar(100) COLLATE "pg_catalog"."default",
  3845. "status" int2 NOT NULL,
  3846. "login_ip" varchar(50) COLLATE "pg_catalog"."default",
  3847. "login_date" timestamp(6),
  3848. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3849. "create_time" timestamp(6) NOT NULL,
  3850. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3851. "update_time" timestamp(6) NOT NULL,
  3852. "deleted" int2 NOT NULL DEFAULT 0,
  3853. "tenant_id" int8 NOT NULL DEFAULT 0
  3854. )
  3855. ;
  3856. COMMENT ON COLUMN "system_users"."id" IS '用户ID';
  3857. COMMENT ON COLUMN "system_users"."username" IS '用户账号';
  3858. COMMENT ON COLUMN "system_users"."password" IS '密码';
  3859. COMMENT ON COLUMN "system_users"."nickname" IS '用户昵称';
  3860. COMMENT ON COLUMN "system_users"."remark" IS '备注';
  3861. COMMENT ON COLUMN "system_users"."dept_id" IS '部门ID';
  3862. COMMENT ON COLUMN "system_users"."post_ids" IS '岗位编号数组';
  3863. COMMENT ON COLUMN "system_users"."email" IS '用户邮箱';
  3864. COMMENT ON COLUMN "system_users"."mobile" IS '手机号码';
  3865. COMMENT ON COLUMN "system_users"."sex" IS '用户性别';
  3866. COMMENT ON COLUMN "system_users"."avatar" IS '头像地址';
  3867. COMMENT ON COLUMN "system_users"."status" IS '帐号状态(0正常 1停用)';
  3868. COMMENT ON COLUMN "system_users"."login_ip" IS '最后登录IP';
  3869. COMMENT ON COLUMN "system_users"."login_date" IS '最后登录时间';
  3870. COMMENT ON COLUMN "system_users"."creator" IS '创建者';
  3871. COMMENT ON COLUMN "system_users"."create_time" IS '创建时间';
  3872. COMMENT ON COLUMN "system_users"."updater" IS '更新者';
  3873. COMMENT ON COLUMN "system_users"."update_time" IS '更新时间';
  3874. COMMENT ON COLUMN "system_users"."deleted" IS '是否删除';
  3875. COMMENT ON COLUMN "system_users"."tenant_id" IS '租户编号';
  3876. COMMENT ON TABLE "system_users" IS '用户信息表';
  3877. -- ----------------------------
  3878. -- Records of system_users
  3879. -- ----------------------------
  3880. BEGIN;
  3881. INSERT INTO "system_users" ("id", "username", "password", "nickname", "remark", "dept_id", "post_ids", "email", "mobile", "sex", "avatar", "status", "login_ip", "login_date", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (100, 'yudao', '$2a$10$11U48RhyJ5pSBYWSn12AD./ld671.ycSzJHbyrtpeoMeYiw31eo8a', '芋道', '不要吓我', 104, '[1]', 'yudao@iocoder.cn', '15601691300', 1, '', 1, '', NULL, '', '2021-01-07 09:07:17', '104', '2021-12-16 09:26:10', 0, 1);
  3882. INSERT INTO "system_users" ("id", "username", "password", "nickname", "remark", "dept_id", "post_ids", "email", "mobile", "sex", "avatar", "status", "login_ip", "login_date", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (103, 'yuanma', '$2a$10$wWoPT7sqriM2O1YXRL.je.GiL538OR6ZTN8aQZr9JAGdnpCH2tpYe', '源码', NULL, 106, NULL, 'yuanma@iocoder.cn', '15601701300', 0, '', 0, '127.0.0.1', '2022-01-18 00:33:40', '', '2021-01-13 23:50:35', NULL, '2022-01-18 00:33:40', 0, 1);
  3883. INSERT INTO "system_users" ("id", "username", "password", "nickname", "remark", "dept_id", "post_ids", "email", "mobile", "sex", "avatar", "status", "login_ip", "login_date", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (104, 'test', '$2a$10$e5RpuDCC0GYSt0Hvd2.CjujIXwgGct4SnXi6dVGxdgFsnqgEryk5a', '测试号', NULL, 107, '[]', '111@qq.com', '15601691200', 1, '', 0, '127.0.0.1', '2022-03-19 21:46:19', '', '2021-01-21 02:13:53', NULL, '2022-03-19 21:46:19', 0, 1);
  3884. INSERT INTO "system_users" ("id", "username", "password", "nickname", "remark", "dept_id", "post_ids", "email", "mobile", "sex", "avatar", "status", "login_ip", "login_date", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (107, 'admin107', '$2a$10$dYOOBKMO93v/.ReCqzyFg.o67Tqk.bbc2bhrpyBGkIw9aypCtr2pm', '芋艿', NULL, NULL, NULL, '', '15601691300', 0, '', 0, '', NULL, '1', '2022-02-20 22:59:33', '1', '2022-02-27 08:26:51', 0, 118);
  3885. INSERT INTO "system_users" ("id", "username", "password", "nickname", "remark", "dept_id", "post_ids", "email", "mobile", "sex", "avatar", "status", "login_ip", "login_date", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (108, 'admin108', '$2a$10$y6mfvKoNYL1GXWak8nYwVOH.kCWqjactkzdoIDgiKl93WN3Ejg.Lu', '芋艿', NULL, NULL, NULL, '', '15601691300', 0, '', 0, '', NULL, '1', '2022-02-20 23:00:50', '1', '2022-02-27 08:26:53', 0, 119);
  3886. INSERT INTO "system_users" ("id", "username", "password", "nickname", "remark", "dept_id", "post_ids", "email", "mobile", "sex", "avatar", "status", "login_ip", "login_date", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (109, 'admin109', '$2a$10$JAqvH0tEc0I7dfDVBI7zyuB4E3j.uH6daIjV53.vUS6PknFkDJkuK', '芋艿', NULL, NULL, NULL, '', '15601691300', 0, '', 0, '', NULL, '1', '2022-02-20 23:11:50', '1', '2022-02-27 08:26:56', 0, 120);
  3887. INSERT INTO "system_users" ("id", "username", "password", "nickname", "remark", "dept_id", "post_ids", "email", "mobile", "sex", "avatar", "status", "login_ip", "login_date", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (110, 'admin110', '$2a$10$qYxoXs0ogPHgYllyEneYde9xcCW5hZgukrxeXZ9lmLhKse8TK6IwW', '小王', NULL, NULL, NULL, '', '15601691300', 0, '', 0, '127.0.0.1', '2022-02-23 19:36:28', '1', '2022-02-22 00:56:14', NULL, '2022-02-27 08:26:59', 0, 121);
  3888. INSERT INTO "system_users" ("id", "username", "password", "nickname", "remark", "dept_id", "post_ids", "email", "mobile", "sex", "avatar", "status", "login_ip", "login_date", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (111, 'test', '$2a$10$mExveopHUx9Q4QiLtAzhDeH3n4/QlNLzEsM4AqgxKrU.ciUZDXZCy', '测试用户', NULL, NULL, '[]', '', '', 0, '', 0, '', NULL, '110', '2022-02-23 13:14:33', '110', '2022-02-23 13:14:33', 0, 121);
  3889. INSERT INTO "system_users" ("id", "username", "password", "nickname", "remark", "dept_id", "post_ids", "email", "mobile", "sex", "avatar", "status", "login_ip", "login_date", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (112, 'newobject', '$2a$10$jh5MsR.ud/gKe3mVeUp5t.nEXGDSmHyv5OYjWQwHO8wlGmMSI9Twy', '新对象', NULL, NULL, '[]', '', '', 0, '', 0, '', NULL, '1', '2022-02-23 19:08:03', '1', '2022-02-23 19:08:03', 0, 1);
  3890. INSERT INTO "system_users" ("id", "username", "password", "nickname", "remark", "dept_id", "post_ids", "email", "mobile", "sex", "avatar", "status", "login_ip", "login_date", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (113, 'aoteman', '$2a$10$0acJOIk2D25/oC87nyclE..0lzeu9DtQ/n3geP4fkun/zIVRhHJIO', '芋道', NULL, NULL, NULL, '', '15601691300', 0, '', 0, '127.0.0.1', '2022-03-19 18:38:51', '1', '2022-03-07 21:37:58', NULL, '2022-03-19 18:38:51', 0, 122);
  3891. INSERT INTO "system_users" ("id", "username", "password", "nickname", "remark", "dept_id", "post_ids", "email", "mobile", "sex", "avatar", "status", "login_ip", "login_date", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (114, 'hrmgr', '$2a$10$TR4eybBioGRhBmDBWkqWLO6NIh3mzYa8KBKDDB5woiGYFVlRAi.fu', 'hr 小姐姐', NULL, NULL, '[3]', '', '', 0, '', 0, '127.0.0.1', '2022-03-19 22:15:43', '1', '2022-03-19 21:50:58', NULL, '2022-03-19 22:15:43', 0, 1);
  3892. INSERT INTO "system_users" ("id", "username", "password", "nickname", "remark", "dept_id", "post_ids", "email", "mobile", "sex", "avatar", "status", "login_ip", "login_date", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (115, 'aotemane', '$2a$10$/WCwGHu1eq0wOVDd/u8HweJ0gJCHyLS6T7ndCqI8UXZAQom1etk2e', '1', '11', 100, '[]', '', '', 0, '', 0, '', NULL, '1', '2022-04-30 02:55:43', '1', '2022-04-30 02:55:43', 0, 1);
  3893. INSERT INTO "system_users" ("id", "username", "password", "nickname", "remark", "dept_id", "post_ids", "email", "mobile", "sex", "avatar", "status", "login_ip", "login_date", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1, 'admin', '$2a$10$0acJOIk2D25/oC87nyclE..0lzeu9DtQ/n3geP4fkun/zIVRhHJIO', '芋道源码', '管理员', 103, '[1]', 'aoteman@126.com', '15612345678', 1, 'http://test.yudao.iocoder.cn/48934f2f-92d4-4250-b917-d10d2b262c6a', 0, '127.0.0.1', '2022-05-25 23:44:33.003', 'admin', '2021-01-05 17:03:47', NULL, '2022-05-25 23:44:33.003', 0, 1);
  3894. COMMIT;
  3895. -- ----------------------------
  3896. -- Table structure for system_mail_account
  3897. -- ----------------------------
  3898. DROP TABLE IF EXISTS "system_mail_account";
  3899. CREATE TABLE "system_mail_account" (
  3900. "id" int8 NOT NULL,
  3901. "mail" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3902. "username" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3903. "password" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3904. "host" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3905. "port" int4 NOT NULL,
  3906. "ssl_enable" varchar(1) COLLATE "pg_catalog"."default" NOT NULL,
  3907. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3908. "create_time" timestamp(6) NOT NULL,
  3909. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3910. "update_time" timestamp(6) NOT NULL,
  3911. "deleted" int2 NOT NULL
  3912. )
  3913. ;
  3914. COMMENT ON COLUMN "system_mail_account"."id" IS '主键';
  3915. COMMENT ON COLUMN "system_mail_account"."mail" IS '邮箱';
  3916. COMMENT ON COLUMN "system_mail_account"."username" IS '用户名';
  3917. COMMENT ON COLUMN "system_mail_account"."password" IS '密码';
  3918. COMMENT ON COLUMN "system_mail_account"."host" IS 'SMTP 服务器域名';
  3919. COMMENT ON COLUMN "system_mail_account"."port" IS 'SMTP 服务器端口';
  3920. COMMENT ON COLUMN "system_mail_account"."ssl_enable" IS '是否开启 SSL';
  3921. COMMENT ON COLUMN "system_mail_account"."creator" IS '创建者';
  3922. COMMENT ON COLUMN "system_mail_account"."create_time" IS '创建时间';
  3923. COMMENT ON COLUMN "system_mail_account"."updater" IS '更新者';
  3924. COMMENT ON COLUMN "system_mail_account"."update_time" IS '更新时间';
  3925. COMMENT ON COLUMN "system_mail_account"."deleted" IS '是否删除';
  3926. COMMENT ON TABLE "system_mail_account" IS '邮箱账号表';
  3927. -- ----------------------------
  3928. -- Table structure for system_mail_log
  3929. -- ----------------------------
  3930. DROP TABLE IF EXISTS "system_mail_log";
  3931. CREATE TABLE "system_mail_log" (
  3932. "id" int8 NOT NULL,
  3933. "user_id" int8,
  3934. "user_type" int2,
  3935. "to_mail" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3936. "account_id" int8 NOT NULL,
  3937. "from_mail" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3938. "template_id" int8 NOT NULL,
  3939. "template_code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3940. "template_nickname" varchar(255) COLLATE "pg_catalog"."default",
  3941. "template_title" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3942. "template_content" varchar(10240) COLLATE "pg_catalog"."default" NOT NULL,
  3943. "template_params" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3944. "send_status" int2 NOT NULL,
  3945. "send_time" timestamp(6),
  3946. "send_message_id" varchar(255) COLLATE "pg_catalog"."default",
  3947. "send_exception" varchar(4096) COLLATE "pg_catalog"."default",
  3948. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3949. "create_time" timestamp(6) NOT NULL,
  3950. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3951. "update_time" timestamp(6) NOT NULL,
  3952. "deleted" int2 NOT NULL DEFAULT 0
  3953. )
  3954. ;
  3955. COMMENT ON COLUMN "system_mail_log"."id" IS '编号';
  3956. COMMENT ON COLUMN "system_mail_log"."user_id" IS '用户编号';
  3957. COMMENT ON COLUMN "system_mail_log"."user_type" IS '用户类型';
  3958. COMMENT ON COLUMN "system_mail_log"."to_mail" IS '接收邮箱地址';
  3959. COMMENT ON COLUMN "system_mail_log"."account_id" IS '邮箱账号编号';
  3960. COMMENT ON COLUMN "system_mail_log"."from_mail" IS '发送邮箱地址';
  3961. COMMENT ON COLUMN "system_mail_log"."template_id" IS '模板编号';
  3962. COMMENT ON COLUMN "system_mail_log"."template_code" IS '模板编码';
  3963. COMMENT ON COLUMN "system_mail_log"."template_nickname" IS '模版发送人名称';
  3964. COMMENT ON COLUMN "system_mail_log"."template_title" IS '邮件标题';
  3965. COMMENT ON COLUMN "system_mail_log"."template_content" IS '邮件内容';
  3966. COMMENT ON COLUMN "system_mail_log"."template_params" IS '邮件参数';
  3967. COMMENT ON COLUMN "system_mail_log"."send_status" IS '发送状态';
  3968. COMMENT ON COLUMN "system_mail_log"."send_time" IS '发送时间';
  3969. COMMENT ON COLUMN "system_mail_log"."send_message_id" IS '发送返回的消息 ID';
  3970. COMMENT ON COLUMN "system_mail_log"."send_exception" IS '发送异常';
  3971. COMMENT ON COLUMN "system_mail_log"."creator" IS '创建者';
  3972. COMMENT ON COLUMN "system_mail_log"."create_time" IS '创建时间';
  3973. COMMENT ON COLUMN "system_mail_log"."updater" IS '更新者';
  3974. COMMENT ON COLUMN "system_mail_log"."update_time" IS '更新时间';
  3975. COMMENT ON COLUMN "system_mail_log"."deleted" IS '是否删除';
  3976. COMMENT ON TABLE "system_mail_log" IS '邮件日志表';
  3977. -- ----------------------------
  3978. -- Table structure for system_mail_template
  3979. -- ----------------------------
  3980. DROP TABLE IF EXISTS "system_mail_template";
  3981. CREATE TABLE "system_mail_template" (
  3982. "id" int8 NOT NULL,
  3983. "name" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3984. "code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3985. "account_id" int8 NOT NULL,
  3986. "nickname" varchar(255) COLLATE "pg_catalog"."default",
  3987. "title" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3988. "content" varchar(10240) COLLATE "pg_catalog"."default" NOT NULL,
  3989. "params" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3990. "status" int2 NOT NULL,
  3991. "remark" varchar(255) COLLATE "pg_catalog"."default",
  3992. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3993. "create_time" timestamp(6) NOT NULL,
  3994. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3995. "update_time" timestamp(6) NOT NULL,
  3996. "deleted" int2 NOT NULL DEFAULT 0
  3997. )
  3998. ;
  3999. COMMENT ON COLUMN "system_mail_template"."id" IS '编号';
  4000. COMMENT ON COLUMN "system_mail_template"."name" IS '模板名称';
  4001. COMMENT ON COLUMN "system_mail_template"."code" IS '模板编码';
  4002. COMMENT ON COLUMN "system_mail_template"."account_id" IS '发送的邮箱账号编号';
  4003. COMMENT ON COLUMN "system_mail_template"."nickname" IS '发送人名称';
  4004. COMMENT ON COLUMN "system_mail_template"."title" IS '模板标题';
  4005. COMMENT ON COLUMN "system_mail_template"."content" IS '模板内容';
  4006. COMMENT ON COLUMN "system_mail_template"."params" IS '参数数组';
  4007. COMMENT ON COLUMN "system_mail_template"."status" IS '开启状态';
  4008. COMMENT ON COLUMN "system_mail_template"."remark" IS '备注';
  4009. COMMENT ON COLUMN "system_mail_template"."creator" IS '创建者';
  4010. COMMENT ON COLUMN "system_mail_template"."create_time" IS '创建时间';
  4011. COMMENT ON COLUMN "system_mail_template"."updater" IS '更新者';
  4012. COMMENT ON COLUMN "system_mail_template"."update_time" IS '更新时间';
  4013. COMMENT ON COLUMN "system_mail_template"."deleted" IS '是否删除';
  4014. COMMENT ON TABLE "system_mail_template" IS '邮件模版表';
  4015. -- ----------------------------
  4016. -- Table structure for system_notify_message
  4017. -- ----------------------------
  4018. DROP TABLE IF EXISTS "system_notify_message";
  4019. CREATE TABLE "system_notify_message" (
  4020. "id" int8 NOT NULL,
  4021. "user_id" int8 NOT NULL,
  4022. "user_type" int2 NOT NULL,
  4023. "template_id" int8 NOT NULL,
  4024. "template_code" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  4025. "template_nickname" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  4026. "template_content" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  4027. "template_type" int4 NOT NULL,
  4028. "template_params" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  4029. "read_status"" bool NOT NULL,
  4030. "read_time" timestamp(6),
  4031. "creator" varchar(64) COLLATE "pg_catalog"."default",
  4032. "create_time" timestamp(6) NOT NULL,
  4033. "updater" varchar(64) COLLATE "pg_catalog"."default",
  4034. "update_time" timestamp(6) NOT NULL,
  4035. "deleted" int2 NOT NULL DEFAULT 0,
  4036. "tenant_id" int8 NOT NULL
  4037. )
  4038. ;
  4039. COMMENT ON COLUMN "system_notify_message"."id" IS '用户ID';
  4040. COMMENT ON COLUMN "system_notify_message"."user_id" IS '用户id';
  4041. COMMENT ON COLUMN "system_notify_message"."user_type" IS '用户类型';
  4042. COMMENT ON COLUMN "system_notify_message"."template_id" IS '模版编号';
  4043. COMMENT ON COLUMN "system_notify_message"."template_code" IS '模板编码';
  4044. COMMENT ON COLUMN "system_notify_message"."template_nickname" IS '模版发送人名称';
  4045. COMMENT ON COLUMN "system_notify_message"."template_content" IS '模版内容';
  4046. COMMENT ON COLUMN "system_notify_message"."template_type" IS '模版类型';
  4047. COMMENT ON COLUMN "system_notify_message"."template_params" IS '模版参数';
  4048. COMMENT ON COLUMN "system_notify_message"."read_status" IS '是否已读';
  4049. COMMENT ON COLUMN "system_notify_message"."read_time" IS '阅读时间';
  4050. COMMENT ON COLUMN "system_notify_message"."creator" IS '创建者';
  4051. COMMENT ON COLUMN "system_notify_message"."create_time" IS '创建时间';
  4052. COMMENT ON COLUMN "system_notify_message"."updater" IS '更新者';
  4053. COMMENT ON COLUMN "system_notify_message"."update_time" IS '更新时间';
  4054. COMMENT ON COLUMN "system_notify_message"."deleted" IS '是否删除';
  4055. COMMENT ON COLUMN "system_notify_message"."tenant_id" IS '租户编号';
  4056. COMMENT ON TABLE "system_notify_message" IS '站内信消息表';
  4057. -- ----------------------------
  4058. -- Table structure for system_notify_template
  4059. -- ----------------------------
  4060. DROP TABLE IF EXISTS "system_notify_template";
  4061. CREATE TABLE "system_notify_template" (
  4062. "id" int8 NOT NULL,
  4063. "name" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  4064. "code" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  4065. "nickname" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  4066. "content" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  4067. "type" int2 NOT NULL,
  4068. "params" varchar(255) COLLATE "pg_catalog"."default",
  4069. "status" int2 NOT NULL,
  4070. "remark" varchar(255) COLLATE "pg_catalog"."default",
  4071. "creator" varchar(64) COLLATE "pg_catalog"."default",
  4072. "create_time" timestamp(6) NOT NULL,
  4073. "updater" varchar(64) COLLATE "pg_catalog"."default",
  4074. "update_time" timestamp(6) NOT NULL,
  4075. "deleted" int2 NOT NULL DEFAULT 0
  4076. )
  4077. ;
  4078. COMMENT ON COLUMN "system_notify_template"."id" IS '主键';
  4079. COMMENT ON COLUMN "system_notify_template"."name" IS '模板名称';
  4080. COMMENT ON COLUMN "system_notify_template"."code" IS '模版编码';
  4081. COMMENT ON COLUMN "system_notify_template"."nickname" IS '发送人名称';
  4082. COMMENT ON COLUMN "system_notify_template"."content" IS '模版内容';
  4083. COMMENT ON COLUMN "system_notify_template"."type" IS '类型';
  4084. COMMENT ON COLUMN "system_notify_template"."params" IS '参数数组';
  4085. COMMENT ON COLUMN "system_notify_template"."status" IS '状态';
  4086. COMMENT ON COLUMN "system_notify_template"."remark" IS '备注';
  4087. COMMENT ON COLUMN "system_notify_template"."creator" IS '创建者';
  4088. COMMENT ON COLUMN "system_notify_template"."create_time" IS '创建时间';
  4089. COMMENT ON COLUMN "system_notify_template"."updater" IS '更新者';
  4090. COMMENT ON COLUMN "system_notify_template"."update_time" IS '更新时间';
  4091. COMMENT ON COLUMN "system_notify_template"."deleted" IS '是否删除';
  4092. COMMENT ON TABLE "system_notify_template" IS '站内信模板表';
  4093. -- ----------------------------
  4094. -- Table structure for system_user_session
  4095. -- ----------------------------
  4096. DROP TABLE IF EXISTS "system_user_session";
  4097. CREATE TABLE "system_user_session" (
  4098. "id" int8 NOT NULL,
  4099. "token" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  4100. "user_id" int8 NOT NULL,
  4101. "user_type" int2 NOT NULL,
  4102. "session_timeout" timestamp(6) NOT NULL,
  4103. "username" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  4104. "user_ip" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  4105. "user_agent" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  4106. "creator" varchar(64) COLLATE "pg_catalog"."default",
  4107. "create_time" timestamp(6) NOT NULL,
  4108. "updater" varchar(64) COLLATE "pg_catalog"."default",
  4109. "update_time" timestamp(6) NOT NULL,
  4110. "deleted" int2 NOT NULL DEFAULT 0,
  4111. "tenant_id" int8 NOT NULL
  4112. )
  4113. ;
  4114. COMMENT ON COLUMN "system_user_session"."id" IS '编号';
  4115. COMMENT ON COLUMN "system_user_session"."token" IS '会话编号';
  4116. COMMENT ON COLUMN "system_user_session"."user_id" IS '用户编号';
  4117. COMMENT ON COLUMN "system_user_session"."user_type" IS '用户类型';
  4118. COMMENT ON COLUMN "system_user_session"."session_timeout" IS '会话超时时间';
  4119. COMMENT ON COLUMN "system_user_session"."username" IS '用户账号';
  4120. COMMENT ON COLUMN "system_user_session"."user_ip" IS '用户 IP';
  4121. COMMENT ON COLUMN "system_user_session"."user_agent" IS '浏览器 UA';
  4122. COMMENT ON COLUMN "system_user_session"."creator" IS '创建者';
  4123. COMMENT ON COLUMN "system_user_session"."create_time" IS '创建时间';
  4124. COMMENT ON COLUMN "system_user_session"."updater" IS '更新者';
  4125. COMMENT ON COLUMN "system_user_session"."update_time" IS '更新时间';
  4126. COMMENT ON COLUMN "system_user_session"."deleted" IS '是否删除';
  4127. COMMENT ON COLUMN "system_user_session"."tenant_id" IS '租户编号';
  4128. COMMENT ON TABLE "system_user_session" IS '用户在线 Session';
  4129. -- ----------------------------
  4130. -- Alter sequences owned by
  4131. -- ----------------------------
  4132. -- ----------------------------
  4133. -- Alter sequences owned by
  4134. -- ----------------------------
  4135. SELECT setval('"bpm_oa_leave_seq"', 1, true);
  4136. -- ----------------------------
  4137. -- Alter sequences owned by
  4138. -- ----------------------------
  4139. -- ----------------------------
  4140. -- Alter sequences owned by
  4141. -- ----------------------------
  4142. -- ----------------------------
  4143. -- Alter sequences owned by
  4144. -- ----------------------------
  4145. SELECT setval('"bpm_task_assign_rule_seq"', 1, true);
  4146. -- ----------------------------
  4147. -- Alter sequences owned by
  4148. -- ----------------------------
  4149. -- ----------------------------
  4150. -- Alter sequences owned by
  4151. -- ----------------------------
  4152. -- ----------------------------
  4153. -- Alter sequences owned by
  4154. -- ----------------------------
  4155. SELECT setval('"infra_api_access_log_seq"', 537, true);
  4156. -- ----------------------------
  4157. -- Alter sequences owned by
  4158. -- ----------------------------
  4159. SELECT setval('"infra_api_error_log_seq"', 73, true);
  4160. -- ----------------------------
  4161. -- Alter sequences owned by
  4162. -- ----------------------------
  4163. -- ----------------------------
  4164. -- Alter sequences owned by
  4165. -- ----------------------------
  4166. -- ----------------------------
  4167. -- Alter sequences owned by
  4168. -- ----------------------------
  4169. -- ----------------------------
  4170. -- Alter sequences owned by
  4171. -- ----------------------------
  4172. -- ----------------------------
  4173. -- Alter sequences owned by
  4174. -- ----------------------------
  4175. -- ----------------------------
  4176. -- Alter sequences owned by
  4177. -- ----------------------------
  4178. -- ----------------------------
  4179. -- Alter sequences owned by
  4180. -- ----------------------------
  4181. -- ----------------------------
  4182. -- Alter sequences owned by
  4183. -- ----------------------------
  4184. SELECT setval('"infra_job_log_seq"', 1, true);
  4185. -- ----------------------------
  4186. -- Alter sequences owned by
  4187. -- ----------------------------
  4188. SELECT setval('"infra_job_seq"', 2, true);
  4189. -- ----------------------------
  4190. -- Alter sequences owned by
  4191. -- ----------------------------
  4192. -- ----------------------------
  4193. -- Alter sequences owned by
  4194. -- ----------------------------
  4195. -- ----------------------------
  4196. -- Alter sequences owned by
  4197. -- ----------------------------
  4198. -- ----------------------------
  4199. -- Alter sequences owned by
  4200. -- ----------------------------
  4201. -- ----------------------------
  4202. -- Alter sequences owned by
  4203. -- ----------------------------
  4204. -- ----------------------------
  4205. -- Alter sequences owned by
  4206. -- ----------------------------
  4207. -- ----------------------------
  4208. -- Alter sequences owned by
  4209. -- ----------------------------
  4210. -- ----------------------------
  4211. -- Alter sequences owned by
  4212. -- ----------------------------
  4213. -- ----------------------------
  4214. -- Alter sequences owned by
  4215. -- ----------------------------
  4216. -- ----------------------------
  4217. -- Alter sequences owned by
  4218. -- ----------------------------
  4219. -- ----------------------------
  4220. -- Alter sequences owned by
  4221. -- ----------------------------
  4222. -- ----------------------------
  4223. -- Alter sequences owned by
  4224. -- ----------------------------
  4225. -- ----------------------------
  4226. -- Alter sequences owned by
  4227. -- ----------------------------
  4228. -- ----------------------------
  4229. -- Alter sequences owned by
  4230. -- ----------------------------
  4231. SELECT setval('"system_error_code_seq"', 186, true);
  4232. -- ----------------------------
  4233. -- Alter sequences owned by
  4234. -- ----------------------------
  4235. SELECT setval('"system_login_log_seq"', 23, true);
  4236. -- ----------------------------
  4237. -- Alter sequences owned by
  4238. -- ----------------------------
  4239. -- ----------------------------
  4240. -- Alter sequences owned by
  4241. -- ----------------------------
  4242. -- ----------------------------
  4243. -- Alter sequences owned by
  4244. -- ----------------------------
  4245. SELECT setval('"system_oauth2_access_token_seq"', 11, true);
  4246. -- ----------------------------
  4247. -- Alter sequences owned by
  4248. -- ----------------------------
  4249. SELECT setval('"system_oauth2_approve_seq"', 4, true);
  4250. -- ----------------------------
  4251. -- Alter sequences owned by
  4252. -- ----------------------------
  4253. SELECT setval('"system_oauth2_client_seq"', 1, false);
  4254. -- ----------------------------
  4255. -- Alter sequences owned by
  4256. -- ----------------------------
  4257. SELECT setval('"system_oauth2_code_seq"', 4, true);
  4258. -- ----------------------------
  4259. -- Alter sequences owned by
  4260. -- ----------------------------
  4261. SELECT setval('"system_oauth2_refresh_token_seq"', 1, true);
  4262. -- ----------------------------
  4263. -- Alter sequences owned by
  4264. -- ----------------------------
  4265. SELECT setval('"system_operate_log_seq"', 44, true);
  4266. -- ----------------------------
  4267. -- Alter sequences owned by
  4268. -- ----------------------------
  4269. -- ----------------------------
  4270. -- Alter sequences owned by
  4271. -- ----------------------------
  4272. -- ----------------------------
  4273. -- Alter sequences owned by
  4274. -- ----------------------------
  4275. -- ----------------------------
  4276. -- Alter sequences owned by
  4277. -- ----------------------------
  4278. -- ----------------------------
  4279. -- Alter sequences owned by
  4280. -- ----------------------------
  4281. -- ----------------------------
  4282. -- Alter sequences owned by
  4283. -- ----------------------------
  4284. -- ----------------------------
  4285. -- Alter sequences owned by
  4286. -- ----------------------------
  4287. SELECT setval('"system_sms_log_seq"', 1, true);
  4288. -- ----------------------------
  4289. -- Alter sequences owned by
  4290. -- ----------------------------
  4291. -- ----------------------------
  4292. -- Alter sequences owned by
  4293. -- ----------------------------
  4294. -- ----------------------------
  4295. -- Alter sequences owned by
  4296. -- ----------------------------
  4297. -- ----------------------------
  4298. -- Alter sequences owned by
  4299. -- ----------------------------
  4300. -- ----------------------------
  4301. -- Alter sequences owned by
  4302. -- ----------------------------
  4303. -- ----------------------------
  4304. -- Alter sequences owned by
  4305. -- ----------------------------
  4306. -- ----------------------------
  4307. -- Alter sequences owned by
  4308. -- ----------------------------
  4309. -- ----------------------------
  4310. -- Alter sequences owned by
  4311. -- ----------------------------
  4312. -- ----------------------------
  4313. -- Primary Key structure for table bpm_form
  4314. -- ----------------------------
  4315. ALTER TABLE "bpm_form" ADD CONSTRAINT "bpm_form_pkey" PRIMARY KEY ("id");
  4316. -- ----------------------------
  4317. -- Primary Key structure for table bpm_oa_leave
  4318. -- ----------------------------
  4319. ALTER TABLE "bpm_oa_leave" ADD CONSTRAINT "bpm_oa_leave_pkey" PRIMARY KEY ("id");
  4320. -- ----------------------------
  4321. -- Primary Key structure for table bpm_process_definition_ext
  4322. -- ----------------------------
  4323. ALTER TABLE "bpm_process_definition_ext" ADD CONSTRAINT "bpm_process_definition_ext_pkey" PRIMARY KEY ("id");
  4324. -- ----------------------------
  4325. -- Primary Key structure for table bpm_process_instance_ext
  4326. -- ----------------------------
  4327. ALTER TABLE "bpm_process_instance_ext" ADD CONSTRAINT "bpm_process_instance_ext_pkey" PRIMARY KEY ("id");
  4328. -- ----------------------------
  4329. -- Primary Key structure for table bpm_task_assign_rule
  4330. -- ----------------------------
  4331. ALTER TABLE "bpm_task_assign_rule" ADD CONSTRAINT "bpm_task_assign_rule_pkey" PRIMARY KEY ("id");
  4332. -- ----------------------------
  4333. -- Primary Key structure for table bpm_task_ext
  4334. -- ----------------------------
  4335. ALTER TABLE "bpm_task_ext" ADD CONSTRAINT "bpm_task_ext_pkey" PRIMARY KEY ("id");
  4336. -- ----------------------------
  4337. -- Primary Key structure for table bpm_user_group
  4338. -- ----------------------------
  4339. ALTER TABLE "bpm_user_group" ADD CONSTRAINT "bpm_user_group_pkey" PRIMARY KEY ("id");
  4340. -- ----------------------------
  4341. -- Primary Key structure for table infra_api_access_log
  4342. -- ----------------------------
  4343. ALTER TABLE "infra_api_access_log" ADD CONSTRAINT "infra_api_access_log_pkey" PRIMARY KEY ("id");
  4344. -- ----------------------------
  4345. -- Primary Key structure for table infra_api_error_log
  4346. -- ----------------------------
  4347. ALTER TABLE "infra_api_error_log" ADD CONSTRAINT "infra_api_error_log_pkey" PRIMARY KEY ("id");
  4348. -- ----------------------------
  4349. -- Primary Key structure for table infra_codegen_column
  4350. -- ----------------------------
  4351. ALTER TABLE "infra_codegen_column" ADD CONSTRAINT "infra_codegen_column_pkey" PRIMARY KEY ("id");
  4352. -- ----------------------------
  4353. -- Primary Key structure for table infra_codegen_table
  4354. -- ----------------------------
  4355. ALTER TABLE "infra_codegen_table" ADD CONSTRAINT "infra_codegen_table_pkey" PRIMARY KEY ("id");
  4356. -- ----------------------------
  4357. -- Primary Key structure for table infra_config
  4358. -- ----------------------------
  4359. ALTER TABLE "infra_config" ADD CONSTRAINT "infra_config_pkey" PRIMARY KEY ("id");
  4360. -- ----------------------------
  4361. -- Primary Key structure for table infra_data_source_config
  4362. -- ----------------------------
  4363. ALTER TABLE "infra_data_source_config" ADD CONSTRAINT "infra_data_source_config_pkey" PRIMARY KEY ("id");
  4364. -- ----------------------------
  4365. -- Primary Key structure for table infra_file
  4366. -- ----------------------------
  4367. ALTER TABLE "infra_file" ADD CONSTRAINT "infra_file_pkey" PRIMARY KEY ("id");
  4368. -- ----------------------------
  4369. -- Primary Key structure for table infra_file_config
  4370. -- ----------------------------
  4371. ALTER TABLE "infra_file_config" ADD CONSTRAINT "infra_file_config_pkey" PRIMARY KEY ("id");
  4372. -- ----------------------------
  4373. -- Primary Key structure for table infra_file_content
  4374. -- ----------------------------
  4375. ALTER TABLE "infra_file_content" ADD CONSTRAINT "infra_file_content_pkey" PRIMARY KEY ("id");
  4376. -- ----------------------------
  4377. -- Primary Key structure for table infra_job
  4378. -- ----------------------------
  4379. ALTER TABLE "infra_job" ADD CONSTRAINT "infra_job_pkey" PRIMARY KEY ("id");
  4380. -- ----------------------------
  4381. -- Primary Key structure for table infra_job_log
  4382. -- ----------------------------
  4383. ALTER TABLE "infra_job_log" ADD CONSTRAINT "infra_job_log_pkey" PRIMARY KEY ("id");
  4384. -- ----------------------------
  4385. -- Primary Key structure for table infra_test_demo
  4386. -- ----------------------------
  4387. ALTER TABLE "infra_test_demo" ADD CONSTRAINT "infra_test_demo_pkey" PRIMARY KEY ("id");
  4388. -- ----------------------------
  4389. -- Indexes structure for table member_user
  4390. -- ----------------------------
  4391. CREATE UNIQUE INDEX "uk_mobile" ON "member_user" USING btree (
  4392. "mobile" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4393. );
  4394. COMMENT ON INDEX "uk_mobile" IS '手机号';
  4395. -- ----------------------------
  4396. -- Primary Key structure for table member_user
  4397. -- ----------------------------
  4398. ALTER TABLE "member_user" ADD CONSTRAINT "member_user_pkey" PRIMARY KEY ("id");
  4399. -- ----------------------------
  4400. -- Primary Key structure for table pay_app
  4401. -- ----------------------------
  4402. ALTER TABLE "pay_app" ADD CONSTRAINT "pay_app_pkey" PRIMARY KEY ("id");
  4403. -- ----------------------------
  4404. -- Primary Key structure for table pay_channel
  4405. -- ----------------------------
  4406. ALTER TABLE "pay_channel" ADD CONSTRAINT "pay_channel_pkey" PRIMARY KEY ("id");
  4407. -- ----------------------------
  4408. -- Primary Key structure for table pay_merchant
  4409. -- ----------------------------
  4410. ALTER TABLE "pay_merchant" ADD CONSTRAINT "pay_merchant_pkey" PRIMARY KEY ("id");
  4411. -- ----------------------------
  4412. -- Primary Key structure for table pay_notify_log
  4413. -- ----------------------------
  4414. ALTER TABLE "pay_notify_log" ADD CONSTRAINT "pay_notify_log_pkey" PRIMARY KEY ("id");
  4415. -- ----------------------------
  4416. -- Primary Key structure for table pay_notify_task
  4417. -- ----------------------------
  4418. ALTER TABLE "pay_notify_task" ADD CONSTRAINT "pay_notify_task_pkey" PRIMARY KEY ("id");
  4419. -- ----------------------------
  4420. -- Primary Key structure for table pay_order
  4421. -- ----------------------------
  4422. ALTER TABLE "pay_order" ADD CONSTRAINT "pay_order_pkey" PRIMARY KEY ("id");
  4423. -- ----------------------------
  4424. -- Primary Key structure for table pay_order_extension
  4425. -- ----------------------------
  4426. ALTER TABLE "pay_order_extension" ADD CONSTRAINT "pay_order_extension_pkey" PRIMARY KEY ("id");
  4427. -- ----------------------------
  4428. -- Primary Key structure for table pay_refund
  4429. -- ----------------------------
  4430. ALTER TABLE "pay_refund" ADD CONSTRAINT "pay_refund_pkey" PRIMARY KEY ("id");
  4431. -- ----------------------------
  4432. -- Primary Key structure for table qrtz_blob_triggers
  4433. -- ----------------------------
  4434. ALTER TABLE "qrtz_blob_triggers" ADD CONSTRAINT "qrtz_blob_triggers_pkey" PRIMARY KEY ("sched_name", "trigger_name", "trigger_group");
  4435. -- ----------------------------
  4436. -- Primary Key structure for table qrtz_calendars
  4437. -- ----------------------------
  4438. ALTER TABLE "qrtz_calendars" ADD CONSTRAINT "qrtz_calendars_pkey" PRIMARY KEY ("sched_name", "calendar_name");
  4439. -- ----------------------------
  4440. -- Primary Key structure for table qrtz_cron_triggers
  4441. -- ----------------------------
  4442. ALTER TABLE "qrtz_cron_triggers" ADD CONSTRAINT "qrtz_cron_triggers_pkey" PRIMARY KEY ("sched_name", "trigger_name", "trigger_group");
  4443. -- ----------------------------
  4444. -- Indexes structure for table qrtz_fired_triggers
  4445. -- ----------------------------
  4446. CREATE INDEX "idx_qrtz_ft_inst_job_req_rcvry" ON "qrtz_fired_triggers" USING btree (
  4447. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4448. "instance_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4449. "requests_recovery" "pg_catalog"."bool_ops" ASC NULLS LAST
  4450. );
  4451. CREATE INDEX "idx_qrtz_ft_j_g" ON "qrtz_fired_triggers" USING btree (
  4452. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4453. "job_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4454. "job_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4455. );
  4456. CREATE INDEX "idx_qrtz_ft_jg" ON "qrtz_fired_triggers" USING btree (
  4457. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4458. "job_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4459. );
  4460. CREATE INDEX "idx_qrtz_ft_t_g" ON "qrtz_fired_triggers" USING btree (
  4461. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4462. "trigger_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4463. "trigger_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4464. );
  4465. CREATE INDEX "idx_qrtz_ft_tg" ON "qrtz_fired_triggers" USING btree (
  4466. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4467. "trigger_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4468. );
  4469. CREATE INDEX "idx_qrtz_ft_trig_inst_name" ON "qrtz_fired_triggers" USING btree (
  4470. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4471. "instance_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4472. );
  4473. -- ----------------------------
  4474. -- Primary Key structure for table qrtz_fired_triggers
  4475. -- ----------------------------
  4476. ALTER TABLE "qrtz_fired_triggers" ADD CONSTRAINT "qrtz_fired_triggers_pkey" PRIMARY KEY ("sched_name", "entry_id");
  4477. -- ----------------------------
  4478. -- Indexes structure for table qrtz_job_details
  4479. -- ----------------------------
  4480. CREATE INDEX "idx_qrtz_j_grp" ON "qrtz_job_details" USING btree (
  4481. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4482. "job_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4483. );
  4484. CREATE INDEX "idx_qrtz_j_req_recovery" ON "qrtz_job_details" USING btree (
  4485. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4486. "requests_recovery" "pg_catalog"."bool_ops" ASC NULLS LAST
  4487. );
  4488. -- ----------------------------
  4489. -- Primary Key structure for table qrtz_job_details
  4490. -- ----------------------------
  4491. ALTER TABLE "qrtz_job_details" ADD CONSTRAINT "qrtz_job_details_pkey" PRIMARY KEY ("sched_name", "job_name", "job_group");
  4492. -- ----------------------------
  4493. -- Primary Key structure for table qrtz_locks
  4494. -- ----------------------------
  4495. ALTER TABLE "qrtz_locks" ADD CONSTRAINT "qrtz_locks_pkey" PRIMARY KEY ("sched_name", "lock_name");
  4496. -- ----------------------------
  4497. -- Primary Key structure for table qrtz_paused_trigger_grps
  4498. -- ----------------------------
  4499. ALTER TABLE "qrtz_paused_trigger_grps" ADD CONSTRAINT "qrtz_paused_trigger_grps_pkey" PRIMARY KEY ("sched_name", "trigger_group");
  4500. -- ----------------------------
  4501. -- Primary Key structure for table qrtz_scheduler_state
  4502. -- ----------------------------
  4503. ALTER TABLE "qrtz_scheduler_state" ADD CONSTRAINT "qrtz_scheduler_state_pkey" PRIMARY KEY ("sched_name", "instance_name");
  4504. -- ----------------------------
  4505. -- Primary Key structure for table qrtz_simple_triggers
  4506. -- ----------------------------
  4507. ALTER TABLE "qrtz_simple_triggers" ADD CONSTRAINT "qrtz_simple_triggers_pkey" PRIMARY KEY ("sched_name", "trigger_name", "trigger_group");
  4508. -- ----------------------------
  4509. -- Primary Key structure for table qrtz_simprop_triggers
  4510. -- ----------------------------
  4511. ALTER TABLE "qrtz_simprop_triggers" ADD CONSTRAINT "qrtz_simprop_triggers_pkey" PRIMARY KEY ("sched_name", "trigger_name", "trigger_group");
  4512. -- ----------------------------
  4513. -- Indexes structure for table qrtz_triggers
  4514. -- ----------------------------
  4515. CREATE INDEX "idx_qrtz_t_c" ON "qrtz_triggers" USING btree (
  4516. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4517. "calendar_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4518. );
  4519. CREATE INDEX "idx_qrtz_t_g" ON "qrtz_triggers" USING btree (
  4520. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4521. "trigger_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4522. );
  4523. CREATE INDEX "idx_qrtz_t_j" ON "qrtz_triggers" USING btree (
  4524. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4525. "job_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4526. "job_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4527. );
  4528. CREATE INDEX "idx_qrtz_t_jg" ON "qrtz_triggers" USING btree (
  4529. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4530. "job_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4531. );
  4532. CREATE INDEX "idx_qrtz_t_n_g_state" ON "qrtz_triggers" USING btree (
  4533. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4534. "trigger_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4535. "trigger_state" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4536. );
  4537. CREATE INDEX "idx_qrtz_t_n_state" ON "qrtz_triggers" USING btree (
  4538. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4539. "trigger_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4540. "trigger_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4541. "trigger_state" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4542. );
  4543. CREATE INDEX "idx_qrtz_t_next_fire_time" ON "qrtz_triggers" USING btree (
  4544. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4545. "next_fire_time" "pg_catalog"."int8_ops" ASC NULLS LAST
  4546. );
  4547. CREATE INDEX "idx_qrtz_t_nft_misfire" ON "qrtz_triggers" USING btree (
  4548. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4549. "misfire_instr" "pg_catalog"."int2_ops" ASC NULLS LAST,
  4550. "next_fire_time" "pg_catalog"."int8_ops" ASC NULLS LAST
  4551. );
  4552. CREATE INDEX "idx_qrtz_t_nft_st" ON "qrtz_triggers" USING btree (
  4553. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4554. "trigger_state" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4555. "next_fire_time" "pg_catalog"."int8_ops" ASC NULLS LAST
  4556. );
  4557. CREATE INDEX "idx_qrtz_t_nft_st_misfire" ON "qrtz_triggers" USING btree (
  4558. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4559. "misfire_instr" "pg_catalog"."int2_ops" ASC NULLS LAST,
  4560. "next_fire_time" "pg_catalog"."int8_ops" ASC NULLS LAST,
  4561. "trigger_state" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4562. );
  4563. CREATE INDEX "idx_qrtz_t_nft_st_misfire_grp" ON "qrtz_triggers" USING btree (
  4564. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4565. "misfire_instr" "pg_catalog"."int2_ops" ASC NULLS LAST,
  4566. "next_fire_time" "pg_catalog"."int8_ops" ASC NULLS LAST,
  4567. "trigger_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4568. "trigger_state" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4569. );
  4570. CREATE INDEX "idx_qrtz_t_state" ON "qrtz_triggers" USING btree (
  4571. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4572. "trigger_state" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4573. );
  4574. -- ----------------------------
  4575. -- Primary Key structure for table qrtz_triggers
  4576. -- ----------------------------
  4577. ALTER TABLE "qrtz_triggers" ADD CONSTRAINT "qrtz_triggers_pkey" PRIMARY KEY ("sched_name", "trigger_name", "trigger_group");
  4578. -- ----------------------------
  4579. -- Primary Key structure for table system_dept
  4580. -- ----------------------------
  4581. ALTER TABLE "system_dept" ADD CONSTRAINT "system_dept_pkey" PRIMARY KEY ("id");
  4582. -- ----------------------------
  4583. -- Primary Key structure for table system_dict_data
  4584. -- ----------------------------
  4585. ALTER TABLE "system_dict_data" ADD CONSTRAINT "system_dict_data_pkey" PRIMARY KEY ("id");
  4586. -- ----------------------------
  4587. -- Indexes structure for table system_dict_type
  4588. -- ----------------------------
  4589. CREATE UNIQUE INDEX "dict_type" ON "system_dict_type" USING btree (
  4590. "type" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4591. );
  4592. -- ----------------------------
  4593. -- Primary Key structure for table system_dict_type
  4594. -- ----------------------------
  4595. ALTER TABLE "system_dict_type" ADD CONSTRAINT "system_dict_type_pkey" PRIMARY KEY ("id");
  4596. -- ----------------------------
  4597. -- Primary Key structure for table system_error_code
  4598. -- ----------------------------
  4599. ALTER TABLE "system_error_code" ADD CONSTRAINT "system_error_code_pkey" PRIMARY KEY ("id");
  4600. -- ----------------------------
  4601. -- Primary Key structure for table system_login_log
  4602. -- ----------------------------
  4603. ALTER TABLE "system_login_log" ADD CONSTRAINT "system_login_log_pkey" PRIMARY KEY ("id");
  4604. -- ----------------------------
  4605. -- Primary Key structure for table system_menu
  4606. -- ----------------------------
  4607. ALTER TABLE "system_menu" ADD CONSTRAINT "system_menu_pkey" PRIMARY KEY ("id");
  4608. -- ----------------------------
  4609. -- Primary Key structure for table system_notice
  4610. -- ----------------------------
  4611. ALTER TABLE "system_notice" ADD CONSTRAINT "system_notice_pkey" PRIMARY KEY ("id");
  4612. -- ----------------------------
  4613. -- Primary Key structure for table system_oauth2_access_token
  4614. -- ----------------------------
  4615. ALTER TABLE "system_oauth2_access_token" ADD CONSTRAINT "system_oauth2_access_token_pkey" PRIMARY KEY ("id");
  4616. -- ----------------------------
  4617. -- Primary Key structure for table system_oauth2_approve
  4618. -- ----------------------------
  4619. ALTER TABLE "system_oauth2_approve" ADD CONSTRAINT "system_oauth2_approve_pkey" PRIMARY KEY ("id");
  4620. -- ----------------------------
  4621. -- Primary Key structure for table system_oauth2_client
  4622. -- ----------------------------
  4623. ALTER TABLE "system_oauth2_client" ADD CONSTRAINT "system_oauth2_client_pkey" PRIMARY KEY ("id");
  4624. -- ----------------------------
  4625. -- Primary Key structure for table system_oauth2_code
  4626. -- ----------------------------
  4627. ALTER TABLE "system_oauth2_code" ADD CONSTRAINT "system_oauth2_code_pkey" PRIMARY KEY ("id");
  4628. -- ----------------------------
  4629. -- Primary Key structure for table system_oauth2_refresh_token
  4630. -- ----------------------------
  4631. ALTER TABLE "system_oauth2_refresh_token" ADD CONSTRAINT "system_oauth2_refresh_token_pkey" PRIMARY KEY ("id");
  4632. -- ----------------------------
  4633. -- Primary Key structure for table system_operate_log
  4634. -- ----------------------------
  4635. ALTER TABLE "system_operate_log" ADD CONSTRAINT "system_operate_log_pkey" PRIMARY KEY ("id");
  4636. -- ----------------------------
  4637. -- Primary Key structure for table system_post
  4638. -- ----------------------------
  4639. ALTER TABLE "system_post" ADD CONSTRAINT "system_post_pkey" PRIMARY KEY ("id");
  4640. -- ----------------------------
  4641. -- Primary Key structure for table system_role
  4642. -- ----------------------------
  4643. ALTER TABLE "system_role" ADD CONSTRAINT "system_role_pkey" PRIMARY KEY ("id");
  4644. -- ----------------------------
  4645. -- Primary Key structure for table system_role_menu
  4646. -- ----------------------------
  4647. ALTER TABLE "system_role_menu" ADD CONSTRAINT "system_role_menu_pkey" PRIMARY KEY ("id");
  4648. -- ----------------------------
  4649. -- Primary Key structure for table system_sensitive_word
  4650. -- ----------------------------
  4651. ALTER TABLE "system_sensitive_word" ADD CONSTRAINT "system_sensitive_word_pkey" PRIMARY KEY ("id");
  4652. -- ----------------------------
  4653. -- Primary Key structure for table system_sms_channel
  4654. -- ----------------------------
  4655. ALTER TABLE "system_sms_channel" ADD CONSTRAINT "system_sms_channel_pkey" PRIMARY KEY ("id");
  4656. -- ----------------------------
  4657. -- Indexes structure for table system_sms_code
  4658. -- ----------------------------
  4659. CREATE INDEX "idx_mobile" ON "system_sms_code" USING btree (
  4660. "mobile" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4661. );
  4662. COMMENT ON INDEX "idx_mobile" IS '手机号';
  4663. -- ----------------------------
  4664. -- Primary Key structure for table system_sms_code
  4665. -- ----------------------------
  4666. ALTER TABLE "system_sms_code" ADD CONSTRAINT "system_sms_code_pkey" PRIMARY KEY ("id");
  4667. -- ----------------------------
  4668. -- Primary Key structure for table system_sms_log
  4669. -- ----------------------------
  4670. ALTER TABLE "system_sms_log" ADD CONSTRAINT "system_sms_log_pkey" PRIMARY KEY ("id");
  4671. -- ----------------------------
  4672. -- Primary Key structure for table system_sms_template
  4673. -- ----------------------------
  4674. ALTER TABLE "system_sms_template" ADD CONSTRAINT "system_sms_template_pkey" PRIMARY KEY ("id");
  4675. -- ----------------------------
  4676. -- Primary Key structure for table system_social_user
  4677. -- ----------------------------
  4678. ALTER TABLE "system_social_user" ADD CONSTRAINT "system_social_user_pkey" PRIMARY KEY ("id");
  4679. -- ----------------------------
  4680. -- Primary Key structure for table system_social_user_bind
  4681. -- ----------------------------
  4682. ALTER TABLE "system_social_user_bind" ADD CONSTRAINT "system_social_user_bind_pkey" PRIMARY KEY ("id");
  4683. -- ----------------------------
  4684. -- Primary Key structure for table system_tenant
  4685. -- ----------------------------
  4686. ALTER TABLE "system_tenant" ADD CONSTRAINT "system_tenant_pkey" PRIMARY KEY ("id");
  4687. -- ----------------------------
  4688. -- Primary Key structure for table system_tenant_package
  4689. -- ----------------------------
  4690. ALTER TABLE "system_tenant_package" ADD CONSTRAINT "system_tenant_package_pkey" PRIMARY KEY ("id");
  4691. -- ----------------------------
  4692. -- Primary Key structure for table system_user_post
  4693. -- ----------------------------
  4694. ALTER TABLE "system_user_post" ADD CONSTRAINT "system_user_post_pkey" PRIMARY KEY ("id");
  4695. -- ----------------------------
  4696. -- Primary Key structure for table system_user_role
  4697. -- ----------------------------
  4698. ALTER TABLE "system_user_role" ADD CONSTRAINT "system_user_role_pkey" PRIMARY KEY ("id");
  4699. -- ----------------------------
  4700. -- Indexes structure for table system_users
  4701. -- ----------------------------
  4702. CREATE UNIQUE INDEX "idx_username" ON "system_users" USING btree (
  4703. "username" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4704. "update_time" "pg_catalog"."timestamp_ops" ASC NULLS LAST,
  4705. "tenant_id" "pg_catalog"."int8_ops" ASC NULLS LAST
  4706. );
  4707. -- ----------------------------
  4708. -- Primary Key structure for table system_users
  4709. -- ----------------------------
  4710. ALTER TABLE "system_users" ADD CONSTRAINT "system_user_pkey" PRIMARY KEY ("id");
  4711. -- ----------------------------
  4712. -- Foreign Keys structure for table qrtz_blob_triggers
  4713. -- ----------------------------
  4714. ALTER TABLE "qrtz_blob_triggers" ADD CONSTRAINT "qrtz_blob_triggers_sched_name_trigger_name_trigger_group_fkey" FOREIGN KEY ("sched_name", "trigger_name", "trigger_group") REFERENCES "qrtz_triggers" ("sched_name", "trigger_name", "trigger_group") ON DELETE NO ACTION ON UPDATE NO ACTION;
  4715. -- ----------------------------
  4716. -- Foreign Keys structure for table qrtz_cron_triggers
  4717. -- ----------------------------
  4718. ALTER TABLE "qrtz_cron_triggers" ADD CONSTRAINT "qrtz_cron_triggers_sched_name_trigger_name_trigger_group_fkey" FOREIGN KEY ("sched_name", "trigger_name", "trigger_group") REFERENCES "qrtz_triggers" ("sched_name", "trigger_name", "trigger_group") ON DELETE NO ACTION ON UPDATE NO ACTION;
  4719. -- ----------------------------
  4720. -- Foreign Keys structure for table qrtz_simple_triggers
  4721. -- ----------------------------
  4722. ALTER TABLE "qrtz_simple_triggers" ADD CONSTRAINT "qrtz_simple_triggers_sched_name_trigger_name_trigger_group_fkey" FOREIGN KEY ("sched_name", "trigger_name", "trigger_group") REFERENCES "qrtz_triggers" ("sched_name", "trigger_name", "trigger_group") ON DELETE NO ACTION ON UPDATE NO ACTION;
  4723. -- ----------------------------
  4724. -- Foreign Keys structure for table qrtz_simprop_triggers
  4725. -- ----------------------------
  4726. ALTER TABLE "qrtz_simprop_triggers" ADD CONSTRAINT "qrtz_simprop_triggers_sched_name_trigger_name_trigger_grou_fkey" FOREIGN KEY ("sched_name", "trigger_name", "trigger_group") REFERENCES "qrtz_triggers" ("sched_name", "trigger_name", "trigger_group") ON DELETE NO ACTION ON UPDATE NO ACTION;
  4727. -- ----------------------------
  4728. -- Foreign Keys structure for table qrtz_triggers
  4729. -- ----------------------------
  4730. ALTER TABLE "qrtz_triggers" ADD CONSTRAINT "qrtz_triggers_sched_name_job_name_job_group_fkey" FOREIGN KEY ("sched_name", "job_name", "job_group") REFERENCES "qrtz_job_details" ("sched_name", "job_name", "job_group") ON DELETE NO ACTION ON UPDATE NO ACTION;