逆向到Mysql数据库建表语句.sql 68 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176
  1. /*
  2. SQLyog Trial v13.2.0 (64 bit)
  3. MySQL - 5.7.26 : Database - postcheck_v3
  4. *********************************************************************
  5. */
  6. /*!40101 SET NAMES utf8 */;
  7. /*!40101 SET SQL_MODE=''*/;
  8. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  9. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  10. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  11. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  12. CREATE DATABASE /*!32312 IF NOT EXISTS*/`postcheck_v3` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_bin */;
  13. USE `postcheck_v3`;
  14. /*Table structure for table `post_assessment_rating` */
  15. DROP TABLE IF EXISTS `post_assessment_rating`;
  16. CREATE TABLE `post_assessment_rating` (
  17. `id` bigint(20) NOT NULL COMMENT '主键',
  18. `type` int(11) DEFAULT NULL COMMENT '类型;',
  19. `dept_id` bigint(20) DEFAULT NULL COMMENT '部门ID',
  20. `post_id` bigint(20) DEFAULT NULL COMMENT '岗位名称',
  21. `head_user_id` bigint(20) DEFAULT NULL COMMENT '负责人ID',
  22. `integrity_issues_total` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '完整性问题数量-总数',
  23. `integrity_issues_resolved` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '完整性问题数量-已整改',
  24. `effectiveness_issues_total` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '有效性问题数量-总数',
  25. `effectiveness_issues_resolved` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '有效性问题数量-已整改',
  26. `suitability_issues_total` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '适宜性问题数量-总数',
  27. `suitability_issues_resolved` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '适宜性问题数量-已整改',
  28. `peer_evaluation_score` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '互评得分',
  29. `daily_score` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '日常得分',
  30. `department_score` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '总得分',
  31. `position_score` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '岗位得分',
  32. `rating_time` datetime DEFAULT NULL COMMENT '评分时间',
  33. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  34. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  35. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  36. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  37. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  38. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  39. `major_or_group` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '专业或组别',
  40. `plan_start_time` datetime DEFAULT NULL COMMENT '岗检计划开始时间',
  41. `plan_end_time` datetime DEFAULT NULL COMMENT '岗检计划结束时间',
  42. `plan_id` bigint(20) DEFAULT NULL COMMENT '计划id',
  43. PRIMARY KEY (`id`),
  44. KEY `dept_id` (`dept_id`),
  45. KEY `post_id` (`post_id`),
  46. CONSTRAINT `post_assessment_rating_ibfk_1` FOREIGN KEY (`dept_id`) REFERENCES `sys_dept` (`dept_id`),
  47. CONSTRAINT `post_assessment_rating_ibfk_2` FOREIGN KEY (`post_id`) REFERENCES `sys_post` (`post_id`)
  48. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='考核评比表';
  49. /*Data for the table `post_assessment_rating` */
  50. /*Table structure for table `post_assessment_rating_other` */
  51. DROP TABLE IF EXISTS `post_assessment_rating_other`;
  52. CREATE TABLE `post_assessment_rating_other` (
  53. `id` bigint(20) NOT NULL COMMENT '主键',
  54. `type` int(11) DEFAULT NULL COMMENT '类型',
  55. `batch_id` bigint(20) DEFAULT NULL COMMENT '批次号',
  56. `start_time` datetime DEFAULT NULL COMMENT '评分开始时间(管理员创建的)',
  57. `status` int(11) DEFAULT NULL COMMENT '状态:进行中;已完成',
  58. `dept_id` bigint(20) DEFAULT NULL COMMENT '评分部门ID',
  59. `complete_time` datetime DEFAULT NULL COMMENT '评分完成时间',
  60. `score_user_id` bigint(20) DEFAULT NULL COMMENT '评分人ID',
  61. `score_user_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '评分人姓名',
  62. `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建者用户ID',
  63. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  64. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  65. `create_time` datetime DEFAULT NULL COMMENT '创建时间/提交时间',
  66. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  67. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  68. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  69. `dept_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '评分部门名称',
  70. PRIMARY KEY (`id`),
  71. KEY `dept_id` (`dept_id`),
  72. CONSTRAINT `post_assessment_rating_other_ibfk_1` FOREIGN KEY (`dept_id`) REFERENCES `sys_dept` (`dept_id`)
  73. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='打分表';
  74. /*Data for the table `post_assessment_rating_other` */
  75. /*Table structure for table `post_assessment_rating_other_info` */
  76. DROP TABLE IF EXISTS `post_assessment_rating_other_info`;
  77. CREATE TABLE `post_assessment_rating_other_info` (
  78. `id` bigint(20) NOT NULL COMMENT '主键',
  79. `rating_other_id` bigint(20) DEFAULT NULL COMMENT '打分表ID',
  80. `duty_type` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '评分分类/项目/专业',
  81. `score_weight` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '满分分值/权重',
  82. `rule` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '考核规则/评分标准',
  83. `by_dept_id` bigint(20) DEFAULT NULL COMMENT '被评分部门ID',
  84. `by_dept_score` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '被评分部门得分',
  85. `improvement_suggestions` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '改进建议',
  86. `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建者用户ID',
  87. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  88. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  89. `create_time` datetime DEFAULT NULL COMMENT '创建时间/提交时间',
  90. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  91. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  92. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  93. `by_dept_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '被评分部门名称',
  94. PRIMARY KEY (`id`),
  95. KEY `主表外键` (`rating_other_id`),
  96. CONSTRAINT `主表外键` FOREIGN KEY (`rating_other_id`) REFERENCES `post_assessment_rating_other` (`id`)
  97. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='打分表明细';
  98. /*Data for the table `post_assessment_rating_other_info` */
  99. /*Table structure for table `post_assessment_rules` */
  100. DROP TABLE IF EXISTS `post_assessment_rules`;
  101. CREATE TABLE `post_assessment_rules` (
  102. `id` bigint(20) NOT NULL COMMENT '主键',
  103. `type` int(11) DEFAULT NULL COMMENT '评分分类/项目/专业',
  104. `full_score` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '满分/权重',
  105. `rule` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '考核规则/评分标准',
  106. `problem_level_one` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '一般扣分数',
  107. `problem_level_two` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '重要扣分数',
  108. `status` int(11) DEFAULT NULL COMMENT '状态',
  109. `status_by_user_id` bigint(20) DEFAULT NULL COMMENT '审核人ID',
  110. `status_by_user_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '审核人姓名',
  111. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  112. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  113. `create_time` datetime DEFAULT NULL COMMENT '创建时间/提交时间',
  114. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  115. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  116. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  117. `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建者用户ID',
  118. `status_reason` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '审核不通过原因',
  119. `status_approve_time` datetime DEFAULT NULL COMMENT '审核时间',
  120. `duty_type` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '职责类别',
  121. PRIMARY KEY (`id`)
  122. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='考核规则表';
  123. /*Data for the table `post_assessment_rules` */
  124. /*Table structure for table `post_checked` */
  125. DROP TABLE IF EXISTS `post_checked`;
  126. CREATE TABLE `post_checked` (
  127. `id` bigint(20) NOT NULL COMMENT '主键',
  128. `check_workgroup_id` bigint(20) DEFAULT NULL COMMENT '检查工作组ID',
  129. `check_group_id` bigint(20) DEFAULT NULL COMMENT '检查小组ID',
  130. `checked_dept_id` bigint(20) DEFAULT NULL COMMENT '受检部门ID',
  131. `checked_post_id` bigint(20) DEFAULT NULL COMMENT '受检岗位ID',
  132. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  133. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  134. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  135. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  136. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  137. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  138. `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建者用户ID',
  139. `post_code` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '岗检编号',
  140. `status` int(11) DEFAULT NULL COMMENT '状态',
  141. `status_by_user_id` bigint(20) DEFAULT NULL COMMENT '审核人ID',
  142. `status_by_user_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '审核人姓名',
  143. `reason` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '审核不通过原因',
  144. `status_approve_time` datetime DEFAULT NULL COMMENT '审核时间',
  145. `checked_type` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '检查类型',
  146. `version_no` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '版本号',
  147. `checked_dept_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '受检部门名称',
  148. `checked_post_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '受检岗位名称',
  149. `checked_dept_type` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '部门类型',
  150. PRIMARY KEY (`id`),
  151. KEY `check_group_id` (`check_group_id`),
  152. KEY `checked_dept_id` (`checked_dept_id`),
  153. KEY `checked_post_id` (`checked_post_id`),
  154. CONSTRAINT `post_checked_ibfk_1` FOREIGN KEY (`check_group_id`) REFERENCES `post_team` (`id`),
  155. CONSTRAINT `post_checked_ibfk_2` FOREIGN KEY (`check_group_id`) REFERENCES `post_team` (`id`),
  156. CONSTRAINT `post_checked_ibfk_3` FOREIGN KEY (`checked_dept_id`) REFERENCES `sys_dept` (`dept_id`),
  157. CONSTRAINT `post_checked_ibfk_4` FOREIGN KEY (`checked_post_id`) REFERENCES `sys_post` (`post_id`)
  158. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='岗位责任制检查表';
  159. /*Data for the table `post_checked` */
  160. /*Table structure for table `post_checked_items` */
  161. DROP TABLE IF EXISTS `post_checked_items`;
  162. CREATE TABLE `post_checked_items` (
  163. `id` bigint(20) NOT NULL COMMENT '主键',
  164. `post_checked_id` bigint(20) DEFAULT NULL COMMENT '岗位责任制检查表ID',
  165. `type` int(11) DEFAULT NULL COMMENT '检查项目',
  166. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  167. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  168. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  169. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  170. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  171. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  172. `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建者用户ID',
  173. `post_checked_content` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '检查内容',
  174. `post_checked_standard` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '检查标准',
  175. `post_checked_method` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '检查方法',
  176. `post_checked_result` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '检查结果',
  177. `children_type_id` bigint(20) DEFAULT NULL COMMENT '检查内容ID',
  178. `serial_number` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '序号:第一列',
  179. PRIMARY KEY (`id`),
  180. KEY `post_checked_id` (`post_checked_id`),
  181. CONSTRAINT `post_checked_items_ibfk_1` FOREIGN KEY (`post_checked_id`) REFERENCES `post_checked` (`id`)
  182. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='岗位责任制检查表配置检查项';
  183. /*Data for the table `post_checked_items` */
  184. /*Table structure for table `post_checked_problem` */
  185. DROP TABLE IF EXISTS `post_checked_problem`;
  186. CREATE TABLE `post_checked_problem` (
  187. `id` bigint(20) NOT NULL COMMENT '主键',
  188. `status` int(11) DEFAULT NULL COMMENT '状态',
  189. `problem_no` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '问题编号',
  190. `check_workgroup_id` bigint(20) DEFAULT NULL COMMENT '检查工作组ID',
  191. `check_group_id` bigint(20) DEFAULT NULL COMMENT '检查小组ID',
  192. `dept_approve_user_id` bigint(20) DEFAULT NULL COMMENT '审核1:整改部门经理ID',
  193. `dept_approve_time` datetime DEFAULT NULL COMMENT '审核1:整改部门经理审核时间',
  194. `speciality_department_reviewer_id` bigint(20) DEFAULT NULL COMMENT '专业部门的审核人',
  195. `speciality_department_review_time` datetime DEFAULT NULL COMMENT '审核2:专业部门审核人审核时间',
  196. `problem_level` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '问题等级',
  197. `problem_attribute` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '问题属性',
  198. `problem_category` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '问题类别',
  199. `description` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '问题描述',
  200. `problem_cause` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '问题原因',
  201. `is_immediately_corrected` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否立行立改',
  202. `rectification_measure` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '整改措施',
  203. `checked_dept_id` bigint(20) DEFAULT NULL COMMENT '受检部门ID',
  204. `checked_post_id` bigint(20) DEFAULT NULL COMMENT '受检岗位ID',
  205. `rectification_responsible_user_id` bigint(20) DEFAULT NULL COMMENT '整改责任人ID',
  206. `rectification_period` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '整改期限',
  207. `is_rectification_completed` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '整改情况-是否完成(Yes;No;)',
  208. `rectification_completion_time` datetime DEFAULT NULL COMMENT '整改完成时间',
  209. `rectification_completion_img` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '整改完成图片',
  210. `review_department_reviewer_id` bigint(20) DEFAULT NULL COMMENT '审核3:复查部门的审核人ID',
  211. `review_department_reviewer_time` datetime DEFAULT NULL COMMENT '审核3:复查部门的审核人复查时间',
  212. `review_conclusion` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '复查结论',
  213. `reason` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '未通过理由',
  214. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  215. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  216. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  217. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  218. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  219. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  220. `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建者用户ID',
  221. `check_time` datetime DEFAULT NULL COMMENT '检查时间',
  222. `duty_type` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '职责类别',
  223. `check_user_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '检查人员姓名',
  224. `checked_dept_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '受检部门名称',
  225. `checked_post_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '受检岗位名称',
  226. `rectification_responsible_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '整改责任人姓名',
  227. `dept_approve_user_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '部门经理审核人姓名',
  228. `speciality_department_reviewer_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '专业审核人姓名',
  229. `review_department_reviewer_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '复查部门审核人姓名',
  230. `checked_dept_type` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '部门类型',
  231. PRIMARY KEY (`id`),
  232. KEY `check_workgroup_id` (`check_workgroup_id`),
  233. KEY `check_group_id` (`check_group_id`),
  234. KEY `checked_dept_id` (`checked_dept_id`),
  235. KEY `checked_post_id` (`checked_post_id`),
  236. CONSTRAINT `post_checked_problem_ibfk_1` FOREIGN KEY (`check_workgroup_id`) REFERENCES `post_team` (`id`),
  237. CONSTRAINT `post_checked_problem_ibfk_2` FOREIGN KEY (`check_group_id`) REFERENCES `post_team` (`id`),
  238. CONSTRAINT `post_checked_problem_ibfk_3` FOREIGN KEY (`checked_dept_id`) REFERENCES `sys_dept` (`dept_id`),
  239. CONSTRAINT `post_checked_problem_ibfk_4` FOREIGN KEY (`checked_post_id`) REFERENCES `sys_post` (`post_id`)
  240. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='岗检问题表';
  241. /*Data for the table `post_checked_problem` */
  242. /*Table structure for table `post_checked_problem_record` */
  243. DROP TABLE IF EXISTS `post_checked_problem_record`;
  244. CREATE TABLE `post_checked_problem_record` (
  245. `id` bigint(20) NOT NULL COMMENT '主键',
  246. `problem_id` bigint(20) DEFAULT NULL COMMENT '问题ID',
  247. `user_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '操作者姓名',
  248. `content` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '操作内容',
  249. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  250. PRIMARY KEY (`id`),
  251. KEY `problem_id` (`problem_id`),
  252. CONSTRAINT `post_checked_problem_record_ibfk_1` FOREIGN KEY (`problem_id`) REFERENCES `post_checked_problem` (`id`)
  253. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='岗检问题表操作记录';
  254. /*Data for the table `post_checked_problem_record` */
  255. /*Table structure for table `post_checked_report` */
  256. DROP TABLE IF EXISTS `post_checked_report`;
  257. CREATE TABLE `post_checked_report` (
  258. `id` bigint(20) NOT NULL COMMENT '主键',
  259. `report_no` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '编码',
  260. `report_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '岗检报告名称',
  261. `report_preface` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '前言',
  262. `consummation_problem` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '废弃:完善性问题',
  263. `suitability_problem` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '废弃:适宜性问题',
  264. `effectiveness_problem` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '废弃:有效性问题',
  265. `li_xing_li_gai_question_number` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '废弃:立行立改问题数量',
  266. `li_xing_li_gai_question_has_rectified_number` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '废弃:立行立改问题已整改数量',
  267. `rich_text` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '废弃:富文本',
  268. `generate_time` datetime DEFAULT NULL COMMENT '生成时间',
  269. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  270. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  271. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  272. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  273. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  274. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  275. `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建者用户ID',
  276. `html_one` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '1、(一)组织情况',
  277. `html_two` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '2、(二)岗检的时间、范围和开展形式',
  278. `html_three` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '3、(三)岗检发现的主要问题',
  279. `html_four` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '4、(四)原因分析',
  280. `html_five` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '5、(五)取得成绩',
  281. `html_six` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '6、(一)“立行立改”问题整改情况',
  282. `html_seven` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '7、(二)“非立行立改”问题整改情况',
  283. `html_eight` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '8、三、下一步岗位责任提升计划',
  284. `html_nine` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '9、四、总结结论',
  285. `status` int(11) DEFAULT NULL COMMENT '状态',
  286. `status_by_user_id` bigint(20) DEFAULT NULL COMMENT '审核人ID',
  287. `status_by_user_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '审核人姓名',
  288. `status_reason` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '审核不通过原因',
  289. `status_approve_time` datetime DEFAULT NULL COMMENT '审核时间',
  290. `start_time` datetime DEFAULT NULL COMMENT '开始时间-统计范围',
  291. `end_time` datetime DEFAULT NULL COMMENT '结束时间-统计范围',
  292. `type` int(11) DEFAULT NULL COMMENT '类型',
  293. `disk_path` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '文件地址',
  294. PRIMARY KEY (`id`)
  295. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='岗检报告表';
  296. /*Data for the table `post_checked_report` */
  297. /*Table structure for table `post_highlights` */
  298. DROP TABLE IF EXISTS `post_highlights`;
  299. CREATE TABLE `post_highlights` (
  300. `id` bigint(20) NOT NULL COMMENT '主键',
  301. `highlights_type` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '职责类别',
  302. `highlights` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '管理亮点',
  303. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  304. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  305. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  306. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  307. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  308. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  309. `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建者用户ID',
  310. `problem_attribute` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '问题属性',
  311. PRIMARY KEY (`id`)
  312. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='岗检亮点表';
  313. /*Data for the table `post_highlights` */
  314. /*Table structure for table `post_list` */
  315. DROP TABLE IF EXISTS `post_list`;
  316. CREATE TABLE `post_list` (
  317. `id` bigint(20) NOT NULL COMMENT '主键',
  318. `status` int(11) DEFAULT NULL COMMENT '状态',
  319. `status_by_user_id` bigint(20) DEFAULT NULL COMMENT '审核人ID',
  320. `status_by_user_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '审核人姓名',
  321. `unit_id` bigint(20) DEFAULT NULL COMMENT '所在单位',
  322. `post_id` bigint(20) DEFAULT NULL COMMENT '岗位ID',
  323. `position_level` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '岗位级别',
  324. `direct_superior` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '直接上级',
  325. `subordinate_count` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '辖员人数',
  326. `dept_id` bigint(20) DEFAULT NULL COMMENT '部门ID',
  327. `position_code` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '岗位编码',
  328. `is_confidential` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否涉密',
  329. `direct_subordinate` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '直接下级',
  330. `creation_date` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '编制日期',
  331. `revision_date` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '修订日期',
  332. `job_summary` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '工作摘要',
  333. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '部门祖级结构',
  334. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  335. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  336. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  337. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  338. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  339. `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建者用户ID',
  340. `post_list_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '岗位责任制清单名称',
  341. `version_no` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '版本号',
  342. `dept_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '部门名称',
  343. `post_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '岗位名称',
  344. PRIMARY KEY (`id`),
  345. KEY `post_id` (`post_id`),
  346. KEY `dept_id` (`dept_id`),
  347. CONSTRAINT `post_list_ibfk_1` FOREIGN KEY (`post_id`) REFERENCES `sys_post` (`post_id`),
  348. CONSTRAINT `post_list_ibfk_2` FOREIGN KEY (`dept_id`) REFERENCES `sys_dept` (`dept_id`)
  349. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='岗位责任制清单';
  350. /*Data for the table `post_list` */
  351. /*Table structure for table `post_list_info` */
  352. DROP TABLE IF EXISTS `post_list_info`;
  353. CREATE TABLE `post_list_info` (
  354. `id` bigint(20) NOT NULL COMMENT '主键',
  355. `status` int(11) DEFAULT NULL COMMENT '分区域审核-状态',
  356. `status_by_user_id` bigint(20) DEFAULT NULL COMMENT '审核人ID',
  357. `status_by_user_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '审核人姓名',
  358. `post_list_id` bigint(20) DEFAULT NULL COMMENT '岗位责任制清单表ID',
  359. `type` int(11) DEFAULT NULL COMMENT '类型',
  360. `sequence_project` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '序号/项目',
  361. `level_one` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '一级事项(1)',
  362. `level_two` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '二级事项(1)',
  363. `level_three` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '三级事项(1)',
  364. `level_four` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '四级事项(1)',
  365. `level_five` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '五级事项(1)',
  366. `work_standard` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '工作标准(1)',
  367. `requirement` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '要求(2)',
  368. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  369. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  370. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  371. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  372. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  373. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  374. `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建者用户ID',
  375. `reason` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '未通过理由',
  376. `status_time` datetime DEFAULT NULL COMMENT '状态更新时间',
  377. `post_checked_method` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '检查方法',
  378. `serial_number` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '检查表第一列:序号',
  379. PRIMARY KEY (`id`),
  380. KEY `post_list_id` (`post_list_id`),
  381. CONSTRAINT `post_list_info_ibfk_1` FOREIGN KEY (`post_list_id`) REFERENCES `post_list` (`id`)
  382. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='表创建注释';
  383. /*Data for the table `post_list_info` */
  384. /*Table structure for table `post_plan` */
  385. DROP TABLE IF EXISTS `post_plan`;
  386. CREATE TABLE `post_plan` (
  387. `id` bigint(20) NOT NULL COMMENT '主键',
  388. `name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '名称',
  389. `content` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '内容',
  390. `status` int(11) DEFAULT NULL COMMENT '状态',
  391. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  392. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  393. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  394. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  395. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  396. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  397. `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建者用户ID',
  398. `check_group_id` bigint(20) DEFAULT NULL COMMENT '检查工作组ID',
  399. `check_team_id` bigint(20) DEFAULT NULL COMMENT '检查小组',
  400. `status_icfa` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '内控法务部审批-状态',
  401. `date_icfa` datetime DEFAULT NULL COMMENT '内控法务部审批-通过日期',
  402. `reason_icfa` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '内控法务部审批-未通过理由',
  403. `status_hr` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '人力资源审批-状态',
  404. `date_hr` datetime DEFAULT NULL COMMENT '人力资源审批-通过日期',
  405. `reason_hr` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '人力资源审批-未通过理由',
  406. `status_time` datetime DEFAULT NULL COMMENT '审核时间',
  407. `status_user_id` bigint(20) DEFAULT NULL COMMENT '审核时人ID',
  408. `status_icfa_user_id` bigint(20) DEFAULT NULL COMMENT '内控法务部审批人ID',
  409. `status_hr_user_id` bigint(20) DEFAULT NULL COMMENT '人力资源审批人ID',
  410. `step` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '步骤',
  411. `publish` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '发布次数',
  412. PRIMARY KEY (`id`),
  413. KEY `check_group_id` (`check_group_id`),
  414. KEY `check_team_id` (`check_team_id`),
  415. CONSTRAINT `post_plan_ibfk_1` FOREIGN KEY (`check_group_id`) REFERENCES `post_team` (`id`),
  416. CONSTRAINT `post_plan_ibfk_2` FOREIGN KEY (`check_team_id`) REFERENCES `post_team` (`id`)
  417. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='岗检计划';
  418. /*Data for the table `post_plan` */
  419. /*Table structure for table `post_plan_check_user` */
  420. DROP TABLE IF EXISTS `post_plan_check_user`;
  421. CREATE TABLE `post_plan_check_user` (
  422. `id` bigint(20) NOT NULL COMMENT '主键',
  423. `post_plan_id` bigint(20) DEFAULT NULL COMMENT '计划ID',
  424. `checked_user_id` bigint(20) DEFAULT NULL COMMENT '检查人员ID',
  425. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  426. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  427. `type` int(11) DEFAULT NULL COMMENT '检查人员ID:组长;组员;',
  428. `checked_user_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '检查人员姓名',
  429. PRIMARY KEY (`id`),
  430. KEY `post_plan_id` (`post_plan_id`),
  431. KEY `checked_user_id` (`checked_user_id`),
  432. CONSTRAINT `post_plan_check_user_ibfk_1` FOREIGN KEY (`post_plan_id`) REFERENCES `post_plan` (`id`),
  433. CONSTRAINT `post_plan_check_user_ibfk_2` FOREIGN KEY (`checked_user_id`) REFERENCES `sys_users` (`user_id`)
  434. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='岗检计划明细检查人表';
  435. /*Data for the table `post_plan_check_user` */
  436. /*Table structure for table `post_plan_info` */
  437. DROP TABLE IF EXISTS `post_plan_info`;
  438. CREATE TABLE `post_plan_info` (
  439. `id` bigint(20) NOT NULL COMMENT '主键',
  440. `post_plan_id` bigint(20) DEFAULT NULL COMMENT '计划ID',
  441. `checked_dept_id` bigint(20) DEFAULT NULL COMMENT '被检查部门ID',
  442. `check_time` datetime DEFAULT NULL COMMENT '检查时间',
  443. `checked_post_id` bigint(20) DEFAULT NULL COMMENT '被检查岗位ID',
  444. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  445. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  446. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  447. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  448. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  449. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  450. `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建者用户ID',
  451. `status` int(11) DEFAULT NULL COMMENT '岗检状态:未检;已检;',
  452. `print_user_id` bigint(20) DEFAULT NULL COMMENT '打印人ID',
  453. `print_time` datetime DEFAULT NULL COMMENT '打印时间',
  454. `checked_img` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '检查后的检查表照片',
  455. `checked_user_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '检查人姓名',
  456. `checked_time` datetime DEFAULT NULL COMMENT '检查时间',
  457. `start_time` datetime DEFAULT NULL COMMENT '开始时间',
  458. `end_time` datetime DEFAULT NULL COMMENT '结束时间',
  459. `checked_dept_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '受检部门名称',
  460. `checked_post_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '受检岗位名称',
  461. `checked_dept_type` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '部门类型',
  462. `checked_post_user_count` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '岗位下人员数量',
  463. PRIMARY KEY (`id`),
  464. KEY `post_plan_id` (`post_plan_id`),
  465. KEY `checked_dept_id` (`checked_dept_id`),
  466. KEY `checked_post_id` (`checked_post_id`),
  467. CONSTRAINT `post_plan_info_ibfk_1` FOREIGN KEY (`post_plan_id`) REFERENCES `post_plan` (`id`),
  468. CONSTRAINT `post_plan_info_ibfk_2` FOREIGN KEY (`checked_dept_id`) REFERENCES `sys_dept` (`dept_id`),
  469. CONSTRAINT `post_plan_info_ibfk_3` FOREIGN KEY (`checked_post_id`) REFERENCES `sys_post` (`post_id`)
  470. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='岗检计划明细表';
  471. /*Data for the table `post_plan_info` */
  472. /*Table structure for table `post_programme` */
  473. DROP TABLE IF EXISTS `post_programme`;
  474. CREATE TABLE `post_programme` (
  475. `id` bigint(20) NOT NULL COMMENT '主键',
  476. `name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '名称',
  477. `submit_date` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '提交日期',
  478. `status_hr` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '人力资源审批-状态',
  479. `date_hr` datetime DEFAULT NULL COMMENT '人力资源审批-通过日期',
  480. `reason_hr` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '人力资源审批-未通过理由',
  481. `status_icfa` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '内控法务部审批-状态',
  482. `date_icfa` datetime DEFAULT NULL COMMENT '内控法务部审批-通过日期',
  483. `reason_icfa` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '内控法务部审批-未通过理由',
  484. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  485. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  486. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  487. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  488. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  489. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  490. `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建者用户ID',
  491. `disk_path` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '岗检方案文件地址',
  492. `dept_id` bigint(20) DEFAULT NULL COMMENT '提交部门ID',
  493. `dept_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '提交部门名称',
  494. `status` int(11) DEFAULT NULL COMMENT '状态',
  495. `status_time` datetime DEFAULT NULL COMMENT '审核时间',
  496. `status_user_id` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '审核时人ID',
  497. `status_icfa_user_id` bigint(20) DEFAULT NULL COMMENT '内控法务部审批人ID',
  498. `status_hr_user_id` bigint(20) DEFAULT NULL COMMENT '人力资源审批人ID',
  499. `step` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '步骤',
  500. PRIMARY KEY (`id`)
  501. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='岗检方案';
  502. /*Data for the table `post_programme` */
  503. /*Table structure for table `post_programme_template` */
  504. DROP TABLE IF EXISTS `post_programme_template`;
  505. CREATE TABLE `post_programme_template` (
  506. `id` bigint(20) NOT NULL COMMENT '主键',
  507. `plan_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '方案名称',
  508. `template_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '模板名称',
  509. `disk_path` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '模板磁盘路径',
  510. `status` int(11) DEFAULT NULL COMMENT '状态(启动;作废)',
  511. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  512. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  513. `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建者用户ID',
  514. PRIMARY KEY (`id`)
  515. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='岗检方案模板';
  516. /*Data for the table `post_programme_template` */
  517. /*Table structure for table `post_team` */
  518. DROP TABLE IF EXISTS `post_team`;
  519. CREATE TABLE `post_team` (
  520. `id` bigint(20) NOT NULL COMMENT '主键',
  521. `name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '名称',
  522. `parent_id` bigint(20) DEFAULT NULL COMMENT '父ID(0代表根节点)',
  523. `status` int(11) DEFAULT NULL COMMENT '状态(启用;未启用)',
  524. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  525. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  526. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  527. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  528. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  529. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  530. `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建者用户ID',
  531. `type` int(11) DEFAULT NULL COMMENT '类型',
  532. `team_type` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '类型',
  533. PRIMARY KEY (`id`)
  534. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='岗检小组';
  535. /*Data for the table `post_team` */
  536. /*Table structure for table `post_team_dept` */
  537. DROP TABLE IF EXISTS `post_team_dept`;
  538. CREATE TABLE `post_team_dept` (
  539. `id` bigint(20) NOT NULL COMMENT '主键',
  540. `post_team_id` bigint(20) DEFAULT NULL COMMENT '岗检工作组ID',
  541. `dept_id` bigint(20) DEFAULT NULL COMMENT '部门ID',
  542. `type` int(11) DEFAULT NULL COMMENT '类型',
  543. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  544. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  545. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  546. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  547. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  548. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  549. `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建者用户ID',
  550. `dept_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '部门名称',
  551. PRIMARY KEY (`id`),
  552. KEY `post_team_id` (`post_team_id`),
  553. KEY `dept_id` (`dept_id`),
  554. CONSTRAINT `post_team_dept_ibfk_1` FOREIGN KEY (`post_team_id`) REFERENCES `post_team` (`id`),
  555. CONSTRAINT `post_team_dept_ibfk_2` FOREIGN KEY (`dept_id`) REFERENCES `sys_dept` (`dept_id`)
  556. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='岗检工作组关联部门';
  557. /*Data for the table `post_team_dept` */
  558. /*Table structure for table `post_team_user` */
  559. DROP TABLE IF EXISTS `post_team_user`;
  560. CREATE TABLE `post_team_user` (
  561. `id` bigint(20) NOT NULL COMMENT '主键',
  562. `post_team_id` bigint(20) DEFAULT NULL COMMENT '岗检小组ID',
  563. `user_id` bigint(20) DEFAULT NULL COMMENT '用户ID',
  564. `type` int(11) DEFAULT NULL COMMENT '类型',
  565. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  566. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  567. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  568. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  569. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  570. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  571. `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建者用户ID',
  572. `nick_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '人员姓名',
  573. `dept_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '部门名称',
  574. PRIMARY KEY (`id`),
  575. KEY `post_team_id` (`post_team_id`),
  576. KEY `user_id` (`user_id`),
  577. CONSTRAINT `post_team_user_ibfk_1` FOREIGN KEY (`post_team_id`) REFERENCES `post_team` (`id`),
  578. CONSTRAINT `post_team_user_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `sys_users` (`user_id`)
  579. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='岗检小组关联成员';
  580. /*Data for the table `post_team_user` */
  581. /*Table structure for table `post_tools` */
  582. DROP TABLE IF EXISTS `post_tools`;
  583. CREATE TABLE `post_tools` (
  584. `id` bigint(20) NOT NULL COMMENT '主键',
  585. `type` int(11) DEFAULT NULL COMMENT '类型:年;月;3-日;',
  586. `type_view` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '显示值:2023年、2024年,01月、02月……;',
  587. PRIMARY KEY (`id`)
  588. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='工具表';
  589. /*Data for the table `post_tools` */
  590. /*Table structure for table `qrtz_blob_triggers` */
  591. DROP TABLE IF EXISTS `qrtz_blob_triggers`;
  592. CREATE TABLE `qrtz_blob_triggers` (
  593. `sched_name` varchar(32) COLLATE utf8mb4_bin NOT NULL COMMENT '调度名称',
  594. `trigger_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  595. `trigger_group` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  596. `blob_data` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '存放持久化Trigger对象',
  597. PRIMARY KEY (`sched_name`),
  598. KEY `trigger_name` (`trigger_name`),
  599. KEY `trigger_group` (`trigger_group`),
  600. CONSTRAINT `qrtz_blob_triggers_ibfk_1` FOREIGN KEY (`trigger_name`) REFERENCES `qrtz_triggers` (`sched_name`),
  601. CONSTRAINT `qrtz_blob_triggers_ibfk_2` FOREIGN KEY (`trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`)
  602. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='Blob类型的触发器表';
  603. /*Data for the table `qrtz_blob_triggers` */
  604. /*Table structure for table `qrtz_calendars` */
  605. DROP TABLE IF EXISTS `qrtz_calendars`;
  606. CREATE TABLE `qrtz_calendars` (
  607. `sched_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '调度名称',
  608. `calendar_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '日历名称',
  609. `calendar` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '存放持久化calendar对象'
  610. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='日历信息表';
  611. /*Data for the table `qrtz_calendars` */
  612. /*Table structure for table `qrtz_cron_triggers` */
  613. DROP TABLE IF EXISTS `qrtz_cron_triggers`;
  614. CREATE TABLE `qrtz_cron_triggers` (
  615. `sched_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '调度名称',
  616. `trigger_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  617. `trigger_group` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  618. `cron_expression` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'cron表达式',
  619. `time_zone_id` bigint(20) DEFAULT NULL COMMENT '时区',
  620. KEY `trigger_name` (`trigger_name`),
  621. KEY `trigger_group` (`trigger_group`),
  622. CONSTRAINT `qrtz_cron_triggers_ibfk_1` FOREIGN KEY (`trigger_name`) REFERENCES `qrtz_triggers` (`sched_name`),
  623. CONSTRAINT `qrtz_cron_triggers_ibfk_2` FOREIGN KEY (`trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`)
  624. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='Cron类型的触发器表';
  625. /*Data for the table `qrtz_cron_triggers` */
  626. /*Table structure for table `qrtz_fired_triggers` */
  627. DROP TABLE IF EXISTS `qrtz_fired_triggers`;
  628. CREATE TABLE `qrtz_fired_triggers` (
  629. `sched_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '调度名称',
  630. `entry_id` bigint(20) DEFAULT NULL COMMENT '调度器实例id',
  631. `trigger_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  632. `trigger_group` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  633. `instance_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '调度器实例名',
  634. `fired_time` datetime DEFAULT NULL COMMENT '触发的时间',
  635. `sched_time` datetime DEFAULT NULL COMMENT '定时器制定的时间',
  636. `priority` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '优先级',
  637. `state` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '状态',
  638. `job_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '任务名称',
  639. `job_group` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '任务组名',
  640. `is_nonconcurrent` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否并发',
  641. `requests_recovery` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否接受恢复执行',
  642. KEY `trigger_name` (`trigger_name`),
  643. KEY `trigger_group` (`trigger_group`),
  644. CONSTRAINT `qrtz_fired_triggers_ibfk_1` FOREIGN KEY (`trigger_name`) REFERENCES `qrtz_triggers` (`sched_name`),
  645. CONSTRAINT `qrtz_fired_triggers_ibfk_2` FOREIGN KEY (`trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`)
  646. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='已触发的触发器表';
  647. /*Data for the table `qrtz_fired_triggers` */
  648. /*Table structure for table `qrtz_job_details` */
  649. DROP TABLE IF EXISTS `qrtz_job_details`;
  650. CREATE TABLE `qrtz_job_details` (
  651. `sched_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '调度名称',
  652. `job_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '任务名称',
  653. `job_group` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '任务组名',
  654. `description` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '相关介绍',
  655. `job_class_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '执行任务类名称',
  656. `is_durable` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否持久化',
  657. `is_nonconcurrent` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否并发',
  658. `is_update_data` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否更新数据',
  659. `requests_recovery` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否接受恢复执行',
  660. `job_data` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '存放持久化job对象'
  661. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='任务详细信息表';
  662. /*Data for the table `qrtz_job_details` */
  663. /*Table structure for table `qrtz_locks` */
  664. DROP TABLE IF EXISTS `qrtz_locks`;
  665. CREATE TABLE `qrtz_locks` (
  666. `sched_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '调度名称',
  667. `lock_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '悲观锁名称'
  668. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='存储的悲观锁信息表';
  669. /*Data for the table `qrtz_locks` */
  670. /*Table structure for table `qrtz_paused_trigger_grps` */
  671. DROP TABLE IF EXISTS `qrtz_paused_trigger_grps`;
  672. CREATE TABLE `qrtz_paused_trigger_grps` (
  673. `sched_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '调度名称',
  674. `trigger_group` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  675. KEY `trigger_group` (`trigger_group`),
  676. CONSTRAINT `qrtz_paused_trigger_grps_ibfk_1` FOREIGN KEY (`trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`)
  677. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='暂停的触发器表';
  678. /*Data for the table `qrtz_paused_trigger_grps` */
  679. /*Table structure for table `qrtz_scheduler_state` */
  680. DROP TABLE IF EXISTS `qrtz_scheduler_state`;
  681. CREATE TABLE `qrtz_scheduler_state` (
  682. `sched_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '调度名称',
  683. `instance_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '实例名称',
  684. `last_checkin_time` datetime DEFAULT NULL COMMENT '上次检查时间',
  685. `checkin_interval` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '检查间隔时间'
  686. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='调度器状态表';
  687. /*Data for the table `qrtz_scheduler_state` */
  688. /*Table structure for table `qrtz_simple_triggers` */
  689. DROP TABLE IF EXISTS `qrtz_simple_triggers`;
  690. CREATE TABLE `qrtz_simple_triggers` (
  691. `sched_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '调度名称',
  692. `trigger_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  693. `trigger_group` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  694. `repeat_count` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '重复的次数统计',
  695. `repeat_interval` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '重复的间隔时间',
  696. `times_triggered` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '已经触发的次数',
  697. KEY `trigger_name` (`trigger_name`),
  698. KEY `trigger_group` (`trigger_group`),
  699. CONSTRAINT `qrtz_simple_triggers_ibfk_1` FOREIGN KEY (`trigger_name`) REFERENCES `qrtz_triggers` (`sched_name`),
  700. CONSTRAINT `qrtz_simple_triggers_ibfk_2` FOREIGN KEY (`trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`)
  701. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='简单触发器的信息表';
  702. /*Data for the table `qrtz_simple_triggers` */
  703. /*Table structure for table `qrtz_simprop_triggers` */
  704. DROP TABLE IF EXISTS `qrtz_simprop_triggers`;
  705. CREATE TABLE `qrtz_simprop_triggers` (
  706. `sched_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '调度名称',
  707. `trigger_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'qrtz_triggers表trigger_name的外键',
  708. `trigger_group` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'qrtz_triggers表trigger_group的外键',
  709. `str_prop_1` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'String类型的trigger的第一个参数',
  710. `str_prop_2` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'String类型的trigger的第二个参数',
  711. `str_prop_3` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'String类型的trigger的第三个参数',
  712. `int_prop_1` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'int类型的trigger的第一个参数',
  713. `int_prop_2` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'int类型的trigger的第二个参数',
  714. `long_prop_1` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'long类型的trigger的第一个参数',
  715. `long_prop_2` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'long类型的trigger的第二个参数',
  716. `dec_prop_1` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'decimal类型的trigger的第一个参数',
  717. `dec_prop_2` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'decimal类型的trigger的第二个参数',
  718. `bool_prop_1` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Boolean类型的trigger的第一个参数',
  719. `bool_prop_2` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Boolean类型的trigger的第二个参数',
  720. KEY `trigger_name` (`trigger_name`),
  721. KEY `trigger_group` (`trigger_group`),
  722. CONSTRAINT `qrtz_simprop_triggers_ibfk_1` FOREIGN KEY (`trigger_name`) REFERENCES `qrtz_triggers` (`sched_name`),
  723. CONSTRAINT `qrtz_simprop_triggers_ibfk_2` FOREIGN KEY (`trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`)
  724. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='同步机制的行锁表';
  725. /*Data for the table `qrtz_simprop_triggers` */
  726. /*Table structure for table `qrtz_triggers` */
  727. DROP TABLE IF EXISTS `qrtz_triggers`;
  728. CREATE TABLE `qrtz_triggers` (
  729. `sched_name` varchar(32) COLLATE utf8mb4_bin NOT NULL COMMENT '调度名称',
  730. `trigger_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '触发器的名字',
  731. `trigger_group` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '触发器所属组的名字',
  732. `job_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'qrtz_job_details表job_name的外键',
  733. `job_group` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'qrtz_job_details表job_group的外键',
  734. `description` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '相关介绍',
  735. `next_fire_time` datetime DEFAULT NULL COMMENT '上一次触发时间(毫秒)',
  736. `prev_fire_time` datetime DEFAULT NULL COMMENT '下一次触发时间(默认为-1表示不触发)',
  737. `priority` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '优先级',
  738. `trigger_state` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '触发器状态',
  739. `trigger_type` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '触发器的类型',
  740. `start_time` datetime DEFAULT NULL COMMENT '开始时间',
  741. `end_time` datetime DEFAULT NULL COMMENT '结束时间',
  742. `calendar_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '日程表名称',
  743. `misfire_instr` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '补偿执行的策略',
  744. `job_data` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '存放持久化job对象',
  745. PRIMARY KEY (`sched_name`),
  746. UNIQUE KEY `trigger_name` (`trigger_name`),
  747. UNIQUE KEY `trigger_group` (`trigger_group`)
  748. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='触发器详细信息表';
  749. /*Data for the table `qrtz_triggers` */
  750. /*Table structure for table `sys_con` */
  751. DROP TABLE IF EXISTS `sys_con`;
  752. CREATE TABLE `sys_con` (
  753. `config_id` bigint(20) NOT NULL COMMENT '参数主键',
  754. `config_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '参数名称',
  755. `config_key` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '参数键名',
  756. `config_value` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '参数键值',
  757. `config_type` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '系统内置(Y是 N否)',
  758. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  759. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  760. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  761. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  762. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  763. PRIMARY KEY (`config_id`)
  764. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='参数配置表';
  765. /*Data for the table `sys_con` */
  766. /*Table structure for table `sys_dept` */
  767. DROP TABLE IF EXISTS `sys_dept`;
  768. CREATE TABLE `sys_dept` (
  769. `dept_id` bigint(20) NOT NULL COMMENT '部门id',
  770. `parent_id` bigint(20) DEFAULT NULL COMMENT '父部门id',
  771. `ancestors` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '祖级列表',
  772. `dept_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '部门名称',
  773. `order_num` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '显示顺序',
  774. `leader` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '负责人',
  775. `phone` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '联系电话',
  776. `email` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '邮箱',
  777. `status` int(11) DEFAULT NULL COMMENT '部门状态(0正常 1停用)',
  778. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  779. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  780. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  781. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  782. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  783. `dept_code` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '部门编码:保证唯一',
  784. `type` int(11) DEFAULT NULL COMMENT '1 职能部门 2 生产部门 3 其他',
  785. `source_id` varchar(36) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '记录统一认证原ID',
  786. `dept_code_post` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '岗检系统部门代码:岗检问题编号时需要使用他',
  787. PRIMARY KEY (`dept_id`)
  788. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='部门表';
  789. /*Data for the table `sys_dept` */
  790. /*Table structure for table `sys_dict_data` */
  791. DROP TABLE IF EXISTS `sys_dict_data`;
  792. CREATE TABLE `sys_dict_data` (
  793. `dict_code` varchar(32) COLLATE utf8mb4_bin NOT NULL COMMENT '字典编码',
  794. `dict_sort` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '字典排序',
  795. `dict_label` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '字典标签',
  796. `dict_value` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '字典键值',
  797. `dict_type` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '字典类型',
  798. `css_class` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '样式属性(其他样式扩展)',
  799. `list_class` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '表格回显样式',
  800. `is_default` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否默认(Y是 N否)',
  801. `status` int(11) DEFAULT NULL COMMENT '状态(0正常 1停用)',
  802. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  803. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  804. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  805. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  806. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  807. PRIMARY KEY (`dict_code`),
  808. KEY `dict_type` (`dict_type`),
  809. CONSTRAINT `sys_dict_data_ibfk_1` FOREIGN KEY (`dict_type`) REFERENCES `sys_dict_type` (`dict_type`)
  810. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='字典数据表';
  811. /*Data for the table `sys_dict_data` */
  812. /*Table structure for table `sys_dict_type` */
  813. DROP TABLE IF EXISTS `sys_dict_type`;
  814. CREATE TABLE `sys_dict_type` (
  815. `dict_id` bigint(20) NOT NULL COMMENT '字典主键',
  816. `dict_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '字典名称',
  817. `dict_type` varchar(32) COLLATE utf8mb4_bin NOT NULL COMMENT '字典类型',
  818. `status` int(11) DEFAULT NULL COMMENT '状态(0正常 1停用)',
  819. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  820. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  821. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  822. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  823. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  824. PRIMARY KEY (`dict_id`),
  825. UNIQUE KEY `dict_type` (`dict_type`) COMMENT '字典类型'
  826. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='字典类型表';
  827. /*Data for the table `sys_dict_type` */
  828. /*Table structure for table `sys_job` */
  829. DROP TABLE IF EXISTS `sys_job`;
  830. CREATE TABLE `sys_job` (
  831. `job_id` bigint(20) NOT NULL COMMENT '任务ID',
  832. `job_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '任务名称',
  833. `job_group` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '任务组名',
  834. `invoke_target` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '调用目标字符串',
  835. `cron_expression` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'cron执行表达式',
  836. `misfire_policy` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '计划执行错误策略(1立即执行 2执行一次 3放弃执行)',
  837. `concurrent` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否并发执行(0允许 1禁止)',
  838. `status` int(11) DEFAULT NULL COMMENT '状态(0正常 1暂停)',
  839. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  840. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  841. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  842. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  843. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注信息',
  844. PRIMARY KEY (`job_id`),
  845. UNIQUE KEY `invoke_target` (`invoke_target`)
  846. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='定时任务调度表';
  847. /*Data for the table `sys_job` */
  848. /*Table structure for table `sys_job_log` */
  849. DROP TABLE IF EXISTS `sys_job_log`;
  850. CREATE TABLE `sys_job_log` (
  851. `job_log_id` bigint(20) NOT NULL COMMENT '任务日志ID',
  852. `job_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '任务名称',
  853. `job_group` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '任务组名',
  854. `invoke_target` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '调用目标字符串',
  855. `job_message` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '日志信息',
  856. `status` int(11) DEFAULT NULL COMMENT '执行状态(0正常 1失败)',
  857. `exception_info` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '异常信息',
  858. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  859. PRIMARY KEY (`job_log_id`),
  860. KEY `invoke_target` (`invoke_target`),
  861. CONSTRAINT `sys_job_log_ibfk_1` FOREIGN KEY (`invoke_target`) REFERENCES `sys_job` (`invoke_target`)
  862. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='定时任务调度日志表';
  863. /*Data for the table `sys_job_log` */
  864. /*Table structure for table `sys_menu` */
  865. DROP TABLE IF EXISTS `sys_menu`;
  866. CREATE TABLE `sys_menu` (
  867. `menu_id` bigint(20) NOT NULL COMMENT '菜单ID',
  868. `menu_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '菜单名称',
  869. `parent_id` bigint(20) DEFAULT NULL COMMENT '父菜单ID',
  870. `order_num` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '显示顺序',
  871. `path` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '路由地址',
  872. `component` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '组件路径',
  873. `query` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '路由参数',
  874. `is_frame` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否为外链(0是 1否)',
  875. `is_cache` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否缓存(0缓存 1不缓存)',
  876. `menu_type` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '菜单类型(M目录 C菜单 F按钮)',
  877. `visible` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '菜单状态(0显示 1隐藏)',
  878. `status` int(11) DEFAULT NULL COMMENT '菜单状态(0正常 1停用)',
  879. `perms` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '权限标识',
  880. `icon` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '菜单图标',
  881. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  882. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  883. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  884. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  885. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  886. PRIMARY KEY (`menu_id`)
  887. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='菜单权限表';
  888. /*Data for the table `sys_menu` */
  889. /*Table structure for table `sys_post` */
  890. DROP TABLE IF EXISTS `sys_post`;
  891. CREATE TABLE `sys_post` (
  892. `post_id` bigint(20) NOT NULL COMMENT '岗位ID',
  893. `post_code` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '岗位编码',
  894. `post_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '岗位名称',
  895. `post_sort` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '显示顺序',
  896. `status` int(11) DEFAULT NULL COMMENT '状态(0正常 1停用)',
  897. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  898. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  899. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  900. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  901. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  902. `dept_id` bigint(20) DEFAULT NULL COMMENT '部门ID:岗位都是属于部门的',
  903. `post_level` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '级别:0-员工;经理;领导;',
  904. `important_type` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '是否关键岗位:是;否;',
  905. PRIMARY KEY (`post_id`)
  906. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='岗位信息表';
  907. /*Data for the table `sys_post` */
  908. /*Table structure for table `sys_role` */
  909. DROP TABLE IF EXISTS `sys_role`;
  910. CREATE TABLE `sys_role` (
  911. `role_id` bigint(20) NOT NULL COMMENT '角色ID',
  912. `role_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '角色名称',
  913. `role_key` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '角色权限字符串',
  914. `role_sort` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '显示顺序',
  915. `data_scope` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '数据范围',
  916. `menu_check_strictly` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '菜单树选择项是否关联显示',
  917. `dept_check_strictly` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '部门树选择项是否关联显示',
  918. `status` int(11) DEFAULT NULL COMMENT '角色状态(0正常 1停用)',
  919. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  920. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  921. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  922. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  923. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  924. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  925. PRIMARY KEY (`role_id`)
  926. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='角色信息表';
  927. /*Data for the table `sys_role` */
  928. /*Table structure for table `sys_role_menu` */
  929. DROP TABLE IF EXISTS `sys_role_menu`;
  930. CREATE TABLE `sys_role_menu` (
  931. `role_id` bigint(20) DEFAULT NULL COMMENT '角色ID',
  932. `menu_id` bigint(20) DEFAULT NULL COMMENT '菜单ID',
  933. KEY `role_id` (`role_id`),
  934. KEY `menu_id` (`menu_id`),
  935. CONSTRAINT `sys_role_menu_ibfk_1` FOREIGN KEY (`role_id`) REFERENCES `sys_role` (`role_id`),
  936. CONSTRAINT `sys_role_menu_ibfk_2` FOREIGN KEY (`menu_id`) REFERENCES `sys_menu` (`menu_id`)
  937. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='角色和菜单关联表';
  938. /*Data for the table `sys_role_menu` */
  939. /*Table structure for table `sys_user_post` */
  940. DROP TABLE IF EXISTS `sys_user_post`;
  941. CREATE TABLE `sys_user_post` (
  942. `user_id` bigint(20) DEFAULT NULL COMMENT '用户ID',
  943. `post_id` bigint(20) DEFAULT NULL COMMENT '岗位ID',
  944. KEY `post_id` (`post_id`),
  945. KEY `user_id` (`user_id`),
  946. CONSTRAINT `sys_user_post_ibfk_1` FOREIGN KEY (`post_id`) REFERENCES `sys_post` (`post_id`),
  947. CONSTRAINT `sys_user_post_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `sys_users` (`user_id`)
  948. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='用户与岗位关联表';
  949. /*Data for the table `sys_user_post` */
  950. /*Table structure for table `sys_user_role` */
  951. DROP TABLE IF EXISTS `sys_user_role`;
  952. CREATE TABLE `sys_user_role` (
  953. `user_id` bigint(20) DEFAULT NULL COMMENT '用户ID',
  954. `role_id` bigint(20) DEFAULT NULL COMMENT '角色ID',
  955. KEY `user_id` (`user_id`),
  956. KEY `role_id` (`role_id`),
  957. CONSTRAINT `sys_user_role_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `sys_users` (`user_id`),
  958. CONSTRAINT `sys_user_role_ibfk_2` FOREIGN KEY (`role_id`) REFERENCES `sys_role` (`role_id`)
  959. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='用户和角色关联表';
  960. /*Data for the table `sys_user_role` */
  961. /*Table structure for table `sys_users` */
  962. DROP TABLE IF EXISTS `sys_users`;
  963. CREATE TABLE `sys_users` (
  964. `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  965. `dept_id` bigint(20) DEFAULT NULL COMMENT '部门ID',
  966. `user_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '用户账号',
  967. `nick_name` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '用户昵称',
  968. `user_type` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '用户类型(00系统用户)',
  969. `email` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '用户邮箱',
  970. `phonenumber` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '手机号码',
  971. `sex` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '用户性别(0男 1女 2未知)',
  972. `avatar` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '头像地址',
  973. `password` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '密码',
  974. `status` int(11) DEFAULT NULL COMMENT '帐号状态(0正常 1停用)',
  975. `del_flag` int(11) DEFAULT NULL COMMENT '删除',
  976. `login_ip` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '最后登录IP',
  977. `login_date` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '最后登录时间',
  978. `create_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '创建者',
  979. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  980. `update_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '更新者',
  981. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  982. `remark` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '备注',
  983. `source_id` varchar(36) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '记录统一认证原ID',
  984. PRIMARY KEY (`user_id`)
  985. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='用户信息表';
  986. /*Data for the table `sys_users` */
  987. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  988. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  989. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  990. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;