ruoyi-vue-pro.sql 380 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758
  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. -- Table structure for bpm_form
  474. -- ----------------------------
  475. DROP TABLE IF EXISTS "bpm_form";
  476. CREATE TABLE "bpm_form" (
  477. "id" int8 NOT NULL,
  478. "name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  479. "status" int2 NOT NULL,
  480. "conf" varchar(1000) COLLATE "pg_catalog"."default" NOT NULL,
  481. "fields" varchar(5000) COLLATE "pg_catalog"."default" NOT NULL,
  482. "remark" varchar(255) COLLATE "pg_catalog"."default",
  483. "creator" varchar(64) COLLATE "pg_catalog"."default",
  484. "create_time" timestamp(6) NOT NULL,
  485. "updater" varchar(64) COLLATE "pg_catalog"."default",
  486. "update_time" timestamp(6) NOT NULL,
  487. "deleted" int2 NOT NULL DEFAULT 0,
  488. "tenant_id" int8 NOT NULL DEFAULT 0
  489. )
  490. ;
  491. COMMENT ON COLUMN "bpm_form"."id" IS '编号';
  492. COMMENT ON COLUMN "bpm_form"."name" IS '表单名';
  493. COMMENT ON COLUMN "bpm_form"."status" IS '开启状态';
  494. COMMENT ON COLUMN "bpm_form"."conf" IS '表单的配置';
  495. COMMENT ON COLUMN "bpm_form"."fields" IS '表单项的数组';
  496. COMMENT ON COLUMN "bpm_form"."remark" IS '备注';
  497. COMMENT ON COLUMN "bpm_form"."creator" IS '创建者';
  498. COMMENT ON COLUMN "bpm_form"."create_time" IS '创建时间';
  499. COMMENT ON COLUMN "bpm_form"."updater" IS '更新者';
  500. COMMENT ON COLUMN "bpm_form"."update_time" IS '更新时间';
  501. COMMENT ON COLUMN "bpm_form"."deleted" IS '是否删除';
  502. COMMENT ON COLUMN "bpm_form"."tenant_id" IS '租户编号';
  503. COMMENT ON TABLE "bpm_form" IS '工作流的表单定义';
  504. -- ----------------------------
  505. -- Records of bpm_form
  506. -- ----------------------------
  507. BEGIN;
  508. COMMIT;
  509. -- ----------------------------
  510. -- Table structure for bpm_oa_leave
  511. -- ----------------------------
  512. DROP TABLE IF EXISTS "bpm_oa_leave";
  513. CREATE TABLE "bpm_oa_leave" (
  514. "id" int8 NOT NULL,
  515. "user_id" int8 NOT NULL,
  516. "type" int2 NOT NULL,
  517. "reason" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  518. "start_time" timestamp(6) NOT NULL,
  519. "end_time" timestamp(6) NOT NULL,
  520. "day" int2 NOT NULL,
  521. "result" int2 NOT NULL,
  522. "process_instance_id" varchar(64) COLLATE "pg_catalog"."default",
  523. "creator" varchar(64) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  524. "create_time" timestamp(6) NOT NULL,
  525. "updater" varchar(64) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  526. "update_time" timestamp(6) NOT NULL,
  527. "deleted" int2 NOT NULL DEFAULT 0,
  528. "tenant_id" int8 NOT NULL DEFAULT 0
  529. )
  530. ;
  531. COMMENT ON COLUMN "bpm_oa_leave"."id" IS '请假表单主键';
  532. COMMENT ON COLUMN "bpm_oa_leave"."user_id" IS '申请人的用户编号';
  533. COMMENT ON COLUMN "bpm_oa_leave"."type" IS '请假类型';
  534. COMMENT ON COLUMN "bpm_oa_leave"."reason" IS '请假原因';
  535. COMMENT ON COLUMN "bpm_oa_leave"."start_time" IS '开始时间';
  536. COMMENT ON COLUMN "bpm_oa_leave"."end_time" IS '结束时间';
  537. COMMENT ON COLUMN "bpm_oa_leave"."day" IS '请假天数';
  538. COMMENT ON COLUMN "bpm_oa_leave"."result" IS '请假结果';
  539. COMMENT ON COLUMN "bpm_oa_leave"."process_instance_id" IS '流程实例的编号';
  540. COMMENT ON COLUMN "bpm_oa_leave"."creator" IS '创建者';
  541. COMMENT ON COLUMN "bpm_oa_leave"."create_time" IS '创建时间';
  542. COMMENT ON COLUMN "bpm_oa_leave"."updater" IS '更新者';
  543. COMMENT ON COLUMN "bpm_oa_leave"."update_time" IS '更新时间';
  544. COMMENT ON COLUMN "bpm_oa_leave"."deleted" IS '是否删除';
  545. COMMENT ON COLUMN "bpm_oa_leave"."tenant_id" IS '租户编号';
  546. COMMENT ON TABLE "bpm_oa_leave" IS 'OA 请假申请表';
  547. -- ----------------------------
  548. -- Records of bpm_oa_leave
  549. -- ----------------------------
  550. BEGIN;
  551. COMMIT;
  552. -- ----------------------------
  553. -- Table structure for bpm_process_definition_ext
  554. -- ----------------------------
  555. DROP TABLE IF EXISTS "bpm_process_definition_ext";
  556. CREATE TABLE "bpm_process_definition_ext" (
  557. "id" int8 NOT NULL,
  558. "process_definition_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  559. "model_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  560. "description" varchar(255) COLLATE "pg_catalog"."default",
  561. "form_type" int2 NOT NULL,
  562. "form_id" int8,
  563. "form_conf" varchar(1000) COLLATE "pg_catalog"."default",
  564. "form_fields" varchar(5000) COLLATE "pg_catalog"."default",
  565. "form_custom_create_path" varchar(255) COLLATE "pg_catalog"."default",
  566. "form_custom_view_path" varchar(255) COLLATE "pg_catalog"."default",
  567. "creator" varchar(64) COLLATE "pg_catalog"."default",
  568. "create_time" timestamp(6) NOT NULL,
  569. "updater" varchar(64) COLLATE "pg_catalog"."default",
  570. "update_time" timestamp(6) NOT NULL,
  571. "deleted" int2 NOT NULL DEFAULT 0,
  572. "tenant_id" int8 NOT NULL DEFAULT 0
  573. )
  574. ;
  575. COMMENT ON COLUMN "bpm_process_definition_ext"."id" IS '编号';
  576. COMMENT ON COLUMN "bpm_process_definition_ext"."process_definition_id" IS '流程定义的编号';
  577. COMMENT ON COLUMN "bpm_process_definition_ext"."model_id" IS '流程模型的编号';
  578. COMMENT ON COLUMN "bpm_process_definition_ext"."description" IS '描述';
  579. COMMENT ON COLUMN "bpm_process_definition_ext"."form_type" IS '表单类型';
  580. COMMENT ON COLUMN "bpm_process_definition_ext"."form_id" IS '表单编号';
  581. COMMENT ON COLUMN "bpm_process_definition_ext"."form_conf" IS '表单的配置';
  582. COMMENT ON COLUMN "bpm_process_definition_ext"."form_fields" IS '表单项的数组';
  583. COMMENT ON COLUMN "bpm_process_definition_ext"."form_custom_create_path" IS '自定义表单的提交路径';
  584. COMMENT ON COLUMN "bpm_process_definition_ext"."form_custom_view_path" IS '自定义表单的查看路径';
  585. COMMENT ON COLUMN "bpm_process_definition_ext"."creator" IS '创建者';
  586. COMMENT ON COLUMN "bpm_process_definition_ext"."create_time" IS '创建时间';
  587. COMMENT ON COLUMN "bpm_process_definition_ext"."updater" IS '更新者';
  588. COMMENT ON COLUMN "bpm_process_definition_ext"."update_time" IS '更新时间';
  589. COMMENT ON COLUMN "bpm_process_definition_ext"."deleted" IS '是否删除';
  590. COMMENT ON COLUMN "bpm_process_definition_ext"."tenant_id" IS '租户编号';
  591. COMMENT ON TABLE "bpm_process_definition_ext" IS 'Bpm 流程定义的拓展表
  592. ';
  593. -- ----------------------------
  594. -- Records of bpm_process_definition_ext
  595. -- ----------------------------
  596. BEGIN;
  597. COMMIT;
  598. -- ----------------------------
  599. -- Table structure for bpm_process_instance_ext
  600. -- ----------------------------
  601. DROP TABLE IF EXISTS "bpm_process_instance_ext";
  602. CREATE TABLE "bpm_process_instance_ext" (
  603. "id" int8 NOT NULL,
  604. "start_user_id" int8 NOT NULL,
  605. "name" varchar(64) COLLATE "pg_catalog"."default",
  606. "process_instance_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  607. "process_definition_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  608. "category" varchar(64) COLLATE "pg_catalog"."default",
  609. "status" int2 NOT NULL,
  610. "result" int2 NOT NULL,
  611. "end_time" timestamp(6),
  612. "form_variables" varchar(5000) COLLATE "pg_catalog"."default",
  613. "creator" varchar(64) COLLATE "pg_catalog"."default",
  614. "create_time" timestamp(6) NOT NULL,
  615. "updater" varchar(64) COLLATE "pg_catalog"."default",
  616. "update_time" timestamp(6) NOT NULL,
  617. "deleted" int2 NOT NULL DEFAULT 0,
  618. "tenant_id" int8 NOT NULL DEFAULT 0
  619. )
  620. ;
  621. COMMENT ON COLUMN "bpm_process_instance_ext"."id" IS '编号';
  622. COMMENT ON COLUMN "bpm_process_instance_ext"."start_user_id" IS '发起流程的用户编号';
  623. COMMENT ON COLUMN "bpm_process_instance_ext"."name" IS '流程实例的名字';
  624. COMMENT ON COLUMN "bpm_process_instance_ext"."process_instance_id" IS '流程实例的编号';
  625. COMMENT ON COLUMN "bpm_process_instance_ext"."process_definition_id" IS '流程定义的编号';
  626. COMMENT ON COLUMN "bpm_process_instance_ext"."category" IS '流程分类';
  627. COMMENT ON COLUMN "bpm_process_instance_ext"."status" IS '流程实例的状态';
  628. COMMENT ON COLUMN "bpm_process_instance_ext"."result" IS '流程实例的结果';
  629. COMMENT ON COLUMN "bpm_process_instance_ext"."end_time" IS '结束时间';
  630. COMMENT ON COLUMN "bpm_process_instance_ext"."form_variables" IS '表单值';
  631. COMMENT ON COLUMN "bpm_process_instance_ext"."creator" IS '创建者';
  632. COMMENT ON COLUMN "bpm_process_instance_ext"."create_time" IS '创建时间';
  633. COMMENT ON COLUMN "bpm_process_instance_ext"."updater" IS '更新者';
  634. COMMENT ON COLUMN "bpm_process_instance_ext"."update_time" IS '更新时间';
  635. COMMENT ON COLUMN "bpm_process_instance_ext"."deleted" IS '是否删除';
  636. COMMENT ON COLUMN "bpm_process_instance_ext"."tenant_id" IS '租户编号';
  637. COMMENT ON TABLE "bpm_process_instance_ext" IS '工作流的流程实例的拓展';
  638. -- ----------------------------
  639. -- Records of bpm_process_instance_ext
  640. -- ----------------------------
  641. BEGIN;
  642. COMMIT;
  643. -- ----------------------------
  644. -- Table structure for bpm_task_assign_rule
  645. -- ----------------------------
  646. DROP TABLE IF EXISTS "bpm_task_assign_rule";
  647. CREATE TABLE "bpm_task_assign_rule" (
  648. "id" int8 NOT NULL,
  649. "model_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  650. "process_definition_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  651. "task_definition_key" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  652. "type" int2 NOT NULL,
  653. "options" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  654. "creator" varchar(64) COLLATE "pg_catalog"."default",
  655. "create_time" timestamp(6) NOT NULL,
  656. "updater" varchar(64) COLLATE "pg_catalog"."default",
  657. "update_time" timestamp(6) NOT NULL,
  658. "deleted" int2 NOT NULL DEFAULT 0,
  659. "tenant_id" int8 NOT NULL DEFAULT 0
  660. )
  661. ;
  662. COMMENT ON COLUMN "bpm_task_assign_rule"."id" IS '编号';
  663. COMMENT ON COLUMN "bpm_task_assign_rule"."model_id" IS '流程模型的编号';
  664. COMMENT ON COLUMN "bpm_task_assign_rule"."process_definition_id" IS '流程定义的编号';
  665. COMMENT ON COLUMN "bpm_task_assign_rule"."task_definition_key" IS '流程任务定义的 key';
  666. COMMENT ON COLUMN "bpm_task_assign_rule"."type" IS '规则类型';
  667. COMMENT ON COLUMN "bpm_task_assign_rule"."options" IS '规则值,JSON 数组';
  668. COMMENT ON COLUMN "bpm_task_assign_rule"."creator" IS '创建者';
  669. COMMENT ON COLUMN "bpm_task_assign_rule"."create_time" IS '创建时间';
  670. COMMENT ON COLUMN "bpm_task_assign_rule"."updater" IS '更新者';
  671. COMMENT ON COLUMN "bpm_task_assign_rule"."update_time" IS '更新时间';
  672. COMMENT ON COLUMN "bpm_task_assign_rule"."deleted" IS '是否删除';
  673. COMMENT ON COLUMN "bpm_task_assign_rule"."tenant_id" IS '租户编号';
  674. COMMENT ON TABLE "bpm_task_assign_rule" IS 'Bpm 任务规则表';
  675. -- ----------------------------
  676. -- Records of bpm_task_assign_rule
  677. -- ----------------------------
  678. BEGIN;
  679. COMMIT;
  680. -- ----------------------------
  681. -- Table structure for bpm_task_ext
  682. -- ----------------------------
  683. DROP TABLE IF EXISTS "bpm_task_ext";
  684. CREATE TABLE "bpm_task_ext" (
  685. "id" int8 NOT NULL,
  686. "assignee_user_id" int8,
  687. "name" varchar(64) COLLATE "pg_catalog"."default",
  688. "task_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  689. "result" int2 NOT NULL,
  690. "reason" varchar(255) COLLATE "pg_catalog"."default",
  691. "end_time" timestamp(6),
  692. "process_instance_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  693. "process_definition_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  694. "creator" varchar(64) COLLATE "pg_catalog"."default",
  695. "create_time" timestamp(6) NOT NULL,
  696. "updater" varchar(64) COLLATE "pg_catalog"."default",
  697. "update_time" timestamp(6) NOT NULL,
  698. "deleted" int2 NOT NULL DEFAULT 0,
  699. "tenant_id" int8 NOT NULL DEFAULT 0
  700. )
  701. ;
  702. COMMENT ON COLUMN "bpm_task_ext"."id" IS '编号';
  703. COMMENT ON COLUMN "bpm_task_ext"."assignee_user_id" IS '任务的审批人';
  704. COMMENT ON COLUMN "bpm_task_ext"."name" IS '任务的名字';
  705. COMMENT ON COLUMN "bpm_task_ext"."task_id" IS '任务的编号';
  706. COMMENT ON COLUMN "bpm_task_ext"."result" IS '任务的结果';
  707. COMMENT ON COLUMN "bpm_task_ext"."reason" IS '审批建议';
  708. COMMENT ON COLUMN "bpm_task_ext"."end_time" IS '任务的结束时间';
  709. COMMENT ON COLUMN "bpm_task_ext"."process_instance_id" IS '流程实例的编号';
  710. COMMENT ON COLUMN "bpm_task_ext"."process_definition_id" IS '流程定义的编号';
  711. COMMENT ON COLUMN "bpm_task_ext"."creator" IS '创建者';
  712. COMMENT ON COLUMN "bpm_task_ext"."create_time" IS '创建时间';
  713. COMMENT ON COLUMN "bpm_task_ext"."updater" IS '更新者';
  714. COMMENT ON COLUMN "bpm_task_ext"."update_time" IS '更新时间';
  715. COMMENT ON COLUMN "bpm_task_ext"."deleted" IS '是否删除';
  716. COMMENT ON COLUMN "bpm_task_ext"."tenant_id" IS '租户编号';
  717. COMMENT ON TABLE "bpm_task_ext" IS '工作流的流程任务的拓展表';
  718. -- ----------------------------
  719. -- Records of bpm_task_ext
  720. -- ----------------------------
  721. BEGIN;
  722. COMMIT;
  723. -- ----------------------------
  724. -- Table structure for bpm_user_group
  725. -- ----------------------------
  726. DROP TABLE IF EXISTS "bpm_user_group";
  727. CREATE TABLE "bpm_user_group" (
  728. "id" int8 NOT NULL,
  729. "name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  730. "description" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  731. "member_user_ids" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  732. "status" int2 NOT NULL,
  733. "creator" varchar(64) COLLATE "pg_catalog"."default",
  734. "create_time" timestamp(6) NOT NULL,
  735. "updater" varchar(64) COLLATE "pg_catalog"."default",
  736. "update_time" timestamp(6) NOT NULL,
  737. "deleted" int2 NOT NULL DEFAULT 0,
  738. "tenant_id" int8 NOT NULL DEFAULT 0
  739. )
  740. ;
  741. COMMENT ON COLUMN "bpm_user_group"."id" IS '编号';
  742. COMMENT ON COLUMN "bpm_user_group"."name" IS '组名';
  743. COMMENT ON COLUMN "bpm_user_group"."description" IS '描述';
  744. COMMENT ON COLUMN "bpm_user_group"."member_user_ids" IS '成员编号数组';
  745. COMMENT ON COLUMN "bpm_user_group"."status" IS '状态(0正常 1停用)';
  746. COMMENT ON COLUMN "bpm_user_group"."creator" IS '创建者';
  747. COMMENT ON COLUMN "bpm_user_group"."create_time" IS '创建时间';
  748. COMMENT ON COLUMN "bpm_user_group"."updater" IS '更新者';
  749. COMMENT ON COLUMN "bpm_user_group"."update_time" IS '更新时间';
  750. COMMENT ON COLUMN "bpm_user_group"."deleted" IS '是否删除';
  751. COMMENT ON COLUMN "bpm_user_group"."tenant_id" IS '租户编号';
  752. COMMENT ON TABLE "bpm_user_group" IS '用户组';
  753. -- ----------------------------
  754. -- Records of bpm_user_group
  755. -- ----------------------------
  756. BEGIN;
  757. COMMIT;
  758. -- ----------------------------
  759. -- Table structure for dual
  760. -- ----------------------------
  761. DROP TABLE IF EXISTS "dual";
  762. CREATE TABLE "dual" (
  763. )
  764. ;
  765. -- ----------------------------
  766. -- Records of dual
  767. -- ----------------------------
  768. BEGIN;
  769. COMMIT;
  770. -- ----------------------------
  771. -- Table structure for infra_api_access_log
  772. -- ----------------------------
  773. DROP TABLE IF EXISTS "infra_api_access_log";
  774. CREATE TABLE "infra_api_access_log" (
  775. "id" int8 NOT NULL,
  776. "trace_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  777. "user_id" int8 NOT NULL DEFAULT 0,
  778. "user_type" int2 NOT NULL DEFAULT 0,
  779. "application_name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  780. "request_method" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  781. "request_url" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  782. "request_params" varchar(8000) COLLATE "pg_catalog"."default" NOT NULL,
  783. "user_ip" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  784. "user_agent" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  785. "begin_time" timestamp(6) NOT NULL,
  786. "end_time" timestamp(6) NOT NULL,
  787. "duration" int4 NOT NULL,
  788. "result_code" int4 NOT NULL,
  789. "result_msg" varchar(512) COLLATE "pg_catalog"."default",
  790. "creator" varchar(64) COLLATE "pg_catalog"."default",
  791. "create_time" timestamp(6) NOT NULL,
  792. "updater" varchar(64) COLLATE "pg_catalog"."default",
  793. "update_time" timestamp(6) NOT NULL,
  794. "deleted" int2 NOT NULL DEFAULT 0,
  795. "tenant_id" int8 NOT NULL DEFAULT 0
  796. )
  797. ;
  798. COMMENT ON COLUMN "infra_api_access_log"."id" IS '日志主键';
  799. COMMENT ON COLUMN "infra_api_access_log"."trace_id" IS '链路追踪编号';
  800. COMMENT ON COLUMN "infra_api_access_log"."user_id" IS '用户编号';
  801. COMMENT ON COLUMN "infra_api_access_log"."user_type" IS '用户类型';
  802. COMMENT ON COLUMN "infra_api_access_log"."application_name" IS '应用名';
  803. COMMENT ON COLUMN "infra_api_access_log"."request_method" IS '请求方法名';
  804. COMMENT ON COLUMN "infra_api_access_log"."request_url" IS '请求地址';
  805. COMMENT ON COLUMN "infra_api_access_log"."request_params" IS '请求参数';
  806. COMMENT ON COLUMN "infra_api_access_log"."user_ip" IS '用户 IP';
  807. COMMENT ON COLUMN "infra_api_access_log"."user_agent" IS '浏览器 UA';
  808. COMMENT ON COLUMN "infra_api_access_log"."begin_time" IS '开始请求时间';
  809. COMMENT ON COLUMN "infra_api_access_log"."end_time" IS '结束请求时间';
  810. COMMENT ON COLUMN "infra_api_access_log"."duration" IS '执行时长';
  811. COMMENT ON COLUMN "infra_api_access_log"."result_code" IS '结果码';
  812. COMMENT ON COLUMN "infra_api_access_log"."result_msg" IS '结果提示';
  813. COMMENT ON COLUMN "infra_api_access_log"."creator" IS '创建者';
  814. COMMENT ON COLUMN "infra_api_access_log"."create_time" IS '创建时间';
  815. COMMENT ON COLUMN "infra_api_access_log"."updater" IS '更新者';
  816. COMMENT ON COLUMN "infra_api_access_log"."update_time" IS '更新时间';
  817. COMMENT ON COLUMN "infra_api_access_log"."deleted" IS '是否删除';
  818. COMMENT ON COLUMN "infra_api_access_log"."tenant_id" IS '租户编号';
  819. COMMENT ON TABLE "infra_api_access_log" IS 'API 访问日志表';
  820. -- ----------------------------
  821. -- Records of infra_api_access_log
  822. -- ----------------------------
  823. BEGIN;
  824. COMMIT;
  825. -- ----------------------------
  826. -- Table structure for infra_api_error_log
  827. -- ----------------------------
  828. DROP TABLE IF EXISTS "infra_api_error_log";
  829. CREATE TABLE "infra_api_error_log" (
  830. "id" int4 NOT NULL,
  831. "trace_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  832. "user_id" int4 NOT NULL DEFAULT 0,
  833. "user_type" int2 NOT NULL DEFAULT 0,
  834. "application_name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  835. "request_method" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  836. "request_url" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  837. "request_params" varchar(8000) COLLATE "pg_catalog"."default" NOT NULL,
  838. "user_ip" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  839. "user_agent" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  840. "exception_time" timestamp(6) NOT NULL,
  841. "exception_name" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
  842. "exception_message" text COLLATE "pg_catalog"."default" NOT NULL,
  843. "exception_root_cause_message" text COLLATE "pg_catalog"."default" NOT NULL,
  844. "exception_stack_trace" text COLLATE "pg_catalog"."default" NOT NULL,
  845. "exception_class_name" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  846. "exception_file_name" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  847. "exception_method_name" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  848. "exception_line_number" int4 NOT NULL,
  849. "process_status" int2 NOT NULL,
  850. "process_time" timestamp(6),
  851. "process_user_id" int4,
  852. "creator" varchar(64) COLLATE "pg_catalog"."default",
  853. "create_time" timestamp(6) NOT NULL,
  854. "updater" varchar(64) COLLATE "pg_catalog"."default",
  855. "update_time" timestamp(6) NOT NULL,
  856. "deleted" int2 NOT NULL DEFAULT 0,
  857. "tenant_id" int8 NOT NULL DEFAULT 0
  858. )
  859. ;
  860. COMMENT ON COLUMN "infra_api_error_log"."id" IS '编号';
  861. COMMENT ON COLUMN "infra_api_error_log"."trace_id" IS '链路追踪编号
  862. *
  863. * 一般来说,通过链路追踪编号,可以将访问日志,错误日志,链路追踪日志,logger 打印日志等,结合在一起,从而进行排错。';
  864. COMMENT ON COLUMN "infra_api_error_log"."user_id" IS '用户编号';
  865. COMMENT ON COLUMN "infra_api_error_log"."user_type" IS '用户类型';
  866. COMMENT ON COLUMN "infra_api_error_log"."application_name" IS '应用名
  867. *
  868. * 目前读取 spring.application.name';
  869. COMMENT ON COLUMN "infra_api_error_log"."request_method" IS '请求方法名';
  870. COMMENT ON COLUMN "infra_api_error_log"."request_url" IS '请求地址';
  871. COMMENT ON COLUMN "infra_api_error_log"."request_params" IS '请求参数';
  872. COMMENT ON COLUMN "infra_api_error_log"."user_ip" IS '用户 IP';
  873. COMMENT ON COLUMN "infra_api_error_log"."user_agent" IS '浏览器 UA';
  874. COMMENT ON COLUMN "infra_api_error_log"."exception_time" IS '异常发生时间';
  875. COMMENT ON COLUMN "infra_api_error_log"."exception_name" IS '异常名
  876. *
  877. * {@link Throwable#getClass()} 的类全名';
  878. COMMENT ON COLUMN "infra_api_error_log"."exception_message" IS '异常导致的消息
  879. *
  880. * {@link cn.iocoder.common.framework.util.ExceptionUtil#getMessage(Throwable)}';
  881. COMMENT ON COLUMN "infra_api_error_log"."exception_root_cause_message" IS '异常导致的根消息
  882. *
  883. * {@link cn.iocoder.common.framework.util.ExceptionUtil#getRootCauseMessage(Throwable)}';
  884. COMMENT ON COLUMN "infra_api_error_log"."exception_stack_trace" IS '异常的栈轨迹
  885. *
  886. * {@link cn.iocoder.common.framework.util.ExceptionUtil#getServiceException(Exception)}';
  887. COMMENT ON COLUMN "infra_api_error_log"."exception_class_name" IS '异常发生的类全名
  888. *
  889. * {@link StackTraceElement#getClassName()}';
  890. COMMENT ON COLUMN "infra_api_error_log"."exception_file_name" IS '异常发生的类文件
  891. *
  892. * {@link StackTraceElement#getFileName()}';
  893. COMMENT ON COLUMN "infra_api_error_log"."exception_method_name" IS '异常发生的方法名
  894. *
  895. * {@link StackTraceElement#getMethodName()}';
  896. COMMENT ON COLUMN "infra_api_error_log"."exception_line_number" IS '异常发生的方法所在行
  897. *
  898. * {@link StackTraceElement#getLineNumber()}';
  899. COMMENT ON COLUMN "infra_api_error_log"."process_status" IS '处理状态';
  900. COMMENT ON COLUMN "infra_api_error_log"."process_time" IS '处理时间';
  901. COMMENT ON COLUMN "infra_api_error_log"."process_user_id" IS '处理用户编号';
  902. COMMENT ON COLUMN "infra_api_error_log"."creator" IS '创建者';
  903. COMMENT ON COLUMN "infra_api_error_log"."create_time" IS '创建时间';
  904. COMMENT ON COLUMN "infra_api_error_log"."updater" IS '更新者';
  905. COMMENT ON COLUMN "infra_api_error_log"."update_time" IS '更新时间';
  906. COMMENT ON COLUMN "infra_api_error_log"."deleted" IS '是否删除';
  907. COMMENT ON COLUMN "infra_api_error_log"."tenant_id" IS '租户编号';
  908. COMMENT ON TABLE "infra_api_error_log" IS '系统异常日志';
  909. -- ----------------------------
  910. -- Records of infra_api_error_log
  911. -- ----------------------------
  912. BEGIN;
  913. COMMIT;
  914. -- ----------------------------
  915. -- Table structure for infra_codegen_column
  916. -- ----------------------------
  917. DROP TABLE IF EXISTS "infra_codegen_column";
  918. CREATE TABLE "infra_codegen_column" (
  919. "id" int8 NOT NULL,
  920. "table_id" int8 NOT NULL,
  921. "column_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  922. "data_type" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  923. "column_comment" varchar(500) COLLATE "pg_catalog"."default" NOT NULL,
  924. "nullable" bool NOT NULL,
  925. "primary_key" bool NOT NULL,
  926. "auto_increment" bool NOT NULL,
  927. "ordinal_position" int4 NOT NULL,
  928. "java_type" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  929. "java_field" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  930. "dict_type" varchar(200) COLLATE "pg_catalog"."default",
  931. "example" varchar(255) COLLATE "pg_catalog"."default",
  932. "create_operation" bool NOT NULL,
  933. "update_operation" bool NOT NULL,
  934. "list_operation" bool NOT NULL,
  935. "list_operation_condition" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  936. "list_operation_result" bool NOT NULL,
  937. "html_type" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  938. "creator" varchar(64) COLLATE "pg_catalog"."default",
  939. "create_time" timestamp(6) NOT NULL,
  940. "updater" varchar(64) COLLATE "pg_catalog"."default",
  941. "update_time" timestamp(6) NOT NULL,
  942. "deleted" int2 NOT NULL DEFAULT 0
  943. )
  944. ;
  945. COMMENT ON COLUMN "infra_codegen_column"."id" IS '编号';
  946. COMMENT ON COLUMN "infra_codegen_column"."table_id" IS '表编号';
  947. COMMENT ON COLUMN "infra_codegen_column"."column_name" IS '字段名';
  948. COMMENT ON COLUMN "infra_codegen_column"."data_type" IS '字段类型';
  949. COMMENT ON COLUMN "infra_codegen_column"."column_comment" IS '字段描述';
  950. COMMENT ON COLUMN "infra_codegen_column"."nullable" IS '是否允许为空';
  951. COMMENT ON COLUMN "infra_codegen_column"."primary_key" IS '是否主键';
  952. COMMENT ON COLUMN "infra_codegen_column"."auto_increment" IS '是否自增';
  953. COMMENT ON COLUMN "infra_codegen_column"."ordinal_position" IS '排序';
  954. COMMENT ON COLUMN "infra_codegen_column"."java_type" IS 'Java 属性类型';
  955. COMMENT ON COLUMN "infra_codegen_column"."java_field" IS 'Java 属性名';
  956. COMMENT ON COLUMN "infra_codegen_column"."dict_type" IS '字典类型';
  957. COMMENT ON COLUMN "infra_codegen_column"."example" IS '数据示例';
  958. COMMENT ON COLUMN "infra_codegen_column"."create_operation" IS '是否为 Create 创建操作的字段';
  959. COMMENT ON COLUMN "infra_codegen_column"."update_operation" IS '是否为 Update 更新操作的字段';
  960. COMMENT ON COLUMN "infra_codegen_column"."list_operation" IS '是否为 List 查询操作的字段';
  961. COMMENT ON COLUMN "infra_codegen_column"."list_operation_condition" IS 'List 查询操作的条件类型';
  962. COMMENT ON COLUMN "infra_codegen_column"."list_operation_result" IS '是否为 List 查询操作的返回字段';
  963. COMMENT ON COLUMN "infra_codegen_column"."html_type" IS '显示类型';
  964. COMMENT ON COLUMN "infra_codegen_column"."creator" IS '创建者';
  965. COMMENT ON COLUMN "infra_codegen_column"."create_time" IS '创建时间';
  966. COMMENT ON COLUMN "infra_codegen_column"."updater" IS '更新者';
  967. COMMENT ON COLUMN "infra_codegen_column"."update_time" IS '更新时间';
  968. COMMENT ON COLUMN "infra_codegen_column"."deleted" IS '是否删除';
  969. COMMENT ON TABLE "infra_codegen_column" IS '代码生成表字段定义';
  970. -- ----------------------------
  971. -- Records of infra_codegen_column
  972. -- ----------------------------
  973. BEGIN;
  974. COMMIT;
  975. -- ----------------------------
  976. -- Table structure for infra_codegen_table
  977. -- ----------------------------
  978. DROP TABLE IF EXISTS "infra_codegen_table";
  979. CREATE TABLE "infra_codegen_table" (
  980. "id" int8 NOT NULL,
  981. "data_source_config_id" int8 NOT NULL,
  982. "scene" int2 NOT NULL,
  983. "table_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  984. "table_comment" varchar(500) COLLATE "pg_catalog"."default" NOT NULL,
  985. "remark" varchar(500) COLLATE "pg_catalog"."default",
  986. "module_name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  987. "business_name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  988. "class_name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  989. "class_comment" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  990. "author" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  991. "template_type" int2 NOT NULL,
  992. "parent_menu_id" int8,
  993. "creator" varchar(64) COLLATE "pg_catalog"."default",
  994. "create_time" timestamp(6) NOT NULL,
  995. "updater" varchar(64) COLLATE "pg_catalog"."default",
  996. "update_time" timestamp(6) NOT NULL,
  997. "deleted" int2 NOT NULL DEFAULT 0
  998. )
  999. ;
  1000. COMMENT ON COLUMN "infra_codegen_table"."id" IS '编号';
  1001. COMMENT ON COLUMN "infra_codegen_table"."data_source_config_id" IS '数据源配置的编号';
  1002. COMMENT ON COLUMN "infra_codegen_table"."scene" IS '生成场景';
  1003. COMMENT ON COLUMN "infra_codegen_table"."table_name" IS '表名称';
  1004. COMMENT ON COLUMN "infra_codegen_table"."table_comment" IS '表描述';
  1005. COMMENT ON COLUMN "infra_codegen_table"."remark" IS '备注';
  1006. COMMENT ON COLUMN "infra_codegen_table"."module_name" IS '模块名';
  1007. COMMENT ON COLUMN "infra_codegen_table"."business_name" IS '业务名';
  1008. COMMENT ON COLUMN "infra_codegen_table"."class_name" IS '类名称';
  1009. COMMENT ON COLUMN "infra_codegen_table"."class_comment" IS '类描述';
  1010. COMMENT ON COLUMN "infra_codegen_table"."author" IS '作者';
  1011. COMMENT ON COLUMN "infra_codegen_table"."template_type" IS '模板类型';
  1012. COMMENT ON COLUMN "infra_codegen_table"."parent_menu_id" IS '父菜单编号';
  1013. COMMENT ON COLUMN "infra_codegen_table"."creator" IS '创建者';
  1014. COMMENT ON COLUMN "infra_codegen_table"."create_time" IS '创建时间';
  1015. COMMENT ON COLUMN "infra_codegen_table"."updater" IS '更新者';
  1016. COMMENT ON COLUMN "infra_codegen_table"."update_time" IS '更新时间';
  1017. COMMENT ON COLUMN "infra_codegen_table"."deleted" IS '是否删除';
  1018. COMMENT ON TABLE "infra_codegen_table" IS '代码生成表定义';
  1019. -- ----------------------------
  1020. -- Records of infra_codegen_table
  1021. -- ----------------------------
  1022. BEGIN;
  1023. COMMIT;
  1024. -- ----------------------------
  1025. -- Table structure for infra_config
  1026. -- ----------------------------
  1027. DROP TABLE IF EXISTS "infra_config";
  1028. CREATE TABLE "infra_config" (
  1029. "id" int4 NOT NULL,
  1030. "category" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  1031. "type" int2 NOT NULL,
  1032. "name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  1033. "config_key" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  1034. "value" varchar(500) COLLATE "pg_catalog"."default" NOT NULL,
  1035. "visible" varchar(5) COLLATE "pg_catalog"."default" NOT NULL,
  1036. "remark" varchar(500) COLLATE "pg_catalog"."default",
  1037. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1038. "create_time" timestamp(6) NOT NULL,
  1039. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1040. "update_time" timestamp(6) NOT NULL,
  1041. "deleted" int2 NOT NULL DEFAULT 0
  1042. )
  1043. ;
  1044. COMMENT ON COLUMN "infra_config"."id" IS '参数主键';
  1045. COMMENT ON COLUMN "infra_config"."category" IS '参数分组';
  1046. COMMENT ON COLUMN "infra_config"."type" IS '参数类型';
  1047. COMMENT ON COLUMN "infra_config"."name" IS '参数名称';
  1048. COMMENT ON COLUMN "infra_config"."config_key" IS '参数键名';
  1049. COMMENT ON COLUMN "infra_config"."value" IS '参数键值';
  1050. COMMENT ON COLUMN "infra_config"."visible" IS '是否可见';
  1051. COMMENT ON COLUMN "infra_config"."remark" IS '备注';
  1052. COMMENT ON COLUMN "infra_config"."creator" IS '创建者';
  1053. COMMENT ON COLUMN "infra_config"."create_time" IS '创建时间';
  1054. COMMENT ON COLUMN "infra_config"."updater" IS '更新者';
  1055. COMMENT ON COLUMN "infra_config"."update_time" IS '更新时间';
  1056. COMMENT ON COLUMN "infra_config"."deleted" IS '是否删除';
  1057. COMMENT ON TABLE "infra_config" IS '参数配置表';
  1058. -- ----------------------------
  1059. -- Records of infra_config
  1060. -- ----------------------------
  1061. BEGIN;
  1062. 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);
  1063. 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);
  1064. 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);
  1065. 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);
  1066. 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);
  1067. INSERT INTO "infra_config" ("id", "category", "type", "name", "config_key", "value", "visible", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (6, 'biz', 2, '登陆验证码的开关', 'patrol.captcha.enable', 'true', '1', NULL, '1', '2022-02-17 00:03:11', '1', '2022-04-04 12:51:40', 0);
  1068. COMMIT;
  1069. -- ----------------------------
  1070. -- Table structure for infra_data_source_config
  1071. -- ----------------------------
  1072. DROP TABLE IF EXISTS "infra_data_source_config";
  1073. CREATE TABLE "infra_data_source_config" (
  1074. "id" int8 NOT NULL,
  1075. "name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  1076. "url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  1077. "username" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  1078. "password" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  1079. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1080. "create_time" timestamp(6) NOT NULL,
  1081. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1082. "update_time" timestamp(6) NOT NULL,
  1083. "deleted" int2 NOT NULL DEFAULT 0
  1084. )
  1085. ;
  1086. COMMENT ON COLUMN "infra_data_source_config"."id" IS '主键编号';
  1087. COMMENT ON COLUMN "infra_data_source_config"."name" IS '参数名称';
  1088. COMMENT ON COLUMN "infra_data_source_config"."url" IS '数据源连接';
  1089. COMMENT ON COLUMN "infra_data_source_config"."username" IS '用户名';
  1090. COMMENT ON COLUMN "infra_data_source_config"."password" IS '密码';
  1091. COMMENT ON COLUMN "infra_data_source_config"."creator" IS '创建者';
  1092. COMMENT ON COLUMN "infra_data_source_config"."create_time" IS '创建时间';
  1093. COMMENT ON COLUMN "infra_data_source_config"."updater" IS '更新者';
  1094. COMMENT ON COLUMN "infra_data_source_config"."update_time" IS '更新时间';
  1095. COMMENT ON COLUMN "infra_data_source_config"."deleted" IS '是否删除';
  1096. COMMENT ON TABLE "infra_data_source_config" IS '数据源配置表';
  1097. -- ----------------------------
  1098. -- Records of infra_data_source_config
  1099. -- ----------------------------
  1100. BEGIN;
  1101. COMMIT;
  1102. -- ----------------------------
  1103. -- Table structure for infra_file
  1104. -- ----------------------------
  1105. DROP TABLE IF EXISTS "infra_file";
  1106. CREATE TABLE "infra_file" (
  1107. "id" int8 NOT NULL DEFAULT 0,
  1108. "config_id" int8,
  1109. "path" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  1110. "url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  1111. "type" varchar(127) COLLATE "pg_catalog"."default",
  1112. "size" int4 NOT NULL,
  1113. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1114. "create_time" timestamp(6) NOT NULL,
  1115. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1116. "update_time" timestamp(6) NOT NULL,
  1117. "deleted" int2 NOT NULL DEFAULT 0,
  1118. "name" varchar(255) COLLATE "pg_catalog"."default"
  1119. )
  1120. ;
  1121. COMMENT ON COLUMN "infra_file"."id" IS '文件编号';
  1122. COMMENT ON COLUMN "infra_file"."config_id" IS '配置编号';
  1123. COMMENT ON COLUMN "infra_file"."path" IS '文件路径';
  1124. COMMENT ON COLUMN "infra_file"."url" IS '文件 URL';
  1125. COMMENT ON COLUMN "infra_file"."type" IS '文件类型';
  1126. COMMENT ON COLUMN "infra_file"."size" IS '文件大小';
  1127. COMMENT ON COLUMN "infra_file"."creator" IS '创建者';
  1128. COMMENT ON COLUMN "infra_file"."create_time" IS '创建时间';
  1129. COMMENT ON COLUMN "infra_file"."updater" IS '更新者';
  1130. COMMENT ON COLUMN "infra_file"."update_time" IS '更新时间';
  1131. COMMENT ON COLUMN "infra_file"."deleted" IS '是否删除';
  1132. COMMENT ON COLUMN "infra_file"."name" IS '文件名';
  1133. COMMENT ON TABLE "infra_file" IS '文件表';
  1134. -- ----------------------------
  1135. -- Records of infra_file
  1136. -- ----------------------------
  1137. BEGIN;
  1138. COMMIT;
  1139. -- ----------------------------
  1140. -- Table structure for infra_file_config
  1141. -- ----------------------------
  1142. DROP TABLE IF EXISTS "infra_file_config";
  1143. CREATE TABLE "infra_file_config" (
  1144. "id" int8 NOT NULL,
  1145. "name" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  1146. "storage" int2 NOT NULL,
  1147. "remark" varchar(255) COLLATE "pg_catalog"."default",
  1148. "master" bool NOT NULL,
  1149. "config" varchar(4096) COLLATE "pg_catalog"."default" NOT NULL,
  1150. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1151. "create_time" timestamp(6) NOT NULL,
  1152. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1153. "update_time" timestamp(6) NOT NULL,
  1154. "deleted" int2 NOT NULL DEFAULT 0
  1155. )
  1156. ;
  1157. COMMENT ON COLUMN "infra_file_config"."id" IS '编号';
  1158. COMMENT ON COLUMN "infra_file_config"."name" IS '配置名';
  1159. COMMENT ON COLUMN "infra_file_config"."storage" IS '存储器';
  1160. COMMENT ON COLUMN "infra_file_config"."remark" IS '备注';
  1161. COMMENT ON COLUMN "infra_file_config"."master" IS '是否为主配置';
  1162. COMMENT ON COLUMN "infra_file_config"."config" IS '存储配置';
  1163. COMMENT ON COLUMN "infra_file_config"."creator" IS '创建者';
  1164. COMMENT ON COLUMN "infra_file_config"."create_time" IS '创建时间';
  1165. COMMENT ON COLUMN "infra_file_config"."updater" IS '更新者';
  1166. COMMENT ON COLUMN "infra_file_config"."update_time" IS '更新时间';
  1167. COMMENT ON COLUMN "infra_file_config"."deleted" IS '是否删除';
  1168. COMMENT ON TABLE "infra_file_config" IS '文件配置表';
  1169. -- ----------------------------
  1170. -- Records of infra_file_config
  1171. -- ----------------------------
  1172. BEGIN;
  1173. INSERT INTO "infra_file_config" ("id", "name", "storage", "remark", "master", "config", "creator", "create_time", "updater", "update_time", "deleted") VALUES (4, '数据库', 1, '我是数据库', 'f', '{"@class":"com.zqt.gmwz.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);
  1174. INSERT INTO "infra_file_config" ("id", "name", "storage", "remark", "master", "config", "creator", "create_time", "updater", "update_time", "deleted") VALUES (5, '本地磁盘', 10, '测试下本地存储', 'f', '{"@class":"com.zqt.gmwz.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);
  1175. 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":"com.zqt.gmwz.framework.file.core.client.s3.S3FileClientConfig","endpoint":"s3-cn-south-1.qiniucs.com","domain":"http://test.patrol.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);
  1176. COMMIT;
  1177. -- ----------------------------
  1178. -- Table structure for infra_file_content
  1179. -- ----------------------------
  1180. DROP TABLE IF EXISTS "infra_file_content";
  1181. CREATE TABLE "infra_file_content" (
  1182. "id" int8 NOT NULL,
  1183. "config_id" int8 NOT NULL,
  1184. "path" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  1185. "content" bytea NOT NULL,
  1186. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1187. "create_time" timestamp(6) NOT NULL,
  1188. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1189. "update_time" timestamp(6) NOT NULL,
  1190. "deleted" int2 NOT NULL DEFAULT 0
  1191. )
  1192. ;
  1193. COMMENT ON COLUMN "infra_file_content"."id" IS '编号';
  1194. COMMENT ON COLUMN "infra_file_content"."config_id" IS '配置编号';
  1195. COMMENT ON COLUMN "infra_file_content"."path" IS '文件路径';
  1196. COMMENT ON COLUMN "infra_file_content"."content" IS '文件内容';
  1197. COMMENT ON COLUMN "infra_file_content"."creator" IS '创建者';
  1198. COMMENT ON COLUMN "infra_file_content"."create_time" IS '创建时间';
  1199. COMMENT ON COLUMN "infra_file_content"."updater" IS '更新者';
  1200. COMMENT ON COLUMN "infra_file_content"."update_time" IS '更新时间';
  1201. COMMENT ON COLUMN "infra_file_content"."deleted" IS '是否删除';
  1202. COMMENT ON TABLE "infra_file_content" IS '文件表';
  1203. -- ----------------------------
  1204. -- Records of infra_file_content
  1205. -- ----------------------------
  1206. BEGIN;
  1207. COMMIT;
  1208. -- ----------------------------
  1209. -- Table structure for infra_job
  1210. -- ----------------------------
  1211. DROP TABLE IF EXISTS "infra_job";
  1212. CREATE TABLE "infra_job" (
  1213. "id" int8 NOT NULL,
  1214. "name" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  1215. "status" int2 NOT NULL,
  1216. "handler_name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1217. "handler_param" varchar(255) COLLATE "pg_catalog"."default",
  1218. "cron_expression" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  1219. "retry_count" int4 NOT NULL,
  1220. "retry_interval" int4 NOT NULL,
  1221. "monitor_timeout" int4 NOT NULL,
  1222. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1223. "create_time" timestamp(6) NOT NULL,
  1224. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1225. "update_time" timestamp(6) NOT NULL,
  1226. "deleted" int2 NOT NULL DEFAULT 0
  1227. )
  1228. ;
  1229. COMMENT ON COLUMN "infra_job"."id" IS '任务编号';
  1230. COMMENT ON COLUMN "infra_job"."name" IS '任务名称';
  1231. COMMENT ON COLUMN "infra_job"."status" IS '任务状态';
  1232. COMMENT ON COLUMN "infra_job"."handler_name" IS '处理器的名字';
  1233. COMMENT ON COLUMN "infra_job"."handler_param" IS '处理器的参数';
  1234. COMMENT ON COLUMN "infra_job"."cron_expression" IS 'CRON 表达式';
  1235. COMMENT ON COLUMN "infra_job"."retry_count" IS '重试次数';
  1236. COMMENT ON COLUMN "infra_job"."retry_interval" IS '重试间隔';
  1237. COMMENT ON COLUMN "infra_job"."monitor_timeout" IS '监控超时时间';
  1238. COMMENT ON COLUMN "infra_job"."creator" IS '创建者';
  1239. COMMENT ON COLUMN "infra_job"."create_time" IS '创建时间';
  1240. COMMENT ON COLUMN "infra_job"."updater" IS '更新者';
  1241. COMMENT ON COLUMN "infra_job"."update_time" IS '更新时间';
  1242. COMMENT ON COLUMN "infra_job"."deleted" IS '是否删除';
  1243. COMMENT ON TABLE "infra_job" IS '定时任务表';
  1244. -- ----------------------------
  1245. -- Records of infra_job
  1246. -- ----------------------------
  1247. BEGIN;
  1248. 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);
  1249. COMMIT;
  1250. -- ----------------------------
  1251. -- Table structure for infra_job_log
  1252. -- ----------------------------
  1253. DROP TABLE IF EXISTS "infra_job_log";
  1254. CREATE TABLE "infra_job_log" (
  1255. "id" int8 NOT NULL,
  1256. "job_id" int8 NOT NULL,
  1257. "handler_name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1258. "handler_param" varchar(255) COLLATE "pg_catalog"."default",
  1259. "execute_index" int2 NOT NULL,
  1260. "begin_time" timestamp(6) NOT NULL,
  1261. "end_time" timestamp(6),
  1262. "duration" int4,
  1263. "status" int2 NOT NULL,
  1264. "result" varchar(4000) COLLATE "pg_catalog"."default",
  1265. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1266. "create_time" timestamp(6) NOT NULL,
  1267. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1268. "update_time" timestamp(6) NOT NULL,
  1269. "deleted" int2 NOT NULL DEFAULT 0
  1270. )
  1271. ;
  1272. COMMENT ON COLUMN "infra_job_log"."id" IS '日志编号';
  1273. COMMENT ON COLUMN "infra_job_log"."job_id" IS '任务编号';
  1274. COMMENT ON COLUMN "infra_job_log"."handler_name" IS '处理器的名字';
  1275. COMMENT ON COLUMN "infra_job_log"."handler_param" IS '处理器的参数';
  1276. COMMENT ON COLUMN "infra_job_log"."execute_index" IS '第几次执行';
  1277. COMMENT ON COLUMN "infra_job_log"."begin_time" IS '开始执行时间';
  1278. COMMENT ON COLUMN "infra_job_log"."end_time" IS '结束执行时间';
  1279. COMMENT ON COLUMN "infra_job_log"."duration" IS '执行时长';
  1280. COMMENT ON COLUMN "infra_job_log"."status" IS '任务状态';
  1281. COMMENT ON COLUMN "infra_job_log"."result" IS '结果数据';
  1282. COMMENT ON COLUMN "infra_job_log"."creator" IS '创建者';
  1283. COMMENT ON COLUMN "infra_job_log"."create_time" IS '创建时间';
  1284. COMMENT ON COLUMN "infra_job_log"."updater" IS '更新者';
  1285. COMMENT ON COLUMN "infra_job_log"."update_time" IS '更新时间';
  1286. COMMENT ON COLUMN "infra_job_log"."deleted" IS '是否删除';
  1287. COMMENT ON TABLE "infra_job_log" IS '定时任务日志表';
  1288. -- ----------------------------
  1289. -- Records of infra_job_log
  1290. -- ----------------------------
  1291. BEGIN;
  1292. COMMIT;
  1293. -- ----------------------------
  1294. -- Table structure for infra_test_demo
  1295. -- ----------------------------
  1296. DROP TABLE IF EXISTS "infra_test_demo";
  1297. CREATE TABLE "infra_test_demo" (
  1298. "id" int8 NOT NULL,
  1299. "name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  1300. "status" int2 NOT NULL,
  1301. "type" int2 NOT NULL,
  1302. "category" int2 NOT NULL,
  1303. "remark" varchar(500) COLLATE "pg_catalog"."default",
  1304. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1305. "create_time" timestamp(6) NOT NULL,
  1306. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1307. "update_time" timestamp(6) NOT NULL,
  1308. "deleted" int2 NOT NULL DEFAULT 0
  1309. )
  1310. ;
  1311. COMMENT ON COLUMN "infra_test_demo"."id" IS '编号';
  1312. COMMENT ON COLUMN "infra_test_demo"."name" IS '名字';
  1313. COMMENT ON COLUMN "infra_test_demo"."status" IS '状态';
  1314. COMMENT ON COLUMN "infra_test_demo"."type" IS '类型';
  1315. COMMENT ON COLUMN "infra_test_demo"."category" IS '分类';
  1316. COMMENT ON COLUMN "infra_test_demo"."remark" IS '备注';
  1317. COMMENT ON COLUMN "infra_test_demo"."creator" IS '创建者';
  1318. COMMENT ON COLUMN "infra_test_demo"."create_time" IS '创建时间';
  1319. COMMENT ON COLUMN "infra_test_demo"."updater" IS '更新者';
  1320. COMMENT ON COLUMN "infra_test_demo"."update_time" IS '更新时间';
  1321. COMMENT ON COLUMN "infra_test_demo"."deleted" IS '是否删除';
  1322. COMMENT ON TABLE "infra_test_demo" IS '字典类型表';
  1323. -- ----------------------------
  1324. -- Records of infra_test_demo
  1325. -- ----------------------------
  1326. BEGIN;
  1327. COMMIT;
  1328. -- ----------------------------
  1329. -- Table structure for member_user
  1330. -- ----------------------------
  1331. DROP TABLE IF EXISTS "member_user";
  1332. CREATE TABLE "member_user" (
  1333. "id" int8 NOT NULL,
  1334. "nickname" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  1335. "avatar" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  1336. "status" int2 NOT NULL,
  1337. "mobile" varchar(11) COLLATE "pg_catalog"."default" NOT NULL,
  1338. "password" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  1339. "register_ip" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  1340. "login_ip" varchar(50) COLLATE "pg_catalog"."default",
  1341. "login_date" timestamp(6),
  1342. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1343. "create_time" timestamp(6) NOT NULL,
  1344. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1345. "update_time" timestamp(6) NOT NULL,
  1346. "deleted" int2 NOT NULL DEFAULT 0,
  1347. "tenant_id" int8 NOT NULL DEFAULT 0
  1348. )
  1349. ;
  1350. COMMENT ON COLUMN "member_user"."id" IS '编号';
  1351. COMMENT ON COLUMN "member_user"."nickname" IS '用户昵称';
  1352. COMMENT ON COLUMN "member_user"."avatar" IS '头像';
  1353. COMMENT ON COLUMN "member_user"."status" IS '状态';
  1354. COMMENT ON COLUMN "member_user"."mobile" IS '手机号';
  1355. COMMENT ON COLUMN "member_user"."password" IS '密码';
  1356. COMMENT ON COLUMN "member_user"."register_ip" IS '注册 IP';
  1357. COMMENT ON COLUMN "member_user"."login_ip" IS '最后登录IP';
  1358. COMMENT ON COLUMN "member_user"."login_date" IS '最后登录时间';
  1359. COMMENT ON COLUMN "member_user"."creator" IS '创建者';
  1360. COMMENT ON COLUMN "member_user"."create_time" IS '创建时间';
  1361. COMMENT ON COLUMN "member_user"."updater" IS '更新者';
  1362. COMMENT ON COLUMN "member_user"."update_time" IS '更新时间';
  1363. COMMENT ON COLUMN "member_user"."deleted" IS '是否删除';
  1364. COMMENT ON COLUMN "member_user"."tenant_id" IS '租户编号';
  1365. COMMENT ON TABLE "member_user" IS '用户';
  1366. -- ----------------------------
  1367. -- Records of member_user
  1368. -- ----------------------------
  1369. BEGIN;
  1370. COMMIT;
  1371. -- ----------------------------
  1372. -- Table structure for pay_app
  1373. -- ----------------------------
  1374. DROP TABLE IF EXISTS "pay_app";
  1375. CREATE TABLE "pay_app" (
  1376. "id" int8 NOT NULL,
  1377. "name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1378. "status" int2 NOT NULL,
  1379. "remark" varchar(255) COLLATE "pg_catalog"."default",
  1380. "pay_notify_url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  1381. "refund_notify_url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  1382. "merchant_id" int8 NOT NULL,
  1383. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1384. "create_time" timestamp(6) NOT NULL,
  1385. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1386. "update_time" timestamp(6) NOT NULL,
  1387. "deleted" int2 NOT NULL DEFAULT 0,
  1388. "tenant_id" int8 NOT NULL DEFAULT 0
  1389. )
  1390. ;
  1391. COMMENT ON COLUMN "pay_app"."id" IS '应用编号';
  1392. COMMENT ON COLUMN "pay_app"."name" IS '应用名';
  1393. COMMENT ON COLUMN "pay_app"."status" IS '开启状态';
  1394. COMMENT ON COLUMN "pay_app"."remark" IS '备注';
  1395. COMMENT ON COLUMN "pay_app"."pay_notify_url" IS '支付结果的回调地址';
  1396. COMMENT ON COLUMN "pay_app"."refund_notify_url" IS '退款结果的回调地址';
  1397. COMMENT ON COLUMN "pay_app"."merchant_id" IS '商户编号';
  1398. COMMENT ON COLUMN "pay_app"."creator" IS '创建者';
  1399. COMMENT ON COLUMN "pay_app"."create_time" IS '创建时间';
  1400. COMMENT ON COLUMN "pay_app"."updater" IS '更新者';
  1401. COMMENT ON COLUMN "pay_app"."update_time" IS '更新时间';
  1402. COMMENT ON COLUMN "pay_app"."deleted" IS '是否删除';
  1403. COMMENT ON COLUMN "pay_app"."tenant_id" IS '租户编号';
  1404. COMMENT ON TABLE "pay_app" IS '支付应用信息';
  1405. -- ----------------------------
  1406. -- Records of pay_app
  1407. -- ----------------------------
  1408. BEGIN;
  1409. COMMIT;
  1410. -- ----------------------------
  1411. -- Table structure for pay_channel
  1412. -- ----------------------------
  1413. DROP TABLE IF EXISTS "pay_channel";
  1414. CREATE TABLE "pay_channel" (
  1415. "id" int8 NOT NULL,
  1416. "code" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  1417. "status" int2 NOT NULL,
  1418. "remark" varchar(255) COLLATE "pg_catalog"."default",
  1419. "fee_rate" float8 NOT NULL,
  1420. "merchant_id" int8 NOT NULL,
  1421. "app_id" int8 NOT NULL,
  1422. "config" varchar(4096) COLLATE "pg_catalog"."default" NOT NULL,
  1423. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1424. "create_time" timestamp(6) NOT NULL,
  1425. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1426. "update_time" timestamp(6) NOT NULL,
  1427. "deleted" int2 NOT NULL DEFAULT 0,
  1428. "tenant_id" int8 NOT NULL DEFAULT 0
  1429. )
  1430. ;
  1431. COMMENT ON COLUMN "pay_channel"."id" IS '商户编号';
  1432. COMMENT ON COLUMN "pay_channel"."code" IS '渠道编码';
  1433. COMMENT ON COLUMN "pay_channel"."status" IS '开启状态';
  1434. COMMENT ON COLUMN "pay_channel"."remark" IS '备注';
  1435. COMMENT ON COLUMN "pay_channel"."fee_rate" IS '渠道费率,单位:百分比';
  1436. COMMENT ON COLUMN "pay_channel"."merchant_id" IS '商户编号';
  1437. COMMENT ON COLUMN "pay_channel"."app_id" IS '应用编号';
  1438. COMMENT ON COLUMN "pay_channel"."config" IS '支付渠道配置';
  1439. COMMENT ON COLUMN "pay_channel"."creator" IS '创建者';
  1440. COMMENT ON COLUMN "pay_channel"."create_time" IS '创建时间';
  1441. COMMENT ON COLUMN "pay_channel"."updater" IS '更新者';
  1442. COMMENT ON COLUMN "pay_channel"."update_time" IS '更新时间';
  1443. COMMENT ON COLUMN "pay_channel"."deleted" IS '是否删除';
  1444. COMMENT ON COLUMN "pay_channel"."tenant_id" IS '租户编号';
  1445. COMMENT ON TABLE "pay_channel" IS '支付渠道
  1446. ';
  1447. -- ----------------------------
  1448. -- Records of pay_channel
  1449. -- ----------------------------
  1450. BEGIN;
  1451. COMMIT;
  1452. -- ----------------------------
  1453. -- Table structure for pay_merchant
  1454. -- ----------------------------
  1455. DROP TABLE IF EXISTS "pay_merchant";
  1456. CREATE TABLE "pay_merchant" (
  1457. "id" int8 NOT NULL,
  1458. "no" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  1459. "name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1460. "short_name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1461. "status" int2 NOT NULL,
  1462. "remark" varchar(255) COLLATE "pg_catalog"."default",
  1463. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1464. "create_time" timestamp(6) NOT NULL,
  1465. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1466. "update_time" timestamp(6) NOT NULL,
  1467. "deleted" int2 NOT NULL DEFAULT 0,
  1468. "tenant_id" int8 NOT NULL DEFAULT 0
  1469. )
  1470. ;
  1471. COMMENT ON COLUMN "pay_merchant"."id" IS '商户编号';
  1472. COMMENT ON COLUMN "pay_merchant"."no" IS '商户号';
  1473. COMMENT ON COLUMN "pay_merchant"."name" IS '商户全称';
  1474. COMMENT ON COLUMN "pay_merchant"."short_name" IS '商户简称';
  1475. COMMENT ON COLUMN "pay_merchant"."status" IS '开启状态';
  1476. COMMENT ON COLUMN "pay_merchant"."remark" IS '备注';
  1477. COMMENT ON COLUMN "pay_merchant"."creator" IS '创建者';
  1478. COMMENT ON COLUMN "pay_merchant"."create_time" IS '创建时间';
  1479. COMMENT ON COLUMN "pay_merchant"."updater" IS '更新者';
  1480. COMMENT ON COLUMN "pay_merchant"."update_time" IS '更新时间';
  1481. COMMENT ON COLUMN "pay_merchant"."deleted" IS '是否删除';
  1482. COMMENT ON COLUMN "pay_merchant"."tenant_id" IS '租户编号';
  1483. COMMENT ON TABLE "pay_merchant" IS '支付商户信息';
  1484. -- ----------------------------
  1485. -- Records of pay_merchant
  1486. -- ----------------------------
  1487. BEGIN;
  1488. COMMIT;
  1489. -- ----------------------------
  1490. -- Table structure for pay_notify_log
  1491. -- ----------------------------
  1492. DROP TABLE IF EXISTS "pay_notify_log";
  1493. CREATE TABLE "pay_notify_log" (
  1494. "id" int8 NOT NULL,
  1495. "task_id" int8 NOT NULL,
  1496. "notify_times" int2 NOT NULL,
  1497. "response" varchar(2048) COLLATE "pg_catalog"."default" NOT NULL,
  1498. "status" int2 NOT NULL,
  1499. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1500. "create_time" timestamp(6) NOT NULL,
  1501. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1502. "update_time" timestamp(6) NOT NULL,
  1503. "deleted" int2 NOT NULL DEFAULT 0,
  1504. "tenant_id" int8 NOT NULL DEFAULT 0
  1505. )
  1506. ;
  1507. COMMENT ON COLUMN "pay_notify_log"."id" IS '日志编号';
  1508. COMMENT ON COLUMN "pay_notify_log"."task_id" IS '通知任务编号';
  1509. COMMENT ON COLUMN "pay_notify_log"."notify_times" IS '第几次被通知';
  1510. COMMENT ON COLUMN "pay_notify_log"."response" IS '请求参数';
  1511. COMMENT ON COLUMN "pay_notify_log"."status" IS '通知状态';
  1512. COMMENT ON COLUMN "pay_notify_log"."creator" IS '创建者';
  1513. COMMENT ON COLUMN "pay_notify_log"."create_time" IS '创建时间';
  1514. COMMENT ON COLUMN "pay_notify_log"."updater" IS '更新者';
  1515. COMMENT ON COLUMN "pay_notify_log"."update_time" IS '更新时间';
  1516. COMMENT ON COLUMN "pay_notify_log"."deleted" IS '是否删除';
  1517. COMMENT ON COLUMN "pay_notify_log"."tenant_id" IS '租户编号';
  1518. COMMENT ON TABLE "pay_notify_log" IS '支付通知 App 的日志';
  1519. -- ----------------------------
  1520. -- Records of pay_notify_log
  1521. -- ----------------------------
  1522. BEGIN;
  1523. COMMIT;
  1524. -- ----------------------------
  1525. -- Table structure for pay_notify_task
  1526. -- ----------------------------
  1527. DROP TABLE IF EXISTS "pay_notify_task";
  1528. CREATE TABLE "pay_notify_task" (
  1529. "id" int8 NOT NULL,
  1530. "merchant_id" int8 NOT NULL,
  1531. "app_id" int8 NOT NULL,
  1532. "type" int2 NOT NULL,
  1533. "data_id" int8 NOT NULL,
  1534. "status" int2 NOT NULL,
  1535. "merchant_order_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1536. "next_notify_time" timestamp(6) NOT NULL,
  1537. "last_execute_time" timestamp(6) NOT NULL,
  1538. "notify_times" int2 NOT NULL,
  1539. "max_notify_times" int2 NOT NULL,
  1540. "notify_url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  1541. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1542. "create_time" timestamp(6) NOT NULL,
  1543. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1544. "update_time" timestamp(6) NOT NULL,
  1545. "deleted" int2 NOT NULL DEFAULT 0,
  1546. "tenant_id" int8 NOT NULL DEFAULT 0
  1547. )
  1548. ;
  1549. COMMENT ON COLUMN "pay_notify_task"."id" IS '任务编号';
  1550. COMMENT ON COLUMN "pay_notify_task"."merchant_id" IS '商户编号';
  1551. COMMENT ON COLUMN "pay_notify_task"."app_id" IS '应用编号';
  1552. COMMENT ON COLUMN "pay_notify_task"."type" IS '通知类型';
  1553. COMMENT ON COLUMN "pay_notify_task"."data_id" IS '数据编号';
  1554. COMMENT ON COLUMN "pay_notify_task"."status" IS '通知状态';
  1555. COMMENT ON COLUMN "pay_notify_task"."merchant_order_id" IS '商户订单编号';
  1556. COMMENT ON COLUMN "pay_notify_task"."next_notify_time" IS '下一次通知时间';
  1557. COMMENT ON COLUMN "pay_notify_task"."last_execute_time" IS '最后一次执行时间';
  1558. COMMENT ON COLUMN "pay_notify_task"."notify_times" IS '当前通知次数';
  1559. COMMENT ON COLUMN "pay_notify_task"."max_notify_times" IS '最大可通知次数';
  1560. COMMENT ON COLUMN "pay_notify_task"."notify_url" IS '异步通知地址';
  1561. COMMENT ON COLUMN "pay_notify_task"."creator" IS '创建者';
  1562. COMMENT ON COLUMN "pay_notify_task"."create_time" IS '创建时间';
  1563. COMMENT ON COLUMN "pay_notify_task"."updater" IS '更新者';
  1564. COMMENT ON COLUMN "pay_notify_task"."update_time" IS '更新时间';
  1565. COMMENT ON COLUMN "pay_notify_task"."deleted" IS '是否删除';
  1566. COMMENT ON COLUMN "pay_notify_task"."tenant_id" IS '租户编号';
  1567. COMMENT ON TABLE "pay_notify_task" IS '商户支付、退款等的通知
  1568. ';
  1569. -- ----------------------------
  1570. -- Records of pay_notify_task
  1571. -- ----------------------------
  1572. BEGIN;
  1573. COMMIT;
  1574. -- ----------------------------
  1575. -- Table structure for pay_order
  1576. -- ----------------------------
  1577. DROP TABLE IF EXISTS "pay_order";
  1578. CREATE TABLE "pay_order" (
  1579. "id" int8 NOT NULL,
  1580. "merchant_id" int8 NOT NULL,
  1581. "app_id" int8 NOT NULL,
  1582. "channel_id" int8,
  1583. "channel_code" varchar(32) COLLATE "pg_catalog"."default",
  1584. "merchant_order_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1585. "subject" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  1586. "body" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
  1587. "notify_url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  1588. "notify_status" int2 NOT NULL,
  1589. "amount" int8 NOT NULL,
  1590. "channel_fee_rate" float8,
  1591. "channel_fee_amount" int8,
  1592. "status" int2 NOT NULL,
  1593. "user_ip" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  1594. "expire_time" timestamp(6) NOT NULL,
  1595. "success_time" timestamp(6),
  1596. "notify_time" timestamp(6),
  1597. "success_extension_id" int8,
  1598. "refund_status" int2 NOT NULL,
  1599. "refund_times" int2 NOT NULL,
  1600. "refund_amount" int8 NOT NULL,
  1601. "channel_user_id" varchar(255) COLLATE "pg_catalog"."default",
  1602. "channel_order_no" varchar(64) COLLATE "pg_catalog"."default",
  1603. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1604. "create_time" timestamp(6) NOT NULL,
  1605. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1606. "update_time" timestamp(6) NOT NULL,
  1607. "deleted" int2 NOT NULL DEFAULT 0,
  1608. "tenant_id" int8 NOT NULL DEFAULT 0
  1609. )
  1610. ;
  1611. COMMENT ON COLUMN "pay_order"."id" IS '支付订单编号';
  1612. COMMENT ON COLUMN "pay_order"."merchant_id" IS '商户编号';
  1613. COMMENT ON COLUMN "pay_order"."app_id" IS '应用编号';
  1614. COMMENT ON COLUMN "pay_order"."channel_id" IS '渠道编号';
  1615. COMMENT ON COLUMN "pay_order"."channel_code" IS '渠道编码';
  1616. COMMENT ON COLUMN "pay_order"."merchant_order_id" IS '商户订单编号';
  1617. COMMENT ON COLUMN "pay_order"."subject" IS '商品标题';
  1618. COMMENT ON COLUMN "pay_order"."body" IS '商品描述';
  1619. COMMENT ON COLUMN "pay_order"."notify_url" IS '异步通知地址';
  1620. COMMENT ON COLUMN "pay_order"."notify_status" IS '通知商户支付结果的回调状态';
  1621. COMMENT ON COLUMN "pay_order"."amount" IS '支付金额,单位:分';
  1622. COMMENT ON COLUMN "pay_order"."channel_fee_rate" IS '渠道手续费,单位:百分比';
  1623. COMMENT ON COLUMN "pay_order"."channel_fee_amount" IS '渠道手续金额,单位:分';
  1624. COMMENT ON COLUMN "pay_order"."status" IS '支付状态';
  1625. COMMENT ON COLUMN "pay_order"."user_ip" IS '用户 IP';
  1626. COMMENT ON COLUMN "pay_order"."expire_time" IS '订单失效时间';
  1627. COMMENT ON COLUMN "pay_order"."success_time" IS '订单支付成功时间';
  1628. COMMENT ON COLUMN "pay_order"."notify_time" IS '订单支付通知时间';
  1629. COMMENT ON COLUMN "pay_order"."success_extension_id" IS '支付成功的订单拓展单编号';
  1630. COMMENT ON COLUMN "pay_order"."refund_status" IS '退款状态';
  1631. COMMENT ON COLUMN "pay_order"."refund_times" IS '退款次数';
  1632. COMMENT ON COLUMN "pay_order"."refund_amount" IS '退款总金额,单位:分';
  1633. COMMENT ON COLUMN "pay_order"."channel_user_id" IS '渠道用户编号';
  1634. COMMENT ON COLUMN "pay_order"."channel_order_no" IS '渠道订单号';
  1635. COMMENT ON COLUMN "pay_order"."creator" IS '创建者';
  1636. COMMENT ON COLUMN "pay_order"."create_time" IS '创建时间';
  1637. COMMENT ON COLUMN "pay_order"."updater" IS '更新者';
  1638. COMMENT ON COLUMN "pay_order"."update_time" IS '更新时间';
  1639. COMMENT ON COLUMN "pay_order"."deleted" IS '是否删除';
  1640. COMMENT ON COLUMN "pay_order"."tenant_id" IS '租户编号';
  1641. COMMENT ON TABLE "pay_order" IS '支付订单
  1642. ';
  1643. -- ----------------------------
  1644. -- Records of pay_order
  1645. -- ----------------------------
  1646. BEGIN;
  1647. COMMIT;
  1648. -- ----------------------------
  1649. -- Table structure for pay_order_extension
  1650. -- ----------------------------
  1651. DROP TABLE IF EXISTS "pay_order_extension";
  1652. CREATE TABLE "pay_order_extension" (
  1653. "id" int8 NOT NULL,
  1654. "no" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1655. "order_id" int8 NOT NULL,
  1656. "channel_id" int8 NOT NULL,
  1657. "channel_code" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  1658. "user_ip" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  1659. "status" int2 NOT NULL,
  1660. "channel_extras" varchar(256) COLLATE "pg_catalog"."default",
  1661. "channel_notify_data" varchar(1024) COLLATE "pg_catalog"."default",
  1662. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1663. "create_time" timestamp(6) NOT NULL,
  1664. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1665. "update_time" timestamp(6) NOT NULL,
  1666. "deleted" int2 NOT NULL DEFAULT 0,
  1667. "tenant_id" int8 NOT NULL DEFAULT 0
  1668. )
  1669. ;
  1670. COMMENT ON COLUMN "pay_order_extension"."id" IS '支付订单编号';
  1671. COMMENT ON COLUMN "pay_order_extension"."no" IS '支付订单号';
  1672. COMMENT ON COLUMN "pay_order_extension"."order_id" IS '支付订单编号';
  1673. COMMENT ON COLUMN "pay_order_extension"."channel_id" IS '渠道编号';
  1674. COMMENT ON COLUMN "pay_order_extension"."channel_code" IS '渠道编码';
  1675. COMMENT ON COLUMN "pay_order_extension"."user_ip" IS '用户 IP';
  1676. COMMENT ON COLUMN "pay_order_extension"."status" IS '支付状态';
  1677. COMMENT ON COLUMN "pay_order_extension"."channel_extras" IS '支付渠道的额外参数';
  1678. COMMENT ON COLUMN "pay_order_extension"."channel_notify_data" IS '支付渠道异步通知的内容';
  1679. COMMENT ON COLUMN "pay_order_extension"."creator" IS '创建者';
  1680. COMMENT ON COLUMN "pay_order_extension"."create_time" IS '创建时间';
  1681. COMMENT ON COLUMN "pay_order_extension"."updater" IS '更新者';
  1682. COMMENT ON COLUMN "pay_order_extension"."update_time" IS '更新时间';
  1683. COMMENT ON COLUMN "pay_order_extension"."deleted" IS '是否删除';
  1684. COMMENT ON COLUMN "pay_order_extension"."tenant_id" IS '租户编号';
  1685. COMMENT ON TABLE "pay_order_extension" IS '支付订单
  1686. ';
  1687. -- ----------------------------
  1688. -- Records of pay_order_extension
  1689. -- ----------------------------
  1690. BEGIN;
  1691. COMMIT;
  1692. -- ----------------------------
  1693. -- Table structure for pay_refund
  1694. -- ----------------------------
  1695. DROP TABLE IF EXISTS "pay_refund";
  1696. CREATE TABLE "pay_refund" (
  1697. "id" int8 NOT NULL,
  1698. "merchant_id" int8 NOT NULL,
  1699. "app_id" int8 NOT NULL,
  1700. "channel_id" int8 NOT NULL,
  1701. "channel_code" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  1702. "order_id" int8 NOT NULL,
  1703. "trade_no" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1704. "merchant_order_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1705. "merchant_refund_no" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1706. "notify_url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  1707. "notify_status" int2 NOT NULL,
  1708. "status" int2 NOT NULL,
  1709. "type" int2 NOT NULL,
  1710. "pay_amount" int8 NOT NULL,
  1711. "refund_amount" int8 NOT NULL,
  1712. "reason" varchar(256) COLLATE "pg_catalog"."default" NOT NULL,
  1713. "user_ip" varchar(50) COLLATE "pg_catalog"."default",
  1714. "channel_order_no" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  1715. "channel_refund_no" varchar(64) COLLATE "pg_catalog"."default",
  1716. "channel_error_code" varchar(128) COLLATE "pg_catalog"."default",
  1717. "channel_error_msg" varchar(256) COLLATE "pg_catalog"."default",
  1718. "channel_extras" varchar(1024) COLLATE "pg_catalog"."default",
  1719. "expire_time" timestamp(6),
  1720. "success_time" timestamp(6),
  1721. "notify_time" timestamp(6),
  1722. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1723. "create_time" timestamp(6) NOT NULL,
  1724. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1725. "update_time" timestamp(6) NOT NULL,
  1726. "deleted" int2 NOT NULL DEFAULT 0,
  1727. "tenant_id" int8 NOT NULL DEFAULT 0
  1728. )
  1729. ;
  1730. COMMENT ON COLUMN "pay_refund"."id" IS '支付退款编号';
  1731. COMMENT ON COLUMN "pay_refund"."merchant_id" IS '商户编号';
  1732. COMMENT ON COLUMN "pay_refund"."app_id" IS '应用编号';
  1733. COMMENT ON COLUMN "pay_refund"."channel_id" IS '渠道编号';
  1734. COMMENT ON COLUMN "pay_refund"."channel_code" IS '渠道编码';
  1735. COMMENT ON COLUMN "pay_refund"."order_id" IS '支付订单编号 pay_order 表id';
  1736. COMMENT ON COLUMN "pay_refund"."trade_no" IS '交易订单号 pay_extension 表no 字段';
  1737. COMMENT ON COLUMN "pay_refund"."merchant_order_id" IS '商户订单编号(商户系统生成)';
  1738. COMMENT ON COLUMN "pay_refund"."merchant_refund_no" IS '商户退款订单号(商户系统生成)';
  1739. COMMENT ON COLUMN "pay_refund"."notify_url" IS '异步通知商户地址';
  1740. COMMENT ON COLUMN "pay_refund"."notify_status" IS '通知商户退款结果的回调状态';
  1741. COMMENT ON COLUMN "pay_refund"."status" IS '退款状态';
  1742. COMMENT ON COLUMN "pay_refund"."type" IS '退款类型(部分退款,全部退款)';
  1743. COMMENT ON COLUMN "pay_refund"."pay_amount" IS '支付金额,单位分';
  1744. COMMENT ON COLUMN "pay_refund"."refund_amount" IS '退款金额,单位分';
  1745. COMMENT ON COLUMN "pay_refund"."reason" IS '退款原因';
  1746. COMMENT ON COLUMN "pay_refund"."user_ip" IS '用户 IP';
  1747. COMMENT ON COLUMN "pay_refund"."channel_order_no" IS '渠道订单号,pay_order 中的channel_order_no 对应';
  1748. COMMENT ON COLUMN "pay_refund"."channel_refund_no" IS '渠道退款单号,渠道返回';
  1749. COMMENT ON COLUMN "pay_refund"."channel_error_code" IS '渠道调用报错时,错误码';
  1750. COMMENT ON COLUMN "pay_refund"."channel_error_msg" IS '渠道调用报错时,错误信息';
  1751. COMMENT ON COLUMN "pay_refund"."channel_extras" IS '支付渠道的额外参数';
  1752. COMMENT ON COLUMN "pay_refund"."expire_time" IS '退款失效时间';
  1753. COMMENT ON COLUMN "pay_refund"."success_time" IS '退款成功时间';
  1754. COMMENT ON COLUMN "pay_refund"."notify_time" IS '退款通知时间';
  1755. COMMENT ON COLUMN "pay_refund"."creator" IS '创建者';
  1756. COMMENT ON COLUMN "pay_refund"."create_time" IS '创建时间';
  1757. COMMENT ON COLUMN "pay_refund"."updater" IS '更新者';
  1758. COMMENT ON COLUMN "pay_refund"."update_time" IS '更新时间';
  1759. COMMENT ON COLUMN "pay_refund"."deleted" IS '是否删除';
  1760. COMMENT ON COLUMN "pay_refund"."tenant_id" IS '租户编号';
  1761. COMMENT ON TABLE "pay_refund" IS '退款订单';
  1762. -- ----------------------------
  1763. -- Records of pay_refund
  1764. -- ----------------------------
  1765. BEGIN;
  1766. COMMIT;
  1767. -- ----------------------------
  1768. -- Table structure for qrtz_blob_triggers
  1769. -- ----------------------------
  1770. DROP TABLE IF EXISTS "qrtz_blob_triggers";
  1771. CREATE TABLE "qrtz_blob_triggers" (
  1772. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1773. "trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1774. "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1775. "blob_data" bytea
  1776. )
  1777. ;
  1778. -- ----------------------------
  1779. -- Records of qrtz_blob_triggers
  1780. -- ----------------------------
  1781. BEGIN;
  1782. COMMIT;
  1783. -- ----------------------------
  1784. -- Table structure for qrtz_calendars
  1785. -- ----------------------------
  1786. DROP TABLE IF EXISTS "qrtz_calendars";
  1787. CREATE TABLE "qrtz_calendars" (
  1788. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1789. "calendar_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1790. "calendar" bytea NOT NULL
  1791. )
  1792. ;
  1793. -- ----------------------------
  1794. -- Records of qrtz_calendars
  1795. -- ----------------------------
  1796. BEGIN;
  1797. COMMIT;
  1798. -- ----------------------------
  1799. -- Table structure for qrtz_cron_triggers
  1800. -- ----------------------------
  1801. DROP TABLE IF EXISTS "qrtz_cron_triggers";
  1802. CREATE TABLE "qrtz_cron_triggers" (
  1803. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1804. "trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1805. "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1806. "cron_expression" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1807. "time_zone_id" varchar(80) COLLATE "pg_catalog"."default"
  1808. )
  1809. ;
  1810. -- ----------------------------
  1811. -- Records of qrtz_cron_triggers
  1812. -- ----------------------------
  1813. BEGIN;
  1814. COMMIT;
  1815. -- ----------------------------
  1816. -- Table structure for qrtz_fired_triggers
  1817. -- ----------------------------
  1818. DROP TABLE IF EXISTS "qrtz_fired_triggers";
  1819. CREATE TABLE "qrtz_fired_triggers" (
  1820. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1821. "entry_id" varchar(95) COLLATE "pg_catalog"."default" NOT NULL,
  1822. "trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1823. "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1824. "instance_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1825. "fired_time" int8 NOT NULL,
  1826. "sched_time" int8 NOT NULL,
  1827. "priority" int4 NOT NULL,
  1828. "state" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  1829. "job_name" varchar(200) COLLATE "pg_catalog"."default",
  1830. "job_group" varchar(200) COLLATE "pg_catalog"."default",
  1831. "is_nonconcurrent" bool,
  1832. "requests_recovery" bool
  1833. )
  1834. ;
  1835. -- ----------------------------
  1836. -- Records of qrtz_fired_triggers
  1837. -- ----------------------------
  1838. BEGIN;
  1839. COMMIT;
  1840. -- ----------------------------
  1841. -- Table structure for qrtz_job_details
  1842. -- ----------------------------
  1843. DROP TABLE IF EXISTS "qrtz_job_details";
  1844. CREATE TABLE "qrtz_job_details" (
  1845. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1846. "job_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1847. "job_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1848. "description" varchar(250) COLLATE "pg_catalog"."default",
  1849. "job_class_name" varchar(250) COLLATE "pg_catalog"."default" NOT NULL,
  1850. "is_durable" bool NOT NULL,
  1851. "is_nonconcurrent" bool NOT NULL,
  1852. "is_update_data" bool NOT NULL,
  1853. "requests_recovery" bool NOT NULL,
  1854. "job_data" bytea
  1855. )
  1856. ;
  1857. -- ----------------------------
  1858. -- Records of qrtz_job_details
  1859. -- ----------------------------
  1860. BEGIN;
  1861. 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, 'com.zqt.gmwz.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');
  1862. COMMIT;
  1863. -- ----------------------------
  1864. -- Table structure for qrtz_locks
  1865. -- ----------------------------
  1866. DROP TABLE IF EXISTS "qrtz_locks";
  1867. CREATE TABLE "qrtz_locks" (
  1868. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1869. "lock_name" varchar(40) COLLATE "pg_catalog"."default" NOT NULL
  1870. )
  1871. ;
  1872. -- ----------------------------
  1873. -- Records of qrtz_locks
  1874. -- ----------------------------
  1875. BEGIN;
  1876. INSERT INTO "qrtz_locks" ("sched_name", "lock_name") VALUES ('schedulerName', 'TRIGGER_ACCESS');
  1877. INSERT INTO "qrtz_locks" ("sched_name", "lock_name") VALUES ('schedulerName', 'STATE_ACCESS');
  1878. COMMIT;
  1879. -- ----------------------------
  1880. -- Table structure for qrtz_paused_trigger_grps
  1881. -- ----------------------------
  1882. DROP TABLE IF EXISTS "qrtz_paused_trigger_grps";
  1883. CREATE TABLE "qrtz_paused_trigger_grps" (
  1884. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1885. "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL
  1886. )
  1887. ;
  1888. -- ----------------------------
  1889. -- Records of qrtz_paused_trigger_grps
  1890. -- ----------------------------
  1891. BEGIN;
  1892. COMMIT;
  1893. -- ----------------------------
  1894. -- Table structure for qrtz_scheduler_state
  1895. -- ----------------------------
  1896. DROP TABLE IF EXISTS "qrtz_scheduler_state";
  1897. CREATE TABLE "qrtz_scheduler_state" (
  1898. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1899. "instance_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1900. "last_checkin_time" int8 NOT NULL,
  1901. "checkin_interval" int8 NOT NULL
  1902. )
  1903. ;
  1904. -- ----------------------------
  1905. -- Records of qrtz_scheduler_state
  1906. -- ----------------------------
  1907. BEGIN;
  1908. INSERT INTO "qrtz_scheduler_state" ("sched_name", "instance_name", "last_checkin_time", "checkin_interval") VALUES ('schedulerName', 'Yunai.local1651328569660', 1651328650075, 15000);
  1909. COMMIT;
  1910. -- ----------------------------
  1911. -- Table structure for qrtz_simple_triggers
  1912. -- ----------------------------
  1913. DROP TABLE IF EXISTS "qrtz_simple_triggers";
  1914. CREATE TABLE "qrtz_simple_triggers" (
  1915. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1916. "trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1917. "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1918. "repeat_count" int8 NOT NULL,
  1919. "repeat_interval" int8 NOT NULL,
  1920. "times_triggered" int8 NOT NULL
  1921. )
  1922. ;
  1923. -- ----------------------------
  1924. -- Records of qrtz_simple_triggers
  1925. -- ----------------------------
  1926. BEGIN;
  1927. COMMIT;
  1928. -- ----------------------------
  1929. -- Table structure for qrtz_simprop_triggers
  1930. -- ----------------------------
  1931. DROP TABLE IF EXISTS "qrtz_simprop_triggers";
  1932. CREATE TABLE "qrtz_simprop_triggers" (
  1933. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1934. "trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1935. "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1936. "str_prop_1" varchar(512) COLLATE "pg_catalog"."default",
  1937. "str_prop_2" varchar(512) COLLATE "pg_catalog"."default",
  1938. "str_prop_3" varchar(512) COLLATE "pg_catalog"."default",
  1939. "int_prop_1" int4,
  1940. "int_prop_2" int4,
  1941. "long_prop_1" int8,
  1942. "long_prop_2" int8,
  1943. "dec_prop_1" numeric(13,4),
  1944. "dec_prop_2" numeric(13,4),
  1945. "bool_prop_1" bool,
  1946. "bool_prop_2" bool
  1947. )
  1948. ;
  1949. -- ----------------------------
  1950. -- Records of qrtz_simprop_triggers
  1951. -- ----------------------------
  1952. BEGIN;
  1953. COMMIT;
  1954. -- ----------------------------
  1955. -- Table structure for qrtz_triggers
  1956. -- ----------------------------
  1957. DROP TABLE IF EXISTS "qrtz_triggers";
  1958. CREATE TABLE "qrtz_triggers" (
  1959. "sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
  1960. "trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1961. "trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1962. "job_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1963. "job_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
  1964. "description" varchar(250) COLLATE "pg_catalog"."default",
  1965. "next_fire_time" int8,
  1966. "prev_fire_time" int8,
  1967. "priority" int4,
  1968. "trigger_state" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
  1969. "trigger_type" varchar(8) COLLATE "pg_catalog"."default" NOT NULL,
  1970. "start_time" int8 NOT NULL,
  1971. "end_time" int8,
  1972. "calendar_name" varchar(200) COLLATE "pg_catalog"."default",
  1973. "misfire_instr" int2,
  1974. "job_data" bytea
  1975. )
  1976. ;
  1977. -- ----------------------------
  1978. -- Records of qrtz_triggers
  1979. -- ----------------------------
  1980. BEGIN;
  1981. 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');
  1982. COMMIT;
  1983. -- ----------------------------
  1984. -- Table structure for system_dept
  1985. -- ----------------------------
  1986. DROP TABLE IF EXISTS "system_dept";
  1987. CREATE TABLE "system_dept" (
  1988. "id" int8 NOT NULL,
  1989. "name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  1990. "parent_id" int8 NOT NULL,
  1991. "sort" int4 NOT NULL,
  1992. "leader_user_id" int8,
  1993. "phone" varchar(11) COLLATE "pg_catalog"."default",
  1994. "email" varchar(50) COLLATE "pg_catalog"."default",
  1995. "status" int2 NOT NULL,
  1996. "creator" varchar(64) COLLATE "pg_catalog"."default",
  1997. "create_time" timestamp(6) NOT NULL,
  1998. "updater" varchar(64) COLLATE "pg_catalog"."default",
  1999. "update_time" timestamp(6) NOT NULL,
  2000. "deleted" int2 NOT NULL DEFAULT 0,
  2001. "tenant_id" int8 NOT NULL DEFAULT 0
  2002. )
  2003. ;
  2004. COMMENT ON COLUMN "system_dept"."id" IS '部门id';
  2005. COMMENT ON COLUMN "system_dept"."name" IS '部门名称';
  2006. COMMENT ON COLUMN "system_dept"."parent_id" IS '父部门id';
  2007. COMMENT ON COLUMN "system_dept"."sort" IS '显示顺序';
  2008. COMMENT ON COLUMN "system_dept"."leader_user_id" IS '负责人';
  2009. COMMENT ON COLUMN "system_dept"."phone" IS '联系电话';
  2010. COMMENT ON COLUMN "system_dept"."email" IS '邮箱';
  2011. COMMENT ON COLUMN "system_dept"."status" IS '部门状态(0正常 1停用)';
  2012. COMMENT ON COLUMN "system_dept"."creator" IS '创建者';
  2013. COMMENT ON COLUMN "system_dept"."create_time" IS '创建时间';
  2014. COMMENT ON COLUMN "system_dept"."updater" IS '更新者';
  2015. COMMENT ON COLUMN "system_dept"."update_time" IS '更新时间';
  2016. COMMENT ON COLUMN "system_dept"."deleted" IS '是否删除';
  2017. COMMENT ON COLUMN "system_dept"."tenant_id" IS '租户编号';
  2018. COMMENT ON TABLE "system_dept" IS '部门表';
  2019. -- ----------------------------
  2020. -- Records of system_dept
  2021. -- ----------------------------
  2022. BEGIN;
  2023. 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);
  2024. 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);
  2025. 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);
  2026. 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);
  2027. 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);
  2028. 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);
  2029. 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);
  2030. 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);
  2031. 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);
  2032. 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);
  2033. 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);
  2034. 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);
  2035. COMMIT;
  2036. -- ----------------------------
  2037. -- Table structure for system_dict_data
  2038. -- ----------------------------
  2039. DROP TABLE IF EXISTS "system_dict_data";
  2040. CREATE TABLE "system_dict_data" (
  2041. "id" int8 NOT NULL,
  2042. "sort" int4 NOT NULL,
  2043. "label" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  2044. "value" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  2045. "dict_type" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  2046. "status" int2 NOT NULL,
  2047. "color_type" varchar(100) COLLATE "pg_catalog"."default",
  2048. "css_class" varchar(100) COLLATE "pg_catalog"."default",
  2049. "remark" varchar(500) COLLATE "pg_catalog"."default",
  2050. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2051. "create_time" timestamp(6) NOT NULL,
  2052. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2053. "update_time" timestamp(6) NOT NULL,
  2054. "deleted" int2 NOT NULL DEFAULT 0
  2055. )
  2056. ;
  2057. COMMENT ON COLUMN "system_dict_data"."id" IS '字典编码';
  2058. COMMENT ON COLUMN "system_dict_data"."sort" IS '字典排序';
  2059. COMMENT ON COLUMN "system_dict_data"."label" IS '字典标签';
  2060. COMMENT ON COLUMN "system_dict_data"."value" IS '字典键值';
  2061. COMMENT ON COLUMN "system_dict_data"."dict_type" IS '字典类型';
  2062. COMMENT ON COLUMN "system_dict_data"."status" IS '状态(0正常 1停用)';
  2063. COMMENT ON COLUMN "system_dict_data"."color_type" IS '颜色类型';
  2064. COMMENT ON COLUMN "system_dict_data"."css_class" IS 'css 样式';
  2065. COMMENT ON COLUMN "system_dict_data"."remark" IS '备注';
  2066. COMMENT ON COLUMN "system_dict_data"."creator" IS '创建者';
  2067. COMMENT ON COLUMN "system_dict_data"."create_time" IS '创建时间';
  2068. COMMENT ON COLUMN "system_dict_data"."updater" IS '更新者';
  2069. COMMENT ON COLUMN "system_dict_data"."update_time" IS '更新时间';
  2070. COMMENT ON COLUMN "system_dict_data"."deleted" IS '是否删除';
  2071. COMMENT ON TABLE "system_dict_data" IS '字典数据表';
  2072. -- ----------------------------
  2073. -- Records of system_dict_data
  2074. -- ----------------------------
  2075. BEGIN;
  2076. 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);
  2077. 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);
  2078. 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);
  2079. 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);
  2080. 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);
  2081. 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);
  2082. 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);
  2083. 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);
  2084. 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);
  2085. 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);
  2086. 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);
  2087. 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);
  2088. 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);
  2089. 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);
  2090. 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);
  2091. 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);
  2092. 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);
  2093. 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);
  2094. 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);
  2095. 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);
  2096. 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);
  2097. 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);
  2098. 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);
  2099. 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);
  2100. 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);
  2101. 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);
  2102. 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);
  2103. 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);
  2104. 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);
  2105. 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);
  2106. 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);
  2107. 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);
  2108. 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);
  2109. 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);
  2110. 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);
  2111. 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);
  2112. 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);
  2113. 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);
  2114. 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);
  2115. 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);
  2116. 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);
  2117. 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);
  2118. 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);
  2119. 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);
  2120. 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);
  2121. 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);
  2122. 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);
  2123. 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);
  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 (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);
  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 (65, 1, '云片', 'YUN_PIAN', 'system_sms_channel_code', 0, 'success', '', NULL, '1', '2021-04-05 01:05:14', '1', '2022-02-16 10:09:55', 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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (80, 100, '账号登录', '100', 'system_login_type', 0, 'primary', '', '账号登录', '1', '2021-10-06 00:52:02', '1', '2022-02-16 13:11:34', 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 (81, 101, '社交登录', '101', 'system_login_type', 0, 'info', '', '社交登录', '1', '2021-10-06 00:52:17', '1', '2022-02-16 13:11:40', 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 (83, 200, '主动登出', '200', 'system_login_type', 0, 'primary', '', '主动登出', '1', '2021-10-06 00:52:58', '1', '2022-02-16 13:11:49', 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 (85, 202, '强制登出', '202', 'system_login_type', 0, 'danger', '', '强制退出', '1', '2021-10-06 00:53:41', '1', '2022-02-16 13:11:57', 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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (114, 2, '微信小程序支付', 'wx_lite', 'pay_channel_code_type', 0, '', '', '微信小程序支付', '1', '2021-12-03 10:41:06', '1', '2021-12-03 10:41:06', 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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (119, 7, '支付宝扫码支付', 'alipay_qr', 'pay_channel_code_type', 0, '', '', '支付宝扫码支付', '1', '2021-12-03 10:43:10', '1', '2021-12-03 10:43:10', 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 (120, 1, '通知成功', '10', 'pay_order_notify_status', 0, 'success', '', '通知成功', '1', '2021-12-03 11:02:41', '1', '2022-02-16 13:59:13', 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 (121, 2, '通知失败', '20', 'pay_order_notify_status', 0, 'danger', '', '通知失败', '1', '2021-12-03 11:02:59', '1', '2022-02-16 13:59:17', 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 (122, 3, '未通知', '0', 'pay_order_notify_status', 0, 'info', '', '未通知', '1', '2021-12-03 11:03:10', '1', '2022-02-16 13:59:23', 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 (123, 1, '支付成功', '10', 'pay_order_status', 0, 'success', '', '支付成功', '1', '2021-12-03 11:18:29', '1', '2022-02-16 15:24:25', 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 (124, 2, '支付关闭', '20', 'pay_order_status', 0, 'danger', '', '支付关闭', '1', '2021-12-03 11:18:42', '1', '2022-02-16 15:24:31', 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 (125, 3, '未支付', '0', 'pay_order_status', 0, 'info', '', '未支付', '1', '2021-12-03 11:18:18', '1', '2022-02-16 15:24:35', 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 (126, 1, '未退款', '0', 'pay_order_refund_status', 0, '', '', '未退款', '1', '2021-12-03 11:30:35', '1', '2021-12-03 11:34:05', 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 (127, 2, '部分退款', '10', 'pay_order_refund_status', 0, '', '', '部分退款', '1', '2021-12-03 11:30:44', '1', '2021-12-03 11:34:10', 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 (128, 3, '全部退款', '20', 'pay_order_refund_status', 0, '', '', '全部退款', '1', '2021-12-03 11:30:52', '1', '2021-12-03 11:34:14', 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 (1117, 1, '退款订单生成', '0', 'pay_refund_order_status', 0, 'primary', '', '退款订单生成', '1', '2021-12-10 16:44:44', '1', '2022-02-16 14:05:24', 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 (1118, 2, '退款成功', '1', 'pay_refund_order_status', 0, 'success', '', '退款成功', '1', '2021-12-10 16:44:59', '1', '2022-02-16 14:05:28', 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 (1119, 3, '退款失败', '2', 'pay_refund_order_status', 0, 'danger', '', '退款失败', '1', '2021-12-10 16:45:10', '1', '2022-02-16 14:05:34', 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 (1124, 8, '退款关闭', '99', 'pay_refund_order_status', 0, 'info', '', '退款关闭', '1', '2021-12-10 16:46:26', '1', '2022-02-16 14:05:40', 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 (1125, 0, '默认', '1', 'bpm_model_category', 0, 'primary', '', '流程分类 - 默认', '1', '2022-01-02 08:41:11', '1', '2022-02-16 20:01:42', 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 (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);
  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 (1127, 0, '进行中', '1', 'bpm_process_instance_status', 0, 'primary', '', '流程实例的状态 - 进行中', '1', '2022-01-07 23:47:22', '1', '2022-02-16 20:07:49', 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 (1128, 2, '已完成', '2', 'bpm_process_instance_status', 0, 'success', '', '流程实例的状态 - 已完成', '1', '2022-01-07 23:47:49', '1', '2022-02-16 20:07:54', 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 (1129, 1, '处理中', '1', 'bpm_process_instance_result', 0, 'primary', '', '流程实例的结果 - 处理中', '1', '2022-01-07 23:48:32', '1', '2022-02-16 09:53:26', 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 (1130, 2, '通过', '2', 'bpm_process_instance_result', 0, 'success', '', '流程实例的结果 - 通过', '1', '2022-01-07 23:48:45', '1', '2022-02-16 09:53:31', 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 (1131, 3, '不通过', '3', 'bpm_process_instance_result', 0, 'danger', '', '流程实例的结果 - 不通过', '1', '2022-01-07 23:48:55', '1', '2022-02-16 09:53:38', 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 (1132, 4, '已取消', '4', 'bpm_process_instance_result', 0, 'info', '', '流程实例的结果 - 撤销', '1', '2022-01-07 23:49:06', '1', '2022-02-16 09:53:42', 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 (1133, 10, '流程表单', '10', 'bpm_model_form_type', 0, '', '', '流程的表单类型 - 流程表单', '103', '2022-01-11 23:51:30', '103', '2022-01-11 23:51:30', 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 (1134, 20, '业务表单', '20', 'bpm_model_form_type', 0, '', '', '流程的表单类型 - 业务表单', '103', '2022-01-11 23:51:47', '103', '2022-01-11 23:51:47', 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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (1142, 10, '流程发起人', '10', 'bpm_task_assign_script', 0, '', '', '任务分配自定义脚本 - 流程发起人', '103', '2022-01-15 00:10:57', '103', '2022-01-15 21:24:10', 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 (1143, 20, '流程发起人的一级领导', '20', 'bpm_task_assign_script', 0, '', '', '任务分配自定义脚本 - 流程发起人的一级领导', '103', '2022-01-15 21:24:31', '103', '2022-01-15 21:24:31', 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 (1144, 21, '流程发起人的二级领导', '21', 'bpm_task_assign_script', 0, '', '', '任务分配自定义脚本 - 流程发起人的二级领导', '103', '2022-01-15 21:24:46', '103', '2022-01-15 21:24:57', 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 (1145, 1, '管理后台', '1', 'infra_codegen_scene', 0, '', '', '代码生成的场景枚举 - 管理后台', '1', '2022-02-02 13:15:06', '1', '2022-03-10 16:32:59', 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 (1146, 2, '用户 APP', '2', 'infra_codegen_scene', 0, '', '', '代码生成的场景枚举 - 用户 APP', '1', '2022-02-02 13:15:19', '1', '2022-03-10 16:33:03', 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 (1147, 0, '未退款', '0', 'pay_refund_order_type', 0, 'info', '', '退款类型 - 未退款', '1', '2022-02-16 14:09:01', '1', '2022-02-16 14:09:01', 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 (1148, 10, '部分退款', '10', 'pay_refund_order_type', 0, 'success', '', '退款类型 - 部分退款', '1', '2022-02-16 14:09:25', '1', '2022-02-16 14:11:38', 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 (1149, 20, '全部退款', '20', 'pay_refund_order_type', 0, 'warning', '', '退款类型 - 全部退款', '1', '2022-02-16 14:11:33', '1', '2022-02-16 14:11:33', 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 (1150, 1, '数据库', '1', 'infra_file_storage', 0, 'default', '', NULL, '1', '2022-03-15 00:25:28', '1', '2022-03-15 00:25:28', 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 (1151, 10, '本地磁盘', '10', 'infra_file_storage', 0, 'default', '', NULL, '1', '2022-03-15 00:25:41', '1', '2022-03-15 00:25:56', 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 (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);
  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 (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);
  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 (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);
  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 (1155, 103, '短信登录', '103', 'system_login_type', 0, 'default', '', NULL, '1', '2022-05-09 23:57:58', '1', '2022-05-09 23:58: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 (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);
  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 (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);
  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 (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);
  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 (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);
  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 (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);
  2210. COMMIT;
  2211. -- ----------------------------
  2212. -- Table structure for system_dict_type
  2213. -- ----------------------------
  2214. DROP TABLE IF EXISTS "system_dict_type";
  2215. CREATE TABLE "system_dict_type" (
  2216. "id" int8 NOT NULL,
  2217. "name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  2218. "type" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  2219. "status" int2 NOT NULL,
  2220. "remark" varchar(500) COLLATE "pg_catalog"."default",
  2221. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2222. "create_time" timestamp(6) NOT NULL,
  2223. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2224. "update_time" timestamp(6) NOT NULL,
  2225. "deleted" int2 NOT NULL DEFAULT 0
  2226. )
  2227. ;
  2228. COMMENT ON COLUMN "system_dict_type"."id" IS '字典主键';
  2229. COMMENT ON COLUMN "system_dict_type"."name" IS '字典名称';
  2230. COMMENT ON COLUMN "system_dict_type"."type" IS '字典类型';
  2231. COMMENT ON COLUMN "system_dict_type"."status" IS '状态(0正常 1停用)';
  2232. COMMENT ON COLUMN "system_dict_type"."remark" IS '备注';
  2233. COMMENT ON COLUMN "system_dict_type"."creator" IS '创建者';
  2234. COMMENT ON COLUMN "system_dict_type"."create_time" IS '创建时间';
  2235. COMMENT ON COLUMN "system_dict_type"."updater" IS '更新者';
  2236. COMMENT ON COLUMN "system_dict_type"."update_time" IS '更新时间';
  2237. COMMENT ON COLUMN "system_dict_type"."deleted" IS '是否删除';
  2238. COMMENT ON TABLE "system_dict_type" IS '字典类型表';
  2239. -- ----------------------------
  2240. -- Records of system_dict_type
  2241. -- ----------------------------
  2242. BEGIN;
  2243. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1, '用户性别', 'system_user_sex', 0, NULL, 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:30:31', 0);
  2244. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (6, '参数类型', 'infra_config_type', 0, NULL, 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:36:54', 0);
  2245. INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (7, '通知类型', 'system_notice_type', 0, NULL, 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:35:26', 0);
  2246. 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);
  2247. 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);
  2248. 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);
  2249. 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);
  2250. 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);
  2251. 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);
  2252. 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);
  2253. 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);
  2254. 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);
  2255. 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);
  2256. 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);
  2257. 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);
  2258. 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);
  2259. 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);
  2260. 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);
  2261. 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);
  2262. 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);
  2263. 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);
  2264. 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);
  2265. 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);
  2266. 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);
  2267. 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);
  2268. 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);
  2269. 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);
  2270. 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);
  2271. 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);
  2272. 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);
  2273. 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);
  2274. 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);
  2275. 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);
  2276. 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);
  2277. 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);
  2278. 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);
  2279. 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);
  2280. 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);
  2281. 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);
  2282. 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);
  2283. COMMIT;
  2284. -- ----------------------------
  2285. -- Table structure for system_error_code
  2286. -- ----------------------------
  2287. DROP TABLE IF EXISTS "system_error_code";
  2288. CREATE TABLE "system_error_code" (
  2289. "id" int8 NOT NULL,
  2290. "type" int2 NOT NULL,
  2291. "application_name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  2292. "code" int4 NOT NULL,
  2293. "message" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  2294. "memo" varchar(512) COLLATE "pg_catalog"."default",
  2295. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2296. "create_time" timestamp(6) NOT NULL,
  2297. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2298. "update_time" timestamp(6) NOT NULL,
  2299. "deleted" int2 NOT NULL DEFAULT 0
  2300. )
  2301. ;
  2302. COMMENT ON COLUMN "system_error_code"."id" IS '错误码编号';
  2303. COMMENT ON COLUMN "system_error_code"."type" IS '错误码类型';
  2304. COMMENT ON COLUMN "system_error_code"."application_name" IS '应用名';
  2305. COMMENT ON COLUMN "system_error_code"."code" IS '错误码编码';
  2306. COMMENT ON COLUMN "system_error_code"."message" IS '错误码错误提示';
  2307. COMMENT ON COLUMN "system_error_code"."memo" IS '备注';
  2308. COMMENT ON COLUMN "system_error_code"."creator" IS '创建者';
  2309. COMMENT ON COLUMN "system_error_code"."create_time" IS '创建时间';
  2310. COMMENT ON COLUMN "system_error_code"."updater" IS '更新者';
  2311. COMMENT ON COLUMN "system_error_code"."update_time" IS '更新时间';
  2312. COMMENT ON COLUMN "system_error_code"."deleted" IS '是否删除';
  2313. COMMENT ON TABLE "system_error_code" IS '错误码表';
  2314. -- ----------------------------
  2315. -- Records of system_error_code
  2316. -- ----------------------------
  2317. BEGIN;
  2318. COMMIT;
  2319. -- ----------------------------
  2320. -- Table structure for system_login_log
  2321. -- ----------------------------
  2322. DROP TABLE IF EXISTS "system_login_log";
  2323. CREATE TABLE "system_login_log" (
  2324. "id" int8 NOT NULL,
  2325. "log_type" int8 NOT NULL,
  2326. "trace_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  2327. "user_id" int8 NOT NULL,
  2328. "user_type" int2 NOT NULL,
  2329. "username" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  2330. "result" int2 NOT NULL,
  2331. "user_ip" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  2332. "user_agent" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  2333. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2334. "create_time" timestamp(6) NOT NULL,
  2335. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2336. "update_time" timestamp(6) NOT NULL,
  2337. "deleted" int2 NOT NULL DEFAULT 0,
  2338. "tenant_id" int8 NOT NULL DEFAULT 0
  2339. )
  2340. ;
  2341. COMMENT ON COLUMN "system_login_log"."id" IS '访问ID';
  2342. COMMENT ON COLUMN "system_login_log"."log_type" IS '日志类型';
  2343. COMMENT ON COLUMN "system_login_log"."trace_id" IS '链路追踪编号';
  2344. COMMENT ON COLUMN "system_login_log"."user_id" IS '用户编号';
  2345. COMMENT ON COLUMN "system_login_log"."user_type" IS '用户类型';
  2346. COMMENT ON COLUMN "system_login_log"."username" IS '用户账号';
  2347. COMMENT ON COLUMN "system_login_log"."result" IS '登陆结果';
  2348. COMMENT ON COLUMN "system_login_log"."user_ip" IS '用户 IP';
  2349. COMMENT ON COLUMN "system_login_log"."user_agent" IS '浏览器 UA';
  2350. COMMENT ON COLUMN "system_login_log"."creator" IS '创建者';
  2351. COMMENT ON COLUMN "system_login_log"."create_time" IS '创建时间';
  2352. COMMENT ON COLUMN "system_login_log"."updater" IS '更新者';
  2353. COMMENT ON COLUMN "system_login_log"."update_time" IS '更新时间';
  2354. COMMENT ON COLUMN "system_login_log"."deleted" IS '是否删除';
  2355. COMMENT ON COLUMN "system_login_log"."tenant_id" IS '租户编号';
  2356. COMMENT ON TABLE "system_login_log" IS '系统访问记录';
  2357. -- ----------------------------
  2358. -- Records of system_login_log
  2359. -- ----------------------------
  2360. BEGIN;
  2361. COMMIT;
  2362. -- ----------------------------
  2363. -- Table structure for system_menu
  2364. -- ----------------------------
  2365. DROP TABLE IF EXISTS "system_menu";
  2366. CREATE TABLE "system_menu" (
  2367. "id" int8 NOT NULL,
  2368. "name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  2369. "permission" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  2370. "type" int2 NOT NULL,
  2371. "sort" int4 NOT NULL,
  2372. "parent_id" int8 NOT NULL,
  2373. "path" varchar(200) COLLATE "pg_catalog"."default",
  2374. "icon" varchar(100) COLLATE "pg_catalog"."default",
  2375. "component" varchar(255) COLLATE "pg_catalog"."default",
  2376. "status" int2 NOT NULL,
  2377. "visible" bool NOT NULL,
  2378. "keep_alive" bool NOT NULL,
  2379. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2380. "create_time" timestamp(6) NOT NULL,
  2381. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2382. "update_time" timestamp(6) NOT NULL,
  2383. "deleted" int2 NOT NULL DEFAULT 0
  2384. )
  2385. ;
  2386. COMMENT ON COLUMN "system_menu"."id" IS '菜单ID';
  2387. COMMENT ON COLUMN "system_menu"."name" IS '菜单名称';
  2388. COMMENT ON COLUMN "system_menu"."permission" IS '权限标识';
  2389. COMMENT ON COLUMN "system_menu"."type" IS '菜单类型';
  2390. COMMENT ON COLUMN "system_menu"."sort" IS '显示顺序';
  2391. COMMENT ON COLUMN "system_menu"."parent_id" IS '父菜单ID';
  2392. COMMENT ON COLUMN "system_menu"."path" IS '路由地址';
  2393. COMMENT ON COLUMN "system_menu"."icon" IS '菜单图标';
  2394. COMMENT ON COLUMN "system_menu"."component" IS '组件路径';
  2395. COMMENT ON COLUMN "system_menu"."status" IS '菜单状态';
  2396. COMMENT ON COLUMN "system_menu"."visible" IS '是否可见';
  2397. COMMENT ON COLUMN "system_menu"."keep_alive" IS '是否缓存';
  2398. COMMENT ON COLUMN "system_menu"."creator" IS '创建者';
  2399. COMMENT ON COLUMN "system_menu"."create_time" IS '创建时间';
  2400. COMMENT ON COLUMN "system_menu"."updater" IS '更新者';
  2401. COMMENT ON COLUMN "system_menu"."update_time" IS '更新时间';
  2402. COMMENT ON COLUMN "system_menu"."deleted" IS '是否删除';
  2403. COMMENT ON TABLE "system_menu" IS '菜单权限表';
  2404. -- ----------------------------
  2405. -- Records of system_menu
  2406. -- ----------------------------
  2407. BEGIN;
  2408. 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") 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);
  2409. 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") 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);
  2410. 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") 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);
  2411. 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") 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);
  2412. 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") 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);
  2413. 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") 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);
  2414. 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") 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);
  2415. 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") 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);
  2416. 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") 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);
  2417. 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") 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);
  2418. 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") 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);
  2419. 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") 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);
  2420. 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") 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);
  2421. 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") 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);
  2422. 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") 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);
  2423. 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") 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);
  2424. 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") 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);
  2425. 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") 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);
  2426. 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") 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);
  2427. 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") 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);
  2428. 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") 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);
  2429. 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") 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);
  2430. 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") 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);
  2431. 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") 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);
  2432. 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") 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);
  2433. 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") 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);
  2434. 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") 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);
  2435. 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") 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);
  2436. 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") 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);
  2437. 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") 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);
  2438. 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") 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);
  2439. 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") 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);
  2440. 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") 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);
  2441. 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") 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);
  2442. 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") 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);
  2443. 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") 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);
  2444. 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") 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);
  2445. 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") 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);
  2446. 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") 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);
  2447. 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") 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);
  2448. 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") 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);
  2449. 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") 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);
  2450. 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") 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);
  2451. 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") 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);
  2452. 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") 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);
  2453. 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") 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);
  2454. 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") 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);
  2455. 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") 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);
  2456. 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") 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);
  2457. 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") 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);
  2458. 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") 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);
  2459. 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") 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);
  2460. 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") 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);
  2461. 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") 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);
  2462. 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") 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);
  2463. 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") 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);
  2464. 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") 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);
  2465. 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") 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);
  2466. 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") 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);
  2467. 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") 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);
  2468. 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") 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);
  2469. 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") 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);
  2470. 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") 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);
  2471. 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") 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);
  2472. 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") 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);
  2473. 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") 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);
  2474. 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") 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);
  2475. 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") 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);
  2476. 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") 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);
  2477. 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") 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);
  2478. 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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") VALUES (1075, '任务触发', 'infra:job:trigger', 3, 8, 110, '', '', '', 0, 't', 't', '', '2021-02-07 13:03:10', '', '2022-04-20 17:03:10', 0);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") VALUES (1091, '文件查询', 'infra:file:query', 3, 1, 1090, '', '', '', 0, 't', 't', '', '2021-03-12 20:16:20', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1092, '文件删除', 'infra:file:delete', 3, 4, 1090, '', '', '', 0, 't', 't', '', '2021-03-12 20:16:20', '', '2022-04-20 17:03:10', 0);
  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") 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);
  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") VALUES (1094, '短信渠道', '', 2, 0, 1093, 'sms-channel', 'phone', 'system/sms/smsChannel', 0, 't', 't', '', '2021-04-01 11:07:15', '1', '2022-04-20 17:03:10', 0);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") VALUES (1100, '短信模板', '', 2, 1, 1093, 'sms-template', 'phone', 'system/sms/smsTemplate', 0, 't', 't', '', '2021-04-01 17:35:17', '1', '2022-04-20 17:03:10', 0);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") VALUES (1107, '短信日志', '', 2, 2, 1093, 'sms-log', 'phone', 'system/sms/smsLog', 0, 't', 't', '', '2021-04-11 08:37:05', '1', '2022-04-20 17:03:10', 0);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") VALUES (1127, '支付应用信息查询', 'pay:app:query', 3, 1, 1126, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:31', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1128, '支付应用信息创建', 'pay:app:create', 3, 2, 1126, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:31', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1129, '支付应用信息更新', 'pay:app:update', 3, 3, 1126, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:31', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1130, '支付应用信息删除', 'pay:app:delete', 3, 4, 1126, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:31', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1131, '支付应用信息导出', 'pay:app:export', 3, 5, 1126, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:31', '', '2022-04-20 17:03:10', 0);
  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") 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);
  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") VALUES (1133, '支付商户信息查询', 'pay:merchant:query', 3, 1, 1132, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:41', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1134, '支付商户信息创建', 'pay:merchant:create', 3, 2, 1132, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:41', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1135, '支付商户信息更新', 'pay:merchant:update', 3, 3, 1132, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:41', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1136, '支付商户信息删除', 'pay:merchant:delete', 3, 4, 1132, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:41', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1137, '支付商户信息导出', 'pay:merchant:export', 3, 5, 1132, '', '', '', 0, 't', 't', '', '2021-11-10 01:13:41', '', '2022-04-20 17:03:10', 0);
  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") 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);
  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") VALUES (1139, '租户查询', 'system:tenant:query', 3, 1, 1138, '', '', '', 0, 't', 't', '', '2021-12-14 12:31:44', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1140, '租户创建', 'system:tenant:create', 3, 2, 1138, '', '', '', 0, 't', 't', '', '2021-12-14 12:31:44', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1141, '租户更新', 'system:tenant:update', 3, 3, 1138, '', '', '', 0, 't', 't', '', '2021-12-14 12:31:44', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1142, '租户删除', 'system:tenant:delete', 3, 4, 1138, '', '', '', 0, 't', 't', '', '2021-12-14 12:31:44', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1143, '租户导出', 'system:tenant:export', 3, 5, 1138, '', '', '', 0, 't', 't', '', '2021-12-14 12:31:44', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1150, '秘钥解析', '', 3, 6, 1129, '', '', '', 0, 't', 't', '1', '2021-11-08 15:15:47', '1', '2022-04-20 17:03:10', 0);
  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") 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);
  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") VALUES (1162, '退款订单查询', 'pay:refund:query', 3, 1, 1161, '', '', '', 0, 't', 't', '', '2021-12-25 08:29:07', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1163, '退款订单创建', 'pay:refund:create', 3, 2, 1161, '', '', '', 0, 't', 't', '', '2021-12-25 08:29:07', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1164, '退款订单更新', 'pay:refund:update', 3, 3, 1161, '', '', '', 0, 't', 't', '', '2021-12-25 08:29:07', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1165, '退款订单删除', 'pay:refund:delete', 3, 4, 1161, '', '', '', 0, 't', 't', '', '2021-12-25 08:29:07', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1166, '退款订单导出', 'pay:refund:export', 3, 5, 1161, '', '', '', 0, 't', 't', '', '2021-12-25 08:29:07', '', '2022-04-20 17:03:10', 0);
  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") 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);
  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") VALUES (1174, '支付订单查询', 'pay:order:query', 3, 1, 1173, '', '', '', 0, 't', 't', '', '2021-12-25 08:49:43', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1175, '支付订单创建', 'pay:order:create', 3, 2, 1173, '', '', '', 0, 't', 't', '', '2021-12-25 08:49:43', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1176, '支付订单更新', 'pay:order:update', 3, 3, 1173, '', '', '', 0, 't', 't', '', '2021-12-25 08:49:43', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1177, '支付订单删除', 'pay:order:delete', 3, 4, 1173, '', '', '', 0, 't', 't', '', '2021-12-25 08:49:43', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1178, '支付订单导出', 'pay:order:export', 3, 5, 1173, '', '', '', 0, 't', 't', '', '2021-12-25 08:49:43', '', '2022-04-20 17:03:10', 0);
  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") 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);
  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") VALUES (1180, '支付商户信息查询', 'pay:merchant:query', 3, 1, 1179, '', '', '', 0, 't', 't', '', '2021-12-25 09:01:44', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1181, '支付商户信息创建', 'pay:merchant:create', 3, 2, 1179, '', '', '', 0, 't', 't', '', '2021-12-25 09:01:44', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1182, '支付商户信息更新', 'pay:merchant:update', 3, 3, 1179, '', '', '', 0, 't', 't', '', '2021-12-25 09:01:44', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1183, '支付商户信息删除', '', 3, 4, 1179, '', '', '', 0, 't', 't', '', '2021-12-25 09:01:44', '', '2022-04-20 17:03:10', 0);
  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") VALUES (1184, '支付商户信息导出', 'pay:merchant:export', 3, 5, 1179, '', '', '', 0, 't', 't', '', '2021-12-25 09:01:44', '', '2022-04-20 17:03:10', 0);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  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") 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);
  2638. COMMIT;
  2639. -- ----------------------------
  2640. -- Table structure for system_notice
  2641. -- ----------------------------
  2642. DROP TABLE IF EXISTS "system_notice";
  2643. CREATE TABLE "system_notice" (
  2644. "id" int8 NOT NULL,
  2645. "title" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  2646. "content" text COLLATE "pg_catalog"."default" NOT NULL,
  2647. "type" int2 NOT NULL,
  2648. "status" int2 NOT NULL,
  2649. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2650. "create_time" timestamp(6) NOT NULL,
  2651. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2652. "update_time" timestamp(6) NOT NULL,
  2653. "deleted" int2 NOT NULL DEFAULT 0,
  2654. "tenant_id" int8 NOT NULL DEFAULT 0
  2655. )
  2656. ;
  2657. COMMENT ON COLUMN "system_notice"."id" IS '公告ID';
  2658. COMMENT ON COLUMN "system_notice"."title" IS '公告标题';
  2659. COMMENT ON COLUMN "system_notice"."content" IS '公告内容';
  2660. COMMENT ON COLUMN "system_notice"."type" IS '公告类型(1通知 2公告)';
  2661. COMMENT ON COLUMN "system_notice"."status" IS '公告状态(0正常 1关闭)';
  2662. COMMENT ON COLUMN "system_notice"."creator" IS '创建者';
  2663. COMMENT ON COLUMN "system_notice"."create_time" IS '创建时间';
  2664. COMMENT ON COLUMN "system_notice"."updater" IS '更新者';
  2665. COMMENT ON COLUMN "system_notice"."update_time" IS '更新时间';
  2666. COMMENT ON COLUMN "system_notice"."deleted" IS '是否删除';
  2667. COMMENT ON COLUMN "system_notice"."tenant_id" IS '租户编号';
  2668. COMMENT ON TABLE "system_notice" IS '通知公告表';
  2669. -- ----------------------------
  2670. -- Records of system_notice
  2671. -- ----------------------------
  2672. BEGIN;
  2673. 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);
  2674. 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.patrol.iocoder.cn/b7cb3cf49b4b3258bf7309a09dd2f4e5.jpg">维护内容</p>', 2, 1, 'admin', '2021-01-05 17:03:48', '1', '2022-05-11 12:34:24', 0, 1);
  2675. 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);
  2676. COMMIT;
  2677. -- ----------------------------
  2678. -- Table structure for system_oauth2_access_token
  2679. -- ----------------------------
  2680. DROP TABLE IF EXISTS "system_oauth2_access_token";
  2681. CREATE TABLE "system_oauth2_access_token" (
  2682. "id" int8 NOT NULL,
  2683. "user_id" int8 NOT NULL,
  2684. "access_token" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2685. "refresh_token" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  2686. "user_type" int2 NOT NULL,
  2687. "client_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2688. "expires_time" timestamp(6) NOT NULL,
  2689. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2690. "create_time" timestamp(6) NOT NULL,
  2691. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2692. "update_time" timestamp(6) NOT NULL,
  2693. "deleted" int2 NOT NULL DEFAULT 0,
  2694. "tenant_id" int8 NOT NULL,
  2695. "scopes" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  2696. )
  2697. ;
  2698. COMMENT ON COLUMN "system_oauth2_access_token"."id" IS '编号';
  2699. COMMENT ON COLUMN "system_oauth2_access_token"."user_id" IS '用户编号';
  2700. COMMENT ON COLUMN "system_oauth2_access_token"."access_token" IS '访问令牌';
  2701. COMMENT ON COLUMN "system_oauth2_access_token"."refresh_token" IS '刷新令牌';
  2702. COMMENT ON COLUMN "system_oauth2_access_token"."user_type" IS '用户类型';
  2703. COMMENT ON COLUMN "system_oauth2_access_token"."client_id" IS '客户端编号';
  2704. COMMENT ON COLUMN "system_oauth2_access_token"."expires_time" IS '过期时间';
  2705. COMMENT ON COLUMN "system_oauth2_access_token"."creator" IS '创建者';
  2706. COMMENT ON COLUMN "system_oauth2_access_token"."create_time" IS '创建时间';
  2707. COMMENT ON COLUMN "system_oauth2_access_token"."updater" IS '更新者';
  2708. COMMENT ON COLUMN "system_oauth2_access_token"."update_time" IS '更新时间';
  2709. COMMENT ON COLUMN "system_oauth2_access_token"."deleted" IS '是否删除';
  2710. COMMENT ON COLUMN "system_oauth2_access_token"."tenant_id" IS '租户编号';
  2711. COMMENT ON COLUMN "system_oauth2_access_token"."scopes" IS '授权范围';
  2712. COMMENT ON TABLE "system_oauth2_access_token" IS '刷新令牌';
  2713. -- ----------------------------
  2714. -- Records of system_oauth2_access_token
  2715. -- ----------------------------
  2716. BEGIN;
  2717. COMMIT;
  2718. -- ----------------------------
  2719. -- Table structure for system_oauth2_approve
  2720. -- ----------------------------
  2721. DROP TABLE IF EXISTS "system_oauth2_approve";
  2722. CREATE TABLE "system_oauth2_approve" (
  2723. "id" int8 NOT NULL,
  2724. "user_id" int8 NOT NULL,
  2725. "user_type" int2 NOT NULL,
  2726. "client_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2727. "scope" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2728. "approved" bool NOT NULL,
  2729. "expires_time" timestamp(6) NOT NULL,
  2730. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2731. "create_time" timestamp(6) NOT NULL,
  2732. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2733. "update_time" timestamp(6) NOT NULL,
  2734. "deleted" int2 NOT NULL DEFAULT 0,
  2735. "tenant_id" int8 NOT NULL
  2736. )
  2737. ;
  2738. COMMENT ON COLUMN "system_oauth2_approve"."id" IS '编号';
  2739. COMMENT ON COLUMN "system_oauth2_approve"."user_id" IS '用户编号';
  2740. COMMENT ON COLUMN "system_oauth2_approve"."user_type" IS '用户类型';
  2741. COMMENT ON COLUMN "system_oauth2_approve"."client_id" IS '客户端编号';
  2742. COMMENT ON COLUMN "system_oauth2_approve"."scope" IS '授权范围';
  2743. COMMENT ON COLUMN "system_oauth2_approve"."approved" IS '是否接受';
  2744. COMMENT ON COLUMN "system_oauth2_approve"."expires_time" IS '过期时间';
  2745. COMMENT ON COLUMN "system_oauth2_approve"."creator" IS '创建者';
  2746. COMMENT ON COLUMN "system_oauth2_approve"."create_time" IS '创建时间';
  2747. COMMENT ON COLUMN "system_oauth2_approve"."updater" IS '更新者';
  2748. COMMENT ON COLUMN "system_oauth2_approve"."update_time" IS '更新时间';
  2749. COMMENT ON COLUMN "system_oauth2_approve"."deleted" IS '是否删除';
  2750. COMMENT ON COLUMN "system_oauth2_approve"."tenant_id" IS '租户编号';
  2751. COMMENT ON TABLE "system_oauth2_approve" IS 'OAuth2 批准表';
  2752. -- ----------------------------
  2753. -- Records of system_oauth2_approve
  2754. -- ----------------------------
  2755. BEGIN;
  2756. COMMIT;
  2757. -- ----------------------------
  2758. -- Table structure for system_oauth2_client
  2759. -- ----------------------------
  2760. DROP TABLE IF EXISTS "system_oauth2_client";
  2761. CREATE TABLE "system_oauth2_client" (
  2762. "id" int8 NOT NULL,
  2763. "client_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2764. "secret" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2765. "name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2766. "logo" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2767. "description" varchar(255) COLLATE "pg_catalog"."default",
  2768. "status" int2 NOT NULL,
  2769. "access_token_validity_seconds" int4 NOT NULL,
  2770. "refresh_token_validity_seconds" int4 NOT NULL,
  2771. "redirect_uris" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2772. "authorized_grant_types" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2773. "scopes" varchar(255) COLLATE "pg_catalog"."default",
  2774. "authorities" varchar(255) COLLATE "pg_catalog"."default",
  2775. "resource_ids" varchar(255) COLLATE "pg_catalog"."default",
  2776. "additional_information" varchar(4096) COLLATE "pg_catalog"."default",
  2777. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2778. "create_time" timestamp(6) NOT NULL,
  2779. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2780. "update_time" timestamp(6) NOT NULL,
  2781. "deleted" int2 NOT NULL DEFAULT 0,
  2782. "auto_approve_scopes" varchar(255) COLLATE "pg_catalog"."default"
  2783. )
  2784. ;
  2785. COMMENT ON COLUMN "system_oauth2_client"."id" IS '编号';
  2786. COMMENT ON COLUMN "system_oauth2_client"."client_id" IS '客户端编号';
  2787. COMMENT ON COLUMN "system_oauth2_client"."secret" IS '客户端密钥';
  2788. COMMENT ON COLUMN "system_oauth2_client"."name" IS '应用名';
  2789. COMMENT ON COLUMN "system_oauth2_client"."logo" IS '应用图标';
  2790. COMMENT ON COLUMN "system_oauth2_client"."description" IS '应用描述';
  2791. COMMENT ON COLUMN "system_oauth2_client"."status" IS '状态';
  2792. COMMENT ON COLUMN "system_oauth2_client"."access_token_validity_seconds" IS '访问令牌的有效期';
  2793. COMMENT ON COLUMN "system_oauth2_client"."refresh_token_validity_seconds" IS '刷新令牌的有效期';
  2794. COMMENT ON COLUMN "system_oauth2_client"."redirect_uris" IS '可重定向的 URI 地址';
  2795. COMMENT ON COLUMN "system_oauth2_client"."authorized_grant_types" IS '授权类型';
  2796. COMMENT ON COLUMN "system_oauth2_client"."scopes" IS '授权范围';
  2797. COMMENT ON COLUMN "system_oauth2_client"."authorities" IS '权限';
  2798. COMMENT ON COLUMN "system_oauth2_client"."resource_ids" IS '资源';
  2799. COMMENT ON COLUMN "system_oauth2_client"."additional_information" IS '附加信息';
  2800. COMMENT ON COLUMN "system_oauth2_client"."creator" IS '创建者';
  2801. COMMENT ON COLUMN "system_oauth2_client"."create_time" IS '创建时间';
  2802. COMMENT ON COLUMN "system_oauth2_client"."updater" IS '更新者';
  2803. COMMENT ON COLUMN "system_oauth2_client"."update_time" IS '更新时间';
  2804. COMMENT ON COLUMN "system_oauth2_client"."deleted" IS '是否删除';
  2805. COMMENT ON COLUMN "system_oauth2_client"."auto_approve_scopes" IS '自动通过的授权范围';
  2806. COMMENT ON TABLE "system_oauth2_client" IS 'OAuth2 客户端表';
  2807. -- ----------------------------
  2808. -- Records of system_oauth2_client
  2809. -- ----------------------------
  2810. BEGIN;
  2811. 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.patrol.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);
  2812. 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.patrol.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, '[]');
  2813. COMMIT;
  2814. -- ----------------------------
  2815. -- Table structure for system_oauth2_code
  2816. -- ----------------------------
  2817. DROP TABLE IF EXISTS "system_oauth2_code";
  2818. CREATE TABLE "system_oauth2_code" (
  2819. "id" int8 NOT NULL,
  2820. "user_id" int8 NOT NULL,
  2821. "user_type" int2 NOT NULL,
  2822. "code" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  2823. "client_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2824. "scopes" varchar(255) COLLATE "pg_catalog"."default",
  2825. "expires_time" timestamp(6) NOT NULL,
  2826. "redirect_uri" varchar(255) COLLATE "pg_catalog"."default",
  2827. "state" varchar(255) COLLATE "pg_catalog"."default",
  2828. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2829. "create_time" timestamp(6) NOT NULL,
  2830. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2831. "update_time" timestamp(6) NOT NULL,
  2832. "deleted" int2 NOT NULL DEFAULT 0,
  2833. "tenant_id" int8 NOT NULL
  2834. )
  2835. ;
  2836. COMMENT ON COLUMN "system_oauth2_code"."id" IS '编号';
  2837. COMMENT ON COLUMN "system_oauth2_code"."user_id" IS '用户编号';
  2838. COMMENT ON COLUMN "system_oauth2_code"."user_type" IS '用户类型';
  2839. COMMENT ON COLUMN "system_oauth2_code"."code" IS '授权码';
  2840. COMMENT ON COLUMN "system_oauth2_code"."client_id" IS '客户端编号';
  2841. COMMENT ON COLUMN "system_oauth2_code"."scopes" IS '授权范围';
  2842. COMMENT ON COLUMN "system_oauth2_code"."expires_time" IS '过期时间';
  2843. COMMENT ON COLUMN "system_oauth2_code"."redirect_uri" IS '可重定向的 URI 地址';
  2844. COMMENT ON COLUMN "system_oauth2_code"."state" IS '状态';
  2845. COMMENT ON COLUMN "system_oauth2_code"."creator" IS '创建者';
  2846. COMMENT ON COLUMN "system_oauth2_code"."create_time" IS '创建时间';
  2847. COMMENT ON COLUMN "system_oauth2_code"."updater" IS '更新者';
  2848. COMMENT ON COLUMN "system_oauth2_code"."update_time" IS '更新时间';
  2849. COMMENT ON COLUMN "system_oauth2_code"."deleted" IS '是否删除';
  2850. COMMENT ON COLUMN "system_oauth2_code"."tenant_id" IS '租户编号';
  2851. COMMENT ON TABLE "system_oauth2_code" IS 'OAuth2 授权码表';
  2852. -- ----------------------------
  2853. -- Records of system_oauth2_code
  2854. -- ----------------------------
  2855. BEGIN;
  2856. COMMIT;
  2857. -- ----------------------------
  2858. -- Table structure for system_oauth2_refresh_token
  2859. -- ----------------------------
  2860. DROP TABLE IF EXISTS "system_oauth2_refresh_token";
  2861. CREATE TABLE "system_oauth2_refresh_token" (
  2862. "id" int8 NOT NULL,
  2863. "user_id" int8 NOT NULL,
  2864. "refresh_token" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  2865. "user_type" int2 NOT NULL,
  2866. "client_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  2867. "expires_time" timestamp(6) NOT NULL,
  2868. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2869. "create_time" timestamp(6) NOT NULL,
  2870. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2871. "update_time" timestamp(6) NOT NULL,
  2872. "deleted" int2 NOT NULL DEFAULT 0,
  2873. "tenant_id" int8 NOT NULL,
  2874. "scopes" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
  2875. )
  2876. ;
  2877. COMMENT ON COLUMN "system_oauth2_refresh_token"."id" IS '编号';
  2878. COMMENT ON COLUMN "system_oauth2_refresh_token"."user_id" IS '用户编号';
  2879. COMMENT ON COLUMN "system_oauth2_refresh_token"."refresh_token" IS '刷新令牌';
  2880. COMMENT ON COLUMN "system_oauth2_refresh_token"."user_type" IS '用户类型';
  2881. COMMENT ON COLUMN "system_oauth2_refresh_token"."client_id" IS '客户端编号';
  2882. COMMENT ON COLUMN "system_oauth2_refresh_token"."expires_time" IS '过期时间';
  2883. COMMENT ON COLUMN "system_oauth2_refresh_token"."creator" IS '创建者';
  2884. COMMENT ON COLUMN "system_oauth2_refresh_token"."create_time" IS '创建时间';
  2885. COMMENT ON COLUMN "system_oauth2_refresh_token"."updater" IS '更新者';
  2886. COMMENT ON COLUMN "system_oauth2_refresh_token"."update_time" IS '更新时间';
  2887. COMMENT ON COLUMN "system_oauth2_refresh_token"."deleted" IS '是否删除';
  2888. COMMENT ON COLUMN "system_oauth2_refresh_token"."tenant_id" IS '租户编号';
  2889. COMMENT ON COLUMN "system_oauth2_refresh_token"."scopes" IS '授权范围';
  2890. COMMENT ON TABLE "system_oauth2_refresh_token" IS '刷新令牌';
  2891. -- ----------------------------
  2892. -- Records of system_oauth2_refresh_token
  2893. -- ----------------------------
  2894. BEGIN;
  2895. COMMIT;
  2896. -- ----------------------------
  2897. -- Table structure for system_operate_log
  2898. -- ----------------------------
  2899. DROP TABLE IF EXISTS "system_operate_log";
  2900. CREATE TABLE "system_operate_log" (
  2901. "id" int8 NOT NULL,
  2902. "trace_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  2903. "user_id" int8 NOT NULL,
  2904. "user_type" int2 NOT NULL,
  2905. "module" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  2906. "name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  2907. "type" int8 NOT NULL,
  2908. "content" varchar(2000) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  2909. "exts" varchar(512) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  2910. "request_method" varchar(16) COLLATE "pg_catalog"."default",
  2911. "request_url" varchar(255) COLLATE "pg_catalog"."default",
  2912. "user_ip" varchar(50) COLLATE "pg_catalog"."default",
  2913. "user_agent" varchar(200) COLLATE "pg_catalog"."default",
  2914. "java_method" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
  2915. "java_method_args" varchar(8000) COLLATE "pg_catalog"."default",
  2916. "start_time" timestamp(6) NOT NULL,
  2917. "duration" int4 NOT NULL,
  2918. "result_code" int4 NOT NULL,
  2919. "result_msg" varchar(512) COLLATE "pg_catalog"."default",
  2920. "result_data" varchar(4000) COLLATE "pg_catalog"."default",
  2921. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2922. "create_time" timestamp(6) NOT NULL,
  2923. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2924. "update_time" timestamp(6) NOT NULL,
  2925. "deleted" int2 NOT NULL DEFAULT 0,
  2926. "tenant_id" int8 NOT NULL DEFAULT 0
  2927. )
  2928. ;
  2929. COMMENT ON COLUMN "system_operate_log"."id" IS '日志主键';
  2930. COMMENT ON COLUMN "system_operate_log"."trace_id" IS '链路追踪编号';
  2931. COMMENT ON COLUMN "system_operate_log"."user_id" IS '用户编号';
  2932. COMMENT ON COLUMN "system_operate_log"."user_type" IS '用户类型';
  2933. COMMENT ON COLUMN "system_operate_log"."module" IS '模块标题';
  2934. COMMENT ON COLUMN "system_operate_log"."name" IS '操作名';
  2935. COMMENT ON COLUMN "system_operate_log"."type" IS '操作分类';
  2936. COMMENT ON COLUMN "system_operate_log"."content" IS '操作内容';
  2937. COMMENT ON COLUMN "system_operate_log"."exts" IS '拓展字段';
  2938. COMMENT ON COLUMN "system_operate_log"."request_method" IS '请求方法名';
  2939. COMMENT ON COLUMN "system_operate_log"."request_url" IS '请求地址';
  2940. COMMENT ON COLUMN "system_operate_log"."user_ip" IS '用户 IP';
  2941. COMMENT ON COLUMN "system_operate_log"."user_agent" IS '浏览器 UA';
  2942. COMMENT ON COLUMN "system_operate_log"."java_method" IS 'Java 方法名';
  2943. COMMENT ON COLUMN "system_operate_log"."java_method_args" IS 'Java 方法的参数';
  2944. COMMENT ON COLUMN "system_operate_log"."start_time" IS '操作时间';
  2945. COMMENT ON COLUMN "system_operate_log"."duration" IS '执行时长';
  2946. COMMENT ON COLUMN "system_operate_log"."result_code" IS '结果码';
  2947. COMMENT ON COLUMN "system_operate_log"."result_msg" IS '结果提示';
  2948. COMMENT ON COLUMN "system_operate_log"."result_data" IS '结果数据';
  2949. COMMENT ON COLUMN "system_operate_log"."creator" IS '创建者';
  2950. COMMENT ON COLUMN "system_operate_log"."create_time" IS '创建时间';
  2951. COMMENT ON COLUMN "system_operate_log"."updater" IS '更新者';
  2952. COMMENT ON COLUMN "system_operate_log"."update_time" IS '更新时间';
  2953. COMMENT ON COLUMN "system_operate_log"."deleted" IS '是否删除';
  2954. COMMENT ON COLUMN "system_operate_log"."tenant_id" IS '租户编号';
  2955. COMMENT ON TABLE "system_operate_log" IS '操作日志记录';
  2956. -- ----------------------------
  2957. -- Records of system_operate_log
  2958. -- ----------------------------
  2959. BEGIN;
  2960. COMMIT;
  2961. -- ----------------------------
  2962. -- Table structure for system_post
  2963. -- ----------------------------
  2964. DROP TABLE IF EXISTS "system_post";
  2965. CREATE TABLE "system_post" (
  2966. "id" int8 NOT NULL DEFAULT 0,
  2967. "code" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  2968. "name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  2969. "sort" int4 NOT NULL,
  2970. "status" int2 NOT NULL,
  2971. "remark" varchar(500) COLLATE "pg_catalog"."default",
  2972. "creator" varchar(64) COLLATE "pg_catalog"."default",
  2973. "create_time" timestamp(6) NOT NULL,
  2974. "updater" varchar(64) COLLATE "pg_catalog"."default",
  2975. "update_time" timestamp(6) NOT NULL,
  2976. "deleted" int2 NOT NULL DEFAULT 0,
  2977. "tenant_id" int8 NOT NULL DEFAULT 0
  2978. )
  2979. ;
  2980. COMMENT ON COLUMN "system_post"."id" IS '岗位ID';
  2981. COMMENT ON COLUMN "system_post"."code" IS '岗位编码';
  2982. COMMENT ON COLUMN "system_post"."name" IS '岗位名称';
  2983. COMMENT ON COLUMN "system_post"."sort" IS '显示顺序';
  2984. COMMENT ON COLUMN "system_post"."status" IS '状态(0正常 1停用)';
  2985. COMMENT ON COLUMN "system_post"."remark" IS '备注';
  2986. COMMENT ON COLUMN "system_post"."creator" IS '创建者';
  2987. COMMENT ON COLUMN "system_post"."create_time" IS '创建时间';
  2988. COMMENT ON COLUMN "system_post"."updater" IS '更新者';
  2989. COMMENT ON COLUMN "system_post"."update_time" IS '更新时间';
  2990. COMMENT ON COLUMN "system_post"."deleted" IS '是否删除';
  2991. COMMENT ON COLUMN "system_post"."tenant_id" IS '租户编号';
  2992. COMMENT ON TABLE "system_post" IS '岗位信息表';
  2993. -- ----------------------------
  2994. -- Records of system_post
  2995. -- ----------------------------
  2996. BEGIN;
  2997. 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);
  2998. 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);
  2999. 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);
  3000. COMMIT;
  3001. -- ----------------------------
  3002. -- Table structure for system_role
  3003. -- ----------------------------
  3004. DROP TABLE IF EXISTS "system_role";
  3005. CREATE TABLE "system_role" (
  3006. "id" int8 NOT NULL,
  3007. "name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  3008. "code" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  3009. "sort" int4 NOT NULL,
  3010. "data_scope" int2 NOT NULL,
  3011. "data_scope_dept_ids" varchar(500) COLLATE "pg_catalog"."default" NOT NULL,
  3012. "status" int2 NOT NULL,
  3013. "type" int2 NOT NULL,
  3014. "remark" varchar(500) COLLATE "pg_catalog"."default",
  3015. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3016. "create_time" timestamp(6) NOT NULL,
  3017. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3018. "update_time" timestamp(6) NOT NULL,
  3019. "deleted" int2 NOT NULL DEFAULT 0,
  3020. "tenant_id" int8 NOT NULL DEFAULT 0
  3021. )
  3022. ;
  3023. COMMENT ON COLUMN "system_role"."id" IS '角色ID';
  3024. COMMENT ON COLUMN "system_role"."name" IS '角色名称';
  3025. COMMENT ON COLUMN "system_role"."code" IS '角色权限字符串';
  3026. COMMENT ON COLUMN "system_role"."sort" IS '显示顺序';
  3027. COMMENT ON COLUMN "system_role"."data_scope" IS '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)';
  3028. COMMENT ON COLUMN "system_role"."data_scope_dept_ids" IS '数据范围(指定部门数组)';
  3029. COMMENT ON COLUMN "system_role"."status" IS '角色状态(0正常 1停用)';
  3030. COMMENT ON COLUMN "system_role"."type" IS '角色类型';
  3031. COMMENT ON COLUMN "system_role"."remark" IS '备注';
  3032. COMMENT ON COLUMN "system_role"."creator" IS '创建者';
  3033. COMMENT ON COLUMN "system_role"."create_time" IS '创建时间';
  3034. COMMENT ON COLUMN "system_role"."updater" IS '更新者';
  3035. COMMENT ON COLUMN "system_role"."update_time" IS '更新时间';
  3036. COMMENT ON COLUMN "system_role"."deleted" IS '是否删除';
  3037. COMMENT ON COLUMN "system_role"."tenant_id" IS '租户编号';
  3038. COMMENT ON TABLE "system_role" IS '角色信息表';
  3039. -- ----------------------------
  3040. -- Records of system_role
  3041. -- ----------------------------
  3042. BEGIN;
  3043. 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);
  3044. 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);
  3045. 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);
  3046. 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);
  3047. 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);
  3048. 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);
  3049. COMMIT;
  3050. -- ----------------------------
  3051. -- Table structure for system_role_menu
  3052. -- ----------------------------
  3053. DROP TABLE IF EXISTS "system_role_menu";
  3054. CREATE TABLE "system_role_menu" (
  3055. "id" int8 NOT NULL,
  3056. "role_id" int8 NOT NULL,
  3057. "menu_id" int8 NOT NULL,
  3058. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3059. "create_time" timestamp(6) NOT NULL,
  3060. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3061. "update_time" timestamp(6) NOT NULL,
  3062. "deleted" int2 NOT NULL DEFAULT 0,
  3063. "tenant_id" int8 NOT NULL DEFAULT 0
  3064. )
  3065. ;
  3066. COMMENT ON COLUMN "system_role_menu"."id" IS '自增编号';
  3067. COMMENT ON COLUMN "system_role_menu"."role_id" IS '角色ID';
  3068. COMMENT ON COLUMN "system_role_menu"."menu_id" IS '菜单ID';
  3069. COMMENT ON COLUMN "system_role_menu"."creator" IS '创建者';
  3070. COMMENT ON COLUMN "system_role_menu"."create_time" IS '创建时间';
  3071. COMMENT ON COLUMN "system_role_menu"."updater" IS '更新者';
  3072. COMMENT ON COLUMN "system_role_menu"."update_time" IS '更新时间';
  3073. COMMENT ON COLUMN "system_role_menu"."deleted" IS '是否删除';
  3074. COMMENT ON COLUMN "system_role_menu"."tenant_id" IS '租户编号';
  3075. COMMENT ON TABLE "system_role_menu" IS '角色和菜单关联表';
  3076. -- ----------------------------
  3077. -- Records of system_role_menu
  3078. -- ----------------------------
  3079. BEGIN;
  3080. 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);
  3081. 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);
  3082. 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);
  3083. 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);
  3084. 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);
  3085. 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);
  3086. 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);
  3087. 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);
  3088. 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);
  3089. 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);
  3090. 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);
  3091. 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);
  3092. 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);
  3093. 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);
  3094. 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);
  3095. 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);
  3096. 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);
  3097. 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);
  3098. 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);
  3099. 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);
  3100. 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);
  3101. 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);
  3102. 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);
  3103. 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);
  3104. 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);
  3105. 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);
  3106. 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);
  3107. 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);
  3108. 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);
  3109. 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);
  3110. 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);
  3111. 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);
  3112. 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);
  3113. 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);
  3114. 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);
  3115. 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);
  3116. 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);
  3117. 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);
  3118. 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);
  3119. 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);
  3120. 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);
  3121. 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);
  3122. 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);
  3123. 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);
  3124. 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);
  3125. 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);
  3126. 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);
  3127. 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);
  3128. 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);
  3129. 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);
  3130. 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);
  3131. 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);
  3132. 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);
  3133. 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);
  3134. 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);
  3135. 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);
  3136. 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);
  3137. 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);
  3138. 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);
  3139. 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);
  3140. 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);
  3141. 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);
  3142. 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);
  3143. 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);
  3144. 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);
  3145. 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);
  3146. 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);
  3147. 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);
  3148. 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);
  3149. 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);
  3150. 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);
  3151. 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);
  3152. 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);
  3153. 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);
  3154. 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);
  3155. 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);
  3156. 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);
  3157. 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);
  3158. 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);
  3159. 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);
  3160. 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);
  3161. 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);
  3162. 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);
  3163. 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);
  3164. 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);
  3165. 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);
  3166. 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);
  3167. 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);
  3168. 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);
  3169. 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);
  3170. 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);
  3171. 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);
  3172. 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);
  3173. 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);
  3174. 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);
  3175. 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);
  3176. 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);
  3177. 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);
  3178. 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);
  3179. 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);
  3180. 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);
  3181. 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);
  3182. 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);
  3183. 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);
  3184. 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);
  3185. 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);
  3186. 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);
  3187. 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);
  3188. 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);
  3189. 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);
  3190. 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);
  3191. 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);
  3192. 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);
  3193. 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);
  3194. 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);
  3195. 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);
  3196. 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);
  3197. 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);
  3198. 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);
  3199. 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);
  3200. 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);
  3201. 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);
  3202. 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);
  3203. 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);
  3204. 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);
  3205. 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);
  3206. 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);
  3207. 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);
  3208. 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);
  3209. 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);
  3210. 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);
  3211. 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);
  3212. 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);
  3213. 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);
  3214. 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);
  3215. 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);
  3216. 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);
  3217. 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);
  3218. 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);
  3219. 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);
  3220. 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);
  3221. 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);
  3222. 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);
  3223. 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);
  3224. 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);
  3225. 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);
  3226. 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);
  3227. 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);
  3228. 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);
  3229. 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);
  3230. 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);
  3231. 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);
  3232. 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);
  3233. 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);
  3234. 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);
  3235. 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);
  3236. 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);
  3237. 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);
  3238. 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);
  3239. 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);
  3240. 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);
  3241. 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);
  3242. 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);
  3243. 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);
  3244. 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);
  3245. 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);
  3246. 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);
  3247. 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);
  3248. 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);
  3249. 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);
  3250. 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);
  3251. 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);
  3252. 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);
  3253. 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);
  3254. 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);
  3255. 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);
  3256. 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);
  3257. 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);
  3258. 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);
  3259. 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);
  3260. 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);
  3261. 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);
  3262. 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);
  3263. 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);
  3264. 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);
  3265. 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);
  3266. 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);
  3267. 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);
  3268. 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);
  3269. 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);
  3270. 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);
  3271. COMMIT;
  3272. -- ----------------------------
  3273. -- Table structure for system_sensitive_word
  3274. -- ----------------------------
  3275. DROP TABLE IF EXISTS "system_sensitive_word";
  3276. CREATE TABLE "system_sensitive_word" (
  3277. "id" int8 NOT NULL,
  3278. "name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3279. "description" varchar(512) COLLATE "pg_catalog"."default",
  3280. "tags" varchar(255) COLLATE "pg_catalog"."default",
  3281. "status" int2 NOT NULL,
  3282. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3283. "create_time" timestamp(6) NOT NULL,
  3284. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3285. "update_time" timestamp(6) NOT NULL,
  3286. "deleted" int2 NOT NULL DEFAULT 0
  3287. )
  3288. ;
  3289. COMMENT ON COLUMN "system_sensitive_word"."id" IS '编号';
  3290. COMMENT ON COLUMN "system_sensitive_word"."name" IS '敏感词';
  3291. COMMENT ON COLUMN "system_sensitive_word"."description" IS '描述';
  3292. COMMENT ON COLUMN "system_sensitive_word"."tags" IS '标签数组';
  3293. COMMENT ON COLUMN "system_sensitive_word"."status" IS '状态';
  3294. COMMENT ON COLUMN "system_sensitive_word"."creator" IS '创建者';
  3295. COMMENT ON COLUMN "system_sensitive_word"."create_time" IS '创建时间';
  3296. COMMENT ON COLUMN "system_sensitive_word"."updater" IS '更新者';
  3297. COMMENT ON COLUMN "system_sensitive_word"."update_time" IS '更新时间';
  3298. COMMENT ON COLUMN "system_sensitive_word"."deleted" IS '是否删除';
  3299. COMMENT ON TABLE "system_sensitive_word" IS '敏感词';
  3300. -- ----------------------------
  3301. -- Records of system_sensitive_word
  3302. -- ----------------------------
  3303. BEGIN;
  3304. 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);
  3305. 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);
  3306. COMMIT;
  3307. -- ----------------------------
  3308. -- Table structure for system_sms_channel
  3309. -- ----------------------------
  3310. DROP TABLE IF EXISTS "system_sms_channel";
  3311. CREATE TABLE "system_sms_channel" (
  3312. "id" int8 NOT NULL,
  3313. "signature" varchar(12) COLLATE "pg_catalog"."default" NOT NULL,
  3314. "code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3315. "status" int2 NOT NULL,
  3316. "remark" varchar(255) COLLATE "pg_catalog"."default",
  3317. "api_key" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
  3318. "api_secret" varchar(128) COLLATE "pg_catalog"."default",
  3319. "callback_url" varchar(255) COLLATE "pg_catalog"."default",
  3320. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3321. "create_time" timestamp(6) NOT NULL,
  3322. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3323. "update_time" timestamp(6) NOT NULL,
  3324. "deleted" int2 NOT NULL DEFAULT 0
  3325. )
  3326. ;
  3327. COMMENT ON COLUMN "system_sms_channel"."id" IS '编号';
  3328. COMMENT ON COLUMN "system_sms_channel"."signature" IS '短信签名';
  3329. COMMENT ON COLUMN "system_sms_channel"."code" IS '渠道编码';
  3330. COMMENT ON COLUMN "system_sms_channel"."status" IS '开启状态';
  3331. COMMENT ON COLUMN "system_sms_channel"."remark" IS '备注';
  3332. COMMENT ON COLUMN "system_sms_channel"."api_key" IS '短信 API 的账号';
  3333. COMMENT ON COLUMN "system_sms_channel"."api_secret" IS '短信 API 的秘钥';
  3334. COMMENT ON COLUMN "system_sms_channel"."callback_url" IS '短信发送回调 URL';
  3335. COMMENT ON COLUMN "system_sms_channel"."creator" IS '创建者';
  3336. COMMENT ON COLUMN "system_sms_channel"."create_time" IS '创建时间';
  3337. COMMENT ON COLUMN "system_sms_channel"."updater" IS '更新者';
  3338. COMMENT ON COLUMN "system_sms_channel"."update_time" IS '更新时间';
  3339. COMMENT ON COLUMN "system_sms_channel"."deleted" IS '是否删除';
  3340. COMMENT ON TABLE "system_sms_channel" IS '短信渠道';
  3341. -- ----------------------------
  3342. -- Records of system_sms_channel
  3343. -- ----------------------------
  3344. BEGIN;
  3345. INSERT INTO "system_sms_channel" ("id", "signature", "code", "status", "remark", "api_key", "api_secret", "callback_url", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1, '芋道', 'YUN_PIAN', 0, '呵呵呵哒', '1555a14277cb8a608cf45a9e6a80d510', NULL, 'http://vdwapu.natappfree.cc/admin-api/system/sms/callback/yunpian', '', '2021-03-31 06:12:20', '1', '2022-02-23 16:48:44', 0);
  3346. 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);
  3347. 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);
  3348. 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);
  3349. COMMIT;
  3350. -- ----------------------------
  3351. -- Table structure for system_sms_code
  3352. -- ----------------------------
  3353. DROP TABLE IF EXISTS "system_sms_code";
  3354. CREATE TABLE "system_sms_code" (
  3355. "id" int8 NOT NULL,
  3356. "mobile" varchar(11) COLLATE "pg_catalog"."default" NOT NULL,
  3357. "code" varchar(6) COLLATE "pg_catalog"."default" NOT NULL,
  3358. "create_ip" varchar(15) COLLATE "pg_catalog"."default" NOT NULL,
  3359. "scene" int2 NOT NULL,
  3360. "today_index" int2 NOT NULL,
  3361. "used" bool NOT NULL,
  3362. "used_time" timestamp(6),
  3363. "used_ip" varchar(255) COLLATE "pg_catalog"."default",
  3364. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3365. "create_time" timestamp(6) NOT NULL,
  3366. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3367. "update_time" timestamp(6) NOT NULL,
  3368. "deleted" int2 NOT NULL DEFAULT 0,
  3369. "tenant_id" int8 NOT NULL DEFAULT 0
  3370. )
  3371. ;
  3372. COMMENT ON COLUMN "system_sms_code"."id" IS '编号';
  3373. COMMENT ON COLUMN "system_sms_code"."mobile" IS '手机号';
  3374. COMMENT ON COLUMN "system_sms_code"."code" IS '验证码';
  3375. COMMENT ON COLUMN "system_sms_code"."create_ip" IS '创建 IP';
  3376. COMMENT ON COLUMN "system_sms_code"."scene" IS '发送场景';
  3377. COMMENT ON COLUMN "system_sms_code"."today_index" IS '今日发送的第几条';
  3378. COMMENT ON COLUMN "system_sms_code"."used" IS '是否使用';
  3379. COMMENT ON COLUMN "system_sms_code"."used_time" IS '使用时间';
  3380. COMMENT ON COLUMN "system_sms_code"."used_ip" IS '使用 IP';
  3381. COMMENT ON COLUMN "system_sms_code"."creator" IS '创建者';
  3382. COMMENT ON COLUMN "system_sms_code"."create_time" IS '创建时间';
  3383. COMMENT ON COLUMN "system_sms_code"."updater" IS '更新者';
  3384. COMMENT ON COLUMN "system_sms_code"."update_time" IS '更新时间';
  3385. COMMENT ON COLUMN "system_sms_code"."deleted" IS '是否删除';
  3386. COMMENT ON COLUMN "system_sms_code"."tenant_id" IS '租户编号';
  3387. COMMENT ON TABLE "system_sms_code" IS '手机验证码';
  3388. -- ----------------------------
  3389. -- Records of system_sms_code
  3390. -- ----------------------------
  3391. BEGIN;
  3392. COMMIT;
  3393. -- ----------------------------
  3394. -- Table structure for system_sms_log
  3395. -- ----------------------------
  3396. DROP TABLE IF EXISTS "system_sms_log";
  3397. CREATE TABLE "system_sms_log" (
  3398. "id" int8 NOT NULL,
  3399. "channel_id" int8 NOT NULL,
  3400. "channel_code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3401. "template_id" int8 NOT NULL,
  3402. "template_code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3403. "template_type" int2 NOT NULL,
  3404. "template_content" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3405. "template_params" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3406. "api_template_id" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3407. "mobile" varchar(11) COLLATE "pg_catalog"."default" NOT NULL,
  3408. "user_id" int8,
  3409. "user_type" int2,
  3410. "send_status" int2 NOT NULL,
  3411. "send_time" timestamp(6),
  3412. "send_code" int4,
  3413. "send_msg" varchar(255) COLLATE "pg_catalog"."default",
  3414. "api_send_code" varchar(63) COLLATE "pg_catalog"."default",
  3415. "api_send_msg" varchar(255) COLLATE "pg_catalog"."default",
  3416. "api_request_id" varchar(255) COLLATE "pg_catalog"."default",
  3417. "api_serial_no" varchar(255) COLLATE "pg_catalog"."default",
  3418. "receive_status" int2 NOT NULL,
  3419. "receive_time" timestamp(6),
  3420. "api_receive_code" varchar(63) COLLATE "pg_catalog"."default",
  3421. "api_receive_msg" varchar(255) COLLATE "pg_catalog"."default",
  3422. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3423. "create_time" timestamp(6) NOT NULL,
  3424. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3425. "update_time" timestamp(6) NOT NULL,
  3426. "deleted" int2 NOT NULL DEFAULT 0
  3427. )
  3428. ;
  3429. COMMENT ON COLUMN "system_sms_log"."id" IS '编号';
  3430. COMMENT ON COLUMN "system_sms_log"."channel_id" IS '短信渠道编号';
  3431. COMMENT ON COLUMN "system_sms_log"."channel_code" IS '短信渠道编码';
  3432. COMMENT ON COLUMN "system_sms_log"."template_id" IS '模板编号';
  3433. COMMENT ON COLUMN "system_sms_log"."template_code" IS '模板编码';
  3434. COMMENT ON COLUMN "system_sms_log"."template_type" IS '短信类型';
  3435. COMMENT ON COLUMN "system_sms_log"."template_content" IS '短信内容';
  3436. COMMENT ON COLUMN "system_sms_log"."template_params" IS '短信参数';
  3437. COMMENT ON COLUMN "system_sms_log"."api_template_id" IS '短信 API 的模板编号';
  3438. COMMENT ON COLUMN "system_sms_log"."mobile" IS '手机号';
  3439. COMMENT ON COLUMN "system_sms_log"."user_id" IS '用户编号';
  3440. COMMENT ON COLUMN "system_sms_log"."user_type" IS '用户类型';
  3441. COMMENT ON COLUMN "system_sms_log"."send_status" IS '发送状态';
  3442. COMMENT ON COLUMN "system_sms_log"."send_time" IS '发送时间';
  3443. COMMENT ON COLUMN "system_sms_log"."send_code" IS '发送结果的编码';
  3444. COMMENT ON COLUMN "system_sms_log"."send_msg" IS '发送结果的提示';
  3445. COMMENT ON COLUMN "system_sms_log"."api_send_code" IS '短信 API 发送结果的编码';
  3446. COMMENT ON COLUMN "system_sms_log"."api_send_msg" IS '短信 API 发送失败的提示';
  3447. COMMENT ON COLUMN "system_sms_log"."api_request_id" IS '短信 API 发送返回的唯一请求 ID';
  3448. COMMENT ON COLUMN "system_sms_log"."api_serial_no" IS '短信 API 发送返回的序号';
  3449. COMMENT ON COLUMN "system_sms_log"."receive_status" IS '接收状态';
  3450. COMMENT ON COLUMN "system_sms_log"."receive_time" IS '接收时间';
  3451. COMMENT ON COLUMN "system_sms_log"."api_receive_code" IS 'API 接收结果的编码';
  3452. COMMENT ON COLUMN "system_sms_log"."api_receive_msg" IS 'API 接收结果的说明';
  3453. COMMENT ON COLUMN "system_sms_log"."creator" IS '创建者';
  3454. COMMENT ON COLUMN "system_sms_log"."create_time" IS '创建时间';
  3455. COMMENT ON COLUMN "system_sms_log"."updater" IS '更新者';
  3456. COMMENT ON COLUMN "system_sms_log"."update_time" IS '更新时间';
  3457. COMMENT ON COLUMN "system_sms_log"."deleted" IS '是否删除';
  3458. COMMENT ON TABLE "system_sms_log" IS '短信日志';
  3459. -- ----------------------------
  3460. -- Records of system_sms_log
  3461. -- ----------------------------
  3462. BEGIN;
  3463. COMMIT;
  3464. -- ----------------------------
  3465. -- Table structure for system_sms_template
  3466. -- ----------------------------
  3467. DROP TABLE IF EXISTS "system_sms_template";
  3468. CREATE TABLE "system_sms_template" (
  3469. "id" int8 NOT NULL,
  3470. "type" int2 NOT NULL,
  3471. "status" int2 NOT NULL,
  3472. "code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3473. "name" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3474. "content" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3475. "params" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  3476. "remark" varchar(255) COLLATE "pg_catalog"."default",
  3477. "api_template_id" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3478. "channel_id" int8 NOT NULL,
  3479. "channel_code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
  3480. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3481. "create_time" timestamp(6) NOT NULL,
  3482. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3483. "update_time" timestamp(6) NOT NULL,
  3484. "deleted" int2 NOT NULL DEFAULT 0
  3485. )
  3486. ;
  3487. COMMENT ON COLUMN "system_sms_template"."id" IS '编号';
  3488. COMMENT ON COLUMN "system_sms_template"."type" IS '短信签名';
  3489. COMMENT ON COLUMN "system_sms_template"."status" IS '开启状态';
  3490. COMMENT ON COLUMN "system_sms_template"."code" IS '模板编码';
  3491. COMMENT ON COLUMN "system_sms_template"."name" IS '模板名称';
  3492. COMMENT ON COLUMN "system_sms_template"."content" IS '模板内容';
  3493. COMMENT ON COLUMN "system_sms_template"."params" IS '参数数组';
  3494. COMMENT ON COLUMN "system_sms_template"."remark" IS '备注';
  3495. COMMENT ON COLUMN "system_sms_template"."api_template_id" IS '短信 API 的模板编号';
  3496. COMMENT ON COLUMN "system_sms_template"."channel_id" IS '短信渠道编号';
  3497. COMMENT ON COLUMN "system_sms_template"."channel_code" IS '短信渠道编码';
  3498. COMMENT ON COLUMN "system_sms_template"."creator" IS '创建者';
  3499. COMMENT ON COLUMN "system_sms_template"."create_time" IS '创建时间';
  3500. COMMENT ON COLUMN "system_sms_template"."updater" IS '更新者';
  3501. COMMENT ON COLUMN "system_sms_template"."update_time" IS '更新时间';
  3502. COMMENT ON COLUMN "system_sms_template"."deleted" IS '是否删除';
  3503. COMMENT ON TABLE "system_sms_template" IS '短信模板';
  3504. -- ----------------------------
  3505. -- Records of system_sms_template
  3506. -- ----------------------------
  3507. BEGIN;
  3508. 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);
  3509. 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);
  3510. 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);
  3511. 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);
  3512. 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);
  3513. 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);
  3514. 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);
  3515. 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);
  3516. 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);
  3517. 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);
  3518. COMMIT;
  3519. -- ----------------------------
  3520. -- Table structure for system_social_user
  3521. -- ----------------------------
  3522. DROP TABLE IF EXISTS "system_social_user";
  3523. CREATE TABLE "system_social_user" (
  3524. "id" numeric(20,0) NOT NULL,
  3525. "type" int2 NOT NULL,
  3526. "openid" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  3527. "token" varchar(256) COLLATE "pg_catalog"."default",
  3528. "raw_token_info" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  3529. "nickname" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
  3530. "avatar" varchar(255) COLLATE "pg_catalog"."default",
  3531. "raw_user_info" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
  3532. "code" varchar(256) COLLATE "pg_catalog"."default" NOT NULL,
  3533. "state" varchar(256) COLLATE "pg_catalog"."default",
  3534. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3535. "create_time" timestamp(6) NOT NULL,
  3536. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3537. "update_time" timestamp(6) NOT NULL,
  3538. "deleted" int2 NOT NULL DEFAULT 0,
  3539. "tenant_id" int8 NOT NULL DEFAULT 0
  3540. )
  3541. ;
  3542. COMMENT ON COLUMN "system_social_user"."id" IS '主键(自增策略)';
  3543. COMMENT ON COLUMN "system_social_user"."type" IS '社交平台的类型';
  3544. COMMENT ON COLUMN "system_social_user"."openid" IS '社交 openid';
  3545. COMMENT ON COLUMN "system_social_user"."token" IS '社交 token';
  3546. COMMENT ON COLUMN "system_social_user"."raw_token_info" IS '原始 Token 数据,一般是 JSON 格式';
  3547. COMMENT ON COLUMN "system_social_user"."nickname" IS '用户昵称';
  3548. COMMENT ON COLUMN "system_social_user"."avatar" IS '用户头像';
  3549. COMMENT ON COLUMN "system_social_user"."raw_user_info" IS '原始用户数据,一般是 JSON 格式';
  3550. COMMENT ON COLUMN "system_social_user"."code" IS '最后一次的认证 code';
  3551. COMMENT ON COLUMN "system_social_user"."state" IS '最后一次的认证 state';
  3552. COMMENT ON COLUMN "system_social_user"."creator" IS '创建者';
  3553. COMMENT ON COLUMN "system_social_user"."create_time" IS '创建时间';
  3554. COMMENT ON COLUMN "system_social_user"."updater" IS '更新者';
  3555. COMMENT ON COLUMN "system_social_user"."update_time" IS '更新时间';
  3556. COMMENT ON COLUMN "system_social_user"."deleted" IS '是否删除';
  3557. COMMENT ON COLUMN "system_social_user"."tenant_id" IS '租户编号';
  3558. COMMENT ON TABLE "system_social_user" IS '社交用户表';
  3559. -- ----------------------------
  3560. -- Records of system_social_user
  3561. -- ----------------------------
  3562. BEGIN;
  3563. COMMIT;
  3564. -- ----------------------------
  3565. -- Table structure for system_social_user_bind
  3566. -- ----------------------------
  3567. DROP TABLE IF EXISTS "system_social_user_bind";
  3568. CREATE TABLE "system_social_user_bind" (
  3569. "id" numeric(20,0) NOT NULL,
  3570. "user_id" int8 NOT NULL,
  3571. "user_type" int2 NOT NULL,
  3572. "social_type" int2 NOT NULL,
  3573. "social_user_id" int8 NOT NULL,
  3574. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3575. "create_time" timestamp(6) NOT NULL,
  3576. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3577. "update_time" timestamp(6) NOT NULL,
  3578. "deleted" int2 NOT NULL DEFAULT 0,
  3579. "tenant_id" int8 NOT NULL DEFAULT 0
  3580. )
  3581. ;
  3582. COMMENT ON COLUMN "system_social_user_bind"."id" IS '主键(自增策略)';
  3583. COMMENT ON COLUMN "system_social_user_bind"."user_id" IS '用户编号';
  3584. COMMENT ON COLUMN "system_social_user_bind"."user_type" IS '用户类型';
  3585. COMMENT ON COLUMN "system_social_user_bind"."social_type" IS '社交平台的类型';
  3586. COMMENT ON COLUMN "system_social_user_bind"."social_user_id" IS '社交用户的编号';
  3587. COMMENT ON COLUMN "system_social_user_bind"."creator" IS '创建者';
  3588. COMMENT ON COLUMN "system_social_user_bind"."create_time" IS '创建时间';
  3589. COMMENT ON COLUMN "system_social_user_bind"."updater" IS '更新者';
  3590. COMMENT ON COLUMN "system_social_user_bind"."update_time" IS '更新时间';
  3591. COMMENT ON COLUMN "system_social_user_bind"."deleted" IS '是否删除';
  3592. COMMENT ON COLUMN "system_social_user_bind"."tenant_id" IS '租户编号';
  3593. COMMENT ON TABLE "system_social_user_bind" IS '社交绑定表';
  3594. -- ----------------------------
  3595. -- Records of system_social_user_bind
  3596. -- ----------------------------
  3597. BEGIN;
  3598. COMMIT;
  3599. -- ----------------------------
  3600. -- Table structure for system_tenant
  3601. -- ----------------------------
  3602. DROP TABLE IF EXISTS "system_tenant";
  3603. CREATE TABLE "system_tenant" (
  3604. "id" int8 NOT NULL,
  3605. "name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  3606. "contact_user_id" int8,
  3607. "contact_name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  3608. "contact_mobile" varchar(500) COLLATE "pg_catalog"."default",
  3609. "status" int2 NOT NULL,
  3610. "domain" varchar(256) COLLATE "pg_catalog"."default",
  3611. "package_id" int8 NOT NULL,
  3612. "expire_time" timestamp(6) NOT NULL,
  3613. "account_count" int4 NOT NULL,
  3614. "creator" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  3615. "create_time" timestamp(6) NOT NULL,
  3616. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3617. "update_time" timestamp(6) NOT NULL,
  3618. "deleted" int2 NOT NULL DEFAULT 0
  3619. )
  3620. ;
  3621. COMMENT ON COLUMN "system_tenant"."id" IS '租户编号';
  3622. COMMENT ON COLUMN "system_tenant"."name" IS '租户名';
  3623. COMMENT ON COLUMN "system_tenant"."contact_user_id" IS '联系人的用户编号';
  3624. COMMENT ON COLUMN "system_tenant"."contact_name" IS '联系人';
  3625. COMMENT ON COLUMN "system_tenant"."contact_mobile" IS '联系手机';
  3626. COMMENT ON COLUMN "system_tenant"."status" IS '租户状态(0正常 1停用)';
  3627. COMMENT ON COLUMN "system_tenant"."domain" IS '绑定域名';
  3628. COMMENT ON COLUMN "system_tenant"."package_id" IS '租户套餐编号';
  3629. COMMENT ON COLUMN "system_tenant"."expire_time" IS '过期时间';
  3630. COMMENT ON COLUMN "system_tenant"."account_count" IS '账号数量';
  3631. COMMENT ON COLUMN "system_tenant"."creator" IS '创建者';
  3632. COMMENT ON COLUMN "system_tenant"."create_time" IS '创建时间';
  3633. COMMENT ON COLUMN "system_tenant"."updater" IS '更新者';
  3634. COMMENT ON COLUMN "system_tenant"."update_time" IS '更新时间';
  3635. COMMENT ON COLUMN "system_tenant"."deleted" IS '是否删除';
  3636. COMMENT ON TABLE "system_tenant" IS '租户表';
  3637. -- ----------------------------
  3638. -- Records of system_tenant
  3639. -- ----------------------------
  3640. BEGIN;
  3641. 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);
  3642. 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);
  3643. 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);
  3644. COMMIT;
  3645. -- ----------------------------
  3646. -- Table structure for system_tenant_package
  3647. -- ----------------------------
  3648. DROP TABLE IF EXISTS "system_tenant_package";
  3649. CREATE TABLE "system_tenant_package" (
  3650. "id" int8 NOT NULL,
  3651. "name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  3652. "status" int2 NOT NULL,
  3653. "remark" varchar(256) COLLATE "pg_catalog"."default",
  3654. "menu_ids" varchar(2048) COLLATE "pg_catalog"."default" NOT NULL,
  3655. "creator" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  3656. "create_time" timestamp(6) NOT NULL,
  3657. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3658. "update_time" timestamp(6) NOT NULL,
  3659. "deleted" int2 NOT NULL DEFAULT 0
  3660. )
  3661. ;
  3662. COMMENT ON COLUMN "system_tenant_package"."id" IS '套餐编号';
  3663. COMMENT ON COLUMN "system_tenant_package"."name" IS '套餐名';
  3664. COMMENT ON COLUMN "system_tenant_package"."status" IS '租户状态(0正常 1停用)';
  3665. COMMENT ON COLUMN "system_tenant_package"."remark" IS '备注';
  3666. COMMENT ON COLUMN "system_tenant_package"."menu_ids" IS '关联的菜单编号';
  3667. COMMENT ON COLUMN "system_tenant_package"."creator" IS '创建者';
  3668. COMMENT ON COLUMN "system_tenant_package"."create_time" IS '创建时间';
  3669. COMMENT ON COLUMN "system_tenant_package"."updater" IS '更新者';
  3670. COMMENT ON COLUMN "system_tenant_package"."update_time" IS '更新时间';
  3671. COMMENT ON COLUMN "system_tenant_package"."deleted" IS '是否删除';
  3672. COMMENT ON TABLE "system_tenant_package" IS '租户套餐表';
  3673. -- ----------------------------
  3674. -- Records of system_tenant_package
  3675. -- ----------------------------
  3676. BEGIN;
  3677. 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);
  3678. COMMIT;
  3679. -- ----------------------------
  3680. -- Table structure for system_user_post
  3681. -- ----------------------------
  3682. DROP TABLE IF EXISTS "system_user_post";
  3683. CREATE TABLE "system_user_post" (
  3684. "id" int8 NOT NULL,
  3685. "user_id" int8 NOT NULL,
  3686. "post_id" int8 NOT NULL,
  3687. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3688. "create_time" timestamp(6) NOT NULL,
  3689. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3690. "update_time" timestamp(6) NOT NULL,
  3691. "tenant_id" int8 NOT NULL,
  3692. "deleted" int2 NOT NULL DEFAULT 0
  3693. )
  3694. ;
  3695. COMMENT ON COLUMN "system_user_post"."id" IS 'id';
  3696. COMMENT ON COLUMN "system_user_post"."user_id" IS '用户ID';
  3697. COMMENT ON COLUMN "system_user_post"."post_id" IS '岗位ID';
  3698. COMMENT ON COLUMN "system_user_post"."creator" IS '创建者';
  3699. COMMENT ON COLUMN "system_user_post"."create_time" IS '创建时间';
  3700. COMMENT ON COLUMN "system_user_post"."updater" IS '更新者';
  3701. COMMENT ON COLUMN "system_user_post"."update_time" IS '更新时间';
  3702. COMMENT ON COLUMN "system_user_post"."tenant_id" IS '租户编号';
  3703. COMMENT ON COLUMN "system_user_post"."deleted" IS '是否删除';
  3704. COMMENT ON TABLE "system_user_post" IS '用户岗位表';
  3705. -- ----------------------------
  3706. -- Records of system_user_post
  3707. -- ----------------------------
  3708. BEGIN;
  3709. 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);
  3710. 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);
  3711. 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);
  3712. COMMIT;
  3713. -- ----------------------------
  3714. -- Table structure for system_user_role
  3715. -- ----------------------------
  3716. DROP TABLE IF EXISTS "system_user_role";
  3717. CREATE TABLE "system_user_role" (
  3718. "id" int8 NOT NULL,
  3719. "user_id" int8 NOT NULL,
  3720. "role_id" int8 NOT NULL,
  3721. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3722. "create_time" timestamp(6),
  3723. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3724. "update_time" timestamp(6),
  3725. "deleted" int2 NOT NULL DEFAULT 0,
  3726. "tenant_id" int8 NOT NULL DEFAULT 0
  3727. )
  3728. ;
  3729. COMMENT ON COLUMN "system_user_role"."id" IS '自增编号';
  3730. COMMENT ON COLUMN "system_user_role"."user_id" IS '用户ID';
  3731. COMMENT ON COLUMN "system_user_role"."role_id" IS '角色ID';
  3732. COMMENT ON COLUMN "system_user_role"."creator" IS '创建者';
  3733. COMMENT ON COLUMN "system_user_role"."create_time" IS '创建时间';
  3734. COMMENT ON COLUMN "system_user_role"."updater" IS '更新者';
  3735. COMMENT ON COLUMN "system_user_role"."update_time" IS '更新时间';
  3736. COMMENT ON COLUMN "system_user_role"."deleted" IS '是否删除';
  3737. COMMENT ON COLUMN "system_user_role"."tenant_id" IS '租户编号';
  3738. COMMENT ON TABLE "system_user_role" IS '用户和角色关联表';
  3739. -- ----------------------------
  3740. -- Records of system_user_role
  3741. -- ----------------------------
  3742. BEGIN;
  3743. 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);
  3744. 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);
  3745. 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);
  3746. 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);
  3747. 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);
  3748. 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);
  3749. 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);
  3750. 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);
  3751. 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);
  3752. 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);
  3753. 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);
  3754. 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);
  3755. 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);
  3756. 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);
  3757. 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);
  3758. COMMIT;
  3759. -- ----------------------------
  3760. -- Table structure for system_users
  3761. -- ----------------------------
  3762. DROP TABLE IF EXISTS "system_users";
  3763. CREATE TABLE "system_users" (
  3764. "id" int8 NOT NULL,
  3765. "username" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  3766. "password" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
  3767. "nickname" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  3768. "remark" varchar(500) COLLATE "pg_catalog"."default",
  3769. "dept_id" int8,
  3770. "post_ids" varchar(255) COLLATE "pg_catalog"."default",
  3771. "email" varchar(50) COLLATE "pg_catalog"."default",
  3772. "mobile" varchar(11) COLLATE "pg_catalog"."default",
  3773. "sex" int2,
  3774. "avatar" varchar(100) COLLATE "pg_catalog"."default",
  3775. "status" int2 NOT NULL,
  3776. "login_ip" varchar(50) COLLATE "pg_catalog"."default",
  3777. "login_date" timestamp(6),
  3778. "creator" varchar(64) COLLATE "pg_catalog"."default",
  3779. "create_time" timestamp(6) NOT NULL,
  3780. "updater" varchar(64) COLLATE "pg_catalog"."default",
  3781. "update_time" timestamp(6) NOT NULL,
  3782. "deleted" int2 NOT NULL DEFAULT 0,
  3783. "tenant_id" int8 NOT NULL DEFAULT 0
  3784. )
  3785. ;
  3786. COMMENT ON COLUMN "system_users"."id" IS '用户ID';
  3787. COMMENT ON COLUMN "system_users"."username" IS '用户账号';
  3788. COMMENT ON COLUMN "system_users"."password" IS '密码';
  3789. COMMENT ON COLUMN "system_users"."nickname" IS '用户昵称';
  3790. COMMENT ON COLUMN "system_users"."remark" IS '备注';
  3791. COMMENT ON COLUMN "system_users"."dept_id" IS '部门ID';
  3792. COMMENT ON COLUMN "system_users"."post_ids" IS '岗位编号数组';
  3793. COMMENT ON COLUMN "system_users"."email" IS '用户邮箱';
  3794. COMMENT ON COLUMN "system_users"."mobile" IS '手机号码';
  3795. COMMENT ON COLUMN "system_users"."sex" IS '用户性别';
  3796. COMMENT ON COLUMN "system_users"."avatar" IS '头像地址';
  3797. COMMENT ON COLUMN "system_users"."status" IS '帐号状态(0正常 1停用)';
  3798. COMMENT ON COLUMN "system_users"."login_ip" IS '最后登录IP';
  3799. COMMENT ON COLUMN "system_users"."login_date" IS '最后登录时间';
  3800. COMMENT ON COLUMN "system_users"."creator" IS '创建者';
  3801. COMMENT ON COLUMN "system_users"."create_time" IS '创建时间';
  3802. COMMENT ON COLUMN "system_users"."updater" IS '更新者';
  3803. COMMENT ON COLUMN "system_users"."update_time" IS '更新时间';
  3804. COMMENT ON COLUMN "system_users"."deleted" IS '是否删除';
  3805. COMMENT ON COLUMN "system_users"."tenant_id" IS '租户编号';
  3806. COMMENT ON TABLE "system_users" IS '用户信息表';
  3807. -- ----------------------------
  3808. -- Records of system_users
  3809. -- ----------------------------
  3810. BEGIN;
  3811. 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, 'patrol', '$2a$10$11U48RhyJ5pSBYWSn12AD./ld671.ycSzJHbyrtpeoMeYiw31eo8a', '芋道', '不要吓我', 104, '[1]', 'patrol@iocoder.cn', '15601691300', 1, '', 1, '', NULL, '', '2021-01-07 09:07:17', '104', '2021-12-16 09:26:10', 0, 1);
  3812. 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);
  3813. 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);
  3814. 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);
  3815. 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);
  3816. 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);
  3817. 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);
  3818. 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);
  3819. 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);
  3820. 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);
  3821. 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);
  3822. 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);
  3823. 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.patrol.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);
  3824. COMMIT;
  3825. -- ----------------------------
  3826. -- Alter sequences owned by
  3827. -- ----------------------------
  3828. -- ----------------------------
  3829. -- Alter sequences owned by
  3830. -- ----------------------------
  3831. SELECT setval('"bpm_oa_leave_seq"', 1, true);
  3832. -- ----------------------------
  3833. -- Alter sequences owned by
  3834. -- ----------------------------
  3835. -- ----------------------------
  3836. -- Alter sequences owned by
  3837. -- ----------------------------
  3838. -- ----------------------------
  3839. -- Alter sequences owned by
  3840. -- ----------------------------
  3841. SELECT setval('"bpm_task_assign_rule_seq"', 1, true);
  3842. -- ----------------------------
  3843. -- Alter sequences owned by
  3844. -- ----------------------------
  3845. -- ----------------------------
  3846. -- Alter sequences owned by
  3847. -- ----------------------------
  3848. -- ----------------------------
  3849. -- Alter sequences owned by
  3850. -- ----------------------------
  3851. SELECT setval('"infra_api_access_log_seq"', 537, true);
  3852. -- ----------------------------
  3853. -- Alter sequences owned by
  3854. -- ----------------------------
  3855. SELECT setval('"infra_api_error_log_seq"', 73, true);
  3856. -- ----------------------------
  3857. -- Alter sequences owned by
  3858. -- ----------------------------
  3859. -- ----------------------------
  3860. -- Alter sequences owned by
  3861. -- ----------------------------
  3862. -- ----------------------------
  3863. -- Alter sequences owned by
  3864. -- ----------------------------
  3865. -- ----------------------------
  3866. -- Alter sequences owned by
  3867. -- ----------------------------
  3868. -- ----------------------------
  3869. -- Alter sequences owned by
  3870. -- ----------------------------
  3871. -- ----------------------------
  3872. -- Alter sequences owned by
  3873. -- ----------------------------
  3874. -- ----------------------------
  3875. -- Alter sequences owned by
  3876. -- ----------------------------
  3877. -- ----------------------------
  3878. -- Alter sequences owned by
  3879. -- ----------------------------
  3880. SELECT setval('"infra_job_log_seq"', 1, true);
  3881. -- ----------------------------
  3882. -- Alter sequences owned by
  3883. -- ----------------------------
  3884. SELECT setval('"infra_job_seq"', 2, true);
  3885. -- ----------------------------
  3886. -- Alter sequences owned by
  3887. -- ----------------------------
  3888. -- ----------------------------
  3889. -- Alter sequences owned by
  3890. -- ----------------------------
  3891. -- ----------------------------
  3892. -- Alter sequences owned by
  3893. -- ----------------------------
  3894. -- ----------------------------
  3895. -- Alter sequences owned by
  3896. -- ----------------------------
  3897. -- ----------------------------
  3898. -- Alter sequences owned by
  3899. -- ----------------------------
  3900. -- ----------------------------
  3901. -- Alter sequences owned by
  3902. -- ----------------------------
  3903. -- ----------------------------
  3904. -- Alter sequences owned by
  3905. -- ----------------------------
  3906. -- ----------------------------
  3907. -- Alter sequences owned by
  3908. -- ----------------------------
  3909. -- ----------------------------
  3910. -- Alter sequences owned by
  3911. -- ----------------------------
  3912. -- ----------------------------
  3913. -- Alter sequences owned by
  3914. -- ----------------------------
  3915. -- ----------------------------
  3916. -- Alter sequences owned by
  3917. -- ----------------------------
  3918. -- ----------------------------
  3919. -- Alter sequences owned by
  3920. -- ----------------------------
  3921. -- ----------------------------
  3922. -- Alter sequences owned by
  3923. -- ----------------------------
  3924. -- ----------------------------
  3925. -- Alter sequences owned by
  3926. -- ----------------------------
  3927. SELECT setval('"system_error_code_seq"', 186, true);
  3928. -- ----------------------------
  3929. -- Alter sequences owned by
  3930. -- ----------------------------
  3931. SELECT setval('"system_login_log_seq"', 23, true);
  3932. -- ----------------------------
  3933. -- Alter sequences owned by
  3934. -- ----------------------------
  3935. -- ----------------------------
  3936. -- Alter sequences owned by
  3937. -- ----------------------------
  3938. -- ----------------------------
  3939. -- Alter sequences owned by
  3940. -- ----------------------------
  3941. SELECT setval('"system_oauth2_access_token_seq"', 11, true);
  3942. -- ----------------------------
  3943. -- Alter sequences owned by
  3944. -- ----------------------------
  3945. SELECT setval('"system_oauth2_approve_seq"', 4, true);
  3946. -- ----------------------------
  3947. -- Alter sequences owned by
  3948. -- ----------------------------
  3949. SELECT setval('"system_oauth2_client_seq"', 1, false);
  3950. -- ----------------------------
  3951. -- Alter sequences owned by
  3952. -- ----------------------------
  3953. SELECT setval('"system_oauth2_code_seq"', 4, true);
  3954. -- ----------------------------
  3955. -- Alter sequences owned by
  3956. -- ----------------------------
  3957. SELECT setval('"system_oauth2_refresh_token_seq"', 1, true);
  3958. -- ----------------------------
  3959. -- Alter sequences owned by
  3960. -- ----------------------------
  3961. SELECT setval('"system_operate_log_seq"', 44, true);
  3962. -- ----------------------------
  3963. -- Alter sequences owned by
  3964. -- ----------------------------
  3965. -- ----------------------------
  3966. -- Alter sequences owned by
  3967. -- ----------------------------
  3968. -- ----------------------------
  3969. -- Alter sequences owned by
  3970. -- ----------------------------
  3971. -- ----------------------------
  3972. -- Alter sequences owned by
  3973. -- ----------------------------
  3974. -- ----------------------------
  3975. -- Alter sequences owned by
  3976. -- ----------------------------
  3977. -- ----------------------------
  3978. -- Alter sequences owned by
  3979. -- ----------------------------
  3980. -- ----------------------------
  3981. -- Alter sequences owned by
  3982. -- ----------------------------
  3983. SELECT setval('"system_sms_log_seq"', 1, true);
  3984. -- ----------------------------
  3985. -- Alter sequences owned by
  3986. -- ----------------------------
  3987. -- ----------------------------
  3988. -- Alter sequences owned by
  3989. -- ----------------------------
  3990. -- ----------------------------
  3991. -- Alter sequences owned by
  3992. -- ----------------------------
  3993. -- ----------------------------
  3994. -- Alter sequences owned by
  3995. -- ----------------------------
  3996. -- ----------------------------
  3997. -- Alter sequences owned by
  3998. -- ----------------------------
  3999. -- ----------------------------
  4000. -- Alter sequences owned by
  4001. -- ----------------------------
  4002. -- ----------------------------
  4003. -- Alter sequences owned by
  4004. -- ----------------------------
  4005. -- ----------------------------
  4006. -- Alter sequences owned by
  4007. -- ----------------------------
  4008. -- ----------------------------
  4009. -- Primary Key structure for table bpm_form
  4010. -- ----------------------------
  4011. ALTER TABLE "bpm_form" ADD CONSTRAINT "bpm_form_pkey" PRIMARY KEY ("id");
  4012. -- ----------------------------
  4013. -- Primary Key structure for table bpm_oa_leave
  4014. -- ----------------------------
  4015. ALTER TABLE "bpm_oa_leave" ADD CONSTRAINT "bpm_oa_leave_pkey" PRIMARY KEY ("id");
  4016. -- ----------------------------
  4017. -- Primary Key structure for table bpm_process_definition_ext
  4018. -- ----------------------------
  4019. ALTER TABLE "bpm_process_definition_ext" ADD CONSTRAINT "bpm_process_definition_ext_pkey" PRIMARY KEY ("id");
  4020. -- ----------------------------
  4021. -- Primary Key structure for table bpm_process_instance_ext
  4022. -- ----------------------------
  4023. ALTER TABLE "bpm_process_instance_ext" ADD CONSTRAINT "bpm_process_instance_ext_pkey" PRIMARY KEY ("id");
  4024. -- ----------------------------
  4025. -- Primary Key structure for table bpm_task_assign_rule
  4026. -- ----------------------------
  4027. ALTER TABLE "bpm_task_assign_rule" ADD CONSTRAINT "bpm_task_assign_rule_pkey" PRIMARY KEY ("id");
  4028. -- ----------------------------
  4029. -- Primary Key structure for table bpm_task_ext
  4030. -- ----------------------------
  4031. ALTER TABLE "bpm_task_ext" ADD CONSTRAINT "bpm_task_ext_pkey" PRIMARY KEY ("id");
  4032. -- ----------------------------
  4033. -- Primary Key structure for table bpm_user_group
  4034. -- ----------------------------
  4035. ALTER TABLE "bpm_user_group" ADD CONSTRAINT "bpm_user_group_pkey" PRIMARY KEY ("id");
  4036. -- ----------------------------
  4037. -- Primary Key structure for table infra_api_access_log
  4038. -- ----------------------------
  4039. ALTER TABLE "infra_api_access_log" ADD CONSTRAINT "infra_api_access_log_pkey" PRIMARY KEY ("id");
  4040. -- ----------------------------
  4041. -- Primary Key structure for table infra_api_error_log
  4042. -- ----------------------------
  4043. ALTER TABLE "infra_api_error_log" ADD CONSTRAINT "infra_api_error_log_pkey" PRIMARY KEY ("id");
  4044. -- ----------------------------
  4045. -- Primary Key structure for table infra_codegen_column
  4046. -- ----------------------------
  4047. ALTER TABLE "infra_codegen_column" ADD CONSTRAINT "infra_codegen_column_pkey" PRIMARY KEY ("id");
  4048. -- ----------------------------
  4049. -- Primary Key structure for table infra_codegen_table
  4050. -- ----------------------------
  4051. ALTER TABLE "infra_codegen_table" ADD CONSTRAINT "infra_codegen_table_pkey" PRIMARY KEY ("id");
  4052. -- ----------------------------
  4053. -- Primary Key structure for table infra_config
  4054. -- ----------------------------
  4055. ALTER TABLE "infra_config" ADD CONSTRAINT "infra_config_pkey" PRIMARY KEY ("id");
  4056. -- ----------------------------
  4057. -- Primary Key structure for table infra_data_source_config
  4058. -- ----------------------------
  4059. ALTER TABLE "infra_data_source_config" ADD CONSTRAINT "infra_data_source_config_pkey" PRIMARY KEY ("id");
  4060. -- ----------------------------
  4061. -- Primary Key structure for table infra_file
  4062. -- ----------------------------
  4063. ALTER TABLE "infra_file" ADD CONSTRAINT "infra_file_pkey" PRIMARY KEY ("id");
  4064. -- ----------------------------
  4065. -- Primary Key structure for table infra_file_config
  4066. -- ----------------------------
  4067. ALTER TABLE "infra_file_config" ADD CONSTRAINT "infra_file_config_pkey" PRIMARY KEY ("id");
  4068. -- ----------------------------
  4069. -- Primary Key structure for table infra_file_content
  4070. -- ----------------------------
  4071. ALTER TABLE "infra_file_content" ADD CONSTRAINT "infra_file_content_pkey" PRIMARY KEY ("id");
  4072. -- ----------------------------
  4073. -- Primary Key structure for table infra_job
  4074. -- ----------------------------
  4075. ALTER TABLE "infra_job" ADD CONSTRAINT "infra_job_pkey" PRIMARY KEY ("id");
  4076. -- ----------------------------
  4077. -- Primary Key structure for table infra_job_log
  4078. -- ----------------------------
  4079. ALTER TABLE "infra_job_log" ADD CONSTRAINT "infra_job_log_pkey" PRIMARY KEY ("id");
  4080. -- ----------------------------
  4081. -- Primary Key structure for table infra_test_demo
  4082. -- ----------------------------
  4083. ALTER TABLE "infra_test_demo" ADD CONSTRAINT "infra_test_demo_pkey" PRIMARY KEY ("id");
  4084. -- ----------------------------
  4085. -- Indexes structure for table member_user
  4086. -- ----------------------------
  4087. CREATE UNIQUE INDEX "uk_mobile" ON "member_user" USING btree (
  4088. "mobile" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4089. );
  4090. COMMENT ON INDEX "uk_mobile" IS '手机号';
  4091. -- ----------------------------
  4092. -- Primary Key structure for table member_user
  4093. -- ----------------------------
  4094. ALTER TABLE "member_user" ADD CONSTRAINT "member_user_pkey" PRIMARY KEY ("id");
  4095. -- ----------------------------
  4096. -- Primary Key structure for table pay_app
  4097. -- ----------------------------
  4098. ALTER TABLE "pay_app" ADD CONSTRAINT "pay_app_pkey" PRIMARY KEY ("id");
  4099. -- ----------------------------
  4100. -- Primary Key structure for table pay_channel
  4101. -- ----------------------------
  4102. ALTER TABLE "pay_channel" ADD CONSTRAINT "pay_channel_pkey" PRIMARY KEY ("id");
  4103. -- ----------------------------
  4104. -- Primary Key structure for table pay_merchant
  4105. -- ----------------------------
  4106. ALTER TABLE "pay_merchant" ADD CONSTRAINT "pay_merchant_pkey" PRIMARY KEY ("id");
  4107. -- ----------------------------
  4108. -- Primary Key structure for table pay_notify_log
  4109. -- ----------------------------
  4110. ALTER TABLE "pay_notify_log" ADD CONSTRAINT "pay_notify_log_pkey" PRIMARY KEY ("id");
  4111. -- ----------------------------
  4112. -- Primary Key structure for table pay_notify_task
  4113. -- ----------------------------
  4114. ALTER TABLE "pay_notify_task" ADD CONSTRAINT "pay_notify_task_pkey" PRIMARY KEY ("id");
  4115. -- ----------------------------
  4116. -- Primary Key structure for table pay_order
  4117. -- ----------------------------
  4118. ALTER TABLE "pay_order" ADD CONSTRAINT "pay_order_pkey" PRIMARY KEY ("id");
  4119. -- ----------------------------
  4120. -- Primary Key structure for table pay_order_extension
  4121. -- ----------------------------
  4122. ALTER TABLE "pay_order_extension" ADD CONSTRAINT "pay_order_extension_pkey" PRIMARY KEY ("id");
  4123. -- ----------------------------
  4124. -- Primary Key structure for table pay_refund
  4125. -- ----------------------------
  4126. ALTER TABLE "pay_refund" ADD CONSTRAINT "pay_refund_pkey" PRIMARY KEY ("id");
  4127. -- ----------------------------
  4128. -- Primary Key structure for table qrtz_blob_triggers
  4129. -- ----------------------------
  4130. ALTER TABLE "qrtz_blob_triggers" ADD CONSTRAINT "qrtz_blob_triggers_pkey" PRIMARY KEY ("sched_name", "trigger_name", "trigger_group");
  4131. -- ----------------------------
  4132. -- Primary Key structure for table qrtz_calendars
  4133. -- ----------------------------
  4134. ALTER TABLE "qrtz_calendars" ADD CONSTRAINT "qrtz_calendars_pkey" PRIMARY KEY ("sched_name", "calendar_name");
  4135. -- ----------------------------
  4136. -- Primary Key structure for table qrtz_cron_triggers
  4137. -- ----------------------------
  4138. ALTER TABLE "qrtz_cron_triggers" ADD CONSTRAINT "qrtz_cron_triggers_pkey" PRIMARY KEY ("sched_name", "trigger_name", "trigger_group");
  4139. -- ----------------------------
  4140. -- Indexes structure for table qrtz_fired_triggers
  4141. -- ----------------------------
  4142. CREATE INDEX "idx_qrtz_ft_inst_job_req_rcvry" ON "qrtz_fired_triggers" USING btree (
  4143. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4144. "instance_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4145. "requests_recovery" "pg_catalog"."bool_ops" ASC NULLS LAST
  4146. );
  4147. CREATE INDEX "idx_qrtz_ft_j_g" ON "qrtz_fired_triggers" USING btree (
  4148. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4149. "job_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4150. "job_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4151. );
  4152. CREATE INDEX "idx_qrtz_ft_jg" ON "qrtz_fired_triggers" USING btree (
  4153. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4154. "job_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4155. );
  4156. CREATE INDEX "idx_qrtz_ft_t_g" ON "qrtz_fired_triggers" USING btree (
  4157. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4158. "trigger_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4159. "trigger_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4160. );
  4161. CREATE INDEX "idx_qrtz_ft_tg" ON "qrtz_fired_triggers" USING btree (
  4162. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4163. "trigger_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4164. );
  4165. CREATE INDEX "idx_qrtz_ft_trig_inst_name" ON "qrtz_fired_triggers" USING btree (
  4166. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4167. "instance_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4168. );
  4169. -- ----------------------------
  4170. -- Primary Key structure for table qrtz_fired_triggers
  4171. -- ----------------------------
  4172. ALTER TABLE "qrtz_fired_triggers" ADD CONSTRAINT "qrtz_fired_triggers_pkey" PRIMARY KEY ("sched_name", "entry_id");
  4173. -- ----------------------------
  4174. -- Indexes structure for table qrtz_job_details
  4175. -- ----------------------------
  4176. CREATE INDEX "idx_qrtz_j_grp" ON "qrtz_job_details" USING btree (
  4177. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4178. "job_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4179. );
  4180. CREATE INDEX "idx_qrtz_j_req_recovery" ON "qrtz_job_details" USING btree (
  4181. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4182. "requests_recovery" "pg_catalog"."bool_ops" ASC NULLS LAST
  4183. );
  4184. -- ----------------------------
  4185. -- Primary Key structure for table qrtz_job_details
  4186. -- ----------------------------
  4187. ALTER TABLE "qrtz_job_details" ADD CONSTRAINT "qrtz_job_details_pkey" PRIMARY KEY ("sched_name", "job_name", "job_group");
  4188. -- ----------------------------
  4189. -- Primary Key structure for table qrtz_locks
  4190. -- ----------------------------
  4191. ALTER TABLE "qrtz_locks" ADD CONSTRAINT "qrtz_locks_pkey" PRIMARY KEY ("sched_name", "lock_name");
  4192. -- ----------------------------
  4193. -- Primary Key structure for table qrtz_paused_trigger_grps
  4194. -- ----------------------------
  4195. ALTER TABLE "qrtz_paused_trigger_grps" ADD CONSTRAINT "qrtz_paused_trigger_grps_pkey" PRIMARY KEY ("sched_name", "trigger_group");
  4196. -- ----------------------------
  4197. -- Primary Key structure for table qrtz_scheduler_state
  4198. -- ----------------------------
  4199. ALTER TABLE "qrtz_scheduler_state" ADD CONSTRAINT "qrtz_scheduler_state_pkey" PRIMARY KEY ("sched_name", "instance_name");
  4200. -- ----------------------------
  4201. -- Primary Key structure for table qrtz_simple_triggers
  4202. -- ----------------------------
  4203. ALTER TABLE "qrtz_simple_triggers" ADD CONSTRAINT "qrtz_simple_triggers_pkey" PRIMARY KEY ("sched_name", "trigger_name", "trigger_group");
  4204. -- ----------------------------
  4205. -- Primary Key structure for table qrtz_simprop_triggers
  4206. -- ----------------------------
  4207. ALTER TABLE "qrtz_simprop_triggers" ADD CONSTRAINT "qrtz_simprop_triggers_pkey" PRIMARY KEY ("sched_name", "trigger_name", "trigger_group");
  4208. -- ----------------------------
  4209. -- Indexes structure for table qrtz_triggers
  4210. -- ----------------------------
  4211. CREATE INDEX "idx_qrtz_t_c" ON "qrtz_triggers" USING btree (
  4212. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4213. "calendar_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4214. );
  4215. CREATE INDEX "idx_qrtz_t_g" ON "qrtz_triggers" USING btree (
  4216. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4217. "trigger_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4218. );
  4219. CREATE INDEX "idx_qrtz_t_j" ON "qrtz_triggers" USING btree (
  4220. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4221. "job_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4222. "job_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4223. );
  4224. CREATE INDEX "idx_qrtz_t_jg" ON "qrtz_triggers" USING btree (
  4225. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4226. "job_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4227. );
  4228. CREATE INDEX "idx_qrtz_t_n_g_state" ON "qrtz_triggers" USING btree (
  4229. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4230. "trigger_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4231. "trigger_state" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4232. );
  4233. CREATE INDEX "idx_qrtz_t_n_state" ON "qrtz_triggers" USING btree (
  4234. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4235. "trigger_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4236. "trigger_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4237. "trigger_state" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4238. );
  4239. CREATE INDEX "idx_qrtz_t_next_fire_time" ON "qrtz_triggers" USING btree (
  4240. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4241. "next_fire_time" "pg_catalog"."int8_ops" ASC NULLS LAST
  4242. );
  4243. CREATE INDEX "idx_qrtz_t_nft_misfire" ON "qrtz_triggers" USING btree (
  4244. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4245. "misfire_instr" "pg_catalog"."int2_ops" ASC NULLS LAST,
  4246. "next_fire_time" "pg_catalog"."int8_ops" ASC NULLS LAST
  4247. );
  4248. CREATE INDEX "idx_qrtz_t_nft_st" ON "qrtz_triggers" USING btree (
  4249. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4250. "trigger_state" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4251. "next_fire_time" "pg_catalog"."int8_ops" ASC NULLS LAST
  4252. );
  4253. CREATE INDEX "idx_qrtz_t_nft_st_misfire" ON "qrtz_triggers" USING btree (
  4254. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4255. "misfire_instr" "pg_catalog"."int2_ops" ASC NULLS LAST,
  4256. "next_fire_time" "pg_catalog"."int8_ops" ASC NULLS LAST,
  4257. "trigger_state" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4258. );
  4259. CREATE INDEX "idx_qrtz_t_nft_st_misfire_grp" ON "qrtz_triggers" USING btree (
  4260. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4261. "misfire_instr" "pg_catalog"."int2_ops" ASC NULLS LAST,
  4262. "next_fire_time" "pg_catalog"."int8_ops" ASC NULLS LAST,
  4263. "trigger_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4264. "trigger_state" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4265. );
  4266. CREATE INDEX "idx_qrtz_t_state" ON "qrtz_triggers" USING btree (
  4267. "sched_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4268. "trigger_state" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4269. );
  4270. -- ----------------------------
  4271. -- Primary Key structure for table qrtz_triggers
  4272. -- ----------------------------
  4273. ALTER TABLE "qrtz_triggers" ADD CONSTRAINT "qrtz_triggers_pkey" PRIMARY KEY ("sched_name", "trigger_name", "trigger_group");
  4274. -- ----------------------------
  4275. -- Primary Key structure for table system_dept
  4276. -- ----------------------------
  4277. ALTER TABLE "system_dept" ADD CONSTRAINT "system_dept_pkey" PRIMARY KEY ("id");
  4278. -- ----------------------------
  4279. -- Primary Key structure for table system_dict_data
  4280. -- ----------------------------
  4281. ALTER TABLE "system_dict_data" ADD CONSTRAINT "system_dict_data_pkey" PRIMARY KEY ("id");
  4282. -- ----------------------------
  4283. -- Indexes structure for table system_dict_type
  4284. -- ----------------------------
  4285. CREATE UNIQUE INDEX "dict_type" ON "system_dict_type" USING btree (
  4286. "type" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4287. );
  4288. -- ----------------------------
  4289. -- Primary Key structure for table system_dict_type
  4290. -- ----------------------------
  4291. ALTER TABLE "system_dict_type" ADD CONSTRAINT "system_dict_type_pkey" PRIMARY KEY ("id");
  4292. -- ----------------------------
  4293. -- Primary Key structure for table system_error_code
  4294. -- ----------------------------
  4295. ALTER TABLE "system_error_code" ADD CONSTRAINT "system_error_code_pkey" PRIMARY KEY ("id");
  4296. -- ----------------------------
  4297. -- Primary Key structure for table system_login_log
  4298. -- ----------------------------
  4299. ALTER TABLE "system_login_log" ADD CONSTRAINT "system_login_log_pkey" PRIMARY KEY ("id");
  4300. -- ----------------------------
  4301. -- Primary Key structure for table system_menu
  4302. -- ----------------------------
  4303. ALTER TABLE "system_menu" ADD CONSTRAINT "system_menu_pkey" PRIMARY KEY ("id");
  4304. -- ----------------------------
  4305. -- Primary Key structure for table system_notice
  4306. -- ----------------------------
  4307. ALTER TABLE "system_notice" ADD CONSTRAINT "system_notice_pkey" PRIMARY KEY ("id");
  4308. -- ----------------------------
  4309. -- Primary Key structure for table system_oauth2_access_token
  4310. -- ----------------------------
  4311. ALTER TABLE "system_oauth2_access_token" ADD CONSTRAINT "system_oauth2_access_token_pkey" PRIMARY KEY ("id");
  4312. -- ----------------------------
  4313. -- Primary Key structure for table system_oauth2_approve
  4314. -- ----------------------------
  4315. ALTER TABLE "system_oauth2_approve" ADD CONSTRAINT "system_oauth2_approve_pkey" PRIMARY KEY ("id");
  4316. -- ----------------------------
  4317. -- Primary Key structure for table system_oauth2_client
  4318. -- ----------------------------
  4319. ALTER TABLE "system_oauth2_client" ADD CONSTRAINT "system_oauth2_client_pkey" PRIMARY KEY ("id");
  4320. -- ----------------------------
  4321. -- Primary Key structure for table system_oauth2_code
  4322. -- ----------------------------
  4323. ALTER TABLE "system_oauth2_code" ADD CONSTRAINT "system_oauth2_code_pkey" PRIMARY KEY ("id");
  4324. -- ----------------------------
  4325. -- Primary Key structure for table system_oauth2_refresh_token
  4326. -- ----------------------------
  4327. ALTER TABLE "system_oauth2_refresh_token" ADD CONSTRAINT "system_oauth2_refresh_token_pkey" PRIMARY KEY ("id");
  4328. -- ----------------------------
  4329. -- Primary Key structure for table system_operate_log
  4330. -- ----------------------------
  4331. ALTER TABLE "system_operate_log" ADD CONSTRAINT "system_operate_log_pkey" PRIMARY KEY ("id");
  4332. -- ----------------------------
  4333. -- Primary Key structure for table system_post
  4334. -- ----------------------------
  4335. ALTER TABLE "system_post" ADD CONSTRAINT "system_post_pkey" PRIMARY KEY ("id");
  4336. -- ----------------------------
  4337. -- Primary Key structure for table system_role
  4338. -- ----------------------------
  4339. ALTER TABLE "system_role" ADD CONSTRAINT "system_role_pkey" PRIMARY KEY ("id");
  4340. -- ----------------------------
  4341. -- Primary Key structure for table system_role_menu
  4342. -- ----------------------------
  4343. ALTER TABLE "system_role_menu" ADD CONSTRAINT "system_role_menu_pkey" PRIMARY KEY ("id");
  4344. -- ----------------------------
  4345. -- Primary Key structure for table system_sensitive_word
  4346. -- ----------------------------
  4347. ALTER TABLE "system_sensitive_word" ADD CONSTRAINT "system_sensitive_word_pkey" PRIMARY KEY ("id");
  4348. -- ----------------------------
  4349. -- Primary Key structure for table system_sms_channel
  4350. -- ----------------------------
  4351. ALTER TABLE "system_sms_channel" ADD CONSTRAINT "system_sms_channel_pkey" PRIMARY KEY ("id");
  4352. -- ----------------------------
  4353. -- Indexes structure for table system_sms_code
  4354. -- ----------------------------
  4355. CREATE INDEX "idx_mobile" ON "system_sms_code" USING btree (
  4356. "mobile" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  4357. );
  4358. COMMENT ON INDEX "idx_mobile" IS '手机号';
  4359. -- ----------------------------
  4360. -- Primary Key structure for table system_sms_code
  4361. -- ----------------------------
  4362. ALTER TABLE "system_sms_code" ADD CONSTRAINT "system_sms_code_pkey" PRIMARY KEY ("id");
  4363. -- ----------------------------
  4364. -- Primary Key structure for table system_sms_log
  4365. -- ----------------------------
  4366. ALTER TABLE "system_sms_log" ADD CONSTRAINT "system_sms_log_pkey" PRIMARY KEY ("id");
  4367. -- ----------------------------
  4368. -- Primary Key structure for table system_sms_template
  4369. -- ----------------------------
  4370. ALTER TABLE "system_sms_template" ADD CONSTRAINT "system_sms_template_pkey" PRIMARY KEY ("id");
  4371. -- ----------------------------
  4372. -- Primary Key structure for table system_social_user
  4373. -- ----------------------------
  4374. ALTER TABLE "system_social_user" ADD CONSTRAINT "system_social_user_pkey" PRIMARY KEY ("id");
  4375. -- ----------------------------
  4376. -- Primary Key structure for table system_social_user_bind
  4377. -- ----------------------------
  4378. ALTER TABLE "system_social_user_bind" ADD CONSTRAINT "system_social_user_bind_pkey" PRIMARY KEY ("id");
  4379. -- ----------------------------
  4380. -- Primary Key structure for table system_tenant
  4381. -- ----------------------------
  4382. ALTER TABLE "system_tenant" ADD CONSTRAINT "system_tenant_pkey" PRIMARY KEY ("id");
  4383. -- ----------------------------
  4384. -- Primary Key structure for table system_tenant_package
  4385. -- ----------------------------
  4386. ALTER TABLE "system_tenant_package" ADD CONSTRAINT "system_tenant_package_pkey" PRIMARY KEY ("id");
  4387. -- ----------------------------
  4388. -- Primary Key structure for table system_user_post
  4389. -- ----------------------------
  4390. ALTER TABLE "system_user_post" ADD CONSTRAINT "system_user_post_pkey" PRIMARY KEY ("id");
  4391. -- ----------------------------
  4392. -- Primary Key structure for table system_user_role
  4393. -- ----------------------------
  4394. ALTER TABLE "system_user_role" ADD CONSTRAINT "system_user_role_pkey" PRIMARY KEY ("id");
  4395. -- ----------------------------
  4396. -- Indexes structure for table system_users
  4397. -- ----------------------------
  4398. CREATE UNIQUE INDEX "idx_username" ON "system_users" USING btree (
  4399. "username" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  4400. "update_time" "pg_catalog"."timestamp_ops" ASC NULLS LAST,
  4401. "tenant_id" "pg_catalog"."int8_ops" ASC NULLS LAST
  4402. );
  4403. -- ----------------------------
  4404. -- Primary Key structure for table system_users
  4405. -- ----------------------------
  4406. ALTER TABLE "system_users" ADD CONSTRAINT "system_user_pkey" PRIMARY KEY ("id");
  4407. -- ----------------------------
  4408. -- Foreign Keys structure for table qrtz_blob_triggers
  4409. -- ----------------------------
  4410. 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;
  4411. -- ----------------------------
  4412. -- Foreign Keys structure for table qrtz_cron_triggers
  4413. -- ----------------------------
  4414. 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;
  4415. -- ----------------------------
  4416. -- Foreign Keys structure for table qrtz_simple_triggers
  4417. -- ----------------------------
  4418. 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;
  4419. -- ----------------------------
  4420. -- Foreign Keys structure for table qrtz_simprop_triggers
  4421. -- ----------------------------
  4422. 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;
  4423. -- ----------------------------
  4424. -- Foreign Keys structure for table qrtz_triggers
  4425. -- ----------------------------
  4426. 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;