core.sql 67 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561
  1. /* Create Tables */
  2. -- 代码生成表
  3. CREATE TABLE js_gen_table
  4. (
  5. table_name varchar(64) NOT NULL,
  6. class_name varchar(100) NOT NULL,
  7. comments varchar(500) NOT NULL,
  8. parent_table_name varchar(64),
  9. parent_table_fk_name varchar(64),
  10. data_source_name varchar(64),
  11. tpl_category varchar(200),
  12. package_name varchar(500),
  13. module_name varchar(30),
  14. sub_module_name varchar(30),
  15. function_name varchar(200),
  16. function_name_simple varchar(50),
  17. function_author varchar(50),
  18. gen_base_dir varchar(1000),
  19. options varchar(1000),
  20. create_by varchar(64) NOT NULL,
  21. create_date timestamp NOT NULL,
  22. update_by varchar(64) NOT NULL,
  23. update_date timestamp NOT NULL,
  24. remarks varchar(500),
  25. PRIMARY KEY (table_name)
  26. ) WITHOUT OIDS;
  27. -- 代码生成表列
  28. CREATE TABLE js_gen_table_column
  29. (
  30. id varchar(64) NOT NULL,
  31. table_name varchar(64) NOT NULL,
  32. column_name varchar(64) NOT NULL,
  33. column_sort decimal(10),
  34. column_type varchar(100) NOT NULL,
  35. column_label varchar(50),
  36. comments varchar(500) NOT NULL,
  37. attr_name varchar(200) NOT NULL,
  38. attr_type varchar(200) NOT NULL,
  39. is_pk char(1),
  40. is_null char(1),
  41. is_insert char(1),
  42. is_update char(1),
  43. is_list char(1),
  44. is_query char(1),
  45. query_type varchar(200),
  46. is_edit char(1),
  47. show_type varchar(200),
  48. options varchar(1000),
  49. PRIMARY KEY (id)
  50. ) WITHOUT OIDS;
  51. -- 行政区划
  52. CREATE TABLE js_sys_area
  53. (
  54. area_code varchar(100) NOT NULL,
  55. parent_code varchar(64) NOT NULL,
  56. parent_codes varchar(767) NOT NULL,
  57. tree_sort decimal(10) NOT NULL,
  58. tree_sorts varchar(767) NOT NULL,
  59. tree_leaf char(1) NOT NULL,
  60. tree_level decimal(4) NOT NULL,
  61. tree_names varchar(767) NOT NULL,
  62. area_name varchar(100) NOT NULL,
  63. area_type char(1),
  64. status char(1) DEFAULT '0' NOT NULL,
  65. create_by varchar(64) NOT NULL,
  66. create_date timestamp NOT NULL,
  67. update_by varchar(64) NOT NULL,
  68. update_date timestamp NOT NULL,
  69. remarks varchar(500),
  70. PRIMARY KEY (area_code)
  71. ) WITHOUT OIDS;
  72. -- 公司表
  73. CREATE TABLE js_sys_company
  74. (
  75. company_code varchar(64) NOT NULL,
  76. parent_code varchar(64) NOT NULL,
  77. parent_codes varchar(767) NOT NULL,
  78. tree_sort decimal(10) NOT NULL,
  79. tree_sorts varchar(767) NOT NULL,
  80. tree_leaf char(1) NOT NULL,
  81. tree_level decimal(4) NOT NULL,
  82. tree_names varchar(767) NOT NULL,
  83. view_code varchar(100) NOT NULL,
  84. company_name varchar(200) NOT NULL,
  85. full_name varchar(200) NOT NULL,
  86. area_code varchar(100),
  87. status char(1) DEFAULT '0' NOT NULL,
  88. create_by varchar(64) NOT NULL,
  89. create_date timestamp NOT NULL,
  90. update_by varchar(64) NOT NULL,
  91. update_date timestamp NOT NULL,
  92. remarks varchar(500),
  93. corp_code varchar(64) DEFAULT '0' NOT NULL,
  94. corp_name varchar(100) DEFAULT 'JeeSite' NOT NULL,
  95. extend_s1 varchar(500),
  96. extend_s2 varchar(500),
  97. extend_s3 varchar(500),
  98. extend_s4 varchar(500),
  99. extend_s5 varchar(500),
  100. extend_s6 varchar(500),
  101. extend_s7 varchar(500),
  102. extend_s8 varchar(500),
  103. extend_i1 decimal(19),
  104. extend_i2 decimal(19),
  105. extend_i3 decimal(19),
  106. extend_i4 decimal(19),
  107. extend_f1 decimal(19,4),
  108. extend_f2 decimal(19,4),
  109. extend_f3 decimal(19,4),
  110. extend_f4 decimal(19,4),
  111. extend_d1 timestamp,
  112. extend_d2 timestamp,
  113. extend_d3 timestamp,
  114. extend_d4 timestamp,
  115. PRIMARY KEY (company_code)
  116. ) WITHOUT OIDS;
  117. -- 公司部门关联表
  118. CREATE TABLE js_sys_company_office
  119. (
  120. company_code varchar(64) NOT NULL,
  121. office_code varchar(64) NOT NULL,
  122. PRIMARY KEY (company_code, office_code)
  123. ) WITHOUT OIDS;
  124. -- 参数配置表
  125. CREATE TABLE js_sys_config
  126. (
  127. id varchar(64) NOT NULL,
  128. config_name varchar(100) NOT NULL,
  129. config_key varchar(100) NOT NULL,
  130. config_value varchar(1000),
  131. is_sys char(1) NOT NULL,
  132. create_by varchar(64) NOT NULL,
  133. create_date timestamp NOT NULL,
  134. update_by varchar(64) NOT NULL,
  135. update_date timestamp NOT NULL,
  136. remarks varchar(500),
  137. PRIMARY KEY (id)
  138. ) WITHOUT OIDS;
  139. -- 字典数据表
  140. CREATE TABLE js_sys_dict_data
  141. (
  142. dict_code varchar(64) NOT NULL,
  143. parent_code varchar(64) NOT NULL,
  144. parent_codes varchar(767) NOT NULL,
  145. tree_sort decimal(10) NOT NULL,
  146. tree_sorts varchar(767) NOT NULL,
  147. tree_leaf char(1) NOT NULL,
  148. tree_level decimal(4) NOT NULL,
  149. tree_names varchar(767) NOT NULL,
  150. dict_label varchar(100) NOT NULL,
  151. dict_value varchar(100) NOT NULL,
  152. dict_icon varchar(100),
  153. dict_type varchar(100) NOT NULL,
  154. is_sys char(1) NOT NULL,
  155. description varchar(500),
  156. css_style varchar(500),
  157. css_class varchar(500),
  158. status char(1) DEFAULT '0' NOT NULL,
  159. create_by varchar(64) NOT NULL,
  160. create_date timestamp NOT NULL,
  161. update_by varchar(64) NOT NULL,
  162. update_date timestamp NOT NULL,
  163. remarks varchar(500),
  164. corp_code varchar(64) DEFAULT '0' NOT NULL,
  165. corp_name varchar(100) DEFAULT 'JeeSite' NOT NULL,
  166. extend_s1 varchar(500),
  167. extend_s2 varchar(500),
  168. extend_s3 varchar(500),
  169. extend_s4 varchar(500),
  170. extend_s5 varchar(500),
  171. extend_s6 varchar(500),
  172. extend_s7 varchar(500),
  173. extend_s8 varchar(500),
  174. extend_i1 decimal(19),
  175. extend_i2 decimal(19),
  176. extend_i3 decimal(19),
  177. extend_i4 decimal(19),
  178. extend_f1 decimal(19,4),
  179. extend_f2 decimal(19,4),
  180. extend_f3 decimal(19,4),
  181. extend_f4 decimal(19,4),
  182. extend_d1 timestamp,
  183. extend_d2 timestamp,
  184. extend_d3 timestamp,
  185. extend_d4 timestamp,
  186. PRIMARY KEY (dict_code)
  187. ) WITHOUT OIDS;
  188. -- 字典类型表
  189. CREATE TABLE js_sys_dict_type
  190. (
  191. id varchar(64) NOT NULL,
  192. dict_name varchar(100) NOT NULL,
  193. dict_type varchar(100) NOT NULL,
  194. is_sys char(1) NOT NULL,
  195. status char(1) DEFAULT '0' NOT NULL,
  196. create_by varchar(64) NOT NULL,
  197. create_date timestamp NOT NULL,
  198. update_by varchar(64) NOT NULL,
  199. update_date timestamp NOT NULL,
  200. remarks varchar(500),
  201. PRIMARY KEY (id)
  202. ) WITHOUT OIDS;
  203. -- 员工表
  204. CREATE TABLE js_sys_employee
  205. (
  206. emp_code varchar(64) NOT NULL,
  207. emp_name varchar(100) NOT NULL,
  208. emp_name_en varchar(100),
  209. emp_no varchar(100),
  210. office_code varchar(64) NOT NULL,
  211. office_name varchar(100) NOT NULL,
  212. company_code varchar(64),
  213. company_name varchar(200),
  214. status char(1) NOT NULL,
  215. create_by varchar(64) NOT NULL,
  216. create_date timestamp NOT NULL,
  217. update_by varchar(64) NOT NULL,
  218. update_date timestamp NOT NULL,
  219. remarks varchar(500),
  220. corp_code varchar(64) DEFAULT '0' NOT NULL,
  221. corp_name varchar(100) DEFAULT 'JeeSite' NOT NULL,
  222. PRIMARY KEY (emp_code)
  223. ) WITHOUT OIDS;
  224. -- 员工附属机构关系表
  225. CREATE TABLE js_sys_employee_office
  226. (
  227. id varchar(64) NOT NULL,
  228. emp_code varchar(64) NOT NULL,
  229. office_code varchar(64) NOT NULL,
  230. post_code varchar(64),
  231. PRIMARY KEY (id)
  232. ) WITHOUT OIDS;
  233. -- 员工与岗位关联表
  234. CREATE TABLE js_sys_employee_post
  235. (
  236. emp_code varchar(64) NOT NULL,
  237. post_code varchar(64) NOT NULL,
  238. PRIMARY KEY (emp_code, post_code)
  239. ) WITHOUT OIDS;
  240. -- 文件实体表
  241. CREATE TABLE js_sys_file_entity
  242. (
  243. file_id varchar(64) NOT NULL,
  244. file_md5 varchar(64) NOT NULL,
  245. file_path varchar(1000) NOT NULL,
  246. file_content_type varchar(200) NOT NULL,
  247. file_extension varchar(100) NOT NULL,
  248. file_size decimal(31) NOT NULL,
  249. file_meta varchar(255),
  250. file_preview char(1),
  251. PRIMARY KEY (file_id)
  252. ) WITHOUT OIDS;
  253. -- 文件上传表
  254. CREATE TABLE js_sys_file_upload
  255. (
  256. id varchar(64) NOT NULL,
  257. file_id varchar(64) NOT NULL,
  258. file_name varchar(500) NOT NULL,
  259. file_type varchar(20) NOT NULL,
  260. file_sort decimal(10),
  261. biz_key varchar(64),
  262. biz_type varchar(64),
  263. status char(1) DEFAULT '0' NOT NULL,
  264. create_by varchar(64) NOT NULL,
  265. create_date timestamp NOT NULL,
  266. update_by varchar(64) NOT NULL,
  267. update_date timestamp NOT NULL,
  268. remarks varchar(500),
  269. extend_s1 varchar(500),
  270. extend_s2 varchar(500),
  271. extend_s3 varchar(500),
  272. extend_s4 varchar(500),
  273. extend_s5 varchar(500),
  274. extend_s6 varchar(500),
  275. extend_s7 varchar(500),
  276. extend_s8 varchar(500),
  277. extend_i1 decimal(19),
  278. extend_i2 decimal(19),
  279. extend_i3 decimal(19),
  280. extend_i4 decimal(19),
  281. extend_f1 decimal(19,4),
  282. extend_f2 decimal(19,4),
  283. extend_f3 decimal(19,4),
  284. extend_f4 decimal(19,4),
  285. extend_d1 timestamp,
  286. extend_d2 timestamp,
  287. extend_d3 timestamp,
  288. extend_d4 timestamp,
  289. PRIMARY KEY (id)
  290. ) WITHOUT OIDS;
  291. -- 作业调度表
  292. CREATE TABLE js_sys_job
  293. (
  294. job_name varchar(64) NOT NULL,
  295. job_group varchar(64) NOT NULL,
  296. description varchar(100) NOT NULL,
  297. invoke_target varchar(1000) NOT NULL,
  298. cron_expression varchar(255) NOT NULL,
  299. misfire_instruction decimal(1) NOT NULL,
  300. concurrent char(1) NOT NULL,
  301. instance_name varchar(64) DEFAULT 'JeeSiteScheduler' NOT NULL,
  302. status char(1) NOT NULL,
  303. create_by varchar(64) NOT NULL,
  304. create_date timestamp NOT NULL,
  305. update_by varchar(64) NOT NULL,
  306. update_date timestamp NOT NULL,
  307. remarks varchar(500),
  308. PRIMARY KEY (job_name, job_group)
  309. ) WITHOUT OIDS;
  310. -- 作业调度日志表
  311. CREATE TABLE js_sys_job_log
  312. (
  313. id varchar(64) NOT NULL,
  314. job_name varchar(64) NOT NULL,
  315. job_group varchar(64) NOT NULL,
  316. job_type varchar(50),
  317. job_event varchar(200),
  318. job_message varchar(500),
  319. is_exception char(1),
  320. exception_info text,
  321. create_date timestamp,
  322. PRIMARY KEY (id)
  323. ) WITHOUT OIDS;
  324. -- 国际化语言
  325. CREATE TABLE js_sys_lang
  326. (
  327. id varchar(64) NOT NULL,
  328. module_code varchar(64) NOT NULL,
  329. lang_code varchar(500) NOT NULL,
  330. lang_text varchar(500) NOT NULL,
  331. lang_type varchar(50) NOT NULL,
  332. create_by varchar(64) NOT NULL,
  333. create_date timestamp NOT NULL,
  334. update_by varchar(64) NOT NULL,
  335. update_date timestamp NOT NULL,
  336. remarks varchar(500),
  337. PRIMARY KEY (id)
  338. ) WITHOUT OIDS;
  339. -- 操作日志表
  340. CREATE TABLE js_sys_log
  341. (
  342. id varchar(64) NOT NULL,
  343. log_type varchar(50) NOT NULL,
  344. log_title varchar(500) NOT NULL,
  345. create_by varchar(64) NOT NULL,
  346. create_by_name varchar(100) NOT NULL,
  347. create_date timestamp NOT NULL,
  348. request_uri varchar(500),
  349. request_method varchar(10),
  350. request_params text,
  351. diff_modify_data text,
  352. biz_key varchar(64),
  353. biz_type varchar(64),
  354. remote_addr varchar(255) NOT NULL,
  355. server_addr varchar(255) NOT NULL,
  356. is_exception char(1),
  357. exception_info text,
  358. user_agent varchar(500),
  359. device_name varchar(100),
  360. browser_name varchar(100),
  361. execute_time decimal(19),
  362. corp_code varchar(64) DEFAULT '0' NOT NULL,
  363. corp_name varchar(100) DEFAULT 'JeeSite' NOT NULL,
  364. PRIMARY KEY (id)
  365. ) WITHOUT OIDS;
  366. -- 菜单表
  367. CREATE TABLE js_sys_menu
  368. (
  369. menu_code varchar(64) NOT NULL,
  370. parent_code varchar(64) NOT NULL,
  371. parent_codes varchar(767) NOT NULL,
  372. tree_sort decimal(10) NOT NULL,
  373. tree_sorts varchar(767) NOT NULL,
  374. tree_leaf char(1) NOT NULL,
  375. tree_level decimal(4) NOT NULL,
  376. tree_names varchar(767) NOT NULL,
  377. menu_name varchar(100) NOT NULL,
  378. menu_type char(1) NOT NULL,
  379. menu_href varchar(1000),
  380. menu_target varchar(20),
  381. menu_icon varchar(100),
  382. menu_color varchar(50),
  383. menu_title varchar(100),
  384. permission varchar(1000),
  385. weight decimal(4),
  386. is_show char(1) NOT NULL,
  387. sys_code varchar(64) NOT NULL,
  388. module_codes varchar(500) NOT NULL,
  389. status char(1) DEFAULT '0' NOT NULL,
  390. create_by varchar(64) NOT NULL,
  391. create_date timestamp NOT NULL,
  392. update_by varchar(64) NOT NULL,
  393. update_date timestamp NOT NULL,
  394. remarks varchar(500),
  395. extend_s1 varchar(500),
  396. extend_s2 varchar(500),
  397. extend_s3 varchar(500),
  398. extend_s4 varchar(500),
  399. extend_s5 varchar(500),
  400. extend_s6 varchar(500),
  401. extend_s7 varchar(500),
  402. extend_s8 varchar(500),
  403. extend_i1 decimal(19),
  404. extend_i2 decimal(19),
  405. extend_i3 decimal(19),
  406. extend_i4 decimal(19),
  407. extend_f1 decimal(19,4),
  408. extend_f2 decimal(19,4),
  409. extend_f3 decimal(19,4),
  410. extend_f4 decimal(19,4),
  411. extend_d1 timestamp,
  412. extend_d2 timestamp,
  413. extend_d3 timestamp,
  414. extend_d4 timestamp,
  415. PRIMARY KEY (menu_code)
  416. ) WITHOUT OIDS;
  417. -- 模块表
  418. CREATE TABLE js_sys_module
  419. (
  420. module_code varchar(64) NOT NULL,
  421. module_name varchar(100) NOT NULL,
  422. description varchar(500),
  423. main_class_name varchar(500),
  424. current_version varchar(50),
  425. upgrade_info varchar(300),
  426. status char(1) DEFAULT '0' NOT NULL,
  427. create_by varchar(64) NOT NULL,
  428. create_date timestamp NOT NULL,
  429. update_by varchar(64) NOT NULL,
  430. update_date timestamp NOT NULL,
  431. remarks varchar(500),
  432. PRIMARY KEY (module_code)
  433. ) WITHOUT OIDS;
  434. -- 内部消息
  435. CREATE TABLE js_sys_msg_inner
  436. (
  437. id varchar(64) NOT NULL,
  438. msg_title varchar(200) NOT NULL,
  439. content_level char(1) NOT NULL,
  440. content_type char(1),
  441. msg_content text NOT NULL,
  442. receive_type char(1) NOT NULL,
  443. receive_codes text,
  444. receive_names text,
  445. send_user_code varchar(64),
  446. send_user_name varchar(100),
  447. send_date timestamp,
  448. is_attac char(1),
  449. notify_types varchar(100),
  450. status char(1) NOT NULL,
  451. create_by varchar(64) NOT NULL,
  452. create_date timestamp NOT NULL,
  453. update_by varchar(64) NOT NULL,
  454. update_date timestamp NOT NULL,
  455. remarks varchar(500),
  456. PRIMARY KEY (id)
  457. ) WITHOUT OIDS;
  458. -- 内部消息发送记录表
  459. CREATE TABLE js_sys_msg_inner_record
  460. (
  461. id varchar(64) NOT NULL,
  462. msg_inner_id varchar(64) NOT NULL,
  463. receive_user_code varchar(64) NOT NULL,
  464. receive_user_name varchar(100) NOT NULL,
  465. read_status char(1) NOT NULL,
  466. read_date timestamp,
  467. is_star char(1),
  468. PRIMARY KEY (id)
  469. ) WITHOUT OIDS;
  470. -- 消息推送表
  471. CREATE TABLE js_sys_msg_push
  472. (
  473. id varchar(64) NOT NULL,
  474. msg_type varchar(16) NOT NULL,
  475. msg_title varchar(200) NOT NULL,
  476. msg_content text NOT NULL,
  477. biz_key varchar(64),
  478. biz_type varchar(64),
  479. receive_code varchar(64) NOT NULL,
  480. receive_user_code varchar(64) NOT NULL,
  481. receive_user_name varchar(100) NOT NULL,
  482. send_user_code varchar(64) NOT NULL,
  483. send_user_name varchar(100) NOT NULL,
  484. send_date timestamp NOT NULL,
  485. is_merge_push char(1),
  486. plan_push_date timestamp,
  487. push_number int,
  488. push_return_code varchar(200),
  489. push_return_msg_id varchar(200),
  490. push_return_content text,
  491. push_status char(1),
  492. push_date timestamp,
  493. read_status char(1),
  494. read_date timestamp,
  495. PRIMARY KEY (id)
  496. ) WITHOUT OIDS;
  497. -- 消息已推送表
  498. CREATE TABLE js_sys_msg_pushed
  499. (
  500. id varchar(64) NOT NULL,
  501. msg_type varchar(16) NOT NULL,
  502. msg_title varchar(200) NOT NULL,
  503. msg_content text NOT NULL,
  504. biz_key varchar(64),
  505. biz_type varchar(64),
  506. receive_code varchar(64) NOT NULL,
  507. receive_user_code varchar(64) NOT NULL,
  508. receive_user_name varchar(100) NOT NULL,
  509. send_user_code varchar(64) NOT NULL,
  510. send_user_name varchar(100) NOT NULL,
  511. send_date timestamp NOT NULL,
  512. is_merge_push char(1),
  513. plan_push_date timestamp,
  514. push_number int,
  515. push_return_content text,
  516. push_return_code varchar(200),
  517. push_return_msg_id varchar(200),
  518. push_status char(1),
  519. push_date timestamp,
  520. read_status char(1),
  521. read_date timestamp,
  522. PRIMARY KEY (id)
  523. ) WITHOUT OIDS;
  524. -- 消息模板
  525. CREATE TABLE js_sys_msg_template
  526. (
  527. id varchar(64) NOT NULL,
  528. module_code varchar(64),
  529. tpl_key varchar(100) NOT NULL,
  530. tpl_name varchar(100) NOT NULL,
  531. tpl_type varchar(16) NOT NULL,
  532. tpl_content text NOT NULL,
  533. status char(1) DEFAULT '0' NOT NULL,
  534. create_by varchar(64) NOT NULL,
  535. create_date timestamp NOT NULL,
  536. update_by varchar(64) NOT NULL,
  537. update_date timestamp NOT NULL,
  538. remarks varchar(500),
  539. PRIMARY KEY (id)
  540. ) WITHOUT OIDS;
  541. -- 组织机构表
  542. CREATE TABLE js_sys_office
  543. (
  544. office_code varchar(64) NOT NULL,
  545. parent_code varchar(64) NOT NULL,
  546. parent_codes varchar(767) NOT NULL,
  547. tree_sort decimal(10) NOT NULL,
  548. tree_sorts varchar(767) NOT NULL,
  549. tree_leaf char(1) NOT NULL,
  550. tree_level decimal(4) NOT NULL,
  551. tree_names varchar(767) NOT NULL,
  552. view_code varchar(100) NOT NULL,
  553. office_name varchar(100) NOT NULL,
  554. full_name varchar(200) NOT NULL,
  555. office_type char(1) NOT NULL,
  556. leader varchar(100),
  557. phone varchar(100),
  558. address varchar(255),
  559. zip_code varchar(100),
  560. email varchar(300),
  561. status char(1) DEFAULT '0' NOT NULL,
  562. create_by varchar(64) NOT NULL,
  563. create_date timestamp NOT NULL,
  564. update_by varchar(64) NOT NULL,
  565. update_date timestamp NOT NULL,
  566. remarks varchar(500),
  567. corp_code varchar(64) DEFAULT '0' NOT NULL,
  568. corp_name varchar(100) DEFAULT 'JeeSite' NOT NULL,
  569. extend_s1 varchar(500),
  570. extend_s2 varchar(500),
  571. extend_s3 varchar(500),
  572. extend_s4 varchar(500),
  573. extend_s5 varchar(500),
  574. extend_s6 varchar(500),
  575. extend_s7 varchar(500),
  576. extend_s8 varchar(500),
  577. extend_i1 decimal(19),
  578. extend_i2 decimal(19),
  579. extend_i3 decimal(19),
  580. extend_i4 decimal(19),
  581. extend_f1 decimal(19,4),
  582. extend_f2 decimal(19,4),
  583. extend_f3 decimal(19,4),
  584. extend_f4 decimal(19,4),
  585. extend_d1 timestamp,
  586. extend_d2 timestamp,
  587. extend_d3 timestamp,
  588. extend_d4 timestamp,
  589. PRIMARY KEY (office_code)
  590. ) WITHOUT OIDS;
  591. -- 员工岗位表
  592. CREATE TABLE js_sys_post
  593. (
  594. post_code varchar(64) NOT NULL,
  595. post_name varchar(100) NOT NULL,
  596. post_type varchar(100),
  597. post_sort decimal(10),
  598. status char(1) DEFAULT '0' NOT NULL,
  599. create_by varchar(64) NOT NULL,
  600. create_date timestamp NOT NULL,
  601. update_by varchar(64) NOT NULL,
  602. update_date timestamp NOT NULL,
  603. remarks varchar(500),
  604. corp_code varchar(64) DEFAULT '0' NOT NULL,
  605. corp_name varchar(100) DEFAULT 'JeeSite' NOT NULL,
  606. PRIMARY KEY (post_code)
  607. ) WITHOUT OIDS;
  608. -- 角色表
  609. CREATE TABLE js_sys_role
  610. (
  611. role_code varchar(64) NOT NULL,
  612. role_name varchar(100) NOT NULL,
  613. role_type varchar(100),
  614. role_sort decimal(10),
  615. is_sys char(1),
  616. user_type varchar(16),
  617. data_scope char(1),
  618. biz_scope varchar(255),
  619. status char(1) DEFAULT '0' NOT NULL,
  620. create_by varchar(64) NOT NULL,
  621. create_date timestamp NOT NULL,
  622. update_by varchar(64) NOT NULL,
  623. update_date timestamp NOT NULL,
  624. remarks varchar(500),
  625. corp_code varchar(64) DEFAULT '0' NOT NULL,
  626. corp_name varchar(100) DEFAULT 'JeeSite' NOT NULL,
  627. extend_s1 varchar(500),
  628. extend_s2 varchar(500),
  629. extend_s3 varchar(500),
  630. extend_s4 varchar(500),
  631. extend_s5 varchar(500),
  632. extend_s6 varchar(500),
  633. extend_s7 varchar(500),
  634. extend_s8 varchar(500),
  635. extend_i1 decimal(19),
  636. extend_i2 decimal(19),
  637. extend_i3 decimal(19),
  638. extend_i4 decimal(19),
  639. extend_f1 decimal(19,4),
  640. extend_f2 decimal(19,4),
  641. extend_f3 decimal(19,4),
  642. extend_f4 decimal(19,4),
  643. extend_d1 timestamp,
  644. extend_d2 timestamp,
  645. extend_d3 timestamp,
  646. extend_d4 timestamp,
  647. PRIMARY KEY (role_code)
  648. ) WITHOUT OIDS;
  649. -- 角色数据权限表
  650. CREATE TABLE js_sys_role_data_scope
  651. (
  652. role_code varchar(64) NOT NULL,
  653. ctrl_type varchar(20) NOT NULL,
  654. ctrl_data varchar(64) NOT NULL,
  655. ctrl_permi varchar(64) NOT NULL,
  656. PRIMARY KEY (role_code, ctrl_type, ctrl_data, ctrl_permi)
  657. ) WITHOUT OIDS;
  658. -- 角色与菜单关联表
  659. CREATE TABLE js_sys_role_menu
  660. (
  661. role_code varchar(64) NOT NULL,
  662. menu_code varchar(64) NOT NULL,
  663. PRIMARY KEY (role_code, menu_code)
  664. ) WITHOUT OIDS;
  665. -- 用户表
  666. CREATE TABLE js_sys_user
  667. (
  668. user_code varchar(100) NOT NULL,
  669. login_code varchar(100) NOT NULL,
  670. user_name varchar(100) NOT NULL,
  671. password varchar(200) NOT NULL,
  672. email varchar(300),
  673. mobile varchar(100),
  674. phone varchar(100),
  675. sex char(1),
  676. avatar varchar(1000),
  677. sign varchar(200),
  678. wx_openid varchar(100),
  679. mobile_imei varchar(100),
  680. user_type varchar(16) NOT NULL,
  681. ref_code varchar(64),
  682. ref_name varchar(100),
  683. mgr_type char(1) NOT NULL,
  684. pwd_security_level decimal(1),
  685. pwd_update_date timestamp,
  686. pwd_update_record varchar(1000),
  687. pwd_question varchar(200),
  688. pwd_question_answer varchar(200),
  689. pwd_question_2 varchar(200),
  690. pwd_question_answer_2 varchar(200),
  691. pwd_question_3 varchar(200),
  692. pwd_question_answer_3 varchar(200),
  693. pwd_quest_update_date timestamp,
  694. last_login_ip varchar(100),
  695. last_login_date timestamp,
  696. freeze_date timestamp,
  697. freeze_cause varchar(200),
  698. user_weight decimal(8) DEFAULT 0,
  699. status char NOT NULL,
  700. create_by varchar(64) NOT NULL,
  701. create_date timestamp NOT NULL,
  702. update_by varchar(64) NOT NULL,
  703. update_date timestamp NOT NULL,
  704. remarks varchar(500),
  705. corp_code varchar(64) DEFAULT '0' NOT NULL,
  706. corp_name varchar(100) DEFAULT 'JeeSite' NOT NULL,
  707. extend_s1 varchar(500),
  708. extend_s2 varchar(500),
  709. extend_s3 varchar(500),
  710. extend_s4 varchar(500),
  711. extend_s5 varchar(500),
  712. extend_s6 varchar(500),
  713. extend_s7 varchar(500),
  714. extend_s8 varchar(500),
  715. extend_i1 decimal(19),
  716. extend_i2 decimal(19),
  717. extend_i3 decimal(19),
  718. extend_i4 decimal(19),
  719. extend_f1 decimal(19,4),
  720. extend_f2 decimal(19,4),
  721. extend_f3 decimal(19,4),
  722. extend_f4 decimal(19,4),
  723. extend_d1 timestamp,
  724. extend_d2 timestamp,
  725. extend_d3 timestamp,
  726. extend_d4 timestamp,
  727. PRIMARY KEY (user_code)
  728. ) WITHOUT OIDS;
  729. -- 用户数据权限表
  730. CREATE TABLE js_sys_user_data_scope
  731. (
  732. user_code varchar(100) NOT NULL,
  733. ctrl_type varchar(20) NOT NULL,
  734. ctrl_data varchar(64) NOT NULL,
  735. ctrl_permi varchar(64) NOT NULL,
  736. PRIMARY KEY (user_code, ctrl_type, ctrl_data, ctrl_permi)
  737. ) WITHOUT OIDS;
  738. -- 用户与角色关联表
  739. CREATE TABLE js_sys_user_role
  740. (
  741. user_code varchar(100) NOT NULL,
  742. role_code varchar(64) NOT NULL,
  743. PRIMARY KEY (user_code, role_code)
  744. ) WITHOUT OIDS;
  745. /* Create Indexes */
  746. CREATE INDEX idx_gen_table_ptn ON js_gen_table (parent_table_name);
  747. CREATE INDEX idx_gen_table_column_tn ON js_gen_table_column (table_name);
  748. CREATE INDEX idx_sys_area_pc ON js_sys_area (parent_code);
  749. CREATE INDEX idx_sys_area_ts ON js_sys_area (tree_sort);
  750. CREATE INDEX idx_sys_area_status ON js_sys_area (status);
  751. CREATE INDEX idx_sys_area_pcs ON js_sys_area (parent_codes);
  752. CREATE INDEX idx_sys_area_tss ON js_sys_area (tree_sorts);
  753. CREATE INDEX idx_sys_company_cc ON js_sys_company (corp_code);
  754. CREATE INDEX idx_sys_company_pc ON js_sys_company (parent_code);
  755. CREATE INDEX idx_sys_company_ts ON js_sys_company (tree_sort);
  756. CREATE INDEX idx_sys_company_status ON js_sys_company (status);
  757. CREATE INDEX idx_sys_company_vc ON js_sys_company (view_code);
  758. CREATE INDEX idx_sys_company_pcs ON js_sys_company (parent_codes);
  759. CREATE INDEX idx_sys_company_tss ON js_sys_company (tree_sorts);
  760. CREATE UNIQUE INDEX idx_sys_config_key ON js_sys_config (config_key);
  761. CREATE INDEX idx_sys_dict_data_cc ON js_sys_dict_data (corp_code);
  762. CREATE INDEX idx_sys_dict_data_dt ON js_sys_dict_data (dict_type);
  763. CREATE INDEX idx_sys_dict_data_pc ON js_sys_dict_data (parent_code);
  764. CREATE INDEX idx_sys_dict_data_status ON js_sys_dict_data (status);
  765. CREATE INDEX idx_sys_dict_data_pcs ON js_sys_dict_data (parent_codes);
  766. CREATE INDEX idx_sys_dict_data_ts ON js_sys_dict_data (tree_sort);
  767. CREATE INDEX idx_sys_dict_data_tss ON js_sys_dict_data (tree_sorts);
  768. CREATE INDEX idx_sys_dict_data_dv ON js_sys_dict_data (dict_value);
  769. CREATE INDEX idx_sys_dict_type_is ON js_sys_dict_type (is_sys);
  770. CREATE INDEX idx_sys_dict_type_status ON js_sys_dict_type (status);
  771. CREATE INDEX idx_sys_employee_cco ON js_sys_employee (company_code);
  772. CREATE INDEX idx_sys_employee_cc ON js_sys_employee (corp_code);
  773. CREATE INDEX idx_sys_employee_ud ON js_sys_employee (update_date);
  774. CREATE INDEX idx_sys_employee_oc ON js_sys_employee (office_code);
  775. CREATE INDEX idx_sys_employee_status ON js_sys_employee (status);
  776. CREATE INDEX idx_sys_file_entity_md5 ON js_sys_file_entity (file_md5);
  777. CREATE INDEX idx_sys_file_entity_size ON js_sys_file_entity (file_size);
  778. CREATE INDEX idx_sys_file_biz_ft ON js_sys_file_upload (file_type);
  779. CREATE INDEX idx_sys_file_biz_fi ON js_sys_file_upload (file_id);
  780. CREATE INDEX idx_sys_file_biz_status ON js_sys_file_upload (status);
  781. CREATE INDEX idx_sys_file_biz_cb ON js_sys_file_upload (create_by);
  782. CREATE INDEX idx_sys_file_biz_ud ON js_sys_file_upload (update_date);
  783. CREATE INDEX idx_sys_file_biz_bt ON js_sys_file_upload (biz_type);
  784. CREATE INDEX idx_sys_file_biz_bk ON js_sys_file_upload (biz_key);
  785. CREATE INDEX idx_sys_job_status ON js_sys_job (status);
  786. CREATE INDEX idx_sys_job_log_jn ON js_sys_job_log (job_name);
  787. CREATE INDEX idx_sys_job_log_jg ON js_sys_job_log (job_group);
  788. CREATE INDEX idx_sys_job_log_t ON js_sys_job_log (job_type);
  789. CREATE INDEX idx_sys_job_log_e ON js_sys_job_log (job_event);
  790. CREATE INDEX idx_sys_job_log_ie ON js_sys_job_log (is_exception);
  791. CREATE INDEX idx_sys_lang_code ON js_sys_lang (lang_code);
  792. CREATE INDEX idx_sys_lang_type ON js_sys_lang (lang_type);
  793. CREATE INDEX idx_sys_log_cb ON js_sys_log (create_by);
  794. CREATE INDEX idx_sys_log_cc ON js_sys_log (corp_code);
  795. CREATE INDEX idx_sys_log_lt ON js_sys_log (log_type);
  796. CREATE INDEX idx_sys_log_bk ON js_sys_log (biz_key);
  797. CREATE INDEX idx_sys_log_bt ON js_sys_log (biz_type);
  798. CREATE INDEX idx_sys_log_ie ON js_sys_log (is_exception);
  799. CREATE INDEX idx_sys_log_cd ON js_sys_log (create_date);
  800. CREATE INDEX idx_sys_menu_pc ON js_sys_menu (parent_code);
  801. CREATE INDEX idx_sys_menu_ts ON js_sys_menu (tree_sort);
  802. CREATE INDEX idx_sys_menu_status ON js_sys_menu (status);
  803. CREATE INDEX idx_sys_menu_mt ON js_sys_menu (menu_type);
  804. CREATE INDEX idx_sys_menu_pss ON js_sys_menu (parent_codes);
  805. CREATE INDEX idx_sys_menu_tss ON js_sys_menu (tree_sorts);
  806. CREATE INDEX idx_sys_menu_sc ON js_sys_menu (sys_code);
  807. CREATE INDEX idx_sys_menu_is ON js_sys_menu (is_show);
  808. CREATE INDEX idx_sys_menu_mcs ON js_sys_menu (module_codes);
  809. CREATE INDEX idx_sys_menu_wt ON js_sys_menu (weight);
  810. CREATE INDEX idx_sys_module_status ON js_sys_module (status);
  811. CREATE INDEX idx_sys_msg_inner_cb ON js_sys_msg_inner (create_by);
  812. CREATE INDEX idx_sys_msg_inner_status ON js_sys_msg_inner (status);
  813. CREATE INDEX idx_sys_msg_inner_cl ON js_sys_msg_inner (content_level);
  814. CREATE INDEX idx_sys_msg_inner_sc ON js_sys_msg_inner (send_user_code);
  815. CREATE INDEX idx_sys_msg_inner_sd ON js_sys_msg_inner (send_date);
  816. CREATE INDEX idx_sys_msg_inner_r_mi ON js_sys_msg_inner_record (msg_inner_id);
  817. CREATE INDEX idx_sys_msg_inner_r_ruc ON js_sys_msg_inner_record (receive_user_code);
  818. CREATE INDEX idx_sys_msg_inner_r_stat ON js_sys_msg_inner_record (read_status);
  819. CREATE INDEX idx_sys_msg_inner_r_star ON js_sys_msg_inner_record (is_star);
  820. CREATE INDEX idx_sys_msg_push_type ON js_sys_msg_push (msg_type);
  821. CREATE INDEX idx_sys_msg_push_rc ON js_sys_msg_push (receive_code);
  822. CREATE INDEX idx_sys_msg_push_uc ON js_sys_msg_push (receive_user_code);
  823. CREATE INDEX idx_sys_msg_push_suc ON js_sys_msg_push (send_user_code);
  824. CREATE INDEX idx_sys_msg_push_pd ON js_sys_msg_push (plan_push_date);
  825. CREATE INDEX idx_sys_msg_push_ps ON js_sys_msg_push (push_status);
  826. CREATE INDEX idx_sys_msg_push_rs ON js_sys_msg_push (read_status);
  827. CREATE INDEX idx_sys_msg_push_bk ON js_sys_msg_push (biz_key);
  828. CREATE INDEX idx_sys_msg_push_bt ON js_sys_msg_push (biz_type);
  829. CREATE INDEX idx_sys_msg_push_imp ON js_sys_msg_push (is_merge_push);
  830. CREATE INDEX idx_sys_msg_pushed_type ON js_sys_msg_pushed (msg_type);
  831. CREATE INDEX idx_sys_msg_pushed_rc ON js_sys_msg_pushed (receive_code);
  832. CREATE INDEX idx_sys_msg_pushed_uc ON js_sys_msg_pushed (receive_user_code);
  833. CREATE INDEX idx_sys_msg_pushed_suc ON js_sys_msg_pushed (send_user_code);
  834. CREATE INDEX idx_sys_msg_pushed_pd ON js_sys_msg_pushed (plan_push_date);
  835. CREATE INDEX idx_sys_msg_pushed_ps ON js_sys_msg_pushed (push_status);
  836. CREATE INDEX idx_sys_msg_pushed_rs ON js_sys_msg_pushed (read_status);
  837. CREATE INDEX idx_sys_msg_pushed_bk ON js_sys_msg_pushed (biz_key);
  838. CREATE INDEX idx_sys_msg_pushed_bt ON js_sys_msg_pushed (biz_type);
  839. CREATE INDEX idx_sys_msg_pushed_imp ON js_sys_msg_pushed (is_merge_push);
  840. CREATE INDEX idx_sys_msg_tpl_key ON js_sys_msg_template (tpl_key);
  841. CREATE INDEX idx_sys_msg_tpl_type ON js_sys_msg_template (tpl_type);
  842. CREATE INDEX idx_sys_msg_tpl_status ON js_sys_msg_template (status);
  843. CREATE INDEX idx_sys_office_cc ON js_sys_office (corp_code);
  844. CREATE INDEX idx_sys_office_pc ON js_sys_office (parent_code);
  845. CREATE INDEX idx_sys_office_pcs ON js_sys_office (parent_codes);
  846. CREATE INDEX idx_sys_office_status ON js_sys_office (status);
  847. CREATE INDEX idx_sys_office_ot ON js_sys_office (office_type);
  848. CREATE INDEX idx_sys_office_vc ON js_sys_office (view_code);
  849. CREATE INDEX idx_sys_office_ts ON js_sys_office (tree_sort);
  850. CREATE INDEX idx_sys_office_tss ON js_sys_office (tree_sorts);
  851. CREATE INDEX idx_sys_post_cc ON js_sys_post (corp_code);
  852. CREATE INDEX idx_sys_post_status ON js_sys_post (status);
  853. CREATE INDEX idx_sys_post_ps ON js_sys_post (post_sort);
  854. CREATE INDEX idx_sys_role_cc ON js_sys_role (corp_code);
  855. CREATE INDEX idx_sys_role_is ON js_sys_role (is_sys);
  856. CREATE INDEX idx_sys_role_status ON js_sys_role (status);
  857. CREATE INDEX idx_sys_role_rs ON js_sys_role (role_sort);
  858. CREATE INDEX idx_sys_user_lc ON js_sys_user (login_code);
  859. CREATE INDEX idx_sys_user_email ON js_sys_user (email);
  860. CREATE INDEX idx_sys_user_mobile ON js_sys_user (mobile);
  861. CREATE INDEX idx_sys_user_wo ON js_sys_user (wx_openid);
  862. CREATE INDEX idx_sys_user_imei ON js_sys_user (mobile_imei);
  863. CREATE INDEX idx_sys_user_rt ON js_sys_user (user_type);
  864. CREATE INDEX idx_sys_user_rc ON js_sys_user (ref_code);
  865. CREATE INDEX idx_sys_user_mt ON js_sys_user (mgr_type);
  866. CREATE INDEX idx_sys_user_us ON js_sys_user (user_weight);
  867. CREATE INDEX idx_sys_user_ud ON js_sys_user (update_date);
  868. CREATE INDEX idx_sys_user_status ON js_sys_user (status);
  869. CREATE INDEX idx_sys_user_cc ON js_sys_user (corp_code);
  870. /* Comments */
  871. COMMENT ON TABLE js_gen_table IS '代码生成表';
  872. COMMENT ON COLUMN js_gen_table.table_name IS '表名';
  873. COMMENT ON COLUMN js_gen_table.class_name IS '实体类名称';
  874. COMMENT ON COLUMN js_gen_table.comments IS '表说明';
  875. COMMENT ON COLUMN js_gen_table.parent_table_name IS '关联父表的表名';
  876. COMMENT ON COLUMN js_gen_table.parent_table_fk_name IS '本表关联父表的外键名';
  877. COMMENT ON COLUMN js_gen_table.data_source_name IS '数据源名称';
  878. COMMENT ON COLUMN js_gen_table.tpl_category IS '使用的模板';
  879. COMMENT ON COLUMN js_gen_table.package_name IS '生成包路径';
  880. COMMENT ON COLUMN js_gen_table.module_name IS '生成模块名';
  881. COMMENT ON COLUMN js_gen_table.sub_module_name IS '生成子模块名';
  882. COMMENT ON COLUMN js_gen_table.function_name IS '生成功能名';
  883. COMMENT ON COLUMN js_gen_table.function_name_simple IS '生成功能名(简写)';
  884. COMMENT ON COLUMN js_gen_table.function_author IS '生成功能作者';
  885. COMMENT ON COLUMN js_gen_table.gen_base_dir IS '生成基础路径';
  886. COMMENT ON COLUMN js_gen_table.options IS '其它生成选项';
  887. COMMENT ON COLUMN js_gen_table.create_by IS '创建者';
  888. COMMENT ON COLUMN js_gen_table.create_date IS '创建时间';
  889. COMMENT ON COLUMN js_gen_table.update_by IS '更新者';
  890. COMMENT ON COLUMN js_gen_table.update_date IS '更新时间';
  891. COMMENT ON COLUMN js_gen_table.remarks IS '备注信息';
  892. COMMENT ON TABLE js_gen_table_column IS '代码生成表列';
  893. COMMENT ON COLUMN js_gen_table_column.id IS '编号';
  894. COMMENT ON COLUMN js_gen_table_column.table_name IS '表名';
  895. COMMENT ON COLUMN js_gen_table_column.column_name IS '列名';
  896. COMMENT ON COLUMN js_gen_table_column.column_sort IS '列排序(升序)';
  897. COMMENT ON COLUMN js_gen_table_column.column_type IS '类型';
  898. COMMENT ON COLUMN js_gen_table_column.column_label IS '列标签名';
  899. COMMENT ON COLUMN js_gen_table_column.comments IS '列备注说明';
  900. COMMENT ON COLUMN js_gen_table_column.attr_name IS '类的属性名';
  901. COMMENT ON COLUMN js_gen_table_column.attr_type IS '类的属性类型';
  902. COMMENT ON COLUMN js_gen_table_column.is_pk IS '是否主键';
  903. COMMENT ON COLUMN js_gen_table_column.is_null IS '是否可为空';
  904. COMMENT ON COLUMN js_gen_table_column.is_insert IS '是否插入字段';
  905. COMMENT ON COLUMN js_gen_table_column.is_update IS '是否更新字段';
  906. COMMENT ON COLUMN js_gen_table_column.is_list IS '是否列表字段';
  907. COMMENT ON COLUMN js_gen_table_column.is_query IS '是否查询字段';
  908. COMMENT ON COLUMN js_gen_table_column.query_type IS '查询方式';
  909. COMMENT ON COLUMN js_gen_table_column.is_edit IS '是否编辑字段';
  910. COMMENT ON COLUMN js_gen_table_column.show_type IS '表单类型';
  911. COMMENT ON COLUMN js_gen_table_column.options IS '其它生成选项';
  912. COMMENT ON TABLE js_sys_area IS '行政区划';
  913. COMMENT ON COLUMN js_sys_area.area_code IS '区域编码';
  914. COMMENT ON COLUMN js_sys_area.parent_code IS '父级编号';
  915. COMMENT ON COLUMN js_sys_area.parent_codes IS '所有父级编号';
  916. COMMENT ON COLUMN js_sys_area.tree_sort IS '排序号(升序)';
  917. COMMENT ON COLUMN js_sys_area.tree_sorts IS '所有排序号';
  918. COMMENT ON COLUMN js_sys_area.tree_leaf IS '是否最末级';
  919. COMMENT ON COLUMN js_sys_area.tree_level IS '层次级别';
  920. COMMENT ON COLUMN js_sys_area.tree_names IS '全节点名';
  921. COMMENT ON COLUMN js_sys_area.area_name IS '区域名称';
  922. COMMENT ON COLUMN js_sys_area.area_type IS '区域类型';
  923. COMMENT ON COLUMN js_sys_area.status IS '状态(0正常 1删除 2停用)';
  924. COMMENT ON COLUMN js_sys_area.create_by IS '创建者';
  925. COMMENT ON COLUMN js_sys_area.create_date IS '创建时间';
  926. COMMENT ON COLUMN js_sys_area.update_by IS '更新者';
  927. COMMENT ON COLUMN js_sys_area.update_date IS '更新时间';
  928. COMMENT ON COLUMN js_sys_area.remarks IS '备注信息';
  929. COMMENT ON TABLE js_sys_company IS '公司表';
  930. COMMENT ON COLUMN js_sys_company.company_code IS '公司编码';
  931. COMMENT ON COLUMN js_sys_company.parent_code IS '父级编号';
  932. COMMENT ON COLUMN js_sys_company.parent_codes IS '所有父级编号';
  933. COMMENT ON COLUMN js_sys_company.tree_sort IS '排序号(升序)';
  934. COMMENT ON COLUMN js_sys_company.tree_sorts IS '所有排序号';
  935. COMMENT ON COLUMN js_sys_company.tree_leaf IS '是否最末级';
  936. COMMENT ON COLUMN js_sys_company.tree_level IS '层次级别';
  937. COMMENT ON COLUMN js_sys_company.tree_names IS '全节点名';
  938. COMMENT ON COLUMN js_sys_company.view_code IS '公司代码';
  939. COMMENT ON COLUMN js_sys_company.company_name IS '公司名称';
  940. COMMENT ON COLUMN js_sys_company.full_name IS '公司全称';
  941. COMMENT ON COLUMN js_sys_company.area_code IS '区域编码';
  942. COMMENT ON COLUMN js_sys_company.status IS '状态(0正常 1删除 2停用)';
  943. COMMENT ON COLUMN js_sys_company.create_by IS '创建者';
  944. COMMENT ON COLUMN js_sys_company.create_date IS '创建时间';
  945. COMMENT ON COLUMN js_sys_company.update_by IS '更新者';
  946. COMMENT ON COLUMN js_sys_company.update_date IS '更新时间';
  947. COMMENT ON COLUMN js_sys_company.remarks IS '备注信息';
  948. COMMENT ON COLUMN js_sys_company.corp_code IS '租户代码';
  949. COMMENT ON COLUMN js_sys_company.corp_name IS '租户名称';
  950. COMMENT ON COLUMN js_sys_company.extend_s1 IS '扩展 String 1';
  951. COMMENT ON COLUMN js_sys_company.extend_s2 IS '扩展 String 2';
  952. COMMENT ON COLUMN js_sys_company.extend_s3 IS '扩展 String 3';
  953. COMMENT ON COLUMN js_sys_company.extend_s4 IS '扩展 String 4';
  954. COMMENT ON COLUMN js_sys_company.extend_s5 IS '扩展 String 5';
  955. COMMENT ON COLUMN js_sys_company.extend_s6 IS '扩展 String 6';
  956. COMMENT ON COLUMN js_sys_company.extend_s7 IS '扩展 String 7';
  957. COMMENT ON COLUMN js_sys_company.extend_s8 IS '扩展 String 8';
  958. COMMENT ON COLUMN js_sys_company.extend_i1 IS '扩展 Integer 1';
  959. COMMENT ON COLUMN js_sys_company.extend_i2 IS '扩展 Integer 2';
  960. COMMENT ON COLUMN js_sys_company.extend_i3 IS '扩展 Integer 3';
  961. COMMENT ON COLUMN js_sys_company.extend_i4 IS '扩展 Integer 4';
  962. COMMENT ON COLUMN js_sys_company.extend_f1 IS '扩展 Float 1';
  963. COMMENT ON COLUMN js_sys_company.extend_f2 IS '扩展 Float 2';
  964. COMMENT ON COLUMN js_sys_company.extend_f3 IS '扩展 Float 3';
  965. COMMENT ON COLUMN js_sys_company.extend_f4 IS '扩展 Float 4';
  966. COMMENT ON COLUMN js_sys_company.extend_d1 IS '扩展 Date 1';
  967. COMMENT ON COLUMN js_sys_company.extend_d2 IS '扩展 Date 2';
  968. COMMENT ON COLUMN js_sys_company.extend_d3 IS '扩展 Date 3';
  969. COMMENT ON COLUMN js_sys_company.extend_d4 IS '扩展 Date 4';
  970. COMMENT ON TABLE js_sys_company_office IS '公司部门关联表';
  971. COMMENT ON COLUMN js_sys_company_office.company_code IS '公司编码';
  972. COMMENT ON COLUMN js_sys_company_office.office_code IS '机构编码';
  973. COMMENT ON TABLE js_sys_config IS '参数配置表';
  974. COMMENT ON COLUMN js_sys_config.id IS '编号';
  975. COMMENT ON COLUMN js_sys_config.config_name IS '名称';
  976. COMMENT ON COLUMN js_sys_config.config_key IS '参数键';
  977. COMMENT ON COLUMN js_sys_config.config_value IS '参数值';
  978. COMMENT ON COLUMN js_sys_config.is_sys IS '系统内置(1是 0否)';
  979. COMMENT ON COLUMN js_sys_config.create_by IS '创建者';
  980. COMMENT ON COLUMN js_sys_config.create_date IS '创建时间';
  981. COMMENT ON COLUMN js_sys_config.update_by IS '更新者';
  982. COMMENT ON COLUMN js_sys_config.update_date IS '更新时间';
  983. COMMENT ON COLUMN js_sys_config.remarks IS '备注信息';
  984. COMMENT ON TABLE js_sys_dict_data IS '字典数据表';
  985. COMMENT ON COLUMN js_sys_dict_data.dict_code IS '字典编码';
  986. COMMENT ON COLUMN js_sys_dict_data.parent_code IS '父级编号';
  987. COMMENT ON COLUMN js_sys_dict_data.parent_codes IS '所有父级编号';
  988. COMMENT ON COLUMN js_sys_dict_data.tree_sort IS '排序号(升序)';
  989. COMMENT ON COLUMN js_sys_dict_data.tree_sorts IS '所有排序号';
  990. COMMENT ON COLUMN js_sys_dict_data.tree_leaf IS '是否最末级';
  991. COMMENT ON COLUMN js_sys_dict_data.tree_level IS '层次级别';
  992. COMMENT ON COLUMN js_sys_dict_data.tree_names IS '全节点名';
  993. COMMENT ON COLUMN js_sys_dict_data.dict_label IS '字典标签';
  994. COMMENT ON COLUMN js_sys_dict_data.dict_value IS '字典键值';
  995. COMMENT ON COLUMN js_sys_dict_data.dict_icon IS '字典图标';
  996. COMMENT ON COLUMN js_sys_dict_data.dict_type IS '字典类型';
  997. COMMENT ON COLUMN js_sys_dict_data.is_sys IS '系统内置(1是 0否)';
  998. COMMENT ON COLUMN js_sys_dict_data.description IS '字典描述';
  999. COMMENT ON COLUMN js_sys_dict_data.css_style IS 'css样式(如:color:red)';
  1000. COMMENT ON COLUMN js_sys_dict_data.css_class IS 'css类名(如:red)';
  1001. COMMENT ON COLUMN js_sys_dict_data.status IS '状态(0正常 1删除 2停用)';
  1002. COMMENT ON COLUMN js_sys_dict_data.create_by IS '创建者';
  1003. COMMENT ON COLUMN js_sys_dict_data.create_date IS '创建时间';
  1004. COMMENT ON COLUMN js_sys_dict_data.update_by IS '更新者';
  1005. COMMENT ON COLUMN js_sys_dict_data.update_date IS '更新时间';
  1006. COMMENT ON COLUMN js_sys_dict_data.remarks IS '备注信息';
  1007. COMMENT ON COLUMN js_sys_dict_data.corp_code IS '租户代码';
  1008. COMMENT ON COLUMN js_sys_dict_data.corp_name IS '租户名称';
  1009. COMMENT ON COLUMN js_sys_dict_data.extend_s1 IS '扩展 String 1';
  1010. COMMENT ON COLUMN js_sys_dict_data.extend_s2 IS '扩展 String 2';
  1011. COMMENT ON COLUMN js_sys_dict_data.extend_s3 IS '扩展 String 3';
  1012. COMMENT ON COLUMN js_sys_dict_data.extend_s4 IS '扩展 String 4';
  1013. COMMENT ON COLUMN js_sys_dict_data.extend_s5 IS '扩展 String 5';
  1014. COMMENT ON COLUMN js_sys_dict_data.extend_s6 IS '扩展 String 6';
  1015. COMMENT ON COLUMN js_sys_dict_data.extend_s7 IS '扩展 String 7';
  1016. COMMENT ON COLUMN js_sys_dict_data.extend_s8 IS '扩展 String 8';
  1017. COMMENT ON COLUMN js_sys_dict_data.extend_i1 IS '扩展 Integer 1';
  1018. COMMENT ON COLUMN js_sys_dict_data.extend_i2 IS '扩展 Integer 2';
  1019. COMMENT ON COLUMN js_sys_dict_data.extend_i3 IS '扩展 Integer 3';
  1020. COMMENT ON COLUMN js_sys_dict_data.extend_i4 IS '扩展 Integer 4';
  1021. COMMENT ON COLUMN js_sys_dict_data.extend_f1 IS '扩展 Float 1';
  1022. COMMENT ON COLUMN js_sys_dict_data.extend_f2 IS '扩展 Float 2';
  1023. COMMENT ON COLUMN js_sys_dict_data.extend_f3 IS '扩展 Float 3';
  1024. COMMENT ON COLUMN js_sys_dict_data.extend_f4 IS '扩展 Float 4';
  1025. COMMENT ON COLUMN js_sys_dict_data.extend_d1 IS '扩展 Date 1';
  1026. COMMENT ON COLUMN js_sys_dict_data.extend_d2 IS '扩展 Date 2';
  1027. COMMENT ON COLUMN js_sys_dict_data.extend_d3 IS '扩展 Date 3';
  1028. COMMENT ON COLUMN js_sys_dict_data.extend_d4 IS '扩展 Date 4';
  1029. COMMENT ON TABLE js_sys_dict_type IS '字典类型表';
  1030. COMMENT ON COLUMN js_sys_dict_type.id IS '编号';
  1031. COMMENT ON COLUMN js_sys_dict_type.dict_name IS '字典名称';
  1032. COMMENT ON COLUMN js_sys_dict_type.dict_type IS '字典类型';
  1033. COMMENT ON COLUMN js_sys_dict_type.is_sys IS '是否系统字典';
  1034. COMMENT ON COLUMN js_sys_dict_type.status IS '状态(0正常 1删除 2停用)';
  1035. COMMENT ON COLUMN js_sys_dict_type.create_by IS '创建者';
  1036. COMMENT ON COLUMN js_sys_dict_type.create_date IS '创建时间';
  1037. COMMENT ON COLUMN js_sys_dict_type.update_by IS '更新者';
  1038. COMMENT ON COLUMN js_sys_dict_type.update_date IS '更新时间';
  1039. COMMENT ON COLUMN js_sys_dict_type.remarks IS '备注信息';
  1040. COMMENT ON TABLE js_sys_employee IS '员工表';
  1041. COMMENT ON COLUMN js_sys_employee.emp_code IS '员工编码';
  1042. COMMENT ON COLUMN js_sys_employee.emp_name IS '员工姓名';
  1043. COMMENT ON COLUMN js_sys_employee.emp_name_en IS '员工英文名';
  1044. COMMENT ON COLUMN js_sys_employee.emp_no IS '员工工号';
  1045. COMMENT ON COLUMN js_sys_employee.office_code IS '机构编码';
  1046. COMMENT ON COLUMN js_sys_employee.office_name IS '机构名称';
  1047. COMMENT ON COLUMN js_sys_employee.company_code IS '公司编码';
  1048. COMMENT ON COLUMN js_sys_employee.company_name IS '公司名称';
  1049. COMMENT ON COLUMN js_sys_employee.status IS '状态(0在职 1删除 2离职)';
  1050. COMMENT ON COLUMN js_sys_employee.create_by IS '创建者';
  1051. COMMENT ON COLUMN js_sys_employee.create_date IS '创建时间';
  1052. COMMENT ON COLUMN js_sys_employee.update_by IS '更新者';
  1053. COMMENT ON COLUMN js_sys_employee.update_date IS '更新时间';
  1054. COMMENT ON COLUMN js_sys_employee.remarks IS '备注信息';
  1055. COMMENT ON COLUMN js_sys_employee.corp_code IS '租户代码';
  1056. COMMENT ON COLUMN js_sys_employee.corp_name IS '租户名称';
  1057. COMMENT ON TABLE js_sys_employee_office IS '员工附属机构关系表';
  1058. COMMENT ON COLUMN js_sys_employee_office.id IS '编号';
  1059. COMMENT ON COLUMN js_sys_employee_office.emp_code IS '员工编码';
  1060. COMMENT ON COLUMN js_sys_employee_office.office_code IS '机构编码';
  1061. COMMENT ON COLUMN js_sys_employee_office.post_code IS '岗位编码';
  1062. COMMENT ON TABLE js_sys_employee_post IS '员工与岗位关联表';
  1063. COMMENT ON COLUMN js_sys_employee_post.emp_code IS '员工编码';
  1064. COMMENT ON COLUMN js_sys_employee_post.post_code IS '岗位编码';
  1065. COMMENT ON TABLE js_sys_file_entity IS '文件实体表';
  1066. COMMENT ON COLUMN js_sys_file_entity.file_id IS '文件编号';
  1067. COMMENT ON COLUMN js_sys_file_entity.file_md5 IS '文件MD5';
  1068. COMMENT ON COLUMN js_sys_file_entity.file_path IS '文件相对路径';
  1069. COMMENT ON COLUMN js_sys_file_entity.file_content_type IS '文件内容类型';
  1070. COMMENT ON COLUMN js_sys_file_entity.file_extension IS '文件后缀扩展名';
  1071. COMMENT ON COLUMN js_sys_file_entity.file_size IS '文件大小(单位B)';
  1072. COMMENT ON COLUMN js_sys_file_entity.file_meta IS '文件信息(JSON格式)';
  1073. COMMENT ON COLUMN js_sys_file_entity.file_preview IS '文件预览标记';
  1074. COMMENT ON TABLE js_sys_file_upload IS '文件上传表';
  1075. COMMENT ON COLUMN js_sys_file_upload.id IS '编号';
  1076. COMMENT ON COLUMN js_sys_file_upload.file_id IS '文件编号';
  1077. COMMENT ON COLUMN js_sys_file_upload.file_name IS '文件名称';
  1078. COMMENT ON COLUMN js_sys_file_upload.file_type IS '文件分类(image、media、file)';
  1079. COMMENT ON COLUMN js_sys_file_upload.file_sort IS '文件排序(升序)';
  1080. COMMENT ON COLUMN js_sys_file_upload.biz_key IS '业务主键';
  1081. COMMENT ON COLUMN js_sys_file_upload.biz_type IS '业务类型';
  1082. COMMENT ON COLUMN js_sys_file_upload.status IS '状态(0正常 1删除 2停用)';
  1083. COMMENT ON COLUMN js_sys_file_upload.create_by IS '创建者';
  1084. COMMENT ON COLUMN js_sys_file_upload.create_date IS '创建时间';
  1085. COMMENT ON COLUMN js_sys_file_upload.update_by IS '更新者';
  1086. COMMENT ON COLUMN js_sys_file_upload.update_date IS '更新时间';
  1087. COMMENT ON COLUMN js_sys_file_upload.remarks IS '备注信息';
  1088. COMMENT ON COLUMN js_sys_file_upload.extend_s1 IS '扩展 String 1';
  1089. COMMENT ON COLUMN js_sys_file_upload.extend_s2 IS '扩展 String 2';
  1090. COMMENT ON COLUMN js_sys_file_upload.extend_s3 IS '扩展 String 3';
  1091. COMMENT ON COLUMN js_sys_file_upload.extend_s4 IS '扩展 String 4';
  1092. COMMENT ON COLUMN js_sys_file_upload.extend_s5 IS '扩展 String 5';
  1093. COMMENT ON COLUMN js_sys_file_upload.extend_s6 IS '扩展 String 6';
  1094. COMMENT ON COLUMN js_sys_file_upload.extend_s7 IS '扩展 String 7';
  1095. COMMENT ON COLUMN js_sys_file_upload.extend_s8 IS '扩展 String 8';
  1096. COMMENT ON COLUMN js_sys_file_upload.extend_i1 IS '扩展 Integer 1';
  1097. COMMENT ON COLUMN js_sys_file_upload.extend_i2 IS '扩展 Integer 2';
  1098. COMMENT ON COLUMN js_sys_file_upload.extend_i3 IS '扩展 Integer 3';
  1099. COMMENT ON COLUMN js_sys_file_upload.extend_i4 IS '扩展 Integer 4';
  1100. COMMENT ON COLUMN js_sys_file_upload.extend_f1 IS '扩展 Float 1';
  1101. COMMENT ON COLUMN js_sys_file_upload.extend_f2 IS '扩展 Float 2';
  1102. COMMENT ON COLUMN js_sys_file_upload.extend_f3 IS '扩展 Float 3';
  1103. COMMENT ON COLUMN js_sys_file_upload.extend_f4 IS '扩展 Float 4';
  1104. COMMENT ON COLUMN js_sys_file_upload.extend_d1 IS '扩展 Date 1';
  1105. COMMENT ON COLUMN js_sys_file_upload.extend_d2 IS '扩展 Date 2';
  1106. COMMENT ON COLUMN js_sys_file_upload.extend_d3 IS '扩展 Date 3';
  1107. COMMENT ON COLUMN js_sys_file_upload.extend_d4 IS '扩展 Date 4';
  1108. COMMENT ON TABLE js_sys_job IS '作业调度表';
  1109. COMMENT ON COLUMN js_sys_job.job_name IS '任务名称';
  1110. COMMENT ON COLUMN js_sys_job.job_group IS '任务组名';
  1111. COMMENT ON COLUMN js_sys_job.description IS '任务描述';
  1112. COMMENT ON COLUMN js_sys_job.invoke_target IS '调用目标字符串';
  1113. COMMENT ON COLUMN js_sys_job.cron_expression IS 'Cron执行表达式';
  1114. COMMENT ON COLUMN js_sys_job.misfire_instruction IS '计划执行错误策略';
  1115. COMMENT ON COLUMN js_sys_job.concurrent IS '是否并发执行';
  1116. COMMENT ON COLUMN js_sys_job.instance_name IS '集群的实例名字';
  1117. COMMENT ON COLUMN js_sys_job.status IS '状态(0正常 1删除 2暂停)';
  1118. COMMENT ON COLUMN js_sys_job.create_by IS '创建者';
  1119. COMMENT ON COLUMN js_sys_job.create_date IS '创建时间';
  1120. COMMENT ON COLUMN js_sys_job.update_by IS '更新者';
  1121. COMMENT ON COLUMN js_sys_job.update_date IS '更新时间';
  1122. COMMENT ON COLUMN js_sys_job.remarks IS '备注信息';
  1123. COMMENT ON TABLE js_sys_job_log IS '作业调度日志表';
  1124. COMMENT ON COLUMN js_sys_job_log.id IS '编号';
  1125. COMMENT ON COLUMN js_sys_job_log.job_name IS '任务名称';
  1126. COMMENT ON COLUMN js_sys_job_log.job_group IS '任务组名';
  1127. COMMENT ON COLUMN js_sys_job_log.job_type IS '日志类型';
  1128. COMMENT ON COLUMN js_sys_job_log.job_event IS '日志事件';
  1129. COMMENT ON COLUMN js_sys_job_log.job_message IS '日志信息';
  1130. COMMENT ON COLUMN js_sys_job_log.is_exception IS '是否异常';
  1131. COMMENT ON COLUMN js_sys_job_log.exception_info IS '异常信息';
  1132. COMMENT ON COLUMN js_sys_job_log.create_date IS '创建时间';
  1133. COMMENT ON TABLE js_sys_lang IS '国际化语言';
  1134. COMMENT ON COLUMN js_sys_lang.id IS '编号';
  1135. COMMENT ON COLUMN js_sys_lang.module_code IS '归属模块';
  1136. COMMENT ON COLUMN js_sys_lang.lang_code IS '语言编码';
  1137. COMMENT ON COLUMN js_sys_lang.lang_text IS '语言译文';
  1138. COMMENT ON COLUMN js_sys_lang.lang_type IS '语言类型';
  1139. COMMENT ON COLUMN js_sys_lang.create_by IS '创建者';
  1140. COMMENT ON COLUMN js_sys_lang.create_date IS '创建时间';
  1141. COMMENT ON COLUMN js_sys_lang.update_by IS '更新者';
  1142. COMMENT ON COLUMN js_sys_lang.update_date IS '更新时间';
  1143. COMMENT ON COLUMN js_sys_lang.remarks IS '备注信息';
  1144. COMMENT ON TABLE js_sys_log IS '操作日志表';
  1145. COMMENT ON COLUMN js_sys_log.id IS '编号';
  1146. COMMENT ON COLUMN js_sys_log.log_type IS '日志类型';
  1147. COMMENT ON COLUMN js_sys_log.log_title IS '日志标题';
  1148. COMMENT ON COLUMN js_sys_log.create_by IS '创建者';
  1149. COMMENT ON COLUMN js_sys_log.create_by_name IS '用户名称';
  1150. COMMENT ON COLUMN js_sys_log.create_date IS '创建时间';
  1151. COMMENT ON COLUMN js_sys_log.request_uri IS '请求URI';
  1152. COMMENT ON COLUMN js_sys_log.request_method IS '操作方式';
  1153. COMMENT ON COLUMN js_sys_log.request_params IS '操作提交的数据';
  1154. COMMENT ON COLUMN js_sys_log.diff_modify_data IS '新旧数据比较结果';
  1155. COMMENT ON COLUMN js_sys_log.biz_key IS '业务主键';
  1156. COMMENT ON COLUMN js_sys_log.biz_type IS '业务类型';
  1157. COMMENT ON COLUMN js_sys_log.remote_addr IS '操作IP地址';
  1158. COMMENT ON COLUMN js_sys_log.server_addr IS '请求服务器地址';
  1159. COMMENT ON COLUMN js_sys_log.is_exception IS '是否异常';
  1160. COMMENT ON COLUMN js_sys_log.exception_info IS '异常信息';
  1161. COMMENT ON COLUMN js_sys_log.user_agent IS '用户代理';
  1162. COMMENT ON COLUMN js_sys_log.device_name IS '设备名称/操作系统';
  1163. COMMENT ON COLUMN js_sys_log.browser_name IS '浏览器名称';
  1164. COMMENT ON COLUMN js_sys_log.execute_time IS '执行时间';
  1165. COMMENT ON COLUMN js_sys_log.corp_code IS '租户代码';
  1166. COMMENT ON COLUMN js_sys_log.corp_name IS '租户名称';
  1167. COMMENT ON TABLE js_sys_menu IS '菜单表';
  1168. COMMENT ON COLUMN js_sys_menu.menu_code IS '菜单编码';
  1169. COMMENT ON COLUMN js_sys_menu.parent_code IS '父级编号';
  1170. COMMENT ON COLUMN js_sys_menu.parent_codes IS '所有父级编号';
  1171. COMMENT ON COLUMN js_sys_menu.tree_sort IS '排序号(升序)';
  1172. COMMENT ON COLUMN js_sys_menu.tree_sorts IS '所有排序号';
  1173. COMMENT ON COLUMN js_sys_menu.tree_leaf IS '是否最末级';
  1174. COMMENT ON COLUMN js_sys_menu.tree_level IS '层次级别';
  1175. COMMENT ON COLUMN js_sys_menu.tree_names IS '全节点名';
  1176. COMMENT ON COLUMN js_sys_menu.menu_name IS '菜单名称';
  1177. COMMENT ON COLUMN js_sys_menu.menu_type IS '菜单类型(1菜单 2权限 3开发)';
  1178. COMMENT ON COLUMN js_sys_menu.menu_href IS '链接';
  1179. COMMENT ON COLUMN js_sys_menu.menu_target IS '目标';
  1180. COMMENT ON COLUMN js_sys_menu.menu_icon IS '图标';
  1181. COMMENT ON COLUMN js_sys_menu.menu_color IS '颜色';
  1182. COMMENT ON COLUMN js_sys_menu.menu_title IS '菜单标题';
  1183. COMMENT ON COLUMN js_sys_menu.permission IS '权限标识';
  1184. COMMENT ON COLUMN js_sys_menu.weight IS '菜单权重';
  1185. COMMENT ON COLUMN js_sys_menu.is_show IS '是否显示(1显示 0隐藏)';
  1186. COMMENT ON COLUMN js_sys_menu.sys_code IS '归属系统(default:主导航菜单、mobileApp:APP菜单)';
  1187. COMMENT ON COLUMN js_sys_menu.module_codes IS '归属模块(多个用逗号隔开)';
  1188. COMMENT ON COLUMN js_sys_menu.status IS '状态(0正常 1删除 2停用)';
  1189. COMMENT ON COLUMN js_sys_menu.create_by IS '创建者';
  1190. COMMENT ON COLUMN js_sys_menu.create_date IS '创建时间';
  1191. COMMENT ON COLUMN js_sys_menu.update_by IS '更新者';
  1192. COMMENT ON COLUMN js_sys_menu.update_date IS '更新时间';
  1193. COMMENT ON COLUMN js_sys_menu.remarks IS '备注信息';
  1194. COMMENT ON COLUMN js_sys_menu.extend_s1 IS '扩展 String 1';
  1195. COMMENT ON COLUMN js_sys_menu.extend_s2 IS '扩展 String 2';
  1196. COMMENT ON COLUMN js_sys_menu.extend_s3 IS '扩展 String 3';
  1197. COMMENT ON COLUMN js_sys_menu.extend_s4 IS '扩展 String 4';
  1198. COMMENT ON COLUMN js_sys_menu.extend_s5 IS '扩展 String 5';
  1199. COMMENT ON COLUMN js_sys_menu.extend_s6 IS '扩展 String 6';
  1200. COMMENT ON COLUMN js_sys_menu.extend_s7 IS '扩展 String 7';
  1201. COMMENT ON COLUMN js_sys_menu.extend_s8 IS '扩展 String 8';
  1202. COMMENT ON COLUMN js_sys_menu.extend_i1 IS '扩展 Integer 1';
  1203. COMMENT ON COLUMN js_sys_menu.extend_i2 IS '扩展 Integer 2';
  1204. COMMENT ON COLUMN js_sys_menu.extend_i3 IS '扩展 Integer 3';
  1205. COMMENT ON COLUMN js_sys_menu.extend_i4 IS '扩展 Integer 4';
  1206. COMMENT ON COLUMN js_sys_menu.extend_f1 IS '扩展 Float 1';
  1207. COMMENT ON COLUMN js_sys_menu.extend_f2 IS '扩展 Float 2';
  1208. COMMENT ON COLUMN js_sys_menu.extend_f3 IS '扩展 Float 3';
  1209. COMMENT ON COLUMN js_sys_menu.extend_f4 IS '扩展 Float 4';
  1210. COMMENT ON COLUMN js_sys_menu.extend_d1 IS '扩展 Date 1';
  1211. COMMENT ON COLUMN js_sys_menu.extend_d2 IS '扩展 Date 2';
  1212. COMMENT ON COLUMN js_sys_menu.extend_d3 IS '扩展 Date 3';
  1213. COMMENT ON COLUMN js_sys_menu.extend_d4 IS '扩展 Date 4';
  1214. COMMENT ON TABLE js_sys_module IS '模块表';
  1215. COMMENT ON COLUMN js_sys_module.module_code IS '模块编码';
  1216. COMMENT ON COLUMN js_sys_module.module_name IS '模块名称';
  1217. COMMENT ON COLUMN js_sys_module.description IS '模块描述';
  1218. COMMENT ON COLUMN js_sys_module.main_class_name IS '主类全名';
  1219. COMMENT ON COLUMN js_sys_module.current_version IS '当前版本';
  1220. COMMENT ON COLUMN js_sys_module.upgrade_info IS '升级信息';
  1221. COMMENT ON COLUMN js_sys_module.status IS '状态(0正常 1删除 2停用)';
  1222. COMMENT ON COLUMN js_sys_module.create_by IS '创建者';
  1223. COMMENT ON COLUMN js_sys_module.create_date IS '创建时间';
  1224. COMMENT ON COLUMN js_sys_module.update_by IS '更新者';
  1225. COMMENT ON COLUMN js_sys_module.update_date IS '更新时间';
  1226. COMMENT ON COLUMN js_sys_module.remarks IS '备注信息';
  1227. COMMENT ON TABLE js_sys_msg_inner IS '内部消息';
  1228. COMMENT ON COLUMN js_sys_msg_inner.id IS '编号';
  1229. COMMENT ON COLUMN js_sys_msg_inner.msg_title IS '消息标题';
  1230. COMMENT ON COLUMN js_sys_msg_inner.content_level IS '内容级别(1普通 2一般 3紧急)';
  1231. COMMENT ON COLUMN js_sys_msg_inner.content_type IS '内容类型(1公告 2新闻 3会议 4其它)';
  1232. COMMENT ON COLUMN js_sys_msg_inner.msg_content IS '消息内容';
  1233. COMMENT ON COLUMN js_sys_msg_inner.receive_type IS '接受者类型(0全部 1用户 2部门 3角色 4岗位)';
  1234. COMMENT ON COLUMN js_sys_msg_inner.receive_codes IS '接受者字符串';
  1235. COMMENT ON COLUMN js_sys_msg_inner.receive_names IS '接受者名称字符串';
  1236. COMMENT ON COLUMN js_sys_msg_inner.send_user_code IS '发送者用户编码';
  1237. COMMENT ON COLUMN js_sys_msg_inner.send_user_name IS '发送者用户姓名';
  1238. COMMENT ON COLUMN js_sys_msg_inner.send_date IS '发送时间';
  1239. COMMENT ON COLUMN js_sys_msg_inner.is_attac IS '是否有附件';
  1240. COMMENT ON COLUMN js_sys_msg_inner.notify_types IS '通知类型(PC APP 短信 邮件 微信)多选';
  1241. COMMENT ON COLUMN js_sys_msg_inner.status IS '状态(0正常 1删除 4审核 5驳回 9草稿)';
  1242. COMMENT ON COLUMN js_sys_msg_inner.create_by IS '创建者';
  1243. COMMENT ON COLUMN js_sys_msg_inner.create_date IS '创建时间';
  1244. COMMENT ON COLUMN js_sys_msg_inner.update_by IS '更新者';
  1245. COMMENT ON COLUMN js_sys_msg_inner.update_date IS '更新时间';
  1246. COMMENT ON COLUMN js_sys_msg_inner.remarks IS '备注信息';
  1247. COMMENT ON TABLE js_sys_msg_inner_record IS '内部消息发送记录表';
  1248. COMMENT ON COLUMN js_sys_msg_inner_record.id IS '编号';
  1249. COMMENT ON COLUMN js_sys_msg_inner_record.msg_inner_id IS '所属消息';
  1250. COMMENT ON COLUMN js_sys_msg_inner_record.receive_user_code IS '接受者用户编码';
  1251. COMMENT ON COLUMN js_sys_msg_inner_record.receive_user_name IS '接受者用户姓名';
  1252. COMMENT ON COLUMN js_sys_msg_inner_record.read_status IS '读取状态(0未送达 1已读 2未读)';
  1253. COMMENT ON COLUMN js_sys_msg_inner_record.read_date IS '阅读时间';
  1254. COMMENT ON COLUMN js_sys_msg_inner_record.is_star IS '是否标星';
  1255. COMMENT ON TABLE js_sys_msg_push IS '消息推送表';
  1256. COMMENT ON COLUMN js_sys_msg_push.id IS '编号';
  1257. COMMENT ON COLUMN js_sys_msg_push.msg_type IS '消息类型(PC APP 短信 邮件 微信)';
  1258. COMMENT ON COLUMN js_sys_msg_push.msg_title IS '消息标题';
  1259. COMMENT ON COLUMN js_sys_msg_push.msg_content IS '消息内容';
  1260. COMMENT ON COLUMN js_sys_msg_push.biz_key IS '业务主键';
  1261. COMMENT ON COLUMN js_sys_msg_push.biz_type IS '业务类型';
  1262. COMMENT ON COLUMN js_sys_msg_push.receive_code IS '接受者账号';
  1263. COMMENT ON COLUMN js_sys_msg_push.receive_user_code IS '接受者用户编码';
  1264. COMMENT ON COLUMN js_sys_msg_push.receive_user_name IS '接受者用户姓名';
  1265. COMMENT ON COLUMN js_sys_msg_push.send_user_code IS '发送者用户编码';
  1266. COMMENT ON COLUMN js_sys_msg_push.send_user_name IS '发送者用户姓名';
  1267. COMMENT ON COLUMN js_sys_msg_push.send_date IS '发送时间';
  1268. COMMENT ON COLUMN js_sys_msg_push.is_merge_push IS '是否合并推送';
  1269. COMMENT ON COLUMN js_sys_msg_push.plan_push_date IS '计划推送时间';
  1270. COMMENT ON COLUMN js_sys_msg_push.push_number IS '推送尝试次数';
  1271. COMMENT ON COLUMN js_sys_msg_push.push_return_code IS '推送返回结果码';
  1272. COMMENT ON COLUMN js_sys_msg_push.push_return_msg_id IS '推送返回消息编号';
  1273. COMMENT ON COLUMN js_sys_msg_push.push_return_content IS '推送返回的内容信息';
  1274. COMMENT ON COLUMN js_sys_msg_push.push_status IS '推送状态(0未推送 1成功 2失败)';
  1275. COMMENT ON COLUMN js_sys_msg_push.push_date IS '推送时间';
  1276. COMMENT ON COLUMN js_sys_msg_push.read_status IS '读取状态(0未送达 1已读 2未读)';
  1277. COMMENT ON COLUMN js_sys_msg_push.read_date IS '读取时间';
  1278. COMMENT ON TABLE js_sys_msg_pushed IS '消息已推送表';
  1279. COMMENT ON COLUMN js_sys_msg_pushed.id IS '编号';
  1280. COMMENT ON COLUMN js_sys_msg_pushed.msg_type IS '消息类型(PC APP 短信 邮件 微信)';
  1281. COMMENT ON COLUMN js_sys_msg_pushed.msg_title IS '消息标题';
  1282. COMMENT ON COLUMN js_sys_msg_pushed.msg_content IS '消息内容';
  1283. COMMENT ON COLUMN js_sys_msg_pushed.biz_key IS '业务主键';
  1284. COMMENT ON COLUMN js_sys_msg_pushed.biz_type IS '业务类型';
  1285. COMMENT ON COLUMN js_sys_msg_pushed.receive_code IS '接受者账号';
  1286. COMMENT ON COLUMN js_sys_msg_pushed.receive_user_code IS '接受者用户编码';
  1287. COMMENT ON COLUMN js_sys_msg_pushed.receive_user_name IS '接受者用户姓名';
  1288. COMMENT ON COLUMN js_sys_msg_pushed.send_user_code IS '发送者用户编码';
  1289. COMMENT ON COLUMN js_sys_msg_pushed.send_user_name IS '发送者用户姓名';
  1290. COMMENT ON COLUMN js_sys_msg_pushed.send_date IS '发送时间';
  1291. COMMENT ON COLUMN js_sys_msg_pushed.is_merge_push IS '是否合并推送';
  1292. COMMENT ON COLUMN js_sys_msg_pushed.plan_push_date IS '计划推送时间';
  1293. COMMENT ON COLUMN js_sys_msg_pushed.push_number IS '推送尝试次数';
  1294. COMMENT ON COLUMN js_sys_msg_pushed.push_return_content IS '推送返回的内容信息';
  1295. COMMENT ON COLUMN js_sys_msg_pushed.push_return_code IS '推送返回结果码';
  1296. COMMENT ON COLUMN js_sys_msg_pushed.push_return_msg_id IS '推送返回消息编号';
  1297. COMMENT ON COLUMN js_sys_msg_pushed.push_status IS '推送状态(0未推送 1成功 2失败)';
  1298. COMMENT ON COLUMN js_sys_msg_pushed.push_date IS '推送时间';
  1299. COMMENT ON COLUMN js_sys_msg_pushed.read_status IS '读取状态(0未送达 1已读 2未读)';
  1300. COMMENT ON COLUMN js_sys_msg_pushed.read_date IS '读取时间';
  1301. COMMENT ON TABLE js_sys_msg_template IS '消息模板';
  1302. COMMENT ON COLUMN js_sys_msg_template.id IS '编号';
  1303. COMMENT ON COLUMN js_sys_msg_template.module_code IS '归属模块';
  1304. COMMENT ON COLUMN js_sys_msg_template.tpl_key IS '模板键值';
  1305. COMMENT ON COLUMN js_sys_msg_template.tpl_name IS '模板名称';
  1306. COMMENT ON COLUMN js_sys_msg_template.tpl_type IS '模板类型';
  1307. COMMENT ON COLUMN js_sys_msg_template.tpl_content IS '模板内容';
  1308. COMMENT ON COLUMN js_sys_msg_template.status IS '状态(0正常 1删除 2停用)';
  1309. COMMENT ON COLUMN js_sys_msg_template.create_by IS '创建者';
  1310. COMMENT ON COLUMN js_sys_msg_template.create_date IS '创建时间';
  1311. COMMENT ON COLUMN js_sys_msg_template.update_by IS '更新者';
  1312. COMMENT ON COLUMN js_sys_msg_template.update_date IS '更新时间';
  1313. COMMENT ON COLUMN js_sys_msg_template.remarks IS '备注信息';
  1314. COMMENT ON TABLE js_sys_office IS '组织机构表';
  1315. COMMENT ON COLUMN js_sys_office.office_code IS '机构编码';
  1316. COMMENT ON COLUMN js_sys_office.parent_code IS '父级编号';
  1317. COMMENT ON COLUMN js_sys_office.parent_codes IS '所有父级编号';
  1318. COMMENT ON COLUMN js_sys_office.tree_sort IS '排序号(升序)';
  1319. COMMENT ON COLUMN js_sys_office.tree_sorts IS '所有排序号';
  1320. COMMENT ON COLUMN js_sys_office.tree_leaf IS '是否最末级';
  1321. COMMENT ON COLUMN js_sys_office.tree_level IS '层次级别';
  1322. COMMENT ON COLUMN js_sys_office.tree_names IS '全节点名';
  1323. COMMENT ON COLUMN js_sys_office.view_code IS '机构代码';
  1324. COMMENT ON COLUMN js_sys_office.office_name IS '机构名称';
  1325. COMMENT ON COLUMN js_sys_office.full_name IS '机构全称';
  1326. COMMENT ON COLUMN js_sys_office.office_type IS '机构类型';
  1327. COMMENT ON COLUMN js_sys_office.leader IS '负责人';
  1328. COMMENT ON COLUMN js_sys_office.phone IS '办公电话';
  1329. COMMENT ON COLUMN js_sys_office.address IS '联系地址';
  1330. COMMENT ON COLUMN js_sys_office.zip_code IS '邮政编码';
  1331. COMMENT ON COLUMN js_sys_office.email IS '电子邮箱';
  1332. COMMENT ON COLUMN js_sys_office.status IS '状态(0正常 1删除 2停用)';
  1333. COMMENT ON COLUMN js_sys_office.create_by IS '创建者';
  1334. COMMENT ON COLUMN js_sys_office.create_date IS '创建时间';
  1335. COMMENT ON COLUMN js_sys_office.update_by IS '更新者';
  1336. COMMENT ON COLUMN js_sys_office.update_date IS '更新时间';
  1337. COMMENT ON COLUMN js_sys_office.remarks IS '备注信息';
  1338. COMMENT ON COLUMN js_sys_office.corp_code IS '租户代码';
  1339. COMMENT ON COLUMN js_sys_office.corp_name IS '租户名称';
  1340. COMMENT ON COLUMN js_sys_office.extend_s1 IS '扩展 String 1';
  1341. COMMENT ON COLUMN js_sys_office.extend_s2 IS '扩展 String 2';
  1342. COMMENT ON COLUMN js_sys_office.extend_s3 IS '扩展 String 3';
  1343. COMMENT ON COLUMN js_sys_office.extend_s4 IS '扩展 String 4';
  1344. COMMENT ON COLUMN js_sys_office.extend_s5 IS '扩展 String 5';
  1345. COMMENT ON COLUMN js_sys_office.extend_s6 IS '扩展 String 6';
  1346. COMMENT ON COLUMN js_sys_office.extend_s7 IS '扩展 String 7';
  1347. COMMENT ON COLUMN js_sys_office.extend_s8 IS '扩展 String 8';
  1348. COMMENT ON COLUMN js_sys_office.extend_i1 IS '扩展 Integer 1';
  1349. COMMENT ON COLUMN js_sys_office.extend_i2 IS '扩展 Integer 2';
  1350. COMMENT ON COLUMN js_sys_office.extend_i3 IS '扩展 Integer 3';
  1351. COMMENT ON COLUMN js_sys_office.extend_i4 IS '扩展 Integer 4';
  1352. COMMENT ON COLUMN js_sys_office.extend_f1 IS '扩展 Float 1';
  1353. COMMENT ON COLUMN js_sys_office.extend_f2 IS '扩展 Float 2';
  1354. COMMENT ON COLUMN js_sys_office.extend_f3 IS '扩展 Float 3';
  1355. COMMENT ON COLUMN js_sys_office.extend_f4 IS '扩展 Float 4';
  1356. COMMENT ON COLUMN js_sys_office.extend_d1 IS '扩展 Date 1';
  1357. COMMENT ON COLUMN js_sys_office.extend_d2 IS '扩展 Date 2';
  1358. COMMENT ON COLUMN js_sys_office.extend_d3 IS '扩展 Date 3';
  1359. COMMENT ON COLUMN js_sys_office.extend_d4 IS '扩展 Date 4';
  1360. COMMENT ON TABLE js_sys_post IS '员工岗位表';
  1361. COMMENT ON COLUMN js_sys_post.post_code IS '岗位编码';
  1362. COMMENT ON COLUMN js_sys_post.post_name IS '岗位名称';
  1363. COMMENT ON COLUMN js_sys_post.post_type IS '岗位分类(高管、中层、基层)';
  1364. COMMENT ON COLUMN js_sys_post.post_sort IS '岗位排序(升序)';
  1365. COMMENT ON COLUMN js_sys_post.status IS '状态(0正常 1删除 2停用)';
  1366. COMMENT ON COLUMN js_sys_post.create_by IS '创建者';
  1367. COMMENT ON COLUMN js_sys_post.create_date IS '创建时间';
  1368. COMMENT ON COLUMN js_sys_post.update_by IS '更新者';
  1369. COMMENT ON COLUMN js_sys_post.update_date IS '更新时间';
  1370. COMMENT ON COLUMN js_sys_post.remarks IS '备注信息';
  1371. COMMENT ON COLUMN js_sys_post.corp_code IS '租户代码';
  1372. COMMENT ON COLUMN js_sys_post.corp_name IS '租户名称';
  1373. COMMENT ON TABLE js_sys_role IS '角色表';
  1374. COMMENT ON COLUMN js_sys_role.role_code IS '角色编码';
  1375. COMMENT ON COLUMN js_sys_role.role_name IS '角色名称';
  1376. COMMENT ON COLUMN js_sys_role.role_type IS '角色分类(高管、中层、基层、其它)';
  1377. COMMENT ON COLUMN js_sys_role.role_sort IS '角色排序(升序)';
  1378. COMMENT ON COLUMN js_sys_role.is_sys IS '系统内置(1是 0否)';
  1379. COMMENT ON COLUMN js_sys_role.user_type IS '用户类型(employee员工 member会员)';
  1380. COMMENT ON COLUMN js_sys_role.data_scope IS '数据范围设置(0未设置 1全部数据 2自定义数据)';
  1381. COMMENT ON COLUMN js_sys_role.biz_scope IS '适应业务范围(不同的功能,不同的数据权限支持)';
  1382. COMMENT ON COLUMN js_sys_role.status IS '状态(0正常 1删除 2停用)';
  1383. COMMENT ON COLUMN js_sys_role.create_by IS '创建者';
  1384. COMMENT ON COLUMN js_sys_role.create_date IS '创建时间';
  1385. COMMENT ON COLUMN js_sys_role.update_by IS '更新者';
  1386. COMMENT ON COLUMN js_sys_role.update_date IS '更新时间';
  1387. COMMENT ON COLUMN js_sys_role.remarks IS '备注信息';
  1388. COMMENT ON COLUMN js_sys_role.corp_code IS '租户代码';
  1389. COMMENT ON COLUMN js_sys_role.corp_name IS '租户名称';
  1390. COMMENT ON COLUMN js_sys_role.extend_s1 IS '扩展 String 1';
  1391. COMMENT ON COLUMN js_sys_role.extend_s2 IS '扩展 String 2';
  1392. COMMENT ON COLUMN js_sys_role.extend_s3 IS '扩展 String 3';
  1393. COMMENT ON COLUMN js_sys_role.extend_s4 IS '扩展 String 4';
  1394. COMMENT ON COLUMN js_sys_role.extend_s5 IS '扩展 String 5';
  1395. COMMENT ON COLUMN js_sys_role.extend_s6 IS '扩展 String 6';
  1396. COMMENT ON COLUMN js_sys_role.extend_s7 IS '扩展 String 7';
  1397. COMMENT ON COLUMN js_sys_role.extend_s8 IS '扩展 String 8';
  1398. COMMENT ON COLUMN js_sys_role.extend_i1 IS '扩展 Integer 1';
  1399. COMMENT ON COLUMN js_sys_role.extend_i2 IS '扩展 Integer 2';
  1400. COMMENT ON COLUMN js_sys_role.extend_i3 IS '扩展 Integer 3';
  1401. COMMENT ON COLUMN js_sys_role.extend_i4 IS '扩展 Integer 4';
  1402. COMMENT ON COLUMN js_sys_role.extend_f1 IS '扩展 Float 1';
  1403. COMMENT ON COLUMN js_sys_role.extend_f2 IS '扩展 Float 2';
  1404. COMMENT ON COLUMN js_sys_role.extend_f3 IS '扩展 Float 3';
  1405. COMMENT ON COLUMN js_sys_role.extend_f4 IS '扩展 Float 4';
  1406. COMMENT ON COLUMN js_sys_role.extend_d1 IS '扩展 Date 1';
  1407. COMMENT ON COLUMN js_sys_role.extend_d2 IS '扩展 Date 2';
  1408. COMMENT ON COLUMN js_sys_role.extend_d3 IS '扩展 Date 3';
  1409. COMMENT ON COLUMN js_sys_role.extend_d4 IS '扩展 Date 4';
  1410. COMMENT ON TABLE js_sys_role_data_scope IS '角色数据权限表';
  1411. COMMENT ON COLUMN js_sys_role_data_scope.role_code IS '控制角色编码';
  1412. COMMENT ON COLUMN js_sys_role_data_scope.ctrl_type IS '控制类型';
  1413. COMMENT ON COLUMN js_sys_role_data_scope.ctrl_data IS '控制数据';
  1414. COMMENT ON COLUMN js_sys_role_data_scope.ctrl_permi IS '控制权限';
  1415. COMMENT ON TABLE js_sys_role_menu IS '角色与菜单关联表';
  1416. COMMENT ON COLUMN js_sys_role_menu.role_code IS '角色编码';
  1417. COMMENT ON COLUMN js_sys_role_menu.menu_code IS '菜单编码';
  1418. COMMENT ON TABLE js_sys_user IS '用户表';
  1419. COMMENT ON COLUMN js_sys_user.user_code IS '用户编码';
  1420. COMMENT ON COLUMN js_sys_user.login_code IS '登录账号';
  1421. COMMENT ON COLUMN js_sys_user.user_name IS '用户昵称';
  1422. COMMENT ON COLUMN js_sys_user.password IS '登录密码';
  1423. COMMENT ON COLUMN js_sys_user.email IS '电子邮箱';
  1424. COMMENT ON COLUMN js_sys_user.mobile IS '手机号码';
  1425. COMMENT ON COLUMN js_sys_user.phone IS '办公电话';
  1426. COMMENT ON COLUMN js_sys_user.sex IS '用户性别';
  1427. COMMENT ON COLUMN js_sys_user.avatar IS '头像路径';
  1428. COMMENT ON COLUMN js_sys_user.sign IS '个性签名';
  1429. COMMENT ON COLUMN js_sys_user.wx_openid IS '绑定的微信号';
  1430. COMMENT ON COLUMN js_sys_user.mobile_imei IS '绑定的手机串号';
  1431. COMMENT ON COLUMN js_sys_user.user_type IS '用户类型';
  1432. COMMENT ON COLUMN js_sys_user.ref_code IS '用户类型引用编号';
  1433. COMMENT ON COLUMN js_sys_user.ref_name IS '用户类型引用姓名';
  1434. COMMENT ON COLUMN js_sys_user.mgr_type IS '管理员类型(0非管理员 1系统管理员 2二级管理员)';
  1435. COMMENT ON COLUMN js_sys_user.pwd_security_level IS '密码安全级别(0初始 1很弱 2弱 3安全 4很安全)';
  1436. COMMENT ON COLUMN js_sys_user.pwd_update_date IS '密码最后更新时间';
  1437. COMMENT ON COLUMN js_sys_user.pwd_update_record IS '密码修改记录';
  1438. COMMENT ON COLUMN js_sys_user.pwd_question IS '密保问题';
  1439. COMMENT ON COLUMN js_sys_user.pwd_question_answer IS '密保问题答案';
  1440. COMMENT ON COLUMN js_sys_user.pwd_question_2 IS '密保问题2';
  1441. COMMENT ON COLUMN js_sys_user.pwd_question_answer_2 IS '密保问题答案2';
  1442. COMMENT ON COLUMN js_sys_user.pwd_question_3 IS '密保问题3';
  1443. COMMENT ON COLUMN js_sys_user.pwd_question_answer_3 IS '密保问题答案3';
  1444. COMMENT ON COLUMN js_sys_user.pwd_quest_update_date IS '密码问题修改时间';
  1445. COMMENT ON COLUMN js_sys_user.last_login_ip IS '最后登陆IP';
  1446. COMMENT ON COLUMN js_sys_user.last_login_date IS '最后登陆时间';
  1447. COMMENT ON COLUMN js_sys_user.freeze_date IS '冻结时间';
  1448. COMMENT ON COLUMN js_sys_user.freeze_cause IS '冻结原因';
  1449. COMMENT ON COLUMN js_sys_user.user_weight IS '用户权重(降序)';
  1450. COMMENT ON COLUMN js_sys_user.status IS '状态(0正常 1删除 2停用 3冻结)';
  1451. COMMENT ON COLUMN js_sys_user.create_by IS '创建者';
  1452. COMMENT ON COLUMN js_sys_user.create_date IS '创建时间';
  1453. COMMENT ON COLUMN js_sys_user.update_by IS '更新者';
  1454. COMMENT ON COLUMN js_sys_user.update_date IS '更新时间';
  1455. COMMENT ON COLUMN js_sys_user.remarks IS '备注信息';
  1456. COMMENT ON COLUMN js_sys_user.corp_code IS '租户代码';
  1457. COMMENT ON COLUMN js_sys_user.corp_name IS '租户名称';
  1458. COMMENT ON COLUMN js_sys_user.extend_s1 IS '扩展 String 1';
  1459. COMMENT ON COLUMN js_sys_user.extend_s2 IS '扩展 String 2';
  1460. COMMENT ON COLUMN js_sys_user.extend_s3 IS '扩展 String 3';
  1461. COMMENT ON COLUMN js_sys_user.extend_s4 IS '扩展 String 4';
  1462. COMMENT ON COLUMN js_sys_user.extend_s5 IS '扩展 String 5';
  1463. COMMENT ON COLUMN js_sys_user.extend_s6 IS '扩展 String 6';
  1464. COMMENT ON COLUMN js_sys_user.extend_s7 IS '扩展 String 7';
  1465. COMMENT ON COLUMN js_sys_user.extend_s8 IS '扩展 String 8';
  1466. COMMENT ON COLUMN js_sys_user.extend_i1 IS '扩展 Integer 1';
  1467. COMMENT ON COLUMN js_sys_user.extend_i2 IS '扩展 Integer 2';
  1468. COMMENT ON COLUMN js_sys_user.extend_i3 IS '扩展 Integer 3';
  1469. COMMENT ON COLUMN js_sys_user.extend_i4 IS '扩展 Integer 4';
  1470. COMMENT ON COLUMN js_sys_user.extend_f1 IS '扩展 Float 1';
  1471. COMMENT ON COLUMN js_sys_user.extend_f2 IS '扩展 Float 2';
  1472. COMMENT ON COLUMN js_sys_user.extend_f3 IS '扩展 Float 3';
  1473. COMMENT ON COLUMN js_sys_user.extend_f4 IS '扩展 Float 4';
  1474. COMMENT ON COLUMN js_sys_user.extend_d1 IS '扩展 Date 1';
  1475. COMMENT ON COLUMN js_sys_user.extend_d2 IS '扩展 Date 2';
  1476. COMMENT ON COLUMN js_sys_user.extend_d3 IS '扩展 Date 3';
  1477. COMMENT ON COLUMN js_sys_user.extend_d4 IS '扩展 Date 4';
  1478. COMMENT ON TABLE js_sys_user_data_scope IS '用户数据权限表';
  1479. COMMENT ON COLUMN js_sys_user_data_scope.user_code IS '控制用户编码';
  1480. COMMENT ON COLUMN js_sys_user_data_scope.ctrl_type IS '控制类型';
  1481. COMMENT ON COLUMN js_sys_user_data_scope.ctrl_data IS '控制数据';
  1482. COMMENT ON COLUMN js_sys_user_data_scope.ctrl_permi IS '控制权限';
  1483. COMMENT ON TABLE js_sys_user_role IS '用户与角色关联表';
  1484. COMMENT ON COLUMN js_sys_user_role.user_code IS '用户编码';
  1485. COMMENT ON COLUMN js_sys_user_role.role_code IS '角色编码';