postgresql-km-V1.0.0.sql 183 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907
  1. --
  2. -- Name: gen_table; Type: TABLE; Schema: public; Owner: postgres
  3. --
  4. CREATE TABLE km.gen_table
  5. (
  6. table_id bigint NOT NULL,
  7. table_name character varying(200) DEFAULT ''::character varying,
  8. table_comment character varying(500) DEFAULT ''::character varying,
  9. sub_table_name character varying(64) DEFAULT ''::character varying,
  10. sub_table_fk_name character varying(64) DEFAULT ''::character varying,
  11. class_name character varying(100) DEFAULT ''::character varying,
  12. tpl_category character varying(200) DEFAULT 'crud'::character varying,
  13. package_name character varying(100) DEFAULT NULL::character varying,
  14. module_name character varying(30) DEFAULT NULL::character varying,
  15. business_name character varying(30) DEFAULT NULL::character varying,
  16. function_name character varying(50) DEFAULT NULL::character varying,
  17. function_author character varying(50) DEFAULT NULL::character varying,
  18. gen_type character(1) DEFAULT '0'::bpchar NOT NULL,
  19. gen_path character varying(200) DEFAULT '/'::character varying,
  20. options character varying(1000) DEFAULT NULL::character varying,
  21. version integer DEFAULT 0,
  22. create_by bigint,
  23. create_time timestamp without time zone,
  24. update_by bigint,
  25. update_time timestamp without time zone,
  26. remark character varying(500) DEFAULT NULL::character varying
  27. );
  28. ALTER TABLE km.gen_table
  29. OWNER TO postgres;
  30. --
  31. -- Name: TABLE gen_table; Type: COMMENT; Schema: public; Owner: postgres
  32. --
  33. COMMENT ON TABLE km.gen_table IS '代码生成业务表';
  34. --
  35. -- Name: COLUMN gen_table.table_id; Type: COMMENT; Schema: public; Owner: postgres
  36. --
  37. COMMENT ON COLUMN km.gen_table.table_id IS '编号';
  38. --
  39. -- Name: COLUMN gen_table.table_name; Type: COMMENT; Schema: public; Owner: postgres
  40. --
  41. COMMENT ON COLUMN km.gen_table.table_name IS '表名称';
  42. --
  43. -- Name: COLUMN gen_table.table_comment; Type: COMMENT; Schema: public; Owner: postgres
  44. --
  45. COMMENT ON COLUMN km.gen_table.table_comment IS '表描述';
  46. --
  47. -- Name: COLUMN gen_table.sub_table_name; Type: COMMENT; Schema: public; Owner: postgres
  48. --
  49. COMMENT ON COLUMN km.gen_table.sub_table_name IS '关联子表的表名';
  50. --
  51. -- Name: COLUMN gen_table.sub_table_fk_name; Type: COMMENT; Schema: public; Owner: postgres
  52. --
  53. COMMENT ON COLUMN km.gen_table.sub_table_fk_name IS '子表关联的外键名';
  54. --
  55. -- Name: COLUMN gen_table.class_name; Type: COMMENT; Schema: public; Owner: postgres
  56. --
  57. COMMENT ON COLUMN km.gen_table.class_name IS '实体类名称';
  58. --
  59. -- Name: COLUMN gen_table.tpl_category; Type: COMMENT; Schema: public; Owner: postgres
  60. --
  61. COMMENT ON COLUMN km.gen_table.tpl_category IS '使用的模板(CRUD单表操作 TREE树表操作)';
  62. --
  63. -- Name: COLUMN gen_table.package_name; Type: COMMENT; Schema: public; Owner: postgres
  64. --
  65. COMMENT ON COLUMN km.gen_table.package_name IS '生成包路径';
  66. --
  67. -- Name: COLUMN gen_table.module_name; Type: COMMENT; Schema: public; Owner: postgres
  68. --
  69. COMMENT ON COLUMN km.gen_table.module_name IS '生成模块名';
  70. --
  71. -- Name: COLUMN gen_table.business_name; Type: COMMENT; Schema: public; Owner: postgres
  72. --
  73. COMMENT ON COLUMN km.gen_table.business_name IS '生成业务名';
  74. --
  75. -- Name: COLUMN gen_table.function_name; Type: COMMENT; Schema: public; Owner: postgres
  76. --
  77. COMMENT ON COLUMN km.gen_table.function_name IS '生成功能名';
  78. --
  79. -- Name: COLUMN gen_table.function_author; Type: COMMENT; Schema: public; Owner: postgres
  80. --
  81. COMMENT ON COLUMN km.gen_table.function_author IS '生成功能作者';
  82. --
  83. -- Name: COLUMN gen_table.gen_type; Type: COMMENT; Schema: public; Owner: postgres
  84. --
  85. COMMENT ON COLUMN km.gen_table.gen_type IS '生成代码方式(0zip压缩包 1自定义路径)';
  86. --
  87. -- Name: COLUMN gen_table.gen_path; Type: COMMENT; Schema: public; Owner: postgres
  88. --
  89. COMMENT ON COLUMN km.gen_table.gen_path IS '生成路径(不填默认项目路径)';
  90. --
  91. -- Name: COLUMN gen_table.options; Type: COMMENT; Schema: public; Owner: postgres
  92. --
  93. COMMENT ON COLUMN km.gen_table.options IS '其它生成选项';
  94. --
  95. -- Name: COLUMN gen_table.version; Type: COMMENT; Schema: public; Owner: postgres
  96. --
  97. COMMENT ON COLUMN km.gen_table.version IS '乐观锁';
  98. --
  99. -- Name: COLUMN gen_table.create_by; Type: COMMENT; Schema: public; Owner: postgres
  100. --
  101. COMMENT ON COLUMN km.gen_table.create_by IS '创建者';
  102. --
  103. -- Name: COLUMN gen_table.create_time; Type: COMMENT; Schema: public; Owner: postgres
  104. --
  105. COMMENT ON COLUMN km.gen_table.create_time IS '创建时间';
  106. --
  107. -- Name: COLUMN gen_table.update_by; Type: COMMENT; Schema: public; Owner: postgres
  108. --
  109. COMMENT ON COLUMN km.gen_table.update_by IS '更新者';
  110. --
  111. -- Name: COLUMN gen_table.update_time; Type: COMMENT; Schema: public; Owner: postgres
  112. --
  113. COMMENT ON COLUMN km.gen_table.update_time IS '更新时间';
  114. --
  115. -- Name: COLUMN gen_table.remark; Type: COMMENT; Schema: public; Owner: postgres
  116. --
  117. COMMENT ON COLUMN km.gen_table.remark IS '备注';
  118. --
  119. -- Name: gen_table_column; Type: TABLE; Schema: public; Owner: postgres
  120. --
  121. CREATE TABLE km.gen_table_column
  122. (
  123. column_id bigint NOT NULL,
  124. table_id bigint,
  125. column_name character varying(200) DEFAULT NULL::character varying,
  126. column_comment character varying(500) DEFAULT NULL::character varying,
  127. column_type character varying(100) DEFAULT NULL::character varying,
  128. java_type character varying(500) DEFAULT NULL::character varying,
  129. java_field character varying(200) DEFAULT NULL::character varying,
  130. is_pk character(1) DEFAULT NULL::bpchar,
  131. is_increment character(1) DEFAULT NULL::bpchar,
  132. is_required character(1) DEFAULT NULL::bpchar,
  133. is_insert character(1) DEFAULT NULL::bpchar,
  134. is_edit character(1) DEFAULT NULL::bpchar,
  135. is_list character(1) DEFAULT NULL::bpchar,
  136. is_query character(1) DEFAULT NULL::bpchar,
  137. query_type character varying(200) DEFAULT 'EQ'::character varying,
  138. html_type character varying(200) DEFAULT NULL::character varying,
  139. dict_type character varying(200) DEFAULT ''::character varying,
  140. sort integer,
  141. version integer DEFAULT 0,
  142. create_by bigint,
  143. create_time timestamp without time zone,
  144. update_by bigint,
  145. update_time timestamp without time zone
  146. );
  147. ALTER TABLE km.gen_table_column
  148. OWNER TO postgres;
  149. COMMENT ON TABLE km.gen_table_column IS '代码生成业务表字段';
  150. COMMENT ON COLUMN km.gen_table_column.column_id IS '编号';
  151. COMMENT ON COLUMN km.gen_table_column.table_id IS '归属表编号';
  152. COMMENT ON COLUMN km.gen_table_column.column_name IS '列名称';
  153. COMMENT ON COLUMN km.gen_table_column.column_comment IS '列描述';
  154. COMMENT ON COLUMN km.gen_table_column.column_type IS '列类型';
  155. COMMENT ON COLUMN km.gen_table_column.java_type IS 'JAVA类型';
  156. COMMENT ON COLUMN km.gen_table_column.java_field IS 'JAVA字段名';
  157. COMMENT ON COLUMN km.gen_table_column.is_pk IS '是否主键(1是)';
  158. COMMENT ON COLUMN km.gen_table_column.is_increment IS '是否自增(1是)';
  159. COMMENT ON COLUMN km.gen_table_column.is_required IS '是否必填(1是)';
  160. COMMENT ON COLUMN km.gen_table_column.is_insert IS '是否为插入字段(1是)';
  161. COMMENT ON COLUMN km.gen_table_column.is_edit IS '是否编辑字段(1是)';
  162. COMMENT ON COLUMN km.gen_table_column.is_list IS '是否列表字段(1是)';
  163. COMMENT ON COLUMN km.gen_table_column.is_query IS '是否查询字段(1是)';
  164. COMMENT ON COLUMN km.gen_table_column.query_type IS '查询方式(等于、不等于、大于、小于、范围)';
  165. COMMENT ON COLUMN km.gen_table_column.html_type IS '显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)';
  166. COMMENT ON COLUMN km.gen_table_column.dict_type IS '字典类型';
  167. COMMENT ON COLUMN km.gen_table_column.sort IS '排序';
  168. COMMENT ON COLUMN km.gen_table_column.version IS '乐观锁';
  169. COMMENT ON COLUMN km.gen_table_column.create_by IS '创建者';
  170. COMMENT ON COLUMN km.gen_table_column.create_time IS '创建时间';
  171. COMMENT ON COLUMN km.gen_table_column.update_by IS '更新者';
  172. COMMENT ON COLUMN km.gen_table_column.update_time IS '更新时间';
  173. --
  174. -- Name: pj_app_info; Type: TABLE; Schema: public; Owner: postgres
  175. --
  176. CREATE TABLE km.pj_app_info
  177. (
  178. id bigint NOT NULL,
  179. app_name character varying(255) DEFAULT NULL::character varying,
  180. current_server character varying(255) DEFAULT NULL::character varying,
  181. gmt_create timestamp without time zone,
  182. gmt_modified timestamp without time zone,
  183. password character varying(255) DEFAULT NULL::character varying
  184. );
  185. ALTER TABLE km.pj_app_info
  186. OWNER TO postgres;
  187. --
  188. -- Name: pj_container_info; Type: TABLE; Schema: public; Owner: postgres
  189. --
  190. CREATE TABLE km.pj_container_info
  191. (
  192. id bigint NOT NULL,
  193. app_id bigint,
  194. container_name character varying(255) DEFAULT NULL::character varying,
  195. gmt_create timestamp without time zone,
  196. gmt_modified timestamp without time zone,
  197. last_deploy_time timestamp without time zone,
  198. source_info character varying(255) DEFAULT NULL::character varying,
  199. source_type integer,
  200. status integer,
  201. version character varying(255) DEFAULT NULL::character varying
  202. );
  203. ALTER TABLE km.pj_container_info
  204. OWNER TO postgres;
  205. --
  206. -- Name: pj_instance_info; Type: TABLE; Schema: public; Owner: postgres
  207. --
  208. CREATE TABLE km.pj_instance_info
  209. (
  210. id bigint NOT NULL,
  211. actual_trigger_time bigint,
  212. app_id bigint,
  213. expected_trigger_time bigint,
  214. finished_time bigint,
  215. gmt_create timestamp without time zone,
  216. gmt_modified timestamp without time zone,
  217. instance_id bigint,
  218. instance_params text,
  219. job_id bigint,
  220. job_params text,
  221. last_report_time bigint,
  222. result text,
  223. running_times bigint,
  224. status integer,
  225. task_tracker_address character varying(255) DEFAULT NULL::character varying,
  226. type integer,
  227. wf_instance_id bigint
  228. );
  229. ALTER TABLE km.pj_instance_info
  230. OWNER TO postgres;
  231. --
  232. -- Name: pj_job_info; Type: TABLE; Schema: public; Owner: postgres
  233. --
  234. CREATE TABLE km.pj_job_info
  235. (
  236. id bigint NOT NULL,
  237. alarm_config character varying(255) DEFAULT NULL::character varying,
  238. app_id bigint,
  239. concurrency integer,
  240. designated_workers character varying(255) DEFAULT NULL::character varying,
  241. dispatch_strategy integer,
  242. execute_type integer,
  243. extra character varying(255) DEFAULT NULL::character varying,
  244. gmt_create timestamp without time zone,
  245. gmt_modified timestamp without time zone,
  246. instance_retry_num integer,
  247. instance_time_limit bigint,
  248. job_description character varying(255) DEFAULT NULL::character varying,
  249. job_name character varying(255) DEFAULT NULL::character varying,
  250. job_params text,
  251. lifecycle character varying(255) DEFAULT NULL::character varying,
  252. log_config character varying(255) DEFAULT NULL::character varying,
  253. max_instance_num integer,
  254. max_worker_count integer,
  255. min_cpu_cores double precision NOT NULL,
  256. min_disk_space double precision NOT NULL,
  257. min_memory_space double precision NOT NULL,
  258. next_trigger_time bigint,
  259. notify_user_ids character varying(255) DEFAULT NULL::character varying,
  260. processor_info character varying(255) DEFAULT NULL::character varying,
  261. processor_type integer,
  262. status integer,
  263. tag character varying(255) DEFAULT NULL::character varying,
  264. task_retry_num integer,
  265. time_expression character varying(255) DEFAULT NULL::character varying,
  266. time_expression_type integer
  267. );
  268. ALTER TABLE km.pj_job_info
  269. OWNER TO postgres;
  270. --
  271. -- Name: pj_oms_lock; Type: TABLE; Schema: public; Owner: postgres
  272. --
  273. CREATE TABLE km.pj_oms_lock
  274. (
  275. id bigint NOT NULL,
  276. gmt_create timestamp without time zone,
  277. gmt_modified timestamp without time zone,
  278. lock_name character varying(255) DEFAULT NULL::character varying,
  279. max_lock_time bigint,
  280. ownerip character varying(255) DEFAULT NULL::character varying
  281. );
  282. ALTER TABLE km.pj_oms_lock
  283. OWNER TO postgres;
  284. --
  285. -- Name: pj_server_info; Type: TABLE; Schema: public; Owner: postgres
  286. --
  287. CREATE TABLE km.pj_server_info
  288. (
  289. id bigint NOT NULL,
  290. gmt_create timestamp without time zone,
  291. gmt_modified timestamp without time zone,
  292. ip character varying(255) DEFAULT NULL::character varying
  293. );
  294. ALTER TABLE km.pj_server_info
  295. OWNER TO postgres;
  296. --
  297. -- Name: pj_user_info; Type: TABLE; Schema: public; Owner: postgres
  298. --
  299. CREATE TABLE km.pj_user_info
  300. (
  301. id bigint NOT NULL,
  302. email character varying(255) DEFAULT NULL::character varying,
  303. extra character varying(255) DEFAULT NULL::character varying,
  304. gmt_create timestamp without time zone,
  305. gmt_modified timestamp without time zone,
  306. password character varying(255) DEFAULT NULL::character varying,
  307. phone character varying(255) DEFAULT NULL::character varying,
  308. username character varying(255) DEFAULT NULL::character varying,
  309. web_hook character varying(255) DEFAULT NULL::character varying
  310. );
  311. ALTER TABLE km.pj_user_info
  312. OWNER TO postgres;
  313. --
  314. -- Name: pj_workflow_info; Type: TABLE; Schema: public; Owner: postgres
  315. --
  316. CREATE TABLE km.pj_workflow_info
  317. (
  318. id bigint NOT NULL,
  319. app_id bigint,
  320. extra character varying(255) DEFAULT NULL::character varying,
  321. gmt_create timestamp without time zone,
  322. gmt_modified timestamp without time zone,
  323. lifecycle character varying(255) DEFAULT NULL::character varying,
  324. max_wf_instance_num integer,
  325. next_trigger_time bigint,
  326. notify_user_ids character varying(255) DEFAULT NULL::character varying,
  327. pedag text,
  328. status integer,
  329. time_expression character varying(255) DEFAULT NULL::character varying,
  330. time_expression_type integer,
  331. wf_description character varying(255) DEFAULT NULL::character varying,
  332. wf_name character varying(255) DEFAULT NULL::character varying
  333. );
  334. ALTER TABLE km.pj_workflow_info
  335. OWNER TO postgres;
  336. --
  337. -- Name: pj_workflow_instance_info; Type: TABLE; Schema: public; Owner: postgres
  338. --
  339. CREATE TABLE km.pj_workflow_instance_info
  340. (
  341. id bigint NOT NULL,
  342. actual_trigger_time bigint,
  343. app_id bigint,
  344. dag text,
  345. expected_trigger_time bigint,
  346. finished_time bigint,
  347. gmt_create timestamp without time zone,
  348. gmt_modified timestamp without time zone,
  349. parent_wf_instance_id bigint,
  350. result text,
  351. status integer,
  352. wf_context text,
  353. wf_init_params text,
  354. wf_instance_id bigint,
  355. workflow_id bigint
  356. );
  357. ALTER TABLE km.pj_workflow_instance_info
  358. OWNER TO postgres;
  359. --
  360. -- Name: pj_workflow_node_info; Type: TABLE; Schema: public; Owner: postgres
  361. --
  362. CREATE TABLE km.pj_workflow_node_info
  363. (
  364. id bigint NOT NULL,
  365. app_id bigint NOT NULL,
  366. enable boolean NOT NULL,
  367. extra text,
  368. gmt_create timestamp without time zone NOT NULL,
  369. gmt_modified timestamp without time zone NOT NULL,
  370. job_id bigint,
  371. node_name character varying(255) DEFAULT NULL::character varying,
  372. node_params text,
  373. skip_when_failed boolean NOT NULL,
  374. type integer,
  375. workflow_id bigint
  376. );
  377. ALTER TABLE km.pj_workflow_node_info
  378. OWNER TO postgres;
  379. --
  380. -- Name: sys_client; Type: TABLE; Schema: public; Owner: postgres
  381. --
  382. CREATE TABLE km.sys_client
  383. (
  384. id bigint NOT NULL,
  385. client_id character varying(64) DEFAULT ''::character varying,
  386. client_key character varying(32) DEFAULT ''::character varying,
  387. client_secret character varying(255) DEFAULT ''::character varying,
  388. grant_type character varying(255) DEFAULT ''::character varying,
  389. device_type character varying(32) DEFAULT ''::character varying,
  390. active_timeout integer DEFAULT 1800,
  391. timeout integer DEFAULT 604800,
  392. status character(1) DEFAULT '0'::bpchar,
  393. version integer DEFAULT 0,
  394. del_flag smallint DEFAULT 0,
  395. create_by bigint,
  396. create_time timestamp without time zone,
  397. update_by bigint,
  398. update_time timestamp without time zone
  399. );
  400. ALTER TABLE km.sys_client
  401. OWNER TO postgres;
  402. COMMENT ON TABLE km.sys_client IS '系统授权表';
  403. COMMENT ON COLUMN km.sys_client.id IS '主建';
  404. COMMENT ON COLUMN km.sys_client.client_id IS '客户端id';
  405. COMMENT ON COLUMN km.sys_client.client_key IS '客户端key';
  406. COMMENT ON COLUMN km.sys_client.client_secret IS '客户端秘钥';
  407. COMMENT ON COLUMN km.sys_client.grant_type IS '授权类型';
  408. COMMENT ON COLUMN km.sys_client.device_type IS '设备类型';
  409. COMMENT ON COLUMN km.sys_client.active_timeout IS 'token活跃超时时间';
  410. COMMENT ON COLUMN km.sys_client.timeout IS 'token固定超时';
  411. COMMENT ON COLUMN km.sys_client.status IS '状态(0正常 1停用)';
  412. COMMENT ON COLUMN km.sys_client.version IS '乐观锁';
  413. COMMENT ON COLUMN km.sys_client.del_flag IS '删除标志(0代表存在 1代表删除)';
  414. COMMENT ON COLUMN km.sys_client.create_by IS '创建者';
  415. COMMENT ON COLUMN km.sys_client.create_time IS '创建时间';
  416. COMMENT ON COLUMN km.sys_client.update_by IS '更新者';
  417. COMMENT ON COLUMN km.sys_client.update_time IS '更新时间';
  418. --
  419. -- Name: sys_config; Type: TABLE; Schema: public; Owner: postgres
  420. --
  421. CREATE TABLE km.sys_config
  422. (
  423. config_id bigint NOT NULL,
  424. tenant_id bigint DEFAULT '0'::bigint NOT NULL,
  425. config_name character varying(100) DEFAULT ''::character varying,
  426. config_key character varying(100) DEFAULT ''::character varying,
  427. config_value character varying(500) DEFAULT ''::character varying,
  428. config_type character(1) DEFAULT 'N'::bpchar,
  429. version integer DEFAULT 0,
  430. create_by bigint,
  431. create_time timestamp without time zone,
  432. update_by bigint,
  433. update_time timestamp without time zone,
  434. remark character varying(500) DEFAULT NULL::character varying
  435. );
  436. ALTER TABLE km.sys_config
  437. OWNER TO postgres;
  438. COMMENT ON TABLE km.sys_config IS '参数配置表';
  439. COMMENT ON COLUMN km.sys_config.config_id IS '参数主键';
  440. COMMENT ON COLUMN km.sys_config.tenant_id IS '租户编号';
  441. COMMENT ON COLUMN km.sys_config.config_name IS '参数名称';
  442. COMMENT ON COLUMN km.sys_config.config_key IS '参数键名';
  443. COMMENT ON COLUMN km.sys_config.config_value IS '参数键值';
  444. COMMENT ON COLUMN km.sys_config.config_type IS '系统内置(Y是 N否)';
  445. COMMENT ON COLUMN km.sys_config.version IS '乐观锁';
  446. COMMENT ON COLUMN km.sys_config.create_by IS '创建者';
  447. COMMENT ON COLUMN km.sys_config.create_time IS '创建时间';
  448. COMMENT ON COLUMN km.sys_config.update_by IS '更新者';
  449. COMMENT ON COLUMN km.sys_config.update_time IS '更新时间';
  450. COMMENT ON COLUMN km.sys_config.remark IS '备注';
  451. --
  452. -- Name: sys_dept; Type: TABLE; Schema: public; Owner: postgres
  453. --
  454. CREATE TABLE km.sys_dept
  455. (
  456. dept_id bigint NOT NULL,
  457. tenant_id bigint DEFAULT 0,
  458. parent_id bigint DEFAULT 0,
  459. ancestors character varying(760) DEFAULT ''::character varying,
  460. dept_name character varying(30) DEFAULT ''::character varying,
  461. order_num integer DEFAULT 0,
  462. leader character varying(20) DEFAULT ''::character varying,
  463. phone character varying(11) DEFAULT NULL::character varying,
  464. email character varying(50) DEFAULT NULL::character varying,
  465. status character(1) DEFAULT '0'::bpchar,
  466. version integer DEFAULT 0,
  467. del_flag smallint DEFAULT 0,
  468. create_by bigint,
  469. create_time timestamp without time zone,
  470. update_by bigint,
  471. update_time timestamp without time zone
  472. );
  473. ALTER TABLE km.sys_dept
  474. OWNER TO postgres;
  475. COMMENT ON TABLE km.sys_dept IS '部门表';
  476. COMMENT ON COLUMN km.sys_dept.dept_id IS '部门ID';
  477. COMMENT ON COLUMN km.sys_dept.tenant_id IS '租户编号';
  478. COMMENT ON COLUMN km.sys_dept.parent_id IS '父部门ID';
  479. COMMENT ON COLUMN km.sys_dept.ancestors IS '祖级列表';
  480. COMMENT ON COLUMN km.sys_dept.dept_name IS '部门名称';
  481. COMMENT ON COLUMN km.sys_dept.order_num IS '显示顺序';
  482. COMMENT ON COLUMN km.sys_dept.leader IS '负责人';
  483. COMMENT ON COLUMN km.sys_dept.phone IS '联系电话';
  484. COMMENT ON COLUMN km.sys_dept.email IS '邮箱';
  485. COMMENT ON COLUMN km.sys_dept.status IS '部门状态(0正常 1停用)';
  486. COMMENT ON COLUMN km.sys_dept.version IS '乐观锁';
  487. COMMENT ON COLUMN km.sys_dept.del_flag IS '删除标志(0代表存在 1代表删除)';
  488. COMMENT ON COLUMN km.sys_dept.create_by IS '创建者';
  489. COMMENT ON COLUMN km.sys_dept.create_time IS '创建时间';
  490. COMMENT ON COLUMN km.sys_dept.update_by IS '更新者';
  491. COMMENT ON COLUMN km.sys_dept.update_time IS '更新时间';
  492. CREATE TABLE km.sys_dict_data
  493. (
  494. dict_code bigint NOT NULL,
  495. tenant_id bigint DEFAULT '0'::bigint NOT NULL,
  496. dict_sort integer DEFAULT 0,
  497. dict_label character varying(100) DEFAULT ''::character varying,
  498. dict_value character varying(100) DEFAULT ''::character varying,
  499. dict_type character varying(100) DEFAULT ''::character varying,
  500. css_class character varying(100) DEFAULT NULL::character varying,
  501. list_class character varying(100) DEFAULT NULL::character varying,
  502. is_default character(1) DEFAULT 'N'::bpchar,
  503. version integer DEFAULT 0,
  504. create_by bigint,
  505. create_time timestamp without time zone,
  506. update_by bigint,
  507. update_time timestamp without time zone,
  508. remark character varying(500) DEFAULT NULL::character varying
  509. );
  510. ALTER TABLE km.sys_dict_data
  511. OWNER TO postgres;
  512. COMMENT ON TABLE km.sys_dict_data IS '字典数据表';
  513. COMMENT ON COLUMN km.sys_dict_data.dict_code IS '字典编码';
  514. COMMENT ON COLUMN km.sys_dict_data.tenant_id IS '租户编号';
  515. COMMENT ON COLUMN km.sys_dict_data.dict_sort IS '字典排序';
  516. COMMENT ON COLUMN km.sys_dict_data.dict_label IS '字典标签';
  517. COMMENT ON COLUMN km.sys_dict_data.dict_value IS '字典键值';
  518. COMMENT ON COLUMN km.sys_dict_data.dict_type IS '字典类型';
  519. COMMENT ON COLUMN km.sys_dict_data.css_class IS '样式属性(其他样式扩展)';
  520. COMMENT ON COLUMN km.sys_dict_data.list_class IS '表格回显样式';
  521. COMMENT ON COLUMN km.sys_dict_data.is_default IS '是否默认(Y是 N否)';
  522. --
  523. -- Name: COLUMN sys_dict_data.version; Type: COMMENT; Schema: public; Owner: postgres
  524. --
  525. COMMENT ON COLUMN km.sys_dict_data.version IS '乐观锁';
  526. --
  527. -- Name: COLUMN sys_dict_data.create_by; Type: COMMENT; Schema: public; Owner: postgres
  528. --
  529. COMMENT ON COLUMN km.sys_dict_data.create_by IS '创建者';
  530. --
  531. -- Name: COLUMN sys_dict_data.create_time; Type: COMMENT; Schema: public; Owner: postgres
  532. --
  533. COMMENT ON COLUMN km.sys_dict_data.create_time IS '创建时间';
  534. --
  535. -- Name: COLUMN sys_dict_data.update_by; Type: COMMENT; Schema: public; Owner: postgres
  536. --
  537. COMMENT ON COLUMN km.sys_dict_data.update_by IS '更新者';
  538. --
  539. -- Name: COLUMN sys_dict_data.update_time; Type: COMMENT; Schema: public; Owner: postgres
  540. --
  541. COMMENT ON COLUMN km.sys_dict_data.update_time IS '更新时间';
  542. --
  543. -- Name: COLUMN sys_dict_data.remark; Type: COMMENT; Schema: public; Owner: postgres
  544. --
  545. COMMENT ON COLUMN km.sys_dict_data.remark IS '备注';
  546. --
  547. -- Name: sys_dict_type; Type: TABLE; Schema: public; Owner: postgres
  548. --
  549. CREATE TABLE km.sys_dict_type
  550. (
  551. dict_id bigint NOT NULL,
  552. tenant_id bigint DEFAULT '0'::bigint NOT NULL,
  553. dict_name character varying(100) DEFAULT ''::character varying,
  554. dict_type character varying(100) DEFAULT ''::character varying,
  555. version integer DEFAULT 0,
  556. create_by bigint,
  557. create_time timestamp without time zone,
  558. update_by bigint,
  559. update_time timestamp without time zone,
  560. remark character varying(500) DEFAULT NULL::character varying
  561. );
  562. ALTER TABLE km.sys_dict_type
  563. OWNER TO postgres;
  564. --
  565. -- Name: TABLE sys_dict_type; Type: COMMENT; Schema: public; Owner: postgres
  566. --
  567. COMMENT ON TABLE km.sys_dict_type IS '字典类型表';
  568. --
  569. -- Name: COLUMN sys_dict_type.dict_id; Type: COMMENT; Schema: public; Owner: postgres
  570. --
  571. COMMENT ON COLUMN km.sys_dict_type.dict_id IS '字典主键';
  572. --
  573. -- Name: COLUMN sys_dict_type.tenant_id; Type: COMMENT; Schema: public; Owner: postgres
  574. --
  575. COMMENT ON COLUMN km.sys_dict_type.tenant_id IS '租户编号';
  576. --
  577. -- Name: COLUMN sys_dict_type.dict_name; Type: COMMENT; Schema: public; Owner: postgres
  578. --
  579. COMMENT ON COLUMN km.sys_dict_type.dict_name IS '字典名称';
  580. --
  581. -- Name: COLUMN sys_dict_type.dict_type; Type: COMMENT; Schema: public; Owner: postgres
  582. --
  583. COMMENT ON COLUMN km.sys_dict_type.dict_type IS '字典类型';
  584. --
  585. -- Name: COLUMN sys_dict_type.version; Type: COMMENT; Schema: public; Owner: postgres
  586. --
  587. COMMENT ON COLUMN km.sys_dict_type.version IS '乐观锁';
  588. --
  589. -- Name: COLUMN sys_dict_type.create_by; Type: COMMENT; Schema: public; Owner: postgres
  590. --
  591. COMMENT ON COLUMN km.sys_dict_type.create_by IS '创建者';
  592. --
  593. -- Name: COLUMN sys_dict_type.create_time; Type: COMMENT; Schema: public; Owner: postgres
  594. --
  595. COMMENT ON COLUMN km.sys_dict_type.create_time IS '创建时间';
  596. --
  597. -- Name: COLUMN sys_dict_type.update_by; Type: COMMENT; Schema: public; Owner: postgres
  598. --
  599. COMMENT ON COLUMN km.sys_dict_type.update_by IS '更新者';
  600. --
  601. -- Name: COLUMN sys_dict_type.update_time; Type: COMMENT; Schema: public; Owner: postgres
  602. --
  603. COMMENT ON COLUMN km.sys_dict_type.update_time IS '更新时间';
  604. --
  605. -- Name: COLUMN sys_dict_type.remark; Type: COMMENT; Schema: public; Owner: postgres
  606. --
  607. COMMENT ON COLUMN km.sys_dict_type.remark IS '备注';
  608. --
  609. -- Name: sys_logininfor; Type: TABLE; Schema: public; Owner: postgres
  610. --
  611. CREATE TABLE km.sys_logininfor
  612. (
  613. info_id bigint NOT NULL,
  614. tenant_id bigint DEFAULT '0'::bigint NOT NULL,
  615. user_name character varying(50) DEFAULT ''::character varying,
  616. client_key character varying(32) DEFAULT ''::character varying,
  617. device_type character varying(32) DEFAULT ''::character varying,
  618. ipaddr character varying(128) DEFAULT ''::character varying,
  619. login_location character varying(255) DEFAULT ''::character varying,
  620. browser character varying(50) DEFAULT ''::character varying,
  621. os character varying(50) DEFAULT ''::character varying,
  622. status character(1) DEFAULT '0'::bpchar,
  623. msg character varying(255) DEFAULT ''::character varying,
  624. login_time timestamp without time zone
  625. );
  626. ALTER TABLE km.sys_logininfor
  627. OWNER TO postgres;
  628. --
  629. -- Name: TABLE sys_logininfor; Type: COMMENT; Schema: public; Owner: postgres
  630. --
  631. COMMENT ON TABLE km.sys_logininfor IS '系统访问记录';
  632. --
  633. -- Name: COLUMN sys_logininfor.info_id; Type: COMMENT; Schema: public; Owner: postgres
  634. --
  635. COMMENT ON COLUMN km.sys_logininfor.info_id IS '访问ID';
  636. --
  637. -- Name: COLUMN sys_logininfor.tenant_id; Type: COMMENT; Schema: public; Owner: postgres
  638. --
  639. COMMENT ON COLUMN km.sys_logininfor.tenant_id IS '租户编号';
  640. --
  641. -- Name: COLUMN sys_logininfor.user_name; Type: COMMENT; Schema: public; Owner: postgres
  642. --
  643. COMMENT ON COLUMN km.sys_logininfor.user_name IS '用户账号';
  644. --
  645. -- Name: COLUMN sys_logininfor.client_key; Type: COMMENT; Schema: public; Owner: postgres
  646. --
  647. COMMENT ON COLUMN km.sys_logininfor.client_key IS '客户端';
  648. --
  649. -- Name: COLUMN sys_logininfor.device_type; Type: COMMENT; Schema: public; Owner: postgres
  650. --
  651. COMMENT ON COLUMN km.sys_logininfor.device_type IS '设备类型';
  652. --
  653. -- Name: COLUMN sys_logininfor.ipaddr; Type: COMMENT; Schema: public; Owner: postgres
  654. --
  655. COMMENT ON COLUMN km.sys_logininfor.ipaddr IS '登录IP地址';
  656. --
  657. -- Name: COLUMN sys_logininfor.login_location; Type: COMMENT; Schema: public; Owner: postgres
  658. --
  659. COMMENT ON COLUMN km.sys_logininfor.login_location IS '登录地点';
  660. --
  661. -- Name: COLUMN sys_logininfor.browser; Type: COMMENT; Schema: public; Owner: postgres
  662. --
  663. COMMENT ON COLUMN km.sys_logininfor.browser IS '浏览器类型';
  664. --
  665. -- Name: COLUMN sys_logininfor.os; Type: COMMENT; Schema: public; Owner: postgres
  666. --
  667. COMMENT ON COLUMN km.sys_logininfor.os IS '操作系统';
  668. --
  669. -- Name: COLUMN sys_logininfor.status; Type: COMMENT; Schema: public; Owner: postgres
  670. --
  671. COMMENT ON COLUMN km.sys_logininfor.status IS '登录状态(0成功 1失败)';
  672. --
  673. -- Name: COLUMN sys_logininfor.msg; Type: COMMENT; Schema: public; Owner: postgres
  674. --
  675. COMMENT ON COLUMN km.sys_logininfor.msg IS '提示消息';
  676. --
  677. -- Name: COLUMN sys_logininfor.login_time; Type: COMMENT; Schema: public; Owner: postgres
  678. --
  679. COMMENT ON COLUMN km.sys_logininfor.login_time IS '访问时间';
  680. --
  681. -- Name: sys_menu; Type: TABLE; Schema: public; Owner: postgres
  682. --
  683. CREATE TABLE km.sys_menu
  684. (
  685. menu_id bigint NOT NULL,
  686. menu_name character varying(50) NOT NULL,
  687. parent_id bigint DEFAULT 0,
  688. order_num integer DEFAULT 0,
  689. path character varying(200) DEFAULT ''::character varying,
  690. component character varying(255) DEFAULT NULL::character varying,
  691. component_name character varying(255) DEFAULT NULL::character varying,
  692. query_param character varying(255) DEFAULT NULL::character varying,
  693. is_frame character(1) DEFAULT '1'::bpchar,
  694. is_cache character(1) DEFAULT '0'::bpchar,
  695. menu_type character(1) DEFAULT ''::bpchar,
  696. visible character(1) DEFAULT '0'::bpchar,
  697. status character(1) DEFAULT '0'::bpchar,
  698. perms character varying(100) DEFAULT NULL::character varying,
  699. icon character varying(100) DEFAULT '#'::character varying,
  700. version integer DEFAULT 0,
  701. create_by bigint,
  702. create_time timestamp without time zone,
  703. update_by bigint,
  704. update_time timestamp without time zone,
  705. remark character varying(500) DEFAULT ''::character varying
  706. );
  707. ALTER TABLE km.sys_menu
  708. OWNER TO postgres;
  709. --
  710. -- Name: TABLE sys_menu; Type: COMMENT; Schema: public; Owner: postgres
  711. --
  712. COMMENT ON TABLE km.sys_menu IS '菜单权限表';
  713. --
  714. -- Name: COLUMN sys_menu.menu_id; Type: COMMENT; Schema: public; Owner: postgres
  715. --
  716. COMMENT ON COLUMN km.sys_menu.menu_id IS '菜单ID';
  717. --
  718. -- Name: COLUMN sys_menu.menu_name; Type: COMMENT; Schema: public; Owner: postgres
  719. --
  720. COMMENT ON COLUMN km.sys_menu.menu_name IS '菜单名称';
  721. --
  722. -- Name: COLUMN sys_menu.parent_id; Type: COMMENT; Schema: public; Owner: postgres
  723. --
  724. COMMENT ON COLUMN km.sys_menu.parent_id IS '父菜单ID';
  725. --
  726. -- Name: COLUMN sys_menu.order_num; Type: COMMENT; Schema: public; Owner: postgres
  727. --
  728. COMMENT ON COLUMN km.sys_menu.order_num IS '显示顺序';
  729. --
  730. -- Name: COLUMN sys_menu.path; Type: COMMENT; Schema: public; Owner: postgres
  731. --
  732. COMMENT ON COLUMN km.sys_menu.path IS '路由地址';
  733. --
  734. -- Name: COLUMN sys_menu.component; Type: COMMENT; Schema: public; Owner: postgres
  735. --
  736. COMMENT ON COLUMN km.sys_menu.component IS '组件路径';
  737. --
  738. -- Name: COLUMN sys_menu.component_name; Type: COMMENT; Schema: public; Owner: postgres
  739. --
  740. COMMENT ON COLUMN km.sys_menu.component_name IS '组件名称';
  741. --
  742. -- Name: COLUMN sys_menu.query_param; Type: COMMENT; Schema: public; Owner: postgres
  743. --
  744. COMMENT ON COLUMN km.sys_menu.query_param IS '路由参数';
  745. --
  746. -- Name: COLUMN sys_menu.is_frame; Type: COMMENT; Schema: public; Owner: postgres
  747. --
  748. COMMENT ON COLUMN km.sys_menu.is_frame IS '是否为外链(0是 1否)';
  749. --
  750. -- Name: COLUMN sys_menu.is_cache; Type: COMMENT; Schema: public; Owner: postgres
  751. --
  752. COMMENT ON COLUMN km.sys_menu.is_cache IS '是否缓存(0缓存 1不缓存)';
  753. --
  754. -- Name: COLUMN sys_menu.menu_type; Type: COMMENT; Schema: public; Owner: postgres
  755. --
  756. COMMENT ON COLUMN km.sys_menu.menu_type IS '菜单类型(M目录 C菜单 F按钮)';
  757. --
  758. -- Name: COLUMN sys_menu.visible; Type: COMMENT; Schema: public; Owner: postgres
  759. --
  760. COMMENT ON COLUMN km.sys_menu.visible IS '显示状态(0显示 1隐藏)';
  761. --
  762. -- Name: COLUMN sys_menu.status; Type: COMMENT; Schema: public; Owner: postgres
  763. --
  764. COMMENT ON COLUMN km.sys_menu.status IS '菜单状态(0正常 1停用)';
  765. --
  766. -- Name: COLUMN sys_menu.perms; Type: COMMENT; Schema: public; Owner: postgres
  767. --
  768. COMMENT ON COLUMN km.sys_menu.perms IS '权限标识';
  769. --
  770. -- Name: COLUMN sys_menu.icon; Type: COMMENT; Schema: public; Owner: postgres
  771. --
  772. COMMENT ON COLUMN km.sys_menu.icon IS '菜单图标';
  773. --
  774. -- Name: COLUMN sys_menu.version; Type: COMMENT; Schema: public; Owner: postgres
  775. --
  776. COMMENT ON COLUMN km.sys_menu.version IS '乐观锁';
  777. --
  778. -- Name: COLUMN sys_menu.create_by; Type: COMMENT; Schema: public; Owner: postgres
  779. --
  780. COMMENT ON COLUMN km.sys_menu.create_by IS '创建者';
  781. --
  782. -- Name: COLUMN sys_menu.create_time; Type: COMMENT; Schema: public; Owner: postgres
  783. --
  784. COMMENT ON COLUMN km.sys_menu.create_time IS '创建时间';
  785. --
  786. -- Name: COLUMN sys_menu.update_by; Type: COMMENT; Schema: public; Owner: postgres
  787. --
  788. COMMENT ON COLUMN km.sys_menu.update_by IS '更新者';
  789. --
  790. -- Name: COLUMN sys_menu.update_time; Type: COMMENT; Schema: public; Owner: postgres
  791. --
  792. COMMENT ON COLUMN km.sys_menu.update_time IS '更新时间';
  793. --
  794. -- Name: COLUMN sys_menu.remark; Type: COMMENT; Schema: public; Owner: postgres
  795. --
  796. COMMENT ON COLUMN km.sys_menu.remark IS '备注';
  797. --
  798. -- Name: sys_notice; Type: TABLE; Schema: public; Owner: postgres
  799. --
  800. CREATE TABLE km.sys_notice
  801. (
  802. notice_id bigint NOT NULL,
  803. tenant_id bigint DEFAULT '0'::bigint NOT NULL,
  804. notice_title character varying(50) NOT NULL,
  805. notice_type character(1) NOT NULL,
  806. notice_content text,
  807. status character(1) DEFAULT '0'::bpchar,
  808. version integer DEFAULT 0,
  809. create_by bigint,
  810. create_time timestamp without time zone,
  811. update_by bigint,
  812. update_time timestamp without time zone,
  813. remark character varying(255) DEFAULT NULL::character varying
  814. );
  815. ALTER TABLE km.sys_notice
  816. OWNER TO postgres;
  817. --
  818. -- Name: TABLE sys_notice; Type: COMMENT; Schema: public; Owner: postgres
  819. --
  820. COMMENT ON TABLE km.sys_notice IS '通知公告表';
  821. --
  822. -- Name: COLUMN sys_notice.notice_id; Type: COMMENT; Schema: public; Owner: postgres
  823. --
  824. COMMENT ON COLUMN km.sys_notice.notice_id IS '公告ID';
  825. --
  826. -- Name: COLUMN sys_notice.tenant_id; Type: COMMENT; Schema: public; Owner: postgres
  827. --
  828. COMMENT ON COLUMN km.sys_notice.tenant_id IS '租户编号';
  829. --
  830. -- Name: COLUMN sys_notice.notice_title; Type: COMMENT; Schema: public; Owner: postgres
  831. --
  832. COMMENT ON COLUMN km.sys_notice.notice_title IS '公告标题';
  833. --
  834. -- Name: COLUMN sys_notice.notice_type; Type: COMMENT; Schema: public; Owner: postgres
  835. --
  836. COMMENT ON COLUMN km.sys_notice.notice_type IS '公告类型(1通知 2公告)';
  837. --
  838. -- Name: COLUMN sys_notice.notice_content; Type: COMMENT; Schema: public; Owner: postgres
  839. --
  840. COMMENT ON COLUMN km.sys_notice.notice_content IS '公告内容';
  841. --
  842. -- Name: COLUMN sys_notice.status; Type: COMMENT; Schema: public; Owner: postgres
  843. --
  844. COMMENT ON COLUMN km.sys_notice.status IS '公告状态(0正常 1关闭)';
  845. --
  846. -- Name: COLUMN sys_notice.version; Type: COMMENT; Schema: public; Owner: postgres
  847. --
  848. COMMENT ON COLUMN km.sys_notice.version IS '乐观锁';
  849. --
  850. -- Name: COLUMN sys_notice.create_by; Type: COMMENT; Schema: public; Owner: postgres
  851. --
  852. COMMENT ON COLUMN km.sys_notice.create_by IS '创建者';
  853. --
  854. -- Name: COLUMN sys_notice.create_time; Type: COMMENT; Schema: public; Owner: postgres
  855. --
  856. COMMENT ON COLUMN km.sys_notice.create_time IS '创建时间';
  857. --
  858. -- Name: COLUMN sys_notice.update_by; Type: COMMENT; Schema: public; Owner: postgres
  859. --
  860. COMMENT ON COLUMN km.sys_notice.update_by IS '更新者';
  861. --
  862. -- Name: COLUMN sys_notice.update_time; Type: COMMENT; Schema: public; Owner: postgres
  863. --
  864. COMMENT ON COLUMN km.sys_notice.update_time IS '更新时间';
  865. --
  866. -- Name: COLUMN sys_notice.remark; Type: COMMENT; Schema: public; Owner: postgres
  867. --
  868. COMMENT ON COLUMN km.sys_notice.remark IS '备注';
  869. --
  870. -- Name: sys_oper_log; Type: TABLE; Schema: public; Owner: postgres
  871. --
  872. CREATE TABLE km.sys_oper_log
  873. (
  874. oper_id bigint NOT NULL,
  875. tenant_id bigint DEFAULT '0'::bigint NOT NULL,
  876. title character varying(50) DEFAULT ''::character varying,
  877. business_type integer DEFAULT 0,
  878. method character varying(100) DEFAULT ''::character varying,
  879. request_method character varying(10) DEFAULT ''::character varying,
  880. operator_type integer DEFAULT 0,
  881. oper_name character varying(50) DEFAULT ''::character varying,
  882. dept_name character varying(50) DEFAULT ''::character varying,
  883. oper_url character varying(255) DEFAULT ''::character varying,
  884. oper_ip character varying(128) DEFAULT ''::character varying,
  885. oper_location character varying(255) DEFAULT ''::character varying,
  886. oper_param character varying(2000) DEFAULT ''::character varying,
  887. json_result character varying(2000) DEFAULT ''::character varying,
  888. status integer DEFAULT 0,
  889. error_msg character varying(2000) DEFAULT ''::character varying,
  890. oper_time timestamp without time zone,
  891. cost_time bigint DEFAULT 0
  892. );
  893. ALTER TABLE km.sys_oper_log
  894. OWNER TO postgres;
  895. --
  896. -- Name: TABLE sys_oper_log; Type: COMMENT; Schema: public; Owner: postgres
  897. --
  898. COMMENT ON TABLE km.sys_oper_log IS '操作日志记录';
  899. --
  900. -- Name: COLUMN sys_oper_log.oper_id; Type: COMMENT; Schema: public; Owner: postgres
  901. --
  902. COMMENT ON COLUMN km.sys_oper_log.oper_id IS '日志主键';
  903. --
  904. -- Name: COLUMN sys_oper_log.tenant_id; Type: COMMENT; Schema: public; Owner: postgres
  905. --
  906. COMMENT ON COLUMN km.sys_oper_log.tenant_id IS '租户编号';
  907. --
  908. -- Name: COLUMN sys_oper_log.title; Type: COMMENT; Schema: public; Owner: postgres
  909. --
  910. COMMENT ON COLUMN km.sys_oper_log.title IS '模块标题';
  911. --
  912. -- Name: COLUMN sys_oper_log.business_type; Type: COMMENT; Schema: public; Owner: postgres
  913. --
  914. COMMENT ON COLUMN km.sys_oper_log.business_type IS '业务类型(0其它 1新增 2修改 3删除)';
  915. --
  916. -- Name: COLUMN sys_oper_log.method; Type: COMMENT; Schema: public; Owner: postgres
  917. --
  918. COMMENT ON COLUMN km.sys_oper_log.method IS '方法名称';
  919. --
  920. -- Name: COLUMN sys_oper_log.request_method; Type: COMMENT; Schema: public; Owner: postgres
  921. --
  922. COMMENT ON COLUMN km.sys_oper_log.request_method IS '请求方式';
  923. --
  924. -- Name: COLUMN sys_oper_log.operator_type; Type: COMMENT; Schema: public; Owner: postgres
  925. --
  926. COMMENT ON COLUMN km.sys_oper_log.operator_type IS '操作类别(0其它 1后台用户 2手机端用户)';
  927. --
  928. -- Name: COLUMN sys_oper_log.oper_name; Type: COMMENT; Schema: public; Owner: postgres
  929. --
  930. COMMENT ON COLUMN km.sys_oper_log.oper_name IS '操作人员';
  931. --
  932. -- Name: COLUMN sys_oper_log.dept_name; Type: COMMENT; Schema: public; Owner: postgres
  933. --
  934. COMMENT ON COLUMN km.sys_oper_log.dept_name IS '部门名称';
  935. --
  936. -- Name: COLUMN sys_oper_log.oper_url; Type: COMMENT; Schema: public; Owner: postgres
  937. --
  938. COMMENT ON COLUMN km.sys_oper_log.oper_url IS '请求URL';
  939. --
  940. -- Name: COLUMN sys_oper_log.oper_ip; Type: COMMENT; Schema: public; Owner: postgres
  941. --
  942. COMMENT ON COLUMN km.sys_oper_log.oper_ip IS '主机地址';
  943. --
  944. -- Name: COLUMN sys_oper_log.oper_location; Type: COMMENT; Schema: public; Owner: postgres
  945. --
  946. COMMENT ON COLUMN km.sys_oper_log.oper_location IS '操作地点';
  947. --
  948. -- Name: COLUMN sys_oper_log.oper_param; Type: COMMENT; Schema: public; Owner: postgres
  949. --
  950. COMMENT ON COLUMN km.sys_oper_log.oper_param IS '请求参数';
  951. --
  952. -- Name: COLUMN sys_oper_log.json_result; Type: COMMENT; Schema: public; Owner: postgres
  953. --
  954. COMMENT ON COLUMN km.sys_oper_log.json_result IS '返回参数';
  955. --
  956. -- Name: COLUMN sys_oper_log.status; Type: COMMENT; Schema: public; Owner: postgres
  957. --
  958. COMMENT ON COLUMN km.sys_oper_log.status IS '操作状态(0正常 1异常)';
  959. --
  960. -- Name: COLUMN sys_oper_log.error_msg; Type: COMMENT; Schema: public; Owner: postgres
  961. --
  962. COMMENT ON COLUMN km.sys_oper_log.error_msg IS '错误消息';
  963. --
  964. -- Name: COLUMN sys_oper_log.oper_time; Type: COMMENT; Schema: public; Owner: postgres
  965. --
  966. COMMENT ON COLUMN km.sys_oper_log.oper_time IS '操作时间';
  967. --
  968. -- Name: COLUMN sys_oper_log.cost_time; Type: COMMENT; Schema: public; Owner: postgres
  969. --
  970. COMMENT ON COLUMN km.sys_oper_log.cost_time IS '消耗时间';
  971. --
  972. -- Name: sys_oss; Type: TABLE; Schema: public; Owner: postgres
  973. --
  974. CREATE TABLE km.sys_oss
  975. (
  976. oss_id bigint NOT NULL,
  977. tenant_id bigint DEFAULT '0'::bigint NOT NULL,
  978. file_name character varying(255) DEFAULT ''::character varying NOT NULL,
  979. original_name character varying(255) DEFAULT ''::character varying NOT NULL,
  980. file_suffix character varying(10) DEFAULT ''::character varying NOT NULL,
  981. url character varying(500) DEFAULT ''::character varying NOT NULL,
  982. service character varying(20) DEFAULT 'minio'::character varying,
  983. version integer DEFAULT 0,
  984. create_by bigint,
  985. create_time timestamp without time zone,
  986. update_by bigint,
  987. update_time timestamp without time zone
  988. );
  989. ALTER TABLE km.sys_oss
  990. OWNER TO postgres;
  991. --
  992. -- Name: TABLE sys_oss; Type: COMMENT; Schema: public; Owner: postgres
  993. --
  994. COMMENT ON TABLE km.sys_oss IS 'OSS对象存储表';
  995. --
  996. -- Name: COLUMN sys_oss.oss_id; Type: COMMENT; Schema: public; Owner: postgres
  997. --
  998. COMMENT ON COLUMN km.sys_oss.oss_id IS '对象存储主键';
  999. --
  1000. -- Name: COLUMN sys_oss.tenant_id; Type: COMMENT; Schema: public; Owner: postgres
  1001. --
  1002. COMMENT ON COLUMN km.sys_oss.tenant_id IS '租户编码';
  1003. --
  1004. -- Name: COLUMN sys_oss.file_name; Type: COMMENT; Schema: public; Owner: postgres
  1005. --
  1006. COMMENT ON COLUMN km.sys_oss.file_name IS '文件名';
  1007. --
  1008. -- Name: COLUMN sys_oss.original_name; Type: COMMENT; Schema: public; Owner: postgres
  1009. --
  1010. COMMENT ON COLUMN km.sys_oss.original_name IS '原名';
  1011. --
  1012. -- Name: COLUMN sys_oss.file_suffix; Type: COMMENT; Schema: public; Owner: postgres
  1013. --
  1014. COMMENT ON COLUMN km.sys_oss.file_suffix IS '文件后缀名';
  1015. --
  1016. -- Name: COLUMN sys_oss.url; Type: COMMENT; Schema: public; Owner: postgres
  1017. --
  1018. COMMENT ON COLUMN km.sys_oss.url IS 'URL地址';
  1019. --
  1020. -- Name: COLUMN sys_oss.service; Type: COMMENT; Schema: public; Owner: postgres
  1021. --
  1022. COMMENT ON COLUMN km.sys_oss.service IS '服务商';
  1023. --
  1024. -- Name: COLUMN sys_oss.version; Type: COMMENT; Schema: public; Owner: postgres
  1025. --
  1026. COMMENT ON COLUMN km.sys_oss.version IS '乐观锁';
  1027. --
  1028. -- Name: COLUMN sys_oss.create_by; Type: COMMENT; Schema: public; Owner: postgres
  1029. --
  1030. COMMENT ON COLUMN km.sys_oss.create_by IS '上传人';
  1031. --
  1032. -- Name: COLUMN sys_oss.create_time; Type: COMMENT; Schema: public; Owner: postgres
  1033. --
  1034. COMMENT ON COLUMN km.sys_oss.create_time IS '创建时间';
  1035. --
  1036. -- Name: COLUMN sys_oss.update_by; Type: COMMENT; Schema: public; Owner: postgres
  1037. --
  1038. COMMENT ON COLUMN km.sys_oss.update_by IS '更新者';
  1039. --
  1040. -- Name: COLUMN sys_oss.update_time; Type: COMMENT; Schema: public; Owner: postgres
  1041. --
  1042. COMMENT ON COLUMN km.sys_oss.update_time IS '更新时间';
  1043. --
  1044. -- Name: sys_oss_config; Type: TABLE; Schema: public; Owner: postgres
  1045. --
  1046. CREATE TABLE km.sys_oss_config
  1047. (
  1048. oss_config_id bigint NOT NULL,
  1049. tenant_id bigint DEFAULT '0'::bigint NOT NULL,
  1050. config_key character varying(20) DEFAULT ''::character varying NOT NULL,
  1051. access_key character varying(255) DEFAULT ''::character varying,
  1052. secret_key character varying(255) DEFAULT ''::character varying,
  1053. bucket_name character varying(255) DEFAULT ''::character varying,
  1054. prefix character varying(255) DEFAULT ''::character varying,
  1055. endpoint character varying(255) DEFAULT ''::character varying,
  1056. domain_name character varying(255) DEFAULT ''::character varying,
  1057. is_https character(1) DEFAULT 'N'::bpchar,
  1058. region character varying(255) DEFAULT ''::character varying,
  1059. access_policy character(1) DEFAULT '1'::bpchar NOT NULL,
  1060. status character(1) DEFAULT '1'::bpchar,
  1061. ext1 character varying(255) DEFAULT ''::character varying,
  1062. version integer DEFAULT 0,
  1063. create_by bigint,
  1064. create_time timestamp without time zone,
  1065. update_by bigint,
  1066. update_time timestamp without time zone,
  1067. remark character varying(500) DEFAULT ''::character varying
  1068. );
  1069. ALTER TABLE km.sys_oss_config
  1070. OWNER TO postgres;
  1071. --
  1072. -- Name: TABLE sys_oss_config; Type: COMMENT; Schema: public; Owner: postgres
  1073. --
  1074. COMMENT ON TABLE km.sys_oss_config IS '对象存储配置表';
  1075. --
  1076. -- Name: COLUMN sys_oss_config.oss_config_id; Type: COMMENT; Schema: public; Owner: postgres
  1077. --
  1078. COMMENT ON COLUMN km.sys_oss_config.oss_config_id IS '主建';
  1079. --
  1080. -- Name: COLUMN sys_oss_config.tenant_id; Type: COMMENT; Schema: public; Owner: postgres
  1081. --
  1082. COMMENT ON COLUMN km.sys_oss_config.tenant_id IS '租户编码';
  1083. --
  1084. -- Name: COLUMN sys_oss_config.config_key; Type: COMMENT; Schema: public; Owner: postgres
  1085. --
  1086. COMMENT ON COLUMN km.sys_oss_config.config_key IS '配置key';
  1087. --
  1088. -- Name: COLUMN sys_oss_config.access_key; Type: COMMENT; Schema: public; Owner: postgres
  1089. --
  1090. COMMENT ON COLUMN km.sys_oss_config.access_key IS 'accessKey';
  1091. --
  1092. -- Name: COLUMN sys_oss_config.secret_key; Type: COMMENT; Schema: public; Owner: postgres
  1093. --
  1094. COMMENT ON COLUMN km.sys_oss_config.secret_key IS '秘钥';
  1095. --
  1096. -- Name: COLUMN sys_oss_config.bucket_name; Type: COMMENT; Schema: public; Owner: postgres
  1097. --
  1098. COMMENT ON COLUMN km.sys_oss_config.bucket_name IS '桶名称';
  1099. --
  1100. -- Name: COLUMN sys_oss_config.prefix; Type: COMMENT; Schema: public; Owner: postgres
  1101. --
  1102. COMMENT ON COLUMN km.sys_oss_config.prefix IS '前缀';
  1103. --
  1104. -- Name: COLUMN sys_oss_config.endpoint; Type: COMMENT; Schema: public; Owner: postgres
  1105. --
  1106. COMMENT ON COLUMN km.sys_oss_config.endpoint IS '访问站点';
  1107. --
  1108. -- Name: COLUMN sys_oss_config.domain; Type: COMMENT; Schema: public; Owner: postgres
  1109. --
  1110. COMMENT ON COLUMN km.sys_oss_config.domain_name IS '自定义域名';
  1111. --
  1112. -- Name: COLUMN sys_oss_config.is_https; Type: COMMENT; Schema: public; Owner: postgres
  1113. --
  1114. COMMENT ON COLUMN km.sys_oss_config.is_https IS '是否https(Y=是,N=否)';
  1115. --
  1116. -- Name: COLUMN sys_oss_config.region; Type: COMMENT; Schema: public; Owner: postgres
  1117. --
  1118. COMMENT ON COLUMN km.sys_oss_config.region IS '域';
  1119. --
  1120. -- Name: COLUMN sys_oss_config.access_policy; Type: COMMENT; Schema: public; Owner: postgres
  1121. --
  1122. COMMENT ON COLUMN km.sys_oss_config.access_policy IS '桶权限类型(0=private 1=public 2=custom)';
  1123. --
  1124. -- Name: COLUMN sys_oss_config.status; Type: COMMENT; Schema: public; Owner: postgres
  1125. --
  1126. COMMENT ON COLUMN km.sys_oss_config.status IS '是否默认(0=是,1=否)';
  1127. --
  1128. -- Name: COLUMN sys_oss_config.ext1; Type: COMMENT; Schema: public; Owner: postgres
  1129. --
  1130. COMMENT ON COLUMN km.sys_oss_config.ext1 IS '扩展字段';
  1131. --
  1132. -- Name: COLUMN sys_oss_config.version; Type: COMMENT; Schema: public; Owner: postgres
  1133. --
  1134. COMMENT ON COLUMN km.sys_oss_config.version IS '乐观锁';
  1135. --
  1136. -- Name: COLUMN sys_oss_config.create_by; Type: COMMENT; Schema: public; Owner: postgres
  1137. --
  1138. COMMENT ON COLUMN km.sys_oss_config.create_by IS '创建者';
  1139. --
  1140. -- Name: COLUMN sys_oss_config.create_time; Type: COMMENT; Schema: public; Owner: postgres
  1141. --
  1142. COMMENT ON COLUMN km.sys_oss_config.create_time IS '创建时间';
  1143. --
  1144. -- Name: COLUMN sys_oss_config.update_by; Type: COMMENT; Schema: public; Owner: postgres
  1145. --
  1146. COMMENT ON COLUMN km.sys_oss_config.update_by IS '更新者';
  1147. --
  1148. -- Name: COLUMN sys_oss_config.update_time; Type: COMMENT; Schema: public; Owner: postgres
  1149. --
  1150. COMMENT ON COLUMN km.sys_oss_config.update_time IS '更新时间';
  1151. --
  1152. -- Name: COLUMN sys_oss_config.remark; Type: COMMENT; Schema: public; Owner: postgres
  1153. --
  1154. COMMENT ON COLUMN km.sys_oss_config.remark IS '备注';
  1155. --
  1156. -- Name: sys_post; Type: TABLE; Schema: public; Owner: postgres
  1157. --
  1158. CREATE TABLE km.sys_post
  1159. (
  1160. post_id bigint NOT NULL,
  1161. tenant_id bigint DEFAULT '0'::bigint NOT NULL,
  1162. post_code character varying(64) NOT NULL,
  1163. post_name character varying(50) NOT NULL,
  1164. post_sort integer NOT NULL,
  1165. status character(1) NOT NULL,
  1166. version integer DEFAULT 0,
  1167. create_by bigint,
  1168. create_time timestamp without time zone,
  1169. update_by bigint,
  1170. update_time timestamp without time zone,
  1171. remark character varying(500) DEFAULT NULL::character varying
  1172. );
  1173. ALTER TABLE km.sys_post
  1174. OWNER TO postgres;
  1175. --
  1176. -- Name: TABLE sys_post; Type: COMMENT; Schema: public; Owner: postgres
  1177. --
  1178. COMMENT ON TABLE km.sys_post IS '岗位信息表';
  1179. --
  1180. -- Name: COLUMN sys_post.post_id; Type: COMMENT; Schema: public; Owner: postgres
  1181. --
  1182. COMMENT ON COLUMN km.sys_post.post_id IS '岗位ID';
  1183. --
  1184. -- Name: COLUMN sys_post.tenant_id; Type: COMMENT; Schema: public; Owner: postgres
  1185. --
  1186. COMMENT ON COLUMN km.sys_post.tenant_id IS '租户编号';
  1187. --
  1188. -- Name: COLUMN sys_post.post_code; Type: COMMENT; Schema: public; Owner: postgres
  1189. --
  1190. COMMENT ON COLUMN km.sys_post.post_code IS '岗位编码';
  1191. --
  1192. -- Name: COLUMN sys_post.post_name; Type: COMMENT; Schema: public; Owner: postgres
  1193. --
  1194. COMMENT ON COLUMN km.sys_post.post_name IS '岗位名称';
  1195. --
  1196. -- Name: COLUMN sys_post.post_sort; Type: COMMENT; Schema: public; Owner: postgres
  1197. --
  1198. COMMENT ON COLUMN km.sys_post.post_sort IS '显示顺序';
  1199. --
  1200. -- Name: COLUMN sys_post.status; Type: COMMENT; Schema: public; Owner: postgres
  1201. --
  1202. COMMENT ON COLUMN km.sys_post.status IS '状态(0正常 1停用)';
  1203. --
  1204. -- Name: COLUMN sys_post.version; Type: COMMENT; Schema: public; Owner: postgres
  1205. --
  1206. COMMENT ON COLUMN km.sys_post.version IS '乐观锁';
  1207. --
  1208. -- Name: COLUMN sys_post.create_by; Type: COMMENT; Schema: public; Owner: postgres
  1209. --
  1210. COMMENT ON COLUMN km.sys_post.create_by IS '创建者';
  1211. --
  1212. -- Name: COLUMN sys_post.create_time; Type: COMMENT; Schema: public; Owner: postgres
  1213. --
  1214. COMMENT ON COLUMN km.sys_post.create_time IS '创建时间';
  1215. --
  1216. -- Name: COLUMN sys_post.update_by; Type: COMMENT; Schema: public; Owner: postgres
  1217. --
  1218. COMMENT ON COLUMN km.sys_post.update_by IS '更新者';
  1219. --
  1220. -- Name: COLUMN sys_post.update_time; Type: COMMENT; Schema: public; Owner: postgres
  1221. --
  1222. COMMENT ON COLUMN km.sys_post.update_time IS '更新时间';
  1223. --
  1224. -- Name: COLUMN sys_post.remark; Type: COMMENT; Schema: public; Owner: postgres
  1225. --
  1226. COMMENT ON COLUMN km.sys_post.remark IS '备注';
  1227. --
  1228. -- Name: sys_role; Type: TABLE; Schema: public; Owner: postgres
  1229. --
  1230. CREATE TABLE km.sys_role
  1231. (
  1232. role_id bigint NOT NULL,
  1233. tenant_id bigint DEFAULT 0,
  1234. role_name character varying(30) NOT NULL,
  1235. role_key character varying(100) NOT NULL,
  1236. role_sort integer NOT NULL,
  1237. data_scope character(1) DEFAULT '1'::bpchar,
  1238. menu_check_strictly boolean DEFAULT true,
  1239. dept_check_strictly boolean DEFAULT true,
  1240. status character(1) NOT NULL,
  1241. version integer DEFAULT 0,
  1242. del_flag smallint DEFAULT 0,
  1243. create_by bigint,
  1244. create_time timestamp without time zone,
  1245. update_by bigint,
  1246. update_time timestamp without time zone,
  1247. remark character varying(500) DEFAULT NULL::character varying
  1248. );
  1249. ALTER TABLE km.sys_role
  1250. OWNER TO postgres;
  1251. --
  1252. -- Name: TABLE sys_role; Type: COMMENT; Schema: public; Owner: postgres
  1253. --
  1254. COMMENT ON TABLE km.sys_role IS '角色信息表';
  1255. --
  1256. -- Name: COLUMN sys_role.role_id; Type: COMMENT; Schema: public; Owner: postgres
  1257. --
  1258. COMMENT ON COLUMN km.sys_role.role_id IS '角色ID';
  1259. --
  1260. -- Name: COLUMN sys_role.tenant_id; Type: COMMENT; Schema: public; Owner: postgres
  1261. --
  1262. COMMENT ON COLUMN km.sys_role.tenant_id IS '租户编号';
  1263. --
  1264. -- Name: COLUMN sys_role.role_name; Type: COMMENT; Schema: public; Owner: postgres
  1265. --
  1266. COMMENT ON COLUMN km.sys_role.role_name IS '角色名称';
  1267. --
  1268. -- Name: COLUMN sys_role.role_key; Type: COMMENT; Schema: public; Owner: postgres
  1269. --
  1270. COMMENT ON COLUMN km.sys_role.role_key IS '角色权限字符串';
  1271. --
  1272. -- Name: COLUMN sys_role.role_sort; Type: COMMENT; Schema: public; Owner: postgres
  1273. --
  1274. COMMENT ON COLUMN km.sys_role.role_sort IS '显示顺序';
  1275. --
  1276. -- Name: COLUMN sys_role.data_scope; Type: COMMENT; Schema: public; Owner: postgres
  1277. --
  1278. COMMENT ON COLUMN km.sys_role.data_scope IS '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)';
  1279. --
  1280. -- Name: COLUMN sys_role.menu_check_strictly; Type: COMMENT; Schema: public; Owner: postgres
  1281. --
  1282. COMMENT ON COLUMN km.sys_role.menu_check_strictly IS '菜单树选择项是否关联显示';
  1283. --
  1284. -- Name: COLUMN sys_role.dept_check_strictly; Type: COMMENT; Schema: public; Owner: postgres
  1285. --
  1286. COMMENT ON COLUMN km.sys_role.dept_check_strictly IS '部门树选择项是否关联显示';
  1287. --
  1288. -- Name: COLUMN sys_role.status; Type: COMMENT; Schema: public; Owner: postgres
  1289. --
  1290. COMMENT ON COLUMN km.sys_role.status IS '角色状态(0正常 1停用)';
  1291. --
  1292. -- Name: COLUMN sys_role.version; Type: COMMENT; Schema: public; Owner: postgres
  1293. --
  1294. COMMENT ON COLUMN km.sys_role.version IS '乐观锁';
  1295. --
  1296. -- Name: COLUMN sys_role.del_flag; Type: COMMENT; Schema: public; Owner: postgres
  1297. --
  1298. COMMENT ON COLUMN km.sys_role.del_flag IS '删除标志(0代表存在 1代表删除)';
  1299. --
  1300. -- Name: COLUMN sys_role.create_by; Type: COMMENT; Schema: public; Owner: postgres
  1301. --
  1302. COMMENT ON COLUMN km.sys_role.create_by IS '创建者';
  1303. --
  1304. -- Name: COLUMN sys_role.create_time; Type: COMMENT; Schema: public; Owner: postgres
  1305. --
  1306. COMMENT ON COLUMN km.sys_role.create_time IS '创建时间';
  1307. --
  1308. -- Name: COLUMN sys_role.update_by; Type: COMMENT; Schema: public; Owner: postgres
  1309. --
  1310. COMMENT ON COLUMN km.sys_role.update_by IS '更新者';
  1311. --
  1312. -- Name: COLUMN sys_role.update_time; Type: COMMENT; Schema: public; Owner: postgres
  1313. --
  1314. COMMENT ON COLUMN km.sys_role.update_time IS '更新时间';
  1315. --
  1316. -- Name: COLUMN sys_role.remark; Type: COMMENT; Schema: public; Owner: postgres
  1317. --
  1318. COMMENT ON COLUMN km.sys_role.remark IS '备注';
  1319. --
  1320. -- Name: sys_role_dept; Type: TABLE; Schema: public; Owner: postgres
  1321. --
  1322. CREATE TABLE km.sys_role_dept
  1323. (
  1324. role_id bigint NOT NULL,
  1325. dept_id bigint NOT NULL
  1326. );
  1327. ALTER TABLE km.sys_role_dept
  1328. OWNER TO postgres;
  1329. --
  1330. -- Name: TABLE sys_role_dept; Type: COMMENT; Schema: public; Owner: postgres
  1331. --
  1332. COMMENT ON TABLE km.sys_role_dept IS '角色和部门关联表';
  1333. --
  1334. -- Name: COLUMN sys_role_dept.role_id; Type: COMMENT; Schema: public; Owner: postgres
  1335. --
  1336. COMMENT ON COLUMN km.sys_role_dept.role_id IS '角色ID';
  1337. --
  1338. -- Name: COLUMN sys_role_dept.dept_id; Type: COMMENT; Schema: public; Owner: postgres
  1339. --
  1340. COMMENT ON COLUMN km.sys_role_dept.dept_id IS '部门ID';
  1341. --
  1342. -- Name: sys_role_menu; Type: TABLE; Schema: public; Owner: postgres
  1343. --
  1344. CREATE TABLE km.sys_role_menu
  1345. (
  1346. role_id bigint NOT NULL,
  1347. menu_id bigint NOT NULL
  1348. );
  1349. ALTER TABLE km.sys_role_menu
  1350. OWNER TO postgres;
  1351. --
  1352. -- Name: TABLE sys_role_menu; Type: COMMENT; Schema: public; Owner: postgres
  1353. --
  1354. COMMENT ON TABLE km.sys_role_menu IS '角色和菜单关联表';
  1355. --
  1356. -- Name: COLUMN sys_role_menu.role_id; Type: COMMENT; Schema: public; Owner: postgres
  1357. --
  1358. COMMENT ON COLUMN km.sys_role_menu.role_id IS '角色ID';
  1359. --
  1360. -- Name: COLUMN sys_role_menu.menu_id; Type: COMMENT; Schema: public; Owner: postgres
  1361. --
  1362. COMMENT ON COLUMN km.sys_role_menu.menu_id IS '菜单ID';
  1363. --
  1364. -- Name: sys_tenant; Type: TABLE; Schema: public; Owner: postgres
  1365. --
  1366. CREATE TABLE km.sys_tenant
  1367. (
  1368. tenant_id bigint NOT NULL,
  1369. contact_user_name character varying(20) DEFAULT NULL::character varying,
  1370. contact_phone character varying(20) DEFAULT NULL::character varying,
  1371. company_name character varying(50) DEFAULT NULL::character varying,
  1372. license_number character varying(30) DEFAULT NULL::character varying,
  1373. address character varying(200) DEFAULT NULL::character varying,
  1374. intro character varying(200) DEFAULT NULL::character varying,
  1375. domain_name character varying(200) DEFAULT NULL::character varying,
  1376. remark character varying(200) DEFAULT NULL::character varying,
  1377. package_id bigint,
  1378. expire_time timestamp without time zone,
  1379. account_count integer DEFAULT '-1'::integer,
  1380. status character(1) DEFAULT '0'::bpchar,
  1381. version integer DEFAULT 0,
  1382. del_flag smallint DEFAULT 0,
  1383. create_by bigint,
  1384. create_time timestamp without time zone,
  1385. update_by bigint,
  1386. update_time timestamp without time zone
  1387. );
  1388. ALTER TABLE km.sys_tenant
  1389. OWNER TO postgres;
  1390. --
  1391. -- Name: TABLE sys_tenant; Type: COMMENT; Schema: public; Owner: postgres
  1392. --
  1393. COMMENT ON TABLE km.sys_tenant IS '租户表';
  1394. --
  1395. -- Name: COLUMN sys_tenant.tenant_id; Type: COMMENT; Schema: public; Owner: postgres
  1396. --
  1397. COMMENT ON COLUMN km.sys_tenant.tenant_id IS '租户编号';
  1398. --
  1399. -- Name: COLUMN sys_tenant.contact_user_name; Type: COMMENT; Schema: public; Owner: postgres
  1400. --
  1401. COMMENT ON COLUMN km.sys_tenant.contact_user_name IS '联系人';
  1402. --
  1403. -- Name: COLUMN sys_tenant.contact_phone; Type: COMMENT; Schema: public; Owner: postgres
  1404. --
  1405. COMMENT ON COLUMN km.sys_tenant.contact_phone IS '联系电话';
  1406. --
  1407. -- Name: COLUMN sys_tenant.company_name; Type: COMMENT; Schema: public; Owner: postgres
  1408. --
  1409. COMMENT ON COLUMN km.sys_tenant.company_name IS '企业名称';
  1410. --
  1411. -- Name: COLUMN sys_tenant.license_number; Type: COMMENT; Schema: public; Owner: postgres
  1412. --
  1413. COMMENT ON COLUMN km.sys_tenant.license_number IS '统一社会信用代码';
  1414. --
  1415. -- Name: COLUMN sys_tenant.address; Type: COMMENT; Schema: public; Owner: postgres
  1416. --
  1417. COMMENT ON COLUMN km.sys_tenant.address IS '地址';
  1418. --
  1419. -- Name: COLUMN sys_tenant.intro; Type: COMMENT; Schema: public; Owner: postgres
  1420. --
  1421. COMMENT ON COLUMN km.sys_tenant.intro IS '企业简介';
  1422. --
  1423. -- Name: COLUMN sys_tenant.domain; Type: COMMENT; Schema: public; Owner: postgres
  1424. --
  1425. COMMENT ON COLUMN km.sys_tenant.domain_name IS '域名';
  1426. --
  1427. -- Name: COLUMN sys_tenant.remark; Type: COMMENT; Schema: public; Owner: postgres
  1428. --
  1429. COMMENT ON COLUMN km.sys_tenant.remark IS '备注';
  1430. --
  1431. -- Name: COLUMN sys_tenant.package_id; Type: COMMENT; Schema: public; Owner: postgres
  1432. --
  1433. COMMENT ON COLUMN km.sys_tenant.package_id IS '租户套餐编号';
  1434. --
  1435. -- Name: COLUMN sys_tenant.expire_time; Type: COMMENT; Schema: public; Owner: postgres
  1436. --
  1437. COMMENT ON COLUMN km.sys_tenant.expire_time IS '过期时间';
  1438. --
  1439. -- Name: COLUMN sys_tenant.account_count; Type: COMMENT; Schema: public; Owner: postgres
  1440. --
  1441. COMMENT ON COLUMN km.sys_tenant.account_count IS '用户数量(-1不限制)';
  1442. --
  1443. -- Name: COLUMN sys_tenant.status; Type: COMMENT; Schema: public; Owner: postgres
  1444. --
  1445. COMMENT ON COLUMN km.sys_tenant.status IS '租户状态(0正常 1停用)';
  1446. --
  1447. -- Name: COLUMN sys_tenant.version; Type: COMMENT; Schema: public; Owner: postgres
  1448. --
  1449. COMMENT ON COLUMN km.sys_tenant.version IS '乐观锁';
  1450. --
  1451. -- Name: COLUMN sys_tenant.del_flag; Type: COMMENT; Schema: public; Owner: postgres
  1452. --
  1453. COMMENT ON COLUMN km.sys_tenant.del_flag IS '删除标志(0代表存在 1代表删除)';
  1454. --
  1455. -- Name: COLUMN sys_tenant.create_by; Type: COMMENT; Schema: public; Owner: postgres
  1456. --
  1457. COMMENT ON COLUMN km.sys_tenant.create_by IS '创建者';
  1458. --
  1459. -- Name: COLUMN sys_tenant.create_time; Type: COMMENT; Schema: public; Owner: postgres
  1460. --
  1461. COMMENT ON COLUMN km.sys_tenant.create_time IS '创建时间';
  1462. --
  1463. -- Name: COLUMN sys_tenant.update_by; Type: COMMENT; Schema: public; Owner: postgres
  1464. --
  1465. COMMENT ON COLUMN km.sys_tenant.update_by IS '更新者';
  1466. --
  1467. -- Name: COLUMN sys_tenant.update_time; Type: COMMENT; Schema: public; Owner: postgres
  1468. --
  1469. COMMENT ON COLUMN km.sys_tenant.update_time IS '更新时间';
  1470. --
  1471. -- Name: sys_tenant_package; Type: TABLE; Schema: public; Owner: postgres
  1472. --
  1473. CREATE TABLE km.sys_tenant_package
  1474. (
  1475. package_id bigint NOT NULL,
  1476. package_name character varying(20) DEFAULT ''::character varying,
  1477. menu_ids character varying(3000) DEFAULT ''::character varying,
  1478. remark character varying(200) DEFAULT ''::character varying,
  1479. menu_check_strictly boolean DEFAULT true,
  1480. status character(1) DEFAULT '0'::bpchar,
  1481. version integer DEFAULT 0,
  1482. del_flag smallint DEFAULT 0,
  1483. create_by bigint,
  1484. create_time timestamp without time zone,
  1485. update_by bigint,
  1486. update_time timestamp without time zone
  1487. );
  1488. ALTER TABLE km.sys_tenant_package
  1489. OWNER TO postgres;
  1490. --
  1491. -- Name: TABLE sys_tenant_package; Type: COMMENT; Schema: public; Owner: postgres
  1492. --
  1493. COMMENT ON TABLE km.sys_tenant_package IS '租户套餐表';
  1494. --
  1495. -- Name: COLUMN sys_tenant_package.package_id; Type: COMMENT; Schema: public; Owner: postgres
  1496. --
  1497. COMMENT ON COLUMN km.sys_tenant_package.package_id IS '租户套餐id';
  1498. --
  1499. -- Name: COLUMN sys_tenant_package.package_name; Type: COMMENT; Schema: public; Owner: postgres
  1500. --
  1501. COMMENT ON COLUMN km.sys_tenant_package.package_name IS '套餐名称';
  1502. --
  1503. -- Name: COLUMN sys_tenant_package.menu_ids; Type: COMMENT; Schema: public; Owner: postgres
  1504. --
  1505. COMMENT ON COLUMN km.sys_tenant_package.menu_ids IS '关联菜单id';
  1506. --
  1507. -- Name: COLUMN sys_tenant_package.remark; Type: COMMENT; Schema: public; Owner: postgres
  1508. --
  1509. COMMENT ON COLUMN km.sys_tenant_package.remark IS '备注';
  1510. --
  1511. -- Name: COLUMN sys_tenant_package.status; Type: COMMENT; Schema: public; Owner: postgres
  1512. --
  1513. COMMENT ON COLUMN km.sys_tenant_package.status IS '状态(0正常 1停用)';
  1514. --
  1515. -- Name: COLUMN sys_tenant_package.version; Type: COMMENT; Schema: public; Owner: postgres
  1516. --
  1517. COMMENT ON COLUMN km.sys_tenant_package.version IS '乐观锁';
  1518. --
  1519. -- Name: COLUMN sys_tenant_package.del_flag; Type: COMMENT; Schema: public; Owner: postgres
  1520. --
  1521. COMMENT ON COLUMN km.sys_tenant_package.del_flag IS '删除标志(0代表存在 1代表删除)';
  1522. --
  1523. -- Name: COLUMN sys_tenant_package.create_by; Type: COMMENT; Schema: public; Owner: postgres
  1524. --
  1525. COMMENT ON COLUMN km.sys_tenant_package.create_by IS '创建者';
  1526. --
  1527. -- Name: COLUMN sys_tenant_package.create_time; Type: COMMENT; Schema: public; Owner: postgres
  1528. --
  1529. COMMENT ON COLUMN km.sys_tenant_package.create_time IS '创建时间';
  1530. --
  1531. -- Name: COLUMN sys_tenant_package.update_by; Type: COMMENT; Schema: public; Owner: postgres
  1532. --
  1533. COMMENT ON COLUMN km.sys_tenant_package.update_by IS '更新者';
  1534. --
  1535. -- Name: COLUMN sys_tenant_package.update_time; Type: COMMENT; Schema: public; Owner: postgres
  1536. --
  1537. COMMENT ON COLUMN km.sys_tenant_package.update_time IS '更新时间';
  1538. --
  1539. -- Name: sys_user; Type: TABLE; Schema: public; Owner: postgres
  1540. --
  1541. CREATE TABLE km.sys_user
  1542. (
  1543. user_id bigint NOT NULL,
  1544. tenant_id bigint,
  1545. dept_id bigint,
  1546. user_name character varying(30) NOT NULL,
  1547. nick_name character varying(30) NOT NULL,
  1548. user_type character varying(10) DEFAULT 'sys_user'::character varying,
  1549. email character varying(50) DEFAULT ''::character varying NOT NULL,
  1550. phonenumber character varying(11) DEFAULT ''::character varying,
  1551. gender character(1) DEFAULT '0'::bpchar,
  1552. avatar bigint,
  1553. password character varying(100) DEFAULT ''::character varying,
  1554. status character(1) DEFAULT '0'::bpchar,
  1555. version integer DEFAULT 0,
  1556. del_flag smallint DEFAULT 0,
  1557. login_ip character varying(128) DEFAULT ''::character varying,
  1558. login_date timestamp without time zone,
  1559. create_by bigint,
  1560. create_time timestamp without time zone,
  1561. update_by bigint,
  1562. update_time timestamp without time zone,
  1563. remark character varying(500) DEFAULT NULL::character varying
  1564. );
  1565. ALTER TABLE km.sys_user
  1566. OWNER TO postgres;
  1567. --
  1568. -- Name: TABLE sys_user; Type: COMMENT; Schema: public; Owner: postgres
  1569. --
  1570. COMMENT ON TABLE km.sys_user IS '用户信息表';
  1571. --
  1572. -- Name: COLUMN sys_user.user_id; Type: COMMENT; Schema: public; Owner: postgres
  1573. --
  1574. COMMENT ON COLUMN km.sys_user.user_id IS '用户ID';
  1575. --
  1576. -- Name: COLUMN sys_user.tenant_id; Type: COMMENT; Schema: public; Owner: postgres
  1577. --
  1578. COMMENT ON COLUMN km.sys_user.tenant_id IS '租户编号';
  1579. --
  1580. -- Name: COLUMN sys_user.dept_id; Type: COMMENT; Schema: public; Owner: postgres
  1581. --
  1582. COMMENT ON COLUMN km.sys_user.dept_id IS '部门ID';
  1583. --
  1584. -- Name: COLUMN sys_user.user_name; Type: COMMENT; Schema: public; Owner: postgres
  1585. --
  1586. COMMENT ON COLUMN km.sys_user.user_name IS '用户账号';
  1587. --
  1588. -- Name: COLUMN sys_user.nick_name; Type: COMMENT; Schema: public; Owner: postgres
  1589. --
  1590. COMMENT ON COLUMN km.sys_user.nick_name IS '用户昵称';
  1591. --
  1592. -- Name: COLUMN sys_user.user_type; Type: COMMENT; Schema: public; Owner: postgres
  1593. --
  1594. COMMENT ON COLUMN km.sys_user.user_type IS '用户类型(sys_user系统用户)';
  1595. --
  1596. -- Name: COLUMN sys_user.email; Type: COMMENT; Schema: public; Owner: postgres
  1597. --
  1598. COMMENT ON COLUMN km.sys_user.email IS '用户邮箱';
  1599. --
  1600. -- Name: COLUMN sys_user.phonenumber; Type: COMMENT; Schema: public; Owner: postgres
  1601. --
  1602. COMMENT ON COLUMN km.sys_user.phonenumber IS '手机号码';
  1603. --
  1604. -- Name: COLUMN sys_user.gender; Type: COMMENT; Schema: public; Owner: postgres
  1605. --
  1606. COMMENT ON COLUMN km.sys_user.gender IS '用户性别(0男 1女 2未知)';
  1607. --
  1608. -- Name: COLUMN sys_user.avatar; Type: COMMENT; Schema: public; Owner: postgres
  1609. --
  1610. COMMENT ON COLUMN km.sys_user.avatar IS '头像地址';
  1611. --
  1612. -- Name: COLUMN sys_user.password; Type: COMMENT; Schema: public; Owner: postgres
  1613. --
  1614. COMMENT ON COLUMN km.sys_user.password IS '密码';
  1615. --
  1616. -- Name: COLUMN sys_user.status; Type: COMMENT; Schema: public; Owner: postgres
  1617. --
  1618. COMMENT ON COLUMN km.sys_user.status IS '帐号状态(0正常 1停用)';
  1619. --
  1620. -- Name: COLUMN sys_user.version; Type: COMMENT; Schema: public; Owner: postgres
  1621. --
  1622. COMMENT ON COLUMN km.sys_user.version IS '乐观锁';
  1623. --
  1624. -- Name: COLUMN sys_user.del_flag; Type: COMMENT; Schema: public; Owner: postgres
  1625. --
  1626. COMMENT ON COLUMN km.sys_user.del_flag IS '删除标志(0代表存在 1代表删除)';
  1627. --
  1628. -- Name: COLUMN sys_user.login_ip; Type: COMMENT; Schema: public; Owner: postgres
  1629. --
  1630. COMMENT ON COLUMN km.sys_user.login_ip IS '最后登陆IP';
  1631. --
  1632. -- Name: COLUMN sys_user.login_date; Type: COMMENT; Schema: public; Owner: postgres
  1633. --
  1634. COMMENT ON COLUMN km.sys_user.login_date IS '最后登陆时间';
  1635. --
  1636. -- Name: COLUMN sys_user.create_by; Type: COMMENT; Schema: public; Owner: postgres
  1637. --
  1638. COMMENT ON COLUMN km.sys_user.create_by IS '创建者';
  1639. --
  1640. -- Name: COLUMN sys_user.create_time; Type: COMMENT; Schema: public; Owner: postgres
  1641. --
  1642. COMMENT ON COLUMN km.sys_user.create_time IS '创建时间';
  1643. --
  1644. -- Name: COLUMN sys_user.update_by; Type: COMMENT; Schema: public; Owner: postgres
  1645. --
  1646. COMMENT ON COLUMN km.sys_user.update_by IS '更新者';
  1647. --
  1648. -- Name: COLUMN sys_user.update_time; Type: COMMENT; Schema: public; Owner: postgres
  1649. --
  1650. COMMENT ON COLUMN km.sys_user.update_time IS '更新时间';
  1651. --
  1652. -- Name: COLUMN sys_user.remark; Type: COMMENT; Schema: public; Owner: postgres
  1653. --
  1654. COMMENT ON COLUMN km.sys_user.remark IS '备注';
  1655. --
  1656. -- Name: sys_user_post; Type: TABLE; Schema: public; Owner: postgres
  1657. --
  1658. CREATE TABLE km.sys_user_post
  1659. (
  1660. user_id bigint NOT NULL,
  1661. post_id bigint NOT NULL
  1662. );
  1663. ALTER TABLE km.sys_user_post
  1664. OWNER TO postgres;
  1665. --
  1666. -- Name: TABLE sys_user_post; Type: COMMENT; Schema: public; Owner: postgres
  1667. --
  1668. COMMENT ON TABLE km.sys_user_post IS '用户与岗位关联表';
  1669. --
  1670. -- Name: COLUMN sys_user_post.user_id; Type: COMMENT; Schema: public; Owner: postgres
  1671. --
  1672. COMMENT ON COLUMN km.sys_user_post.user_id IS '用户ID';
  1673. COMMENT ON COLUMN km.sys_user_post.post_id IS '岗位ID';
  1674. CREATE TABLE km.sys_user_role
  1675. (
  1676. user_id bigint NOT NULL,
  1677. role_id bigint NOT NULL
  1678. );
  1679. ALTER TABLE km.sys_user_role
  1680. OWNER TO postgres;
  1681. COMMENT ON TABLE km.sys_user_role IS '用户和角色关联表';
  1682. COMMENT ON COLUMN km.sys_user_role.user_id IS '用户ID';
  1683. COMMENT ON COLUMN km.sys_user_role.role_id IS '角色ID';
  1684. INSERT INTO km.gen_table (table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name,
  1685. tpl_category, package_name, module_name, business_name, function_name, function_author,
  1686. gen_type, gen_path, options, version, create_by, create_time, update_by, update_time,
  1687. remark)
  1688. VALUES (109840202632585216, 'mf_student', '学生信息单表', '', '', 'MfStudent', 'crud', 'com.km.demo', 'demo', 'student',
  1689. '学生信息单', 'km', '0', '/', '{}', 1, 1, '2024-01-30 15:26:45', 1, '2024-02-03 15:04:59.278', NULL);
  1690. INSERT INTO km.gen_table (table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name,
  1691. tpl_category, package_name, module_name, business_name, function_name, function_author,
  1692. gen_type, gen_path, options, version, create_by, create_time, update_by, update_time,
  1693. remark)
  1694. VALUES (111209285756723200, 'sys_config', '参数配置表', '', '', 'SysConfig', 'crud', 'com.km.demo', 'demo', 'config',
  1695. '参数配置', 'km', '0', '/', '{}', 1, 1, '2024-02-03 10:06:59', 1, '2024-02-03 15:11:38.336', NULL);
  1696. INSERT INTO km.gen_table (table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name,
  1697. tpl_category, package_name, module_name, business_name, function_name, function_author,
  1698. gen_type, gen_path, options, version, create_by, create_time, update_by, update_time,
  1699. remark)
  1700. VALUES (111213300984913920, 'demo_product', '产品树表(mb)', '', '', 'DemoProduct', 'crud', 'com.km.demo', 'demo',
  1701. 'product', '产品树(mb)', 'km', '0', '/', '{}', 1, 1, '2024-02-03 10:22:57', 1, '2024-02-03 15:30:37.067', NULL);
  1702. INSERT INTO km.gen_table (table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name,
  1703. tpl_category, package_name, module_name, business_name, function_name, function_author,
  1704. gen_type, gen_path, options, version, create_by, create_time, update_by, update_time,
  1705. remark)
  1706. VALUES (111213943543898112, 'sys_dept', '部门表', '', '', 'SysDept', 'crud', 'com.km.demo', 'demo', 'dept', '部门',
  1707. 'km', '0', '/', '{}', 1, 1, '2024-02-03 10:25:30', 1, '2024-02-03 15:30:42.3', NULL);
  1708. INSERT INTO km.gen_table (table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name,
  1709. tpl_category, package_name, module_name, business_name, function_name, function_author,
  1710. gen_type, gen_path, options, version, create_by, create_time, update_by, update_time,
  1711. remark)
  1712. VALUES (111291159158001664, 'sys_user', '用户信息表', '', '', 'SysUser', 'crud', 'com.km.demo', 'demo', 'user',
  1713. '用户信息', 'km', '0', '/', '{}', 1, 1, '2024-02-03 15:32:20', 1, '2024-02-03 15:32:34.773', NULL);
  1714. --
  1715. -- Data for Name: gen_table_column; Type: TABLE DATA; Schema: public; Owner: postgres
  1716. --
  1717. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1718. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1719. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1720. update_by, update_time)
  1721. VALUES (111209285861580800, 111209285756723200, 'config_id', '参数主键', 'bigint', 'Long', 'configId', '1', '0', '1',
  1722. NULL, '1', '1', NULL, 'EQ', 'input', '', 1, 1, 1, '2024-02-03 10:06:59', 1, '2024-02-03 15:11:38.336');
  1723. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1724. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1725. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1726. update_by, update_time)
  1727. VALUES (111209285899329536, 111209285756723200, 'tenant_id', '租户编号', 'bigint', 'Long', 'tenantId', '0', '0', '1',
  1728. NULL, NULL, NULL, NULL, 'EQ', 'input', '', 2, 1, 1, '2024-02-03 10:06:59', 1, '2024-02-03 15:11:38.336');
  1729. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1730. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1731. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1732. update_by, update_time)
  1733. VALUES (111209285928689664, 111209285756723200, 'config_name', '参数名称', 'character varying', 'String', 'configName',
  1734. '0', '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 3, 1, 1, '2024-02-03 10:06:59', 1,
  1735. '2024-02-03 15:11:38.336');
  1736. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1737. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1738. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1739. update_by, update_time)
  1740. VALUES (111209285932883968, 111209285756723200, 'config_key', '参数键名', 'character varying', 'String', 'configKey',
  1741. '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 4, 1, 1, '2024-02-03 10:06:59', 1,
  1742. '2024-02-03 15:11:38.336');
  1743. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1744. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1745. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1746. update_by, update_time)
  1747. VALUES (111209285949661184, 111209285756723200, 'config_value', '参数键值', 'character varying', 'String',
  1748. 'configValue', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 5, 1, 1, '2024-02-03 10:06:59', 1,
  1749. '2024-02-03 15:11:38.336');
  1750. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1751. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1752. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1753. update_by, update_time)
  1754. VALUES (111209285962244096, 111209285756723200, 'config_type', '系统内置(Y是 N否)', 'character', 'String', 'configType',
  1755. '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', '', 6, 1, 1, '2024-02-03 10:06:59', 1,
  1756. '2024-02-03 15:11:38.336');
  1757. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1758. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1759. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1760. update_by, update_time)
  1761. VALUES (111209286004187136, 111209285756723200, 'version', '乐观锁', 'integer', 'Integer', 'version', '0', '0', '1',
  1762. NULL, '1', NULL, NULL, 'EQ', 'input', '', 7, 1, 1, '2024-02-03 10:06:59', 1, '2024-02-03 15:11:38.336');
  1763. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1764. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1765. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1766. update_by, update_time)
  1767. VALUES (111209286008381440, 111209285756723200, 'create_by', '创建者', 'bigint', 'Long', 'createBy', '0', '0', '0',
  1768. NULL, NULL, NULL, NULL, 'EQ', 'input', '', 8, 1, 1, '2024-02-03 10:06:59', 1, '2024-02-03 15:11:38.336');
  1769. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1770. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1771. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1772. update_by, update_time)
  1773. VALUES (111213301018468352, 111213300984913920, 'product_id', '产品id', 'bigint', 'Long', 'productId', '1', '1', '1',
  1774. NULL, '1', '1', NULL, 'EQ', 'input', '', 1, 1, 1, '2024-02-03 10:22:57', 1, '2024-02-03 15:30:37.067');
  1775. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1776. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1777. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1778. update_by, update_time)
  1779. VALUES (111213301026856960, 111213300984913920, 'parent_id', '父产品id', 'bigint', 'Long', 'parentId', '0', '0', '1',
  1780. '1', '1', '1', '1', 'EQ', 'input', '', 2, 1, 1, '2024-02-03 10:22:57', 1, '2024-02-03 15:30:37.067');
  1781. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1782. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1783. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1784. update_by, update_time)
  1785. VALUES (111213301035245568, 111213300984913920, 'product_name', '产品名称', 'character varying', 'String',
  1786. 'productName', '0', '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 3, 1, 1, '2024-02-03 10:22:57', 1,
  1787. '2024-02-03 15:30:37.067');
  1788. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1789. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1790. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1791. update_by, update_time)
  1792. VALUES (111213301039439872, 111213300984913920, 'order_num', '显示顺序', 'integer', 'Integer', 'orderNum', '0', '0',
  1793. '1', '1', '1', '1', '1', 'EQ', 'input', '', 4, 1, 1, '2024-02-03 10:22:57', 1, '2024-02-03 15:30:37.067');
  1794. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1795. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1796. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1797. update_by, update_time)
  1798. VALUES (111213301043634176, 111213300984913920, 'status', '产品状态(0正常 1停用)', 'character', 'String', 'status', '0',
  1799. '0', '1', '1', '1', '1', '1', 'EQ', 'radio', '', 5, 1, 1, '2024-02-03 10:22:57', 1, '2024-02-03 15:30:37.067');
  1800. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1801. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1802. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1803. update_by, update_time)
  1804. VALUES (111213943560675328, 111213943543898112, 'dept_id', '部门ID', 'bigint', 'Long', 'deptId', '1', '0', '1', NULL,
  1805. '1', '1', NULL, 'EQ', 'input', '', 1, 1, 1, '2024-02-03 10:25:30', 1, '2024-02-03 15:30:42.3');
  1806. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1807. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1808. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1809. update_by, update_time)
  1810. VALUES (111213943564869632, 111213943543898112, 'tenant_id', '租户编号', 'bigint', 'Long', 'tenantId', '0', '0', '0',
  1811. NULL, NULL, NULL, NULL, 'EQ', 'input', '', 2, 1, 1, '2024-02-03 10:25:30', 1, '2024-02-03 15:30:42.3');
  1812. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1813. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1814. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1815. update_by, update_time)
  1816. VALUES (111213943569063936, 111213943543898112, 'parent_id', '父部门ID', 'bigint', 'Long', 'parentId', '0', '0', '1',
  1817. '1', '1', '1', '1', 'EQ', 'input', '', 3, 1, 1, '2024-02-03 10:25:30', 1, '2024-02-03 15:30:42.3');
  1818. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1819. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1820. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1821. update_by, update_time)
  1822. VALUES (111213943573258240, 111213943543898112, 'ancestors', '祖级列表', 'character varying', 'String', 'ancestors',
  1823. '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 4, 1, 1, '2024-02-03 10:25:30', 1,
  1824. '2024-02-03 15:30:42.3');
  1825. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1826. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1827. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1828. update_by, update_time)
  1829. VALUES (111213943577452544, 111213943543898112, 'dept_name', '部门名称', 'character varying', 'String', 'deptName', '0',
  1830. '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 5, 1, 1, '2024-02-03 10:25:30', 1, '2024-02-03 15:30:42.3');
  1831. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1832. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1833. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1834. update_by, update_time)
  1835. VALUES (111213943581646848, 111213943543898112, 'order_num', '显示顺序', 'integer', 'Integer', 'orderNum', '0', '0',
  1836. '1', '1', '1', '1', '1', 'EQ', 'input', '', 6, 1, 1, '2024-02-03 10:25:30', 1, '2024-02-03 15:30:42.3');
  1837. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1838. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1839. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1840. update_by, update_time)
  1841. VALUES (111213943590035456, 111213943543898112, 'leader', '负责人', 'character varying', 'String', 'leader', '0', '0',
  1842. '1', '1', '1', '1', '1', 'EQ', 'input', '', 7, 1, 1, '2024-02-03 10:25:30', 1, '2024-02-03 15:30:42.3');
  1843. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1844. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1845. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1846. update_by, update_time)
  1847. VALUES (111213943594229760, 111213943543898112, 'phone', '联系电话', 'character varying', 'String', 'phone', '0', '0',
  1848. '1', '1', '1', '1', '1', 'EQ', 'input', '', 8, 1, 1, '2024-02-03 10:25:30', 1, '2024-02-03 15:30:42.3');
  1849. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1850. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1851. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1852. update_by, update_time)
  1853. VALUES (111213943598424064, 111213943543898112, 'email', '邮箱', 'character varying', 'String', 'email', '0', '0', '1',
  1854. '1', '1', '1', '1', 'EQ', 'input', '', 9, 1, 1, '2024-02-03 10:25:30', 1, '2024-02-03 15:30:42.3');
  1855. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1856. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1857. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1858. update_by, update_time)
  1859. VALUES (111213943602618368, 111213943543898112, 'status', '部门状态(0正常 1停用)', 'character', 'String', 'status', '0',
  1860. '0', '1', '1', '1', '1', '1', 'EQ', 'radio', '', 10, 1, 1, '2024-02-03 10:25:30', 1, '2024-02-03 15:30:42.3');
  1861. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1862. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1863. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1864. update_by, update_time)
  1865. VALUES (111213943606812672, 111213943543898112, 'version', '乐观锁', 'integer', 'Integer', 'version', '0', '0', '1',
  1866. NULL, '1', NULL, NULL, 'EQ', 'input', '', 11, 1, 1, '2024-02-03 10:25:30', 1, '2024-02-03 15:30:42.3');
  1867. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1868. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1869. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1870. update_by, update_time)
  1871. VALUES (111213943606812673, 111213943543898112, 'del_flag', '删除标志(0代表存在 1代表删除)', 'smallint', 'Integer',
  1872. 'delFlag', '0', '0', '0', NULL, NULL, NULL, NULL, 'EQ', 'input', '', 12, 1, 1, '2024-02-03 10:25:30', 1,
  1873. '2024-02-03 15:30:42.3');
  1874. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1875. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1876. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1877. update_by, update_time)
  1878. VALUES (109840202657751040, 109840202632585216, 'student_id', '编号', 'bigint', 'Long', 'studentId', '1', '0', '1',
  1879. NULL, '1', '1', NULL, 'EQ', 'input', '', 1, 1, 1, '2024-01-30 15:26:45', 1, '2024-02-03 15:04:59.278');
  1880. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1881. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1882. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1883. update_by, update_time)
  1884. VALUES (109840202666139648, 109840202632585216, 'tenant_id', '租户编码', 'bigint', 'Long', 'tenantId', '0', '0', '1',
  1885. NULL, NULL, NULL, '1', 'EQ', 'input', '', 2, 1, 1, '2024-01-30 15:26:45', 1, '2024-02-03 15:04:59.278');
  1886. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1887. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1888. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1889. update_by, update_time)
  1890. VALUES (109840202670333952, 109840202632585216, 'student_name', '学生名称', 'character varying', 'String',
  1891. 'studentName', '0', '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 3, 1, 1, '2024-01-30 15:26:45', 1,
  1892. '2024-02-03 15:04:59.278');
  1893. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1894. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1895. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1896. update_by, update_time)
  1897. VALUES (109840202691305472, 109840202632585216, 'student_age', '年龄', 'integer', 'Integer', 'studentAge', '0', '0',
  1898. '1', '1', '1', '1', '1', 'EQ', 'input', '', 4, 1, 1, '2024-01-30 15:26:45', 1, '2024-02-03 15:04:59.278');
  1899. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1900. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1901. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1902. update_by, update_time)
  1903. VALUES (109840202699694080, 109840202632585216, 'student_hobby', '爱好(0代码 1音乐 2电影)', 'character varying',
  1904. 'String', 'studentHobby', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 5, 1, 1, '2024-01-30 15:26:45',
  1905. 1, '2024-02-03 15:04:59.278');
  1906. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1907. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1908. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1909. update_by, update_time)
  1910. VALUES (109840202703888384, 109840202632585216, 'student_gender', '性别(1男 2女 3未知)', 'character', 'String',
  1911. 'studentGender', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', '', 6, 1, 1, '2024-01-30 15:26:45', 1,
  1912. '2024-02-03 15:04:59.278');
  1913. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1914. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1915. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1916. update_by, update_time)
  1917. VALUES (109840202712276992, 109840202632585216, 'student_status', '状态(0正常 1停用)', 'character', 'String',
  1918. 'studentStatus', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'radio', '', 7, 1, 1, '2024-01-30 15:26:45', 1,
  1919. '2024-02-03 15:04:59.278');
  1920. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1921. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1922. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1923. update_by, update_time)
  1924. VALUES (109840202720665600, 109840202632585216, 'student_birthday', '生日', 'timestamp without time zone', 'Date',
  1925. 'studentBirthday', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'datetime', '', 8, 1, 1, '2024-01-30 15:26:45', 1,
  1926. '2024-02-03 15:04:59.278');
  1927. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1928. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1929. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1930. update_by, update_time)
  1931. VALUES (109840202729054208, 109840202632585216, 'version', '乐观锁', 'integer', 'Integer', 'version', '0', '0', '1',
  1932. NULL, '1', NULL, NULL, 'EQ', 'input', '', 9, 1, 1, '2024-01-30 15:26:45', 1, '2024-02-03 15:04:59.278');
  1933. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1934. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1935. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1936. update_by, update_time)
  1937. VALUES (109840202737442816, 109840202632585216, 'del_flag', '逻辑删除标志(0代表存在 1代表删除)', 'smallint', 'Integer',
  1938. 'delFlag', '0', '0', '0', NULL, NULL, NULL, NULL, 'EQ', 'input', '', 10, 1, 1, '2024-01-30 15:26:45', 1,
  1939. '2024-02-03 15:04:59.278');
  1940. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1941. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1942. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1943. update_by, update_time)
  1944. VALUES (109840202741637120, 109840202632585216, 'create_by', '创建者', 'bigint', 'Long', 'createBy', '0', '0', '0',
  1945. NULL, NULL, NULL, NULL, 'EQ', 'input', '', 11, 1, 1, '2024-01-30 15:26:45', 1, '2024-02-03 15:04:59.278');
  1946. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1947. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1948. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1949. update_by, update_time)
  1950. VALUES (109840202745831424, 109840202632585216, 'create_time', '创建时间', 'timestamp without time zone', 'Date',
  1951. 'createTime', '0', '0', '0', NULL, NULL, NULL, NULL, 'EQ', 'datetime', '', 12, 1, 1, '2024-01-30 15:26:45', 1,
  1952. '2024-02-03 15:04:59.278');
  1953. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1954. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1955. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1956. update_by, update_time)
  1957. VALUES (109840202754220032, 109840202632585216, 'update_by', '更新者', 'bigint', 'Long', 'updateBy', '0', '0', '0',
  1958. NULL, NULL, NULL, NULL, 'EQ', 'input', '', 13, 1, 1, '2024-01-30 15:26:45', 1, '2024-02-03 15:04:59.278');
  1959. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1960. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1961. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1962. update_by, update_time)
  1963. VALUES (109840202762608640, 109840202632585216, 'update_time', '更新时间', 'timestamp without time zone', 'Date',
  1964. 'updateTime', '0', '0', '0', NULL, NULL, NULL, NULL, 'EQ', 'datetime', '', 14, 1, 1, '2024-01-30 15:26:45', 1,
  1965. '2024-02-03 15:04:59.278');
  1966. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1967. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1968. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1969. update_by, update_time)
  1970. VALUES (111209286012575744, 111209285756723200, 'create_time', '创建时间', 'timestamp without time zone', 'Date',
  1971. 'createTime', '0', '0', '0', NULL, NULL, NULL, NULL, 'EQ', 'datetime', '', 9, 1, 1, '2024-02-03 10:06:59', 1,
  1972. '2024-02-03 15:11:38.336');
  1973. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1974. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1975. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1976. update_by, update_time)
  1977. VALUES (111209286016770048, 111209285756723200, 'update_by', '更新者', 'bigint', 'Long', 'updateBy', '0', '0', '0',
  1978. NULL, NULL, NULL, NULL, 'EQ', 'input', '', 10, 1, 1, '2024-02-03 10:06:59', 1, '2024-02-03 15:11:38.336');
  1979. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1980. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1981. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1982. update_by, update_time)
  1983. VALUES (111209286020964352, 111209285756723200, 'update_time', '更新时间', 'timestamp without time zone', 'Date',
  1984. 'updateTime', '0', '0', '0', NULL, NULL, NULL, NULL, 'EQ', 'datetime', '', 11, 1, 1, '2024-02-03 10:06:59', 1,
  1985. '2024-02-03 15:11:38.336');
  1986. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1987. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1988. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1989. update_by, update_time)
  1990. VALUES (111209286029352960, 111209285756723200, 'remark', '备注', 'character varying', 'String', 'remark', '0', '0',
  1991. '1', '1', '1', '1', NULL, 'EQ', 'input', '', 12, 1, 1, '2024-02-03 10:06:59', 1, '2024-02-03 15:11:38.336');
  1992. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1993. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  1994. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  1995. update_by, update_time)
  1996. VALUES (111213943611006976, 111213943543898112, 'create_by', '创建者', 'bigint', 'Long', 'createBy', '0', '0', '0',
  1997. NULL, NULL, NULL, NULL, 'EQ', 'input', '', 13, 1, 1, '2024-02-03 10:25:30', 1, '2024-02-03 15:30:42.3');
  1998. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  1999. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2000. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2001. update_by, update_time)
  2002. VALUES (111213943623589888, 111213943543898112, 'create_time', '创建时间', 'timestamp without time zone', 'Date',
  2003. 'createTime', '0', '0', '0', NULL, NULL, NULL, NULL, 'EQ', 'datetime', '', 14, 1, 1, '2024-02-03 10:25:30', 1,
  2004. '2024-02-03 15:30:42.3');
  2005. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2006. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2007. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2008. update_by, update_time)
  2009. VALUES (111213943627784192, 111213943543898112, 'update_by', '更新者', 'bigint', 'Long', 'updateBy', '0', '0', '0',
  2010. NULL, NULL, NULL, NULL, 'EQ', 'input', '', 15, 1, 1, '2024-02-03 10:25:30', 1, '2024-02-03 15:30:42.3');
  2011. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2012. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2013. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2014. update_by, update_time)
  2015. VALUES (111213943631978496, 111213943543898112, 'update_time', '更新时间', 'timestamp without time zone', 'Date',
  2016. 'updateTime', '0', '0', '0', NULL, NULL, NULL, NULL, 'EQ', 'datetime', '', 16, 1, 1, '2024-02-03 10:25:30', 1,
  2017. '2024-02-03 15:30:42.3');
  2018. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2019. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2020. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2021. update_by, update_time)
  2022. VALUES (111291159359328256, 111291159158001664, 'user_id', '用户ID', 'bigint', 'Long', 'userId', '1', '0', '1', NULL,
  2023. '1', '1', NULL, 'EQ', 'input', '', 1, 1, 1, '2024-02-03 15:32:20', 1, '2024-02-03 15:32:34.773');
  2024. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2025. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2026. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2027. update_by, update_time)
  2028. VALUES (111291159367716864, 111291159158001664, 'tenant_id', '租户编号', 'bigint', 'Long', 'tenantId', '0', '0', '0',
  2029. NULL, NULL, NULL, NULL, 'EQ', 'input', '', 2, 1, 1, '2024-02-03 15:32:20', 1, '2024-02-03 15:32:34.773');
  2030. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2031. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2032. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2033. update_by, update_time)
  2034. VALUES (111291159376105472, 111291159158001664, 'dept_id', '部门ID', 'bigint', 'Long', 'deptId', '0', '0', '1', '1',
  2035. '1', '1', '1', 'EQ', 'input', '', 3, 1, 1, '2024-02-03 15:32:20', 1, '2024-02-03 15:32:34.773');
  2036. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2037. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2038. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2039. update_by, update_time)
  2040. VALUES (111291159384494080, 111291159158001664, 'user_name', '用户账号', 'character varying', 'String', 'userName', '0',
  2041. '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 4, 1, 1, '2024-02-03 15:32:20', 1,
  2042. '2024-02-03 15:32:34.773');
  2043. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2044. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2045. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2046. update_by, update_time)
  2047. VALUES (111291159388688384, 111291159158001664, 'nick_name', '用户昵称', 'character varying', 'String', 'nickName', '0',
  2048. '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 5, 1, 1, '2024-02-03 15:32:20', 1,
  2049. '2024-02-03 15:32:34.773');
  2050. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2051. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2052. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2053. update_by, update_time)
  2054. VALUES (111291159397076992, 111291159158001664, 'user_type', '用户类型(sys_user系统用户)', 'character varying',
  2055. 'String', 'userType', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', '', 6, 1, 1, '2024-02-03 15:32:20', 1,
  2056. '2024-02-03 15:32:34.773');
  2057. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2058. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2059. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2060. update_by, update_time)
  2061. VALUES (111291159401271296, 111291159158001664, 'email', '用户邮箱', 'character varying', 'String', 'email', '0', '0',
  2062. '1', '1', '1', '1', '1', 'EQ', 'input', '', 7, 1, 1, '2024-02-03 15:32:20', 1, '2024-02-03 15:32:34.773');
  2063. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2064. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2065. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2066. update_by, update_time)
  2067. VALUES (111291159413854208, 111291159158001664, 'phonenumber', '手机号码', 'character varying', 'String', 'phonenumber',
  2068. '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 8, 1, 1, '2024-02-03 15:32:20', 1,
  2069. '2024-02-03 15:32:34.773');
  2070. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2071. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2072. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2073. update_by, update_time)
  2074. VALUES (111291159418048512, 111291159158001664, 'gender', '用户性别(0男 1女 2未知)', 'character', 'String', 'gender',
  2075. '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', 'sys_user_gender', 9, 1, 1, '2024-02-03 15:32:20', 1,
  2076. '2024-02-03 15:32:34.773');
  2077. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2078. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2079. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2080. update_by, update_time)
  2081. VALUES (111291159426437120, 111291159158001664, 'avatar', '头像地址', 'bigint', 'Long', 'avatar', '0', '0', '1', '1',
  2082. '1', '1', '1', 'EQ', 'input', '', 10, 1, 1, '2024-02-03 15:32:20', 1, '2024-02-03 15:32:34.773');
  2083. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2084. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2085. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2086. update_by, update_time)
  2087. VALUES (111291159434825728, 111291159158001664, 'password', '密码', 'character varying', 'String', 'password', '0', '0',
  2088. '1', '1', '1', '1', '1', 'EQ', 'input', '', 11, 1, 1, '2024-02-03 15:32:20', 1, '2024-02-03 15:32:34.773');
  2089. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2090. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2091. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2092. update_by, update_time)
  2093. VALUES (111291159443214336, 111291159158001664, 'status', '帐号状态(0正常 1停用)', 'character', 'String', 'status', '0',
  2094. '0', '1', '1', '1', '1', '1', 'EQ', 'radio', '', 12, 1, 1, '2024-02-03 15:32:20', 1, '2024-02-03 15:32:34.773');
  2095. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2096. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2097. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2098. update_by, update_time)
  2099. VALUES (111291159451602944, 111291159158001664, 'version', '乐观锁', 'integer', 'Integer', 'version', '0', '0', '1',
  2100. NULL, '1', NULL, NULL, 'EQ', 'input', '', 13, 1, 1, '2024-02-03 15:32:20', 1, '2024-02-03 15:32:34.773');
  2101. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2102. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2103. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2104. update_by, update_time)
  2105. VALUES (111291159455797248, 111291159158001664, 'del_flag', '删除标志(0代表存在 1代表删除)', 'smallint', 'Integer',
  2106. 'delFlag', '0', '0', '0', NULL, NULL, NULL, NULL, 'EQ', 'input', '', 14, 1, 1, '2024-02-03 15:32:20', 1,
  2107. '2024-02-03 15:32:34.773');
  2108. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2109. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2110. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2111. update_by, update_time)
  2112. VALUES (111291159464185856, 111291159158001664, 'login_ip', '最后登陆IP', 'character varying', 'String', 'loginIp', '0',
  2113. '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 15, 1, 1, '2024-02-03 15:32:20', 1, '2024-02-03 15:32:34.773');
  2114. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2115. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2116. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2117. update_by, update_time)
  2118. VALUES (111291159472574464, 111291159158001664, 'login_date', '最后登陆时间', 'timestamp without time zone', 'Date',
  2119. 'loginDate', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'datetime', '', 16, 1, 1, '2024-02-03 15:32:20', 1,
  2120. '2024-02-03 15:32:34.773');
  2121. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2122. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2123. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2124. update_by, update_time)
  2125. VALUES (111291159476768768, 111291159158001664, 'create_by', '创建者', 'bigint', 'Long', 'createBy', '0', '0', '0',
  2126. NULL, NULL, NULL, NULL, 'EQ', 'input', '', 17, 1, 1, '2024-02-03 15:32:20', 1, '2024-02-03 15:32:34.773');
  2127. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2128. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2129. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2130. update_by, update_time)
  2131. VALUES (111291159480963072, 111291159158001664, 'create_time', '创建时间', 'timestamp without time zone', 'Date',
  2132. 'createTime', '0', '0', '0', NULL, NULL, NULL, NULL, 'EQ', 'datetime', '', 18, 1, 1, '2024-02-03 15:32:20', 1,
  2133. '2024-02-03 15:32:34.773');
  2134. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2135. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2136. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2137. update_by, update_time)
  2138. VALUES (111291159489351680, 111291159158001664, 'update_by', '更新者', 'bigint', 'Long', 'updateBy', '0', '0', '0',
  2139. NULL, NULL, NULL, NULL, 'EQ', 'input', '', 19, 1, 1, '2024-02-03 15:32:20', 1, '2024-02-03 15:32:34.773');
  2140. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2141. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2142. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2143. update_by, update_time)
  2144. VALUES (111291159493545984, 111291159158001664, 'update_time', '更新时间', 'timestamp without time zone', 'Date',
  2145. 'updateTime', '0', '0', '0', NULL, NULL, NULL, NULL, 'EQ', 'datetime', '', 20, 1, 1, '2024-02-03 15:32:20', 1,
  2146. '2024-02-03 15:32:34.773');
  2147. INSERT INTO km.gen_table_column (column_id, table_id, column_name, column_comment, column_type, java_type,
  2148. java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list,
  2149. is_query, query_type, html_type, dict_type, sort, version, create_by, create_time,
  2150. update_by, update_time)
  2151. VALUES (111291159506128896, 111291159158001664, 'remark', '备注', 'character varying', 'String', 'remark', '0', '0',
  2152. '1', '1', '1', '1', NULL, 'EQ', 'input', '', 21, 1, 1, '2024-02-03 15:32:20', 1, '2024-02-03 15:32:34.773');
  2153. INSERT INTO km.pj_app_info (id, app_name, current_server, gmt_create, gmt_modified, password)
  2154. VALUES (1, 'km-worker', '127.0.0.1:10010', '2023-06-13 16:32:59.263', '2023-12-04 17:25:49.798', '123456');
  2155. INSERT INTO km.pj_job_info (id, alarm_config, app_id, concurrency, designated_workers, dispatch_strategy,
  2156. execute_type, extra, gmt_create, gmt_modified, instance_retry_num, instance_time_limit,
  2157. job_description, job_name, job_params, lifecycle, log_config, max_instance_num,
  2158. max_worker_count, min_cpu_cores, min_disk_space, min_memory_space, next_trigger_time,
  2159. notify_user_ids, processor_info, processor_type, status, tag, task_retry_num,
  2160. time_expression, time_expression_type)
  2161. VALUES (1, '{"alertThreshold":0,"silenceWindowLen":0,"statisticWindowLen":0}', 1, 5, '', 2, 1, NULL,
  2162. '2023-06-02 15:01:27.717', '2023-07-04 17:22:12.374', 1, 0, '', '单机处理器执行测试', NULL, '{}', '{"type":1}',
  2163. 0, 0, 0, 0, 0, NULL, NULL, 'com.km.job.processors.StandaloneProcessorDemo', 1, 2, NULL, 1, '30000', 3);
  2164. INSERT INTO km.pj_job_info (id, alarm_config, app_id, concurrency, designated_workers, dispatch_strategy,
  2165. execute_type, extra, gmt_create, gmt_modified, instance_retry_num, instance_time_limit,
  2166. job_description, job_name, job_params, lifecycle, log_config, max_instance_num,
  2167. max_worker_count, min_cpu_cores, min_disk_space, min_memory_space, next_trigger_time,
  2168. notify_user_ids, processor_info, processor_type, status, tag, task_retry_num,
  2169. time_expression, time_expression_type)
  2170. VALUES (2, '{"alertThreshold":0,"silenceWindowLen":0,"statisticWindowLen":0}', 1, 5, '', 1, 2, NULL,
  2171. '2023-06-02 15:04:45.342', '2023-07-04 17:22:12.816', 0, 0, NULL, '广播处理器测试', NULL, '{}', '{"type":1}', 0,
  2172. 0, 0, 0, 0, NULL, NULL, 'com.km.job.processors.BroadcastProcessorDemo', 1, 2, NULL, 1, '30000', 3);
  2173. INSERT INTO km.pj_job_info (id, alarm_config, app_id, concurrency, designated_workers, dispatch_strategy,
  2174. execute_type, extra, gmt_create, gmt_modified, instance_retry_num, instance_time_limit,
  2175. job_description, job_name, job_params, lifecycle, log_config, max_instance_num,
  2176. max_worker_count, min_cpu_cores, min_disk_space, min_memory_space, next_trigger_time,
  2177. notify_user_ids, processor_info, processor_type, status, tag, task_retry_num,
  2178. time_expression, time_expression_type)
  2179. VALUES (3, '{"alertThreshold":0,"silenceWindowLen":0,"statisticWindowLen":0}', 1, 5, '', 1, 4, NULL,
  2180. '2023-06-02 15:13:23.519', '2023-06-02 16:03:22.421', 0, 0, NULL, 'Map处理器测试', NULL, '{}', '{"type":1}', 0,
  2181. 0, 0, 0, 0, NULL, NULL, 'com.km.job.processors.MapProcessorDemo', 1, 2, NULL, 1, '1000', 3);
  2182. INSERT INTO km.pj_job_info (id, alarm_config, app_id, concurrency, designated_workers, dispatch_strategy,
  2183. execute_type, extra, gmt_create, gmt_modified, instance_retry_num, instance_time_limit,
  2184. job_description, job_name, job_params, lifecycle, log_config, max_instance_num,
  2185. max_worker_count, min_cpu_cores, min_disk_space, min_memory_space, next_trigger_time,
  2186. notify_user_ids, processor_info, processor_type, status, tag, task_retry_num,
  2187. time_expression, time_expression_type)
  2188. VALUES (4, '{"alertThreshold":0,"silenceWindowLen":0,"statisticWindowLen":0}', 1, 5, '', 1, 3, NULL,
  2189. '2023-06-02 15:45:25.896', '2023-06-02 16:03:23.125', 0, 0, NULL, 'MapReduce处理器测试', NULL, '{}',
  2190. '{"type":1}', 0, 0, 0, 0, 0, NULL, NULL, 'com.km.job.processors.MapReduceProcessorDemo', 1, 2, NULL, 1,
  2191. '1000', 3);
  2192. INSERT INTO km.sys_client (id, client_id, client_key, client_secret, grant_type, device_type, active_timeout,
  2193. timeout, status, version, del_flag, create_by, create_time, update_by, update_time)
  2194. VALUES (1, 'e5cd7e4891bf95d1d19206ce24a7b32e', 'pc', 'pc123', 'password,social', 'pc', 1800, 604800, '0', 0, 0, 1,
  2195. '2024-01-22 11:09:12.997334', 1, '2024-01-22 11:09:12.997334');
  2196. INSERT INTO km.sys_client (id, client_id, client_key, client_secret, grant_type, device_type, active_timeout,
  2197. timeout, status, version, del_flag, create_by, create_time, update_by, update_time)
  2198. VALUES (2, '428a8310cd442757ae699df5d894f051', 'app', 'app123', 'password,sms,social', 'android', 1800, 604800, '0', 0,
  2199. 0, 1, '2024-01-22 11:09:12.997334', 1, '2024-01-22 11:09:12.997334');
  2200. --
  2201. -- Data for Name: sys_config; Type: TABLE DATA; Schema: public; Owner: postgres
  2202. --
  2203. INSERT INTO km.sys_config (config_id, tenant_id, config_name, config_key, config_value, config_type, version,
  2204. create_by, create_time, update_by, update_time, remark)
  2205. VALUES (1, 0, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 0, 1, '2024-01-22 11:09:12.997334',
  2206. NULL, NULL, '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow');
  2207. INSERT INTO km.sys_config (config_id, tenant_id, config_name, config_key, config_value, config_type, version,
  2208. create_by, create_time, update_by, update_time, remark)
  2209. VALUES (2, 0, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 0, 1, '2024-01-22 11:09:12.997334', NULL,
  2210. NULL, '初始化密码 123456');
  2211. INSERT INTO km.sys_config (config_id, tenant_id, config_name, config_key, config_value, config_type, version,
  2212. create_by, create_time, update_by, update_time, remark)
  2213. VALUES (3, 0, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 0, 1, '2024-01-22 11:09:12.997334', NULL,
  2214. NULL, '深色主题theme-dark,浅色主题theme-light');
  2215. INSERT INTO km.sys_config (config_id, tenant_id, config_name, config_key, config_value, config_type, version,
  2216. create_by, create_time, update_by, update_time, remark)
  2217. VALUES (5, 0, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 0, 1,
  2218. '2024-01-22 11:09:12.997334', NULL, NULL, '是否开启注册用户功能(true开启,false关闭)');
  2219. INSERT INTO km.sys_config (config_id, tenant_id, config_name, config_key, config_value, config_type, version,
  2220. create_by, create_time, update_by, update_time, remark)
  2221. VALUES (6, 0, 'OSS预览列表资源开关', 'sys.oss.previewListResource', 'true', 'Y', 0, 1, '2024-01-22 11:09:12.997334',
  2222. NULL, NULL, 'true:开启, false:关闭');
  2223. --
  2224. -- Data for Name: sys_dept; Type: TABLE DATA; Schema: public; Owner: postgres
  2225. --
  2226. INSERT INTO km.sys_dept (dept_id, tenant_id, parent_id, ancestors, dept_name, order_num, leader, phone, email,
  2227. status, version, del_flag, create_by, create_time, update_by, update_time)
  2228. VALUES (108150551736287232, 0, 1, '0,1', 'test2', 22, 'asd', '', NULL, '0', 1, 0, 1, '2024-01-25 23:32:40', 1,
  2229. '2024-01-30 15:27:49.969');
  2230. INSERT INTO km.sys_dept (dept_id, tenant_id, parent_id, ancestors, dept_name, order_num, leader, phone, email,
  2231. status, version, del_flag, create_by, create_time, update_by, update_time)
  2232. VALUES (1, 0, 0, '0', 'KM', 0, 'km', '18888888888', '1234@foxmail.com', '0', 1, 0, 1,
  2233. '2023-06-03 21:32:28', 1, '2024-01-30 15:27:50.035');
  2234. --
  2235. -- Data for Name: sys_dict_data; Type: TABLE DATA; Schema: public; Owner: postgres
  2236. --
  2237. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2238. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2239. remark)
  2240. VALUES (1, 0, 1, '男', '0', 'sys_user_gender', '', '', 'Y', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27',
  2241. '性别男');
  2242. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2243. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2244. remark)
  2245. VALUES (2, 0, 2, '女', '1', 'sys_user_gender', '', '', 'N', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27',
  2246. '性别女');
  2247. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2248. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2249. remark)
  2250. VALUES (3, 0, 3, '未知', '2', 'sys_user_gender', '', '', 'N', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27',
  2251. '性别未知');
  2252. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2253. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2254. remark)
  2255. VALUES (4, 0, 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '显示菜单');
  2256. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2257. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2258. remark)
  2259. VALUES (5, 0, 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '隐藏菜单');
  2260. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2261. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2262. remark)
  2263. VALUES (6, 0, 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL,
  2264. '正常状态');
  2265. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2266. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2267. remark)
  2268. VALUES (7, 0, 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL,
  2269. '停用状态');
  2270. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2271. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2272. remark)
  2273. VALUES (8, 0, 1, '正常', '0', 'sys_job_status', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '正常状态');
  2274. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2275. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2276. remark)
  2277. VALUES (9, 0, 2, '暂停', '1', 'sys_job_status', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '停用状态');
  2278. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2279. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2280. remark)
  2281. VALUES (10, 0, 1, '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '默认分组');
  2282. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2283. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2284. remark)
  2285. VALUES (11, 0, 2, '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统分组');
  2286. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2287. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2288. remark)
  2289. VALUES (12, 0, 1, '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统默认是');
  2290. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2291. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2292. remark)
  2293. VALUES (13, 0, 2, '否', 'N', 'sys_yes_no', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统默认否');
  2294. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2295. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2296. remark)
  2297. VALUES (14, 0, 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '通知');
  2298. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2299. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2300. remark)
  2301. VALUES (15, 0, 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '公告');
  2302. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2303. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2304. remark)
  2305. VALUES (16, 0, 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL,
  2306. '正常状态');
  2307. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2308. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2309. remark)
  2310. VALUES (17, 0, 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL,
  2311. '关闭状态');
  2312. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2313. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2314. remark)
  2315. VALUES (18, 0, 99, '其他', '0', 'sys_oper_type', '', 'info', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '其他操作');
  2316. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2317. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2318. remark)
  2319. VALUES (19, 0, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '新增操作');
  2320. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2321. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2322. remark)
  2323. VALUES (20, 0, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '修改操作');
  2324. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2325. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2326. remark)
  2327. VALUES (21, 0, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '删除操作');
  2328. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2329. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2330. remark)
  2331. VALUES (22, 0, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '授权操作');
  2332. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2333. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2334. remark)
  2335. VALUES (23, 0, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '导出操作');
  2336. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2337. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2338. remark)
  2339. VALUES (24, 0, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '导入操作');
  2340. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2341. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2342. remark)
  2343. VALUES (25, 0, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL, '强退操作');
  2344. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2345. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2346. remark)
  2347. VALUES (26, 0, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL,
  2348. '生成操作');
  2349. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2350. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2351. remark)
  2352. VALUES (27, 0, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL,
  2353. '清空操作');
  2354. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2355. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2356. remark)
  2357. VALUES (28, 0, 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL,
  2358. '正常状态');
  2359. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2360. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2361. remark)
  2362. VALUES (29, 0, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', 0, 1, '2023-06-03 21:32:30', 1, NULL,
  2363. '停用状态');
  2364. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2365. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2366. remark)
  2367. VALUES (30, 0, 1, '密码认证', 'password', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51',
  2368. 1, '2023-10-21 11:10:51', '密码认证');
  2369. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2370. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2371. remark)
  2372. VALUES (31, 0, 2, '短信认证', 'sms', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1,
  2373. '2023-10-21 11:10:51', '短信认证');
  2374. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2375. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2376. remark)
  2377. VALUES (32, 0, 3, '邮件认证', 'email', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1,
  2378. '2023-10-21 11:10:51', '邮件认证');
  2379. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2380. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2381. remark)
  2382. VALUES (33, 0, 4, '小程序认证', 'xcx', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1, '2023-10-21 11:10:51', 1,
  2383. '2023-10-21 11:10:51', '小程序认证');
  2384. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2385. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2386. remark)
  2387. VALUES (34, 0, 5, '三方登录认证', 'social', 'sys_grant_type', 'el-check-tag', 'default', 'N', 0, 1,
  2388. '2023-10-21 11:10:51', 1, '2023-10-21 11:10:51', '三方登录认证');
  2389. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2390. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2391. remark)
  2392. VALUES (35, 0, 1, 'PC', 'pc', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1,
  2393. '2023-10-21 11:41:10', 'PC');
  2394. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2395. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2396. remark)
  2397. VALUES (36, 0, 2, '安卓', 'android', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1,
  2398. '2023-10-21 11:41:10', '安卓');
  2399. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2400. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2401. remark)
  2402. VALUES (37, 0, 3, 'iOS', 'ios', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1,
  2403. '2023-10-21 11:41:10', 'iOS');
  2404. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2405. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2406. remark)
  2407. VALUES (38, 0, 4, '小程序', 'xcx', 'sys_device_type', '', 'default', 'N', 0, 1, '2023-10-21 11:41:10', 1,
  2408. '2023-10-21 11:41:10', '小程序');
  2409. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2410. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2411. remark)
  2412. VALUES (100, 0, 0, '正常', '0', 'sys_student_status', NULL, 'primary', 'N', 0, 1, '2023-06-03 21:53:50', 1,
  2413. '2023-06-03 21:55:24', NULL);
  2414. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2415. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2416. remark)
  2417. VALUES (101, 0, 0, '停用', '1', 'sys_student_status', NULL, 'danger', 'N', 0, 1, '2023-06-03 21:54:11', 1,
  2418. '2023-06-03 21:55:31', NULL);
  2419. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2420. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2421. remark)
  2422. VALUES (102, 0, 0, '代码', '0', 'sys_student_hobby', NULL, 'primary', 'N', 0, 1, '2023-06-04 16:40:02', 1, NULL, NULL);
  2423. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2424. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2425. remark)
  2426. VALUES (103, 0, 0, '音乐', '1', 'sys_student_hobby', NULL, 'success', 'N', 0, 1, '2023-06-04 16:40:24', 1, NULL, NULL);
  2427. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2428. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2429. remark)
  2430. VALUES (104, 0, 0, '电影', '2', 'sys_student_hobby', NULL, 'warning', 'N', 0, 1, '2023-06-04 16:40:40', 1,
  2431. '2023-06-04 16:40:49', NULL);
  2432. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2433. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2434. remark)
  2435. VALUES (105, 0, 0, '计算机', '1', 'sys_goods_type', NULL, 'primary', 'N', 0, 1, '2023-06-05 07:23:48', 1, NULL, NULL);
  2436. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2437. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2438. remark)
  2439. VALUES (106, 0, 0, '打印设备', '2', 'sys_goods_type', NULL, 'success', 'N', 0, 1, '2023-06-05 07:24:14', 1, NULL, NULL);
  2440. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2441. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2442. remark)
  2443. VALUES (107, 0, 3, '衣服', '3', 'sys_goods_type', NULL, 'info', 'N', 0, 1, '2023-06-05 07:24:35', 1, NULL, NULL);
  2444. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2445. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2446. remark)
  2447. VALUES (111, 0, 4, '网络设备', '4', 'sys_goods_type', NULL, 'default', NULL, 0, 1, '2023-09-19 17:31:46', 1,
  2448. '2023-09-19 17:31:46', NULL);
  2449. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2450. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2451. remark)
  2452. VALUES (65923231885905920, 0, 1, '桌面微机', 'PC', 'sys_app_type', NULL, 'default', 'N', 0, 1, '2023-10-01 10:56:23', 1,
  2453. '2023-10-01 10:56:23', NULL);
  2454. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2455. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2456. remark)
  2457. VALUES (65923379802230784, 0, 2, '平板', 'pad', 'sys_app_type', NULL, 'default', 'N', 0, 1, '2023-10-01 10:56:59', 1,
  2458. '2023-10-01 10:56:59', NULL);
  2459. INSERT INTO km.sys_dict_data (dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class,
  2460. list_class, is_default, version, create_by, create_time, update_by, update_time,
  2461. remark)
  2462. VALUES (65923470604718080, 0, 3, '手机', 'phone', 'sys_app_type', NULL, 'default', 'N', 0, 1, '2023-10-01 10:57:20', 1,
  2463. '2023-10-01 10:57:20', NULL);
  2464. INSERT INTO km.sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
  2465. update_time, remark)
  2466. VALUES (1, 0, '用户性别', 'sys_user_gender', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-20 09:53:27', '用户性别列表');
  2467. INSERT INTO km.sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
  2468. update_time, remark)
  2469. VALUES (2, 0, '菜单状态', 'sys_show_hide', 0, 1, '2023-06-03 21:32:30', 1, NULL, '菜单状态列表');
  2470. INSERT INTO km.sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
  2471. update_time, remark)
  2472. VALUES (3, 0, '系统开关', 'sys_normal_disable', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统开关列表');
  2473. INSERT INTO km.sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
  2474. update_time, remark)
  2475. VALUES (4, 0, '任务状态', 'sys_job_status', 0, 1, '2023-06-03 21:32:30', 1, NULL, '任务状态列表');
  2476. INSERT INTO km.sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
  2477. update_time, remark)
  2478. VALUES (5, 0, '任务分组', 'sys_job_group', 0, 1, '2023-06-03 21:32:30', 1, NULL, '任务分组列表');
  2479. INSERT INTO km.sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
  2480. update_time, remark)
  2481. VALUES (6, 0, '系统是否', 'sys_yes_no', 0, 1, '2023-06-03 21:32:30', 1, NULL, '系统是否列表');
  2482. INSERT INTO km.sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
  2483. update_time, remark)
  2484. VALUES (7, 0, '通知类型', 'sys_notice_type', 0, 1, '2023-06-03 21:32:30', 1, NULL, '通知类型列表');
  2485. INSERT INTO km.sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
  2486. update_time, remark)
  2487. VALUES (8, 0, '通知状态', 'sys_notice_status', 0, 1, '2023-06-03 21:32:30', 1, NULL, '通知状态列表');
  2488. INSERT INTO km.sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
  2489. update_time, remark)
  2490. VALUES (9, 0, '操作类型', 'sys_oper_type', 0, 1, '2023-06-03 21:32:30', 1, NULL, '操作类型列表');
  2491. INSERT INTO km.sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
  2492. update_time, remark)
  2493. VALUES (10, 0, '系统状态', 'sys_common_status', 0, 1, '2023-06-03 21:32:30', 1, NULL, '登录状态列表');
  2494. INSERT INTO km.sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
  2495. update_time, remark)
  2496. VALUES (11, 0, '授权类型', 'sys_grant_type', 0, 1, '2023-10-21 11:06:33', 1, '2023-10-21 11:06:33', '认证授权类型');
  2497. INSERT INTO km.sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
  2498. update_time, remark)
  2499. VALUES (12, 0, '设备类型', 'sys_device_type', 0, 1, '2023-10-21 11:38:41', 1, '2023-10-21 11:38:41', '客户端设备类型');
  2500. INSERT INTO km.sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
  2501. update_time, remark)
  2502. VALUES (100, 0, '学生状态', 'sys_student_status', 0, 1, '2023-06-03 21:52:47', 1, '2023-06-03 21:53:09', NULL);
  2503. INSERT INTO km.sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
  2504. update_time, remark)
  2505. VALUES (101, 0, '爱好', 'sys_student_hobby', 0, 1, '2023-06-04 16:39:16', 1, NULL, NULL);
  2506. INSERT INTO km.sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
  2507. update_time, remark)
  2508. VALUES (102, 0, '商品种类', 'sys_goods_type', 0, 1, '2023-06-05 07:23:20', 1, NULL, NULL);
  2509. INSERT INTO km.sys_dict_type (dict_id, tenant_id, dict_name, dict_type, version, create_by, create_time, update_by,
  2510. update_time, remark)
  2511. VALUES (65922863223361536, 0, '系统类型', 'sys_app_type', 0, 1, '2023-10-01 10:54:55', 1, '2023-10-01 10:54:55',
  2512. '系统类型列表');
  2513. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2514. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2515. create_time, update_by, update_time, remark)
  2516. VALUES (501, '登录日志', 108, 2, '/monitor/logininfor', 'monitor/logininfor/index', NULL, '', '1', '0', 'C', '0', '0',
  2517. 'monitor:logininfor:list', 'logininfor', 0, 1, '2023-06-03 21:32:29', 1, NULL, '登录日志菜单');
  2518. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2519. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2520. create_time, update_by, update_time, remark)
  2521. VALUES (102, '菜单管理', 1, 3, '/system/menu', 'system/menu/index', NULL, '', '1', '0', 'C', '0', '0',
  2522. 'system:menu:list', 'tree-table', 0, 1, '2023-06-03 21:32:28', 1, NULL, '菜单管理菜单');
  2523. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2524. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2525. create_time, update_by, update_time, remark)
  2526. VALUES (1011, '角色导出', 101, 5, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:role:export', '', 0, 1,
  2527. '2023-06-03 21:32:29', 1, NULL, '');
  2528. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2529. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2530. create_time, update_by, update_time, remark)
  2531. VALUES (118, '文件管理', 1, 10, '/system/oss', 'system/oss/index', NULL, '', '1', '0', 'C', '0', '0', 'system:oss:list',
  2532. 'upload', 0, 1, '2023-12-03 08:46:11', 1, '2023-12-03 08:46:11', '文件管理菜单');
  2533. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2534. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2535. create_time, update_by, update_time, remark)
  2536. VALUES (1022, '岗位修改', 104, 3, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:post:edit', '', 0, 1,
  2537. '2023-06-03 21:32:29', 1, NULL, '');
  2538. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2539. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2540. create_time, update_by, update_time, remark)
  2541. VALUES (1016, '部门查询', 103, 1, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:dept:query', '', 0, 1,
  2542. '2023-06-03 21:32:29', 1, NULL, '');
  2543. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2544. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2545. create_time, update_by, update_time, remark)
  2546. VALUES (1018, '部门修改', 103, 3, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:dept:edit', '', 0, 1,
  2547. '2023-06-03 21:32:29', 1, NULL, '');
  2548. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2549. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2550. create_time, update_by, update_time, remark)
  2551. VALUES (1020, '岗位查询', 104, 1, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:post:query', '', 0, 1,
  2552. '2023-06-03 21:32:29', 1, NULL, '');
  2553. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2554. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2555. create_time, update_by, update_time, remark)
  2556. VALUES (1010, '角色删除', 101, 4, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:role:remove', '', 0, 1,
  2557. '2023-06-03 21:32:29', 1, NULL, '');
  2558. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2559. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2560. create_time, update_by, update_time, remark)
  2561. VALUES (105, '字典管理', 1, 6, '/system/dict', 'system/dict/index', NULL, '', '1', '0', 'C', '0', '0',
  2562. 'system:dict:list', 'dict', 0, 1, '2023-06-03 21:32:28', 1, NULL, '字典管理菜单');
  2563. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2564. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2565. create_time, update_by, update_time, remark)
  2566. VALUES (1007, '角色查询', 101, 1, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:role:query', '', 0, 1,
  2567. '2023-06-03 21:32:29', 1, NULL, '');
  2568. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2569. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2570. create_time, update_by, update_time, remark)
  2571. VALUES (1029, '字典导出', 105, 5, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:dict:export', '', 0, 1,
  2572. '2023-06-03 21:32:29', 1, NULL, '');
  2573. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2574. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2575. create_time, update_by, update_time, remark)
  2576. VALUES (1015, '菜单删除', 102, 4, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:menu:remove', '', 0, 1,
  2577. '2023-06-03 21:32:29', 1, NULL, '');
  2578. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2579. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2580. create_time, update_by, update_time, remark)
  2581. VALUES (1014, '菜单修改', 102, 3, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:menu:edit', '', 0, 1,
  2582. '2023-06-03 21:32:29', 1, NULL, '');
  2583. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2584. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2585. create_time, update_by, update_time, remark)
  2586. VALUES (1013, '菜单新增', 102, 2, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:menu:add', '', 0, 1,
  2587. '2023-06-03 21:32:29', 1, NULL, '');
  2588. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2589. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2590. create_time, update_by, update_time, remark)
  2591. VALUES (1023, '岗位删除', 104, 4, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:post:remove', '', 0, 1,
  2592. '2023-06-03 21:32:29', 1, NULL, '');
  2593. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2594. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2595. create_time, update_by, update_time, remark)
  2596. VALUES (1012, '菜单查询', 102, 1, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:menu:query', '', 0, 1,
  2597. '2023-06-03 21:32:29', 1, NULL, '');
  2598. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2599. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2600. create_time, update_by, update_time, remark)
  2601. VALUES (108, '日志管理', 1, 9, 'log', '', NULL, '', '1', '0', 'M', '0', '0', '', 'log', 0, 1, '2023-06-03 21:32:28', 1,
  2602. NULL, '日志管理菜单');
  2603. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2604. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2605. create_time, update_by, update_time, remark)
  2606. VALUES (1, '系统管理', 0, 1, 'system', NULL, NULL, '', '1', '0', 'M', '0', '0', '', 'system', 0, 1,
  2607. '2023-06-03 21:32:28', 1, NULL, '系统管理目录');
  2608. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2609. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2610. create_time, update_by, update_time, remark)
  2611. VALUES (101, '角色管理', 1, 2, '/system/role', 'system/role/index', NULL, '', '1', '0', 'C', '0', '0',
  2612. 'system:role:list', 'peoples', 0, 1, '2023-06-03 21:32:28', 1, NULL, '角色管理菜单');
  2613. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2614. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2615. create_time, update_by, update_time, remark)
  2616. VALUES (500, '操作日志', 108, 1, '/monitor/operlog', 'monitor/operlog/index', NULL, '', '1', '0', 'C', '0', '0',
  2617. 'monitor:operlog:list', 'form', 0, 1, '2023-06-03 21:32:29', 1, NULL, '操作日志菜单');
  2618. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2619. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2620. create_time, update_by, update_time, remark)
  2621. VALUES (116, '代码生成', 3, 2, '/tool/gen', 'tool/gen/index', NULL, '', '1', '0', 'C', '0', '0', 'tool:gen:list',
  2622. 'code', 0, 1, '2023-06-03 21:32:28', 1, NULL, '代码生成菜单');
  2623. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2624. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2625. create_time, update_by, update_time, remark)
  2626. VALUES (104, '岗位管理', 1, 5, '/system/post', 'system/post/index', NULL, '', '1', '0', 'C', '0', '0',
  2627. 'system:post:list', 'post', 0, 1, '2023-06-03 21:32:28', 1, NULL, '岗位管理菜单');
  2628. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2629. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2630. create_time, update_by, update_time, remark)
  2631. VALUES (1024, '岗位导出', 104, 5, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:post:export', '', 0, 1,
  2632. '2023-06-03 21:32:29', 1, NULL, '');
  2633. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2634. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2635. create_time, update_by, update_time, remark)
  2636. VALUES (103, '部门管理', 1, 4, '/system/dept', 'system/dept/index', NULL, '', '1', '0', 'C', '0', '0',
  2637. 'system:dept:list', 'tree', 0, 1, '2023-06-03 21:32:28', 1, NULL, '部门管理菜单');
  2638. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2639. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2640. create_time, update_by, update_time, remark)
  2641. VALUES (1017, '部门新增', 103, 2, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:dept:add', '', 0, 1,
  2642. '2023-06-03 21:32:29', 1, NULL, '');
  2643. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2644. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2645. create_time, update_by, update_time, remark)
  2646. VALUES (1021, '岗位新增', 104, 2, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:post:add', '', 0, 1,
  2647. '2023-06-03 21:32:29', 1, NULL, '');
  2648. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2649. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2650. create_time, update_by, update_time, remark)
  2651. VALUES (1019, '部门删除', 103, 4, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:dept:remove', '', 0, 1,
  2652. '2023-06-03 21:32:29', 1, NULL, '');
  2653. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2654. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2655. create_time, update_by, update_time, remark)
  2656. VALUES (1009, '角色修改', 101, 3, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:role:edit', '', 0, 1,
  2657. '2023-06-03 21:32:29', 1, NULL, '');
  2658. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2659. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2660. create_time, update_by, update_time, remark)
  2661. VALUES (1025, '字典查询', 105, 1, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:dict:query', '', 0, 1,
  2662. '2023-06-03 21:32:29', 1, NULL, '');
  2663. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2664. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2665. create_time, update_by, update_time, remark)
  2666. VALUES (1026, '字典新增', 105, 2, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:dict:add', '', 0, 1,
  2667. '2023-06-03 21:32:29', 1, NULL, '');
  2668. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2669. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2670. create_time, update_by, update_time, remark)
  2671. VALUES (1027, '字典修改', 105, 3, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:dict:edit', '', 0, 1,
  2672. '2023-06-03 21:32:29', 1, NULL, '');
  2673. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2674. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2675. create_time, update_by, update_time, remark)
  2676. VALUES (1028, '字典删除', 105, 4, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:dict:remove', '', 0, 1,
  2677. '2023-06-03 21:32:29', 1, NULL, '');
  2678. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2679. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2680. create_time, update_by, update_time, remark)
  2681. VALUES (1039, '操作查询', 500, 1, '', '', NULL, '', '1', '0', 'F', '0', '0', 'monitor:operlog:query', '', 0, 1,
  2682. '2023-06-03 21:32:29', 1, NULL, '');
  2683. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2684. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2685. create_time, update_by, update_time, remark)
  2686. VALUES (3, '系统工具', 0, 4, 'tool', NULL, NULL, '', '1', '0', 'M', '0', '0', '', 'tool', 0, 1, '2023-06-03 21:32:28',
  2687. 1, '2023-12-27 21:27:08.258', '系统工具目录');
  2688. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2689. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2690. create_time, update_by, update_time, remark)
  2691. VALUES (1040, '操作删除', 500, 2, '', '', NULL, '', '1', '0', 'F', '0', '0', 'monitor:operlog:remove', '', 0, 1,
  2692. '2023-06-03 21:32:29', 1, NULL, '');
  2693. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2694. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2695. create_time, update_by, update_time, remark)
  2696. VALUES (1041, '日志导出', 500, 3, '', '', NULL, '', '1', '0', 'F', '0', '0', 'monitor:operlog:export', '', 0, 1,
  2697. '2023-06-03 21:32:29', 1, NULL, '');
  2698. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2699. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2700. create_time, update_by, update_time, remark)
  2701. VALUES (1042, '登录查询', 501, 1, '', '', NULL, '', '1', '0', 'F', '0', '0', 'monitor:logininfor:query', '', 0, 1,
  2702. '2023-06-03 21:32:29', 1, NULL, '');
  2703. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2704. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2705. create_time, update_by, update_time, remark)
  2706. VALUES (1043, '登录删除', 501, 2, '', '', NULL, '', '1', '0', 'F', '0', '0', 'monitor:logininfor:remove', '', 0, 1,
  2707. '2023-06-03 21:32:29', 1, NULL, '');
  2708. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2709. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2710. create_time, update_by, update_time, remark)
  2711. VALUES (1044, '日志导出', 501, 3, '', '', NULL, '', '1', '0', 'F', '0', '0', 'monitor:logininfor:export', '', 0, 1,
  2712. '2023-06-03 21:32:29', 1, NULL, '');
  2713. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2714. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2715. create_time, update_by, update_time, remark)
  2716. VALUES (1045, '账户解锁', 501, 4, '', '', NULL, '', '1', '0', 'F', '0', '0', 'monitor:logininfor:unlock', '', 0, 1,
  2717. '2023-06-03 21:32:29', 1, NULL, '');
  2718. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2719. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2720. create_time, update_by, update_time, remark)
  2721. VALUES (1000, '用户查询', 100, 1, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:user:query', '', 0, 1,
  2722. '2023-06-03 21:32:29', 1, NULL, '');
  2723. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2724. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2725. create_time, update_by, update_time, remark)
  2726. VALUES (1055, '生成查询', 116, 1, '', '', NULL, '', '1', '0', 'F', '0', '0', 'tool:gen:query', '', 0, 1,
  2727. '2023-06-03 21:32:29', 1, NULL, '');
  2728. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2729. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2730. create_time, update_by, update_time, remark)
  2731. VALUES (1056, '生成修改', 116, 2, '', '', NULL, '', '1', '0', 'F', '0', '0', 'tool:gen:edit', '', 0, 1,
  2732. '2023-06-03 21:32:29', 1, NULL, '');
  2733. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2734. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2735. create_time, update_by, update_time, remark)
  2736. VALUES (1057, '生成删除', 116, 3, '', '', NULL, '', '1', '0', 'F', '0', '0', 'tool:gen:remove', '', 0, 1,
  2737. '2023-06-03 21:32:29', 1, NULL, '');
  2738. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2739. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2740. create_time, update_by, update_time, remark)
  2741. VALUES (1001, '用户新增', 100, 2, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:user:add', '', 0, 1,
  2742. '2023-06-03 21:32:29', 1, NULL, '');
  2743. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2744. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2745. create_time, update_by, update_time, remark)
  2746. VALUES (1002, '用户修改', 100, 3, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:user:edit', '', 0, 1,
  2747. '2023-06-03 21:32:29', 1, NULL, '');
  2748. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2749. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2750. create_time, update_by, update_time, remark)
  2751. VALUES (1003, '用户删除', 100, 4, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:user:remove', '', 0, 1,
  2752. '2023-06-03 21:32:29', 1, NULL, '');
  2753. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2754. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2755. create_time, update_by, update_time, remark)
  2756. VALUES (1004, '用户导出', 100, 5, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:user:export', '', 0, 1,
  2757. '2023-06-03 21:32:29', 1, NULL, '');
  2758. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2759. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2760. create_time, update_by, update_time, remark)
  2761. VALUES (1005, '用户导入', 100, 6, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:user:import', '', 0, 1,
  2762. '2023-06-03 21:32:29', 1, NULL, '');
  2763. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2764. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2765. create_time, update_by, update_time, remark)
  2766. VALUES (1006, '重置密码', 100, 7, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:user:resetPwd', '', 0, 1,
  2767. '2023-06-03 21:32:29', 1, NULL, '');
  2768. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2769. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2770. create_time, update_by, update_time, remark)
  2771. VALUES (1058, '导入代码', 116, 4, '', '', NULL, '', '1', '0', 'F', '0', '0', 'tool:gen:import', '', 0, 1,
  2772. '2023-06-03 21:32:29', 1, NULL, '');
  2773. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2774. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2775. create_time, update_by, update_time, remark)
  2776. VALUES (1059, '预览代码', 116, 5, '', '', NULL, '', '1', '0', 'F', '0', '0', 'tool:gen:preview', '', 0, 1,
  2777. '2023-06-03 21:32:29', 1, NULL, '');
  2778. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2779. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2780. create_time, update_by, update_time, remark)
  2781. VALUES (1060, '生成代码', 116, 6, '', '', NULL, '', '1', '0', 'F', '0', '0', 'tool:gen:code', '', 0, 1,
  2782. '2023-06-03 21:32:29', 1, NULL, '');
  2783. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2784. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2785. create_time, update_by, update_time, remark)
  2786. VALUES (1008, '角色新增', 101, 2, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:role:add', '', 0, 1,
  2787. '2023-06-03 21:32:29', 1, NULL, '');
  2788. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2789. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2790. create_time, update_by, update_time, remark)
  2791. VALUES (1600, '文件查询', 118, 1, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:oss:query', '', 0, 1,
  2792. '2023-12-25 15:09:14.342224', NULL, NULL, '');
  2793. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2794. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2795. create_time, update_by, update_time, remark)
  2796. VALUES (1601, '文件上传', 118, 2, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:oss:upload', '', 0, 1,
  2797. '2023-12-25 15:09:14.342224', NULL, NULL, '');
  2798. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2799. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2800. create_time, update_by, update_time, remark)
  2801. VALUES (1602, '文件下载', 118, 3, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:oss:download', '', 0, 1,
  2802. '2023-12-25 15:09:14.342224', NULL, NULL, '');
  2803. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2804. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2805. create_time, update_by, update_time, remark)
  2806. VALUES (1603, '文件删除', 118, 4, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:oss:remove', '', 0, 1,
  2807. '2023-12-25 15:09:14.342224', NULL, NULL, '');
  2808. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2809. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2810. create_time, update_by, update_time, remark)
  2811. VALUES (1620, '配置列表', 118, 5, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:ossConfig:list', '', 0, 1,
  2812. '2023-12-25 15:09:14.342224', NULL, NULL, '');
  2813. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2814. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2815. create_time, update_by, update_time, remark)
  2816. VALUES (1621, '配置添加', 118, 6, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:ossConfig:add', '', 0, 1,
  2817. '2023-12-25 15:09:14.342224', NULL, NULL, '');
  2818. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2819. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2820. create_time, update_by, update_time, remark)
  2821. VALUES (1622, '配置编辑', 118, 6, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:ossConfig:edit', '', 0, 1,
  2822. '2023-12-25 15:09:14.342224', NULL, NULL, '');
  2823. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2824. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2825. create_time, update_by, update_time, remark)
  2826. VALUES (1623, '配置删除', 118, 6, '', '', NULL, '', '1', '0', 'F', '0', '0', 'system:ossConfig:remove', '', 0, 1,
  2827. '2023-12-25 15:09:14.342224', NULL, NULL, '');
  2828. INSERT INTO km.sys_menu (menu_id, menu_name, parent_id, order_num, path, component, component_name, query_param,
  2829. is_frame, is_cache, menu_type, visible, status, perms, icon, version, create_by,
  2830. create_time, update_by, update_time, remark)
  2831. VALUES (100, '用户管理', 1, 1, '/system/user', 'system/user/index', 'User', '', '1', '0', 'C', '0', '0',
  2832. 'system:user:list', 'Aim', 6, 1, '2023-06-03 21:32:28', 1, '2024-02-03 17:54:57.296', '用户管理菜单');
  2833. INSERT INTO km.sys_post (post_id, tenant_id, post_code, post_name, post_sort, status, version, create_by,
  2834. create_time, update_by, update_time, remark)
  2835. VALUES (1, 0, 'ceo', '董事长', 1, '0', 0, 1, '2023-06-03 21:32:28', 1, '2023-09-02 15:43:55', '');
  2836. INSERT INTO km.sys_post (post_id, tenant_id, post_code, post_name, post_sort, status, version, create_by,
  2837. create_time, update_by, update_time, remark)
  2838. VALUES (2, 0, 'se', '项目经理', 2, '0', 0, 1, '2023-06-03 21:32:28', 1, NULL, '');
  2839. INSERT INTO km.sys_post (post_id, tenant_id, post_code, post_name, post_sort, status, version, create_by,
  2840. create_time, update_by, update_time, remark)
  2841. VALUES (3, 0, 'hr', '人力资源', 3, '0', 0, 1, '2023-06-03 21:32:28', 1, NULL, '');
  2842. INSERT INTO km.sys_post (post_id, tenant_id, post_code, post_name, post_sort, status, version, create_by,
  2843. create_time, update_by, update_time, remark)
  2844. VALUES (4, 0, 'users', '普通员工', 4, '0', 0, 1, '2023-06-03 21:32:28', 1, '2023-07-13 21:30:24', '');
  2845. INSERT INTO km.sys_post (post_id, tenant_id, post_code, post_name, post_sort, status, version, create_by,
  2846. create_time, update_by, update_time, remark)
  2847. VALUES (5, 0, 'deptLeader', '部门管理岗', 5, '0', 0, 1, '2023-10-01 10:33:39', 1, '2023-10-01 10:33:39',
  2848. '部门负责人岗位');
  2849. INSERT INTO km.sys_role (role_id, tenant_id, role_name, role_key, role_sort, data_scope, menu_check_strictly,
  2850. dept_check_strictly, status, version, del_flag, create_by, create_time, update_by,
  2851. update_time, remark)
  2852. VALUES (1, 0, '超级管理员角色', 'admin', 1, '1', true, true, '0', 0, 0, 1, '2023-06-03 21:32:28', 1, NULL,
  2853. '超级管理员');
  2854. INSERT INTO km.sys_tenant (tenant_id, contact_user_name, contact_phone, company_name, license_number, address,
  2855. intro, domain_name, remark, package_id, expire_time, account_count, status, version, del_flag,
  2856. create_by, create_time, update_by, update_time)
  2857. VALUES (0, '联系人', '18888888888', 'KM', NULL, NULL, '多租户通用后台管理管理系统', NULL, NULL,
  2858. NULL, NULL, -1, '0', 0, 0, 1, '2023-08-13 08:08:08', NULL, NULL);
  2859. INSERT INTO km.sys_user (user_id, tenant_id, dept_id, user_name, nick_name, user_type, email, phonenumber, gender,
  2860. avatar, password, status, version, del_flag, login_ip, login_date, create_by, create_time,
  2861. update_by, update_time, remark)
  2862. VALUES (1, 0, 1, 'superadmin', '超级管理员', 'sys_user', 'www@163.com', '15888888888', '1', NULL,
  2863. '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', 58, 0, '127.0.0.1',
  2864. '2024-02-22 11:25:19.464', 1, '2023-06-03 21:32:28', 1, '2024-02-22 11:25:19.467', '管理员');
  2865. ALTER TABLE ONLY km.gen_table_column
  2866. ADD CONSTRAINT gen_table_column_pk PRIMARY KEY (column_id);
  2867. ALTER TABLE ONLY km.gen_table
  2868. ADD CONSTRAINT gen_table_pk PRIMARY KEY (table_id);
  2869. ALTER TABLE ONLY km.pj_app_info
  2870. ADD CONSTRAINT pj_app_info_pkey PRIMARY KEY (id);
  2871. ALTER TABLE ONLY km.pj_container_info
  2872. ADD CONSTRAINT pj_container_info_pkey PRIMARY KEY (id);
  2873. ALTER TABLE ONLY km.pj_instance_info
  2874. ADD CONSTRAINT pj_instance_info_pkey PRIMARY KEY (id);
  2875. ALTER TABLE ONLY km.pj_job_info
  2876. ADD CONSTRAINT pj_job_info_pkey PRIMARY KEY (id);
  2877. ALTER TABLE ONLY km.pj_oms_lock
  2878. ADD CONSTRAINT pj_oms_lock_pkey PRIMARY KEY (id);
  2879. ALTER TABLE ONLY km.pj_server_info
  2880. ADD CONSTRAINT pj_server_info_pkey PRIMARY KEY (id);
  2881. ALTER TABLE ONLY km.pj_user_info
  2882. ADD CONSTRAINT pj_user_info_pkey PRIMARY KEY (id);
  2883. ALTER TABLE ONLY km.pj_workflow_info
  2884. ADD CONSTRAINT pj_workflow_info_pkey PRIMARY KEY (id);
  2885. ALTER TABLE ONLY km.pj_workflow_instance_info
  2886. ADD CONSTRAINT pj_workflow_instance_info_pkey PRIMARY KEY (id);
  2887. ALTER TABLE ONLY km.pj_workflow_node_info
  2888. ADD CONSTRAINT pj_workflow_node_info_pkey PRIMARY KEY (id);
  2889. ALTER TABLE ONLY km.sys_tenant
  2890. ADD CONSTRAINT pk_sys_tenant PRIMARY KEY (tenant_id);
  2891. ALTER TABLE ONLY km.sys_client
  2892. ADD CONSTRAINT sys_client_pk PRIMARY KEY (id);
  2893. ALTER TABLE ONLY km.sys_config
  2894. ADD CONSTRAINT sys_config_pk PRIMARY KEY (config_id);
  2895. ALTER TABLE ONLY km.sys_dept
  2896. ADD CONSTRAINT sys_dept_pk PRIMARY KEY (dept_id);
  2897. ALTER TABLE ONLY km.sys_dict_data
  2898. ADD CONSTRAINT sys_dict_data_pk PRIMARY KEY (dict_code);
  2899. ALTER TABLE ONLY km.sys_dict_type
  2900. ADD CONSTRAINT sys_dict_type_pk PRIMARY KEY (dict_id);
  2901. ALTER TABLE ONLY km.sys_logininfor
  2902. ADD CONSTRAINT sys_logininfor_pk PRIMARY KEY (info_id);
  2903. ALTER TABLE ONLY km.sys_menu
  2904. ADD CONSTRAINT sys_menu_pk PRIMARY KEY (menu_id);
  2905. ALTER TABLE ONLY km.sys_notice
  2906. ADD CONSTRAINT sys_notice_pk PRIMARY KEY (notice_id);
  2907. ALTER TABLE ONLY km.sys_oper_log
  2908. ADD CONSTRAINT sys_oper_log_pk PRIMARY KEY (oper_id);
  2909. ALTER TABLE ONLY km.sys_oss_config
  2910. ADD CONSTRAINT sys_oss_config_pk PRIMARY KEY (oss_config_id);
  2911. ALTER TABLE ONLY km.sys_oss
  2912. ADD CONSTRAINT sys_oss_pk PRIMARY KEY (oss_id);
  2913. ALTER TABLE ONLY km.sys_post
  2914. ADD CONSTRAINT sys_post_pk PRIMARY KEY (post_id);
  2915. ALTER TABLE ONLY km.sys_role_dept
  2916. ADD CONSTRAINT sys_role_dept_pk PRIMARY KEY (role_id, dept_id);
  2917. ALTER TABLE ONLY km.sys_role_menu
  2918. ADD CONSTRAINT sys_role_menu_pk PRIMARY KEY (role_id, menu_id);
  2919. ALTER TABLE ONLY km.sys_role
  2920. ADD CONSTRAINT sys_role_pk PRIMARY KEY (role_id);
  2921. ALTER TABLE ONLY km.sys_tenant_package
  2922. ADD CONSTRAINT sys_tenant_package_pkey PRIMARY KEY (package_id);
  2923. ALTER TABLE ONLY km.sys_user
  2924. ADD CONSTRAINT sys_user_pk PRIMARY KEY (user_id);
  2925. ALTER TABLE ONLY km.sys_user_post
  2926. ADD CONSTRAINT sys_user_post_pk PRIMARY KEY (user_id, post_id);
  2927. ALTER TABLE ONLY km.sys_user_role
  2928. ADD CONSTRAINT sys_user_role_pk PRIMARY KEY (user_id, role_id);
  2929. ALTER TABLE ONLY km.pj_app_info
  2930. ADD CONSTRAINT uidx01_app_info UNIQUE (app_name);
  2931. ALTER TABLE ONLY km.pj_oms_lock
  2932. ADD CONSTRAINT uidx01_oms_lock UNIQUE (lock_name);
  2933. ALTER TABLE ONLY km.pj_server_info
  2934. ADD CONSTRAINT uidx01_server_info UNIQUE (ip);
  2935. ALTER TABLE ONLY km.pj_workflow_instance_info
  2936. ADD CONSTRAINT uidx01_wf_instance UNIQUE (wf_instance_id);
  2937. CREATE INDEX idx01_container_info ON km.pj_container_info USING btree (app_id);
  2938. CREATE INDEX idx01_instance_info ON km.pj_instance_info USING btree (job_id, status);
  2939. CREATE INDEX idx01_job_info ON km.pj_job_info USING btree (app_id, status, time_expression_type, next_trigger_time);
  2940. CREATE INDEX idx01_server_info ON km.pj_server_info USING btree (gmt_modified);
  2941. CREATE INDEX idx01_wf_instance ON km.pj_workflow_instance_info USING btree (workflow_id, status, app_id, expected_trigger_time);
  2942. CREATE INDEX idx01_workflow_info ON km.pj_workflow_info USING btree (app_id, status, time_expression_type, next_trigger_time);
  2943. CREATE INDEX idx01_workflow_node_info ON km.pj_workflow_node_info USING btree (workflow_id, gmt_create);
  2944. CREATE INDEX idx02_instance_info ON km.pj_instance_info USING btree (app_id, status);
  2945. CREATE INDEX idx03_instance_info ON km.pj_instance_info USING btree (instance_id, status);
  2946. CREATE INDEX idx_sys_logininfor_lt ON km.sys_logininfor USING btree (login_time);
  2947. CREATE INDEX idx_sys_logininfor_s ON km.sys_logininfor USING btree (status);
  2948. CREATE INDEX idx_sys_oper_log_bt ON km.sys_oper_log USING btree (business_type);
  2949. CREATE INDEX idx_sys_oper_log_ot ON km.sys_oper_log USING btree (oper_time);
  2950. CREATE INDEX idx_sys_oper_log_s ON km.sys_oper_log USING btree (status);
  2951. CREATE UNIQUE INDEX sys_dict_type_index1 ON km.sys_dict_type USING btree (tenant_id, dict_type);
  2952. CREATE UNIQUE INDEX sys_user_unqindex_tenant_username ON km.sys_user USING btree (tenant_id, user_name);
  2953. CREATE INDEX uidx01_user_info ON km.pj_user_info USING btree (username);
  2954. CREATE INDEX uidx02_user_info ON km.pj_user_info USING btree (email);
  2955. -- postgresql创建与mysql等效的的find_in_set函数
  2956. CREATE OR REPLACE FUNCTION find_in_set(
  2957. value anyelement,
  2958. string_list text)
  2959. RETURNS integer
  2960. LANGUAGE 'plpgsql'
  2961. COST 100
  2962. VOLATILE PARALLEL UNSAFE
  2963. AS
  2964. $BODY$
  2965. DECLARE
  2966. position INTEGER;
  2967. BEGIN
  2968. IF string_list = '' THEN
  2969. RETURN 0;
  2970. ELSE
  2971. position := array_position(string_to_array(string_list, ','), value::TEXT);
  2972. RETURN position;
  2973. END IF;
  2974. END;
  2975. $BODY$;