init_sql.sql 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795
  1. SET NAMES utf8mb4;
  2. SET FOREIGN_KEY_CHECKS = 0;
  3. -- ----------------------------
  4. -- 接口文件
  5. -- ----------------------------
  6. CREATE TABLE `magic_api_file` (
  7. `file_path` varchar(512) NOT NULL COMMENT '文件地址',
  8. `file_content` mediumtext COMMENT '文件内容',
  9. PRIMARY KEY (`file_path`)
  10. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT '接口文件'
  11. -- ----------------------------
  12. -- 接口文件备份
  13. -- ----------------------------
  14. CREATE TABLE `magic_backup_record` (
  15. `id` varchar(32) NOT NULL COMMENT '原对象ID',
  16. `create_date` bigint(13) NOT NULL COMMENT '备份时间',
  17. `tag` varchar(32) DEFAULT NULL COMMENT '标签',
  18. `type` varchar(32) DEFAULT NULL COMMENT '类型',
  19. `name` varchar(64) DEFAULT NULL COMMENT '原名称',
  20. `content` blob COMMENT '备份内容',
  21. `create_by` varchar(64) DEFAULT NULL COMMENT '操作人',
  22. PRIMARY KEY (`id`,`create_date`)
  23. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT '接口文件备份'
  24. -- ----------------------------
  25. -- 年级表
  26. -- ----------------------------
  27. DROP TABLE IF EXISTS `base_grade`;
  28. CREATE TABLE `base_grade` (
  29. `id` bigint NOT NULL COMMENT '主键',
  30. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  31. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  32. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  33. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  34. `delete_mark` int NOT NULL COMMENT '删除标记',
  35. `enabled_mark` int NOT NULL COMMENT '有效标志',
  36. `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '年级名称',
  37. `title` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '年份',
  38. PRIMARY KEY (`id`) USING BTREE
  39. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '年级表' ROW_FORMAT = Dynamic;
  40. -- ----------------------------
  41. -- 专业表
  42. -- ----------------------------
  43. DROP TABLE IF EXISTS `base_major`;
  44. CREATE TABLE `base_major` (
  45. `id` bigint NOT NULL COMMENT '主键',
  46. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  47. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  48. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  49. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  50. `delete_mark` int NOT NULL COMMENT '删除标记',
  51. `enabled_mark` int NOT NULL COMMENT '有效标志',
  52. `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '专业名称',
  53. `code` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '专业代码',
  54. `study_year` decimal(6, 1) NOT NULL COMMENT '修业年限(0.5的整数倍)',
  55. `key_major` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '重点专业(xjr_dictionary_item[key_major])',
  56. `feature_major` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '特色专业(xjr_dictionary_item[feature_major])',
  57. `approve_set_date` date NULL DEFAULT NULL COMMENT '批准设置日期',
  58. `first_recruit_student_date` date NULL DEFAULT NULL COMMENT '首次招生日期(年月)',
  59. `status` int NULL DEFAULT NULL COMMENT '专业状态(1:正常、2:停招、3:撤销)',
  60. `leader_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '专业带头人',
  61. `director_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '专业负责人',
  62. `office_start_date` date NULL DEFAULT NULL COMMENT '任职日期开始',
  63. `office_end_date` date NULL DEFAULT NULL COMMENT '任职日期结束',
  64. `is_full_time` int NULL DEFAULT NULL COMMENT '是否全日制',
  65. `major_gradation_id` bigint NOT NULL COMMENT '办学层次(base_major_gradation)',
  66. `major_categor_id` bigint NOT NULL COMMENT '专业分类(base_major_categor)',
  67. `department_id` bigint NOT NULL COMMENT '所属机构(xjr_department)',
  68. PRIMARY KEY (`id`) USING BTREE
  69. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '专业表' ROW_FORMAT = Dynamic;
  70. -- ----------------------------
  71. -- 专业分类表
  72. -- ----------------------------
  73. DROP TABLE IF EXISTS `base_major_categor`;
  74. CREATE TABLE `base_major_categor` (
  75. `id` bigint NOT NULL COMMENT '主键',
  76. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  77. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  78. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  79. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  80. `delete_mark` int NOT NULL COMMENT '删除标记',
  81. `enabled_mark` int NOT NULL COMMENT '有效标志',
  82. `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '专业分类名称',
  83. `code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '专业分类代码',
  84. `remark` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  85. `major_gradation_id` bigint NOT NULL COMMENT '办学层次(base_major_gradation)',
  86. PRIMARY KEY (`id`) USING BTREE
  87. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '专业分类表' ROW_FORMAT = Dynamic;
  88. -- ----------------------------
  89. -- 办学层次表
  90. -- ----------------------------
  91. DROP TABLE IF EXISTS `base_major_gradation`;
  92. CREATE TABLE `base_major_gradation` (
  93. `id` bigint NOT NULL COMMENT '主键',
  94. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  95. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  96. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  97. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  98. `delete_mark` int NOT NULL COMMENT '删除标记',
  99. `enabled_mark` int NOT NULL COMMENT '有效标志',
  100. `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '层次名称',
  101. `code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '层次代码',
  102. `school_level` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '所属职业教育层次(xjr_dictionary_item[school_level])',
  103. `remark` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  104. PRIMARY KEY (`id`) USING BTREE
  105. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '办学层次表' ROW_FORMAT = Dynamic;
  106. -- ----------------------------
  107. -- 专业方向表
  108. -- ----------------------------
  109. DROP TABLE IF EXISTS `base_major_set`;
  110. CREATE TABLE `base_major_set` (
  111. `id` bigint NOT NULL COMMENT '主键',
  112. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  113. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  114. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  115. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  116. `delete_mark` int NOT NULL COMMENT '删除标记',
  117. `enabled_mark` int NOT NULL COMMENT '有效标志',
  118. `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '专业方向名称',
  119. `code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '专业方向代码',
  120. `short_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '专业方向简称',
  121. `skill_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '上报专业技能方向名称',
  122. `remark` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '专业方向说明',
  123. `major_gradation_id` bigint NOT NULL COMMENT '办学层次(base_major_gradation)',
  124. `major_categor_id` bigint NOT NULL COMMENT '专业分类(base_major_categor)',
  125. `department_id` bigint NOT NULL COMMENT '所属机构(xjr_department)',
  126. `major_id` bigint NOT NULL COMMENT '专业(base_major)',
  127. `study_year` decimal(6, 1) NOT NULL COMMENT '适用学制(base_major)',
  128. PRIMARY KEY (`id`) USING BTREE
  129. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '专业方向表' ROW_FORMAT = Dynamic;
  130. -- ----------------------------
  131. -- 办学层次表
  132. -- ----------------------------
  133. DROP TABLE IF EXISTS `base_school_level`;
  134. CREATE TABLE `base_school_level` (
  135. `id` bigint NOT NULL COMMENT '主键',
  136. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  137. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  138. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  139. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  140. `delete_mark` int NOT NULL COMMENT '删除标记',
  141. `enabled_mark` int NOT NULL COMMENT '有效标志',
  142. `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '层次名称',
  143. PRIMARY KEY (`id`) USING BTREE
  144. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '办学层次表' ROW_FORMAT = Dynamic;
  145. -- ----------------------------
  146. -- 学期表
  147. -- ----------------------------
  148. DROP TABLE IF EXISTS `base_semester`;
  149. CREATE TABLE `base_semester` (
  150. `id` bigint NOT NULL COMMENT '主键',
  151. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  152. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  153. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  154. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  155. `delete_mark` int NOT NULL COMMENT '删除标记',
  156. `enabled_mark` int NOT NULL COMMENT '有效标志',
  157. `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '学期名称',
  158. `start_date` date NULL DEFAULT NULL COMMENT '学期开始日期',
  159. `end_date` date NULL DEFAULT NULL COMMENT '学期结束日期',
  160. `teaching_start` date NULL DEFAULT NULL COMMENT '教学开始日期',
  161. `teaching_end` date NULL DEFAULT NULL COMMENT '教学结束日期',
  162. PRIMARY KEY (`id`) USING BTREE
  163. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '学期表' ROW_FORMAT = Dynamic;
  164. -- ----------------------------
  165. -- 课程学科
  166. -- ----------------------------
  167. DROP TABLE IF EXISTS `base_course_subject`;
  168. CREATE TABLE `base_course_subject` (
  169. `id` bigint NOT NULL COMMENT '主键',
  170. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  171. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  172. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  173. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  174. `delete_mark` int NOT NULL COMMENT '删除标记',
  175. `enabled_mark` int NOT NULL COMMENT '有效标志',
  176. `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '课程学科名称',
  177. `code` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '课程学科代码',
  178. `remark` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  179. PRIMARY KEY (`id`) USING BTREE
  180. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '课程学科' ROW_FORMAT = Dynamic;
  181. -- ----------------------------
  182. -- 教职工基本信息表
  183. -- ----------------------------
  184. DROP TABLE IF EXISTS `base_teacher`;
  185. CREATE TABLE `base_teacher` (
  186. `id` bigint NOT NULL COMMENT '主键',
  187. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  188. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  189. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  190. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  191. `delete_mark` int NOT NULL COMMENT '删除标记',
  192. `enabled_mark` int NOT NULL COMMENT '有效标志',
  193. `user_id` bigint not null COMMENT '用户ID(xjr_user)',
  194. -- `job_number` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '工号',
  195. -- `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '姓名',
  196. `as_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '别名',
  197. `en_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '英文姓名',
  198. `py_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '姓名拼音',
  199. `former_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '曾用名',
  200. -- `gender` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '性别(xjr_dictionary_item[gender])',
  201. `job_state` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '在职状态(xjr_dictionary_item[job_state])',
  202. `credential_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '证件类型(xjr_dictionary_item[credential_type])',
  203. `credential_number` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '证件号码',
  204. `day_of_birth` date NULL DEFAULT NULL COMMENT '出生日期',
  205. `birth_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '生日类型(xjr_dictionary_item[date_type])',
  206. `nation` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '民族(xjr_dictionary_item[nation])',
  207. `blood_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '血型(xjr_dictionary_item[blood_type])',
  208. `health` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '健康状况(xjr_dictionary_item[health])',
  209. `marital_state` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '婚姻状况(xjr_dictionary_item[marital_state])',
  210. `political_state` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '政治面貌(xjr_dictionary_item[political_state])',
  211. `nationality` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '国籍地区(xjr_dictionary_item[nationality])',
  212. `chinese_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '港澳台侨外(xjr_dictionary_item[chinese_type])',
  213. `house_hold_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '户口类别(xjr_dictionary_item[house_hold_type])',
  214. `provinces` bigint NULL DEFAULT NULL COMMENT '省(xjr_area)',
  215. `city` bigint NULL DEFAULT NULL COMMENT '市(xjr_area)',
  216. `district` bigint NULL DEFAULT NULL COMMENT '区/县(xjr_area)',
  217. `house_hold_address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '户籍地址',
  218. `start_work_time` date NULL DEFAULT NULL COMMENT '参加工作年月',
  219. `join_time` date NULL DEFAULT NULL COMMENT '来校年月',
  220. `is_organized` smallint NULL DEFAULT NULL COMMENT '是否在编',
  221. `employ_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '聘用类型(xjr_dictionary_item[employ_type])',
  222. `employ_way` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '聘用方式(xjr_dictionary_item[employ_type])上级聘用类型',
  223. PRIMARY KEY (`id`) USING BTREE
  224. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '教职工基本信息表' ROW_FORMAT = Dynamic;
  225. -- ----------------------------
  226. -- 教职工聘用信息表 未定
  227. -- ----------------------------
  228. DROP TABLE IF EXISTS `base_teacher_employ`;
  229. CREATE TABLE `base_teacher_employ` (
  230. `id` bigint NOT NULL COMMENT '主键',
  231. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  232. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  233. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  234. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  235. `delete_mark` int NOT NULL COMMENT '删除标记',
  236. `enabled_mark` int NOT NULL COMMENT '有效标志',
  237. `user_id` bigint not null COMMENT '用户ID(xjr_user)',
  238. `type` int NULL COMMENT '岗位类型 (1:校内主岗 2:校内兼职岗位 3:事业制单位主岗)',
  239. `job_category` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '校内主岗位类别(xjr_dictionary_item[school_job_type])',
  240. `job_post` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '校内主岗位(xjr_dictionary_item[school_job_type])上级校内主岗位类别',
  241. `job_level` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '岗位等级(xjr_dictionary_item[school_job_level])',
  242. `job_level_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '岗位等级类型(xjr_dictionary_item[school_job_level_type])',
  243. PRIMARY KEY (`id`) USING BTREE
  244. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '教职工聘用信息表' ROW_FORMAT = Dynamic;
  245. -- ----------------------------
  246. -- 教职工联系信息表
  247. -- ----------------------------
  248. DROP TABLE IF EXISTS `base_teacher_contact`;
  249. CREATE TABLE `base_teacher_contact` (
  250. `id` bigint NOT NULL COMMENT '主键',
  251. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  252. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  253. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  254. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  255. `delete_mark` int NOT NULL COMMENT '删除标记',
  256. `enabled_mark` int NOT NULL COMMENT '有效标志',
  257. `user_id` bigint not null COMMENT '用户ID(xjr_user)',
  258. -- `mobile` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '手机号',
  259. `office_tel` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '办公室电话',
  260. `office_address` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '办公室地址',
  261. -- `email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '邮箱',
  262. `address` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '现住地址',
  263. `qq_msn` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT 'QQ&MSN',
  264. `wechat` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '微信号',
  265. `microblog` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '微博地址',
  266. `zip_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '住址邮编',
  267. PRIMARY KEY (`id`) USING BTREE
  268. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '教职工联系信息表' ROW_FORMAT = Dynamic;
  269. -- ----------------------------
  270. -- 教职工专任信息表
  271. -- ----------------------------
  272. DROP TABLE IF EXISTS `base_teacher_regular`;
  273. CREATE TABLE `base_teacher_regular` (
  274. `id` bigint NOT NULL COMMENT '主键',
  275. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  276. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  277. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  278. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  279. `delete_mark` int NOT NULL COMMENT '删除标记',
  280. `enabled_mark` int NOT NULL COMMENT '有效标志',
  281. `user_id` bigint not null COMMENT '用户ID(xjr_user)',
  282. `certificate_Type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '教师资格证种类(xjr_dictionary_item[certificate_Type])',
  283. `belong_org` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '所属系统(xjr_dictionary_item[belong_org])',
  284. `mandarin_level` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '普通话等级(xjr_dictionary_item[mandarin_level])',
  285. `start_teach_time` date NULL COMMENT '从教起始年月',
  286. `teaching_status` json NULL DEFAULT NULL COMMENT '任课状况(xjr_dictionary_item[teaching_status])多选',
  287. `major_categor_id` bigint NULL COMMENT '任教学科类别(base_major_categor)',
  288. `is_double_teacher` int NULL COMMENT '是否双师型教师',
  289. `course_subject_id` bigint NULL COMMENT '任教学科(base_course_subject)',
  290. PRIMARY KEY (`id`) USING BTREE
  291. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '教职工专任信息表' ROW_FORMAT = Dynamic;
  292. -- ----------------------------
  293. -- 教职工学历学位表
  294. -- ----------------------------
  295. DROP TABLE IF EXISTS `base_teacher_education`;
  296. CREATE TABLE `base_teacher_education` (
  297. `id` bigint NOT NULL COMMENT '主键',
  298. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  299. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  300. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  301. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  302. `delete_mark` int NOT NULL COMMENT '删除标记',
  303. `enabled_mark` int NOT NULL COMMENT '有效标志',
  304. `user_id` bigint not null COMMENT '用户ID(xjr_user)',
  305. `specialty` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '所学专业',
  306. `education` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '最高学历(xjr_dictionary_item[education])',
  307. `education_college` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '获得最高学历的院校',
  308. `degree` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '最高学位(xjr_dictionary_item[degree])',
  309. `degree_college` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '获得最高学位的院校',
  310. PRIMARY KEY (`id`) USING BTREE
  311. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '教职工学历学位表' ROW_FORMAT = Dynamic;
  312. -- ----------------------------
  313. -- 教职工家庭基本信息表
  314. -- ----------------------------
  315. DROP TABLE IF EXISTS `base_teacher_family`;
  316. CREATE TABLE `base_teacher_family` (
  317. `id` bigint NOT NULL COMMENT '主键',
  318. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  319. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  320. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  321. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  322. `delete_mark` int NOT NULL COMMENT '删除标记',
  323. `enabled_mark` int NOT NULL COMMENT '有效标志',
  324. `user_id` bigint not null COMMENT '用户ID(xjr_user)',
  325. `zip_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '家庭邮编',
  326. `telephone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '家庭电话',
  327. `contact` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '联系人姓名',
  328. `population` int NULL COMMENT '家庭人口',
  329. `address` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '家庭住址',
  330. `finance` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '家庭经济情况',
  331. PRIMARY KEY (`id`) USING BTREE
  332. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '教职工家庭基本信息表' ROW_FORMAT = Dynamic;
  333. -- ----------------------------
  334. -- 教职工家庭成员表
  335. -- ----------------------------
  336. DROP TABLE IF EXISTS `base_teacher_family_member`;
  337. CREATE TABLE `base_teacher_family_member` (
  338. `id` bigint NOT NULL COMMENT '主键',
  339. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  340. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  341. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  342. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  343. `delete_mark` int NOT NULL COMMENT '删除标记',
  344. `enabled_mark` int NOT NULL COMMENT '有效标志',
  345. `user_id` bigint not null COMMENT '用户ID(xjr_user)',
  346. `relationship` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '与本人关系(xjr_dictionary_item[relationship])',
  347. `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '姓名',
  348. `gender` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '性别(xjr_dictionary_item[gender])',
  349. `is_guardian` int NULL COMMENT '是否为监护人',
  350. `day_of_birth` date NULL DEFAULT NULL COMMENT '出生日期',
  351. `political_state` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '政治面貌(xjr_dictionary_item[political_state])',
  352. `occupation` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '职业',
  353. `work_unit` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '工作单位',
  354. `mobile` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '联系电话',
  355. PRIMARY KEY (`id`) USING BTREE
  356. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '教职工家庭成员表' ROW_FORMAT = Dynamic;
  357. -- ----------------------------
  358. -- 学生毕业中学表
  359. -- ----------------------------
  360. DROP TABLE IF EXISTS `base_graduate_school`;
  361. CREATE TABLE `base_graduate_school` (
  362. `id` bigint NOT NULL COMMENT '主键',
  363. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  364. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  365. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  366. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  367. `delete_mark` int NOT NULL COMMENT '删除标记',
  368. `enabled_mark` int NOT NULL COMMENT '有效标志',
  369. `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '学校名称',
  370. PRIMARY KEY (`id`) USING BTREE
  371. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '学生毕业中学表' ROW_FORMAT = Dynamic;
  372. -- ----------------------------
  373. -- 学生基本信息表
  374. -- ----------------------------
  375. DROP TABLE IF EXISTS `base_student`;
  376. CREATE TABLE `base_student` (
  377. `id` bigint NOT NULL COMMENT '主键',
  378. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  379. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  380. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  381. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  382. `delete_mark` int NOT NULL COMMENT '删除标记',
  383. `enabled_mark` int NOT NULL COMMENT '有效标志',
  384. `user_id` bigint not null COMMENT '用户(xjr_user)',
  385. `student_id` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '学号',
  386. -- `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '姓名',
  387. `as_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '别名',
  388. `en_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '英文姓名',
  389. `py_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '姓名拼音',
  390. `former_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '曾用名',
  391. -- `gender` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '性别(xjr_dictionary_item[gender])',
  392. `credential_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '证件类型(xjr_dictionary_item[credential_type])',
  393. `credential_number` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '证件号码',
  394. `day_of_birth` date NULL DEFAULT NULL COMMENT '出生日期',
  395. `birth_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '生日类型(xjr_dictionary_item[date_type])',
  396. `nation` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '民族(xjr_dictionary_item[nation])',
  397. `blood_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '血型(xjr_dictionary_item[blood_type])',
  398. `health` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '健康状况(xjr_dictionary_item[health])',
  399. `marital_state` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '婚姻状况(xjr_dictionary_item[marital_state])',
  400. `political_state` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '政治面貌(xjr_dictionary_item[political_state])',
  401. `religion` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '信仰宗教(xjr_dictionary_item[religion])',
  402. `nationality` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '国籍地区(xjr_dictionary_item[nationality])',
  403. `chinese_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '港澳台侨外(xjr_dictionary_item[chinese_type])',
  404. `provinces` bigint NULL DEFAULT NULL COMMENT '籍贯 省(xjr_area)',
  405. `city` bigint NULL DEFAULT NULL COMMENT '籍贯 市(xjr_area)',
  406. `district` bigint NULL DEFAULT NULL COMMENT '籍贯 区/县(xjr_area)',
  407. `house_hold_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '户口类别(xjr_dictionary_item[house_hold_type])',
  408. `house_provinces` bigint NULL DEFAULT NULL COMMENT '户口所在地 省(xjr_area)',
  409. `house_city` bigint NULL DEFAULT NULL COMMENT '户口所在地 市(xjr_area)',
  410. `house_district` bigint NULL DEFAULT NULL COMMENT '户口所在地 区/县(xjr_area)',
  411. `house_hold_address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '户口所在详细地址',
  412. `belongs_police` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '所属派出所',
  413. `birth_provinces` bigint NULL DEFAULT NULL COMMENT '出生地 省(xjr_area)',
  414. `birth_city` bigint NULL DEFAULT NULL COMMENT '出生地 市(xjr_area)',
  415. `birth_district` bigint NULL DEFAULT NULL COMMENT '出生地 区/县(xjr_area)',
  416. `graduate_school_id` bigint null COMMENT '生源地(base_graduate_school)',
  417. `residence_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '学生居住地类型(xjr_dictionary_item[residence_type])',
  418. `is_migrate_children` smallint NULL DEFAULT NULL COMMENT '是否随迁子女',
  419. `train_interval` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '乘火车区间',
  420. `is_floating_population` smallint NULL DEFAULT NULL COMMENT '是否流动人口',
  421. `height` decimal(6, 1) NULL DEFAULT NULL COMMENT '身高(cm)',
  422. `weight` decimal(6, 1) NULL DEFAULT NULL COMMENT '体重(kg)',
  423. `vision` decimal(6, 1) NULL DEFAULT NULL COMMENT '视力',
  424. `specialty` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '特长',
  425. PRIMARY KEY (`id`) USING BTREE
  426. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '学生基本信息表' ROW_FORMAT = Dynamic;
  427. -- ----------------------------
  428. -- 学生学籍信息表
  429. -- ----------------------------
  430. DROP TABLE IF EXISTS `base_student_school_roll`;
  431. CREATE TABLE `base_student_school_roll` (
  432. `id` bigint NOT NULL COMMENT '主键',
  433. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  434. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  435. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  436. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  437. `delete_mark` int NOT NULL COMMENT '删除标记',
  438. `enabled_mark` int NOT NULL COMMENT '有效标志',
  439. `user_id` bigint not null COMMENT '用户ID(xjr_user)',
  440. `roll_number` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '学籍号',
  441. `archives_number` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '学生档案编号',
  442. `enrollment_date` date NULL DEFAULT NULL COMMENT '入学年月',
  443. `enrollment_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '入学方式(xjr_dictionary_item[enrollment_type])',
  444. `grade_id` bigint NOT NULL COMMENT '入学年级(base_grade)',
  445. `enroll_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '入学招生类型(xjr_dictionary_item[enroll_type])',
  446. `major_set_id` bigint NOT NULL COMMENT '在读专业方向(base_major_set)',
  447. `study_year` decimal(6, 1) NOT NULL COMMENT '学制(base_major_set)',
  448. `class_id` bigint NOT NULL COMMENT '班级(base_class)',
  449. `student_source` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '学生来源(xjr_dictionary_item[student_type])',
  450. `student_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '学生类别(xjr_dictionary_item[student_type])',
  451. `archives_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '学籍状态(xjr_dictionary_item[archives_status])',
  452. `stduy_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '就读方式(xjr_dictionary_item[stduy_status])',
  453. `learn_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '学习形式(xjr_dictionary_item[learn_status])',
  454. `choose_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '分流状态(xjr_dictionary_item[choose_status])',
  455. `foster_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '分段培养方式(xjr_dictionary_item[foster_type])',
  456. `recruit_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '招生方式(xjr_dictionary_item[recruit_type])',
  457. `recruit_target` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '招生对象(xjr_dictionary_item[recruit_target])',
  458. `highest_education` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '入学前最高学历(xjr_dictionary_item[education])',
  459. `graduated_university` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '毕业学校',
  460. `graduated_score` decimal(6, 1) NULL COMMENT '毕业成绩',
  461. `examinee_number` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '考生号',
  462. `ticket_number` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '准考证号',
  463. `admission_scores` decimal(6, 1) NULL DEFAULT 0 COMMENT '入学总分',
  464. `remark` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  465. PRIMARY KEY (`id`) USING BTREE
  466. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '学生学籍信息表' ROW_FORMAT = Dynamic;
  467. -- ----------------------------
  468. -- 学生资助信息表
  469. -- ----------------------------
  470. DROP TABLE IF EXISTS `base_student_subsidize`;
  471. CREATE TABLE `base_student_subsidize` (
  472. `id` bigint NOT NULL COMMENT '主键',
  473. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  474. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  475. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  476. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  477. `delete_mark` int NOT NULL COMMENT '删除标记',
  478. `enabled_mark` int NOT NULL COMMENT '有效标志',
  479. `user_id` bigint not null COMMENT '用户ID(xjr_user)',
  480. `is_indemnify` smallint NULL DEFAULT NULL COMMENT '是否低保',
  481. `is_stipend` smallint NULL DEFAULT NULL COMMENT '是否享受国家助学金',
  482. `stipend_stand` decimal(6, 1) NULL DEFAULT 0 COMMENT '助学金发放标准(元)',
  483. `stipend_number` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '学生资助卡号',
  484. `is_free` smallint NULL DEFAULT NULL COMMENT '是否免学费',
  485. `is_filing_card` smallint NULL DEFAULT NULL COMMENT '是否建档立卡',
  486. PRIMARY KEY (`id`) USING BTREE
  487. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '学生资助信息表' ROW_FORMAT = Dynamic;
  488. -- ----------------------------
  489. -- 学生联系信息表
  490. -- ----------------------------
  491. DROP TABLE IF EXISTS `base_student_contact`;
  492. CREATE TABLE `base_student_contact` (
  493. `id` bigint NOT NULL COMMENT '主键',
  494. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  495. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  496. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  497. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  498. `delete_mark` int NOT NULL COMMENT '删除标记',
  499. `enabled_mark` int NOT NULL COMMENT '有效标志',
  500. `user_id` bigint not null COMMENT '用户ID(xjr_user)',
  501. -- `mobile` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '手机号',
  502. -- `email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '邮箱',
  503. `qq_msn` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT 'QQ&MSN',
  504. `wechat` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '微信号',
  505. `user_page` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '个人主页',
  506. PRIMARY KEY (`id`) USING BTREE
  507. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '学生联系信息表' ROW_FORMAT = Dynamic;
  508. -- ----------------------------
  509. -- 学生家庭基本信息表
  510. -- ----------------------------
  511. DROP TABLE IF EXISTS `base_student_family`;
  512. CREATE TABLE `base_student_family` (
  513. `id` bigint NOT NULL COMMENT '主键',
  514. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  515. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  516. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  517. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  518. `delete_mark` int NOT NULL COMMENT '删除标记',
  519. `enabled_mark` int NOT NULL COMMENT '有效标志',
  520. `user_id` bigint not null COMMENT '用户ID(xjr_user)',
  521. `zip_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '家庭邮编',
  522. `telephone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '家庭电话',
  523. `contact` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '联系人姓名',
  524. `population` int NULL COMMENT '家庭人口',
  525. `address` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '家庭住址',
  526. `income_source` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '家庭主要收入来源',
  527. `income_number` decimal(6, 1) NULL DEFAULT 0 COMMENT '家庭月收入金额',
  528. `railway_station` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '离家最近火车站',
  529. PRIMARY KEY (`id`) USING BTREE
  530. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '学生家庭基本信息表' ROW_FORMAT = Dynamic;
  531. -- ----------------------------
  532. -- 学生家庭成员表
  533. -- ----------------------------
  534. DROP TABLE IF EXISTS `base_student_family_member`;
  535. CREATE TABLE `base_student_family_member` (
  536. `id` bigint NOT NULL COMMENT '主键',
  537. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  538. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  539. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  540. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  541. `delete_mark` int NOT NULL COMMENT '删除标记',
  542. `enabled_mark` int NOT NULL COMMENT '有效标志',
  543. `user_id` bigint not null COMMENT '用户ID(xjr_user)',
  544. `relationship` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '与本人关系(xjr_dictionary_item[relationship])',
  545. `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '姓名',
  546. `gender` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '性别(xjr_dictionary_item[gender])',
  547. `day_of_birth` date NULL DEFAULT NULL COMMENT '出生日期',
  548. `birth_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '生日类型(xjr_dictionary_item[date_type])',
  549. `nation` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '民族(xjr_dictionary_item[nation])',
  550. `work_unit` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '工作单位',
  551. `occupation` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '从事的工作(职业)',
  552. `position` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '职务',
  553. `mobile` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '联系电话',
  554. `is_guardian` smallint NULL COMMENT '是否为监护人',
  555. `credential_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '证件类型(xjr_dictionary_item[credential_type])',
  556. `credential_number` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '证件号码',
  557. `political_state` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '政治面貌(xjr_dictionary_item[political_state])',
  558. `health` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '健康状况(xjr_dictionary_item[health])',
  559. `house_provinces` bigint NULL DEFAULT NULL COMMENT '户口所在地 省(xjr_area)',
  560. `house_city` bigint NULL DEFAULT NULL COMMENT '户口所在地 市(xjr_area)',
  561. `house_district` bigint NULL DEFAULT NULL COMMENT '户口所在地 区/县(xjr_area)',
  562. `email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '邮箱',
  563. `wechat` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '微信号',
  564. PRIMARY KEY (`id`) USING BTREE
  565. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '学生家庭成员表' ROW_FORMAT = Dynamic;
  566. -- ----------------------------
  567. -- 教学办公楼表
  568. -- ----------------------------
  569. DROP TABLE IF EXISTS `base_office_build`;
  570. CREATE TABLE `base_office_build` (
  571. `id` bigint NOT NULL COMMENT '主键',
  572. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  573. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  574. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  575. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  576. `delete_mark` int NOT NULL COMMENT '删除标记',
  577. `enabled_mark` int NOT NULL COMMENT '有效标志',
  578. `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '楼栋名称',
  579. `org_id` bigint NOT NULL COMMENT '所属校区(xjr_department)第一级',
  580. `floor_total` int NOT NULL COMMENT '楼层数',
  581. `build_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '楼栋类型(xjr_dictionary_item[build_type])',
  582. `status` int NOT NULL COMMENT '状态(1:可用 0:停用)',
  583. `address` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '地址',
  584. `remark` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '描述',
  585. PRIMARY KEY (`id`) USING BTREE
  586. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '教学办公楼表' ROW_FORMAT = Dynamic;
  587. -- ----------------------------
  588. -- 教室表
  589. -- ----------------------------
  590. DROP TABLE IF EXISTS `base_classroom`;
  591. CREATE TABLE `base_classroom` (
  592. `id` bigint NOT NULL COMMENT '主键',
  593. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  594. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  595. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  596. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  597. `delete_mark` int NOT NULL COMMENT '删除标记',
  598. `enabled_mark` int NOT NULL COMMENT '有效标志',
  599. `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '教室名称',
  600. `office_build_id` bigint NOT NULL COMMENT '楼栋(base_office_build)',
  601. `floor_num` int NOT NULL COMMENT '楼层',
  602. `purpose` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '教室用途(xjr_dictionary_item[purpose])',
  603. `classroom_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '教室类型(xjr_dictionary_item[classroom_type])',
  604. `org_id` bigint NOT NULL COMMENT '组织机构(xjr_department)',
  605. `square` decimal(6, 1) DEFAULT NULL COMMENT '面积(平米)',
  606. `capacity` decimal(6, 1) DEFAULT NULL COMMENT '容量(人数)',
  607. `status` int NOT NULL COMMENT '状态(1:可用 0:停用)',
  608. PRIMARY KEY (`id`) USING BTREE
  609. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '教室表' ROW_FORMAT = Dynamic;
  610. -- ----------------------------
  611. -- 班级表
  612. -- ----------------------------
  613. DROP TABLE IF EXISTS `base_class`;
  614. CREATE TABLE `base_class` (
  615. `id` bigint NOT NULL COMMENT '主键',
  616. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  617. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  618. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  619. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  620. `delete_mark` int NOT NULL COMMENT '删除标记',
  621. `enabled_mark` int NOT NULL COMMENT '有效标志',
  622. `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '班级名称',
  623. `code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '班级代码',
  624. `grade_id` bigint NOT NULL COMMENT '所属年级(base_grade)',
  625. `enroll_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '招生类型(xjr_dictionary_item[enroll_type])',
  626. `org_id` bigint NOT NULL COMMENT '组织机构(xjr_department)',
  627. `is_order_class` int DEFAULT NULL COMMENT '是否订单班',
  628. `classroom_id` bigint DEFAULT NULL COMMENT '固定教室(base_classroom)',
  629. `teacher_id` bigint DEFAULT NULL COMMENT '班主任(xjr_user)',
  630. `is_graduate` int DEFAULT NULL COMMENT '在读状态(1: 在读 2: 毕业)',
  631. PRIMARY KEY (`id`) USING BTREE
  632. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '班级表' ROW_FORMAT = Dynamic;
  633. -- ----------------------------
  634. -- 班级专业方向表
  635. -- ----------------------------
  636. DROP TABLE IF EXISTS `base_class_major_set`;
  637. CREATE TABLE `base_class_major_set` (
  638. `id` bigint NOT NULL COMMENT '主键',
  639. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  640. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  641. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  642. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  643. `delete_mark` int NOT NULL COMMENT '删除标记',
  644. `enabled_mark` int NOT NULL COMMENT '有效标志',
  645. `class_id` bigint NOT NULL COMMENT '班级(base_class_major_set)',
  646. `major_set_id` bigint NOT NULL COMMENT '专业方向(base_major_set)',
  647. `plan_total_student` int DEFAULT NULL COMMENT '计划人数',
  648. `total_student` int DEFAULT NULL COMMENT '班级人数',
  649. `boy_num` int DEFAULT NULL COMMENT '男生人数',
  650. `girl_num` int DEFAULT NULL COMMENT '女生人数',
  651. PRIMARY KEY (`id`) USING BTREE
  652. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '班级专业方向表' ROW_FORMAT = Dynamic;
  653. -- ----------------------------
  654. -- 车辆管理
  655. -- ----------------------------
  656. DROP TABLE IF EXISTS `base_car_management`;
  657. CREATE TABLE `base_car_management` (
  658. `id` bigint NOT NULL COMMENT '主键',
  659. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  660. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  661. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  662. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  663. `delete_mark` int NOT NULL COMMENT '删除标记',
  664. `enabled_mark` int NOT NULL COMMENT '有效标志',
  665. `user_id` bigint COMMENT '用户(xjr_user)',
  666. `car_no` varchar(9) not null COMMENT '车牌号码',
  667. `c_name` varchar(20) COMMENT '姓名',
  668. `c_id` varchar(18) COMMENT '身份证号',
  669. `c_phone` varchar(50) COMMENT '联系电话',
  670. `c_address` varchar(50) COMMENT '住址',
  671. `c_type` int not null default 1 COMMENT '车牌类型 1=民用 2=军队 3=警用 4=武警',
  672. `c_fee_type` int not null default 1 COMMENT '收费类型 1=月卡 2=临时车 3=免费车 4=储值卡',
  673. `sync_status` tinyint(4) unsigned default 1 not null COMMENT '数据同步状态 1=未同步 2=已同步 3=同步失败',
  674. `status` tinyint(4) unsigned default 1 not null COMMENT '状态 1=启用 2=禁用',
  675. `c_sync_id` int default 0 not null COMMENT '数据同步编号',
  676. `c_start_time` datetime not null COMMENT '开始时间',
  677. `c_end_time` datetime not null COMMENT '结束时间',
  678. PRIMARY KEY (`id`) USING BTREE,
  679. unique key `only`(`car_no`)
  680. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '车辆管理' ROW_FORMAT = Dynamic;
  681. -- ----------------------------
  682. -- 车辆进出记录
  683. -- ----------------------------
  684. DROP TABLE IF EXISTS `base_car_park_records`;
  685. CREATE TABLE `base_car_park_records` (
  686. `id` bigint NOT NULL COMMENT '主键',
  687. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  688. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  689. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  690. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  691. `delete_mark` int NOT NULL COMMENT '删除标记',
  692. `enabled_mark` int NOT NULL COMMENT '有效标志',
  693. `base_car_management_id` bigint COMMENT '车辆编号(base_car_management)',
  694. `car_no` varchar(9) not null COMMENT '车牌号码',
  695. `in_time` datetime not null COMMENT '进场时间',
  696. `out_time` datetime COMMENT '出场时间',
  697. `status` tinyint(4) unsigned default 1 not null COMMENT '状态 1=进 2=出',
  698. `in_passing` tinyint(4) unsigned default 0 not null COMMENT '进类型 0=识别过车 1=人工处置',
  699. `out_passing` tinyint(4) unsigned default 0 not null COMMENT '出类型 0=识别过车 1=人工处置',
  700. `remark` varchar(500) COMMENT '备注',
  701. `c_sync_id` int default 0 not null COMMENT '数据同步编号',
  702. PRIMARY KEY (`id`) USING BTREE
  703. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '车辆进出记录' ROW_FORMAT = Dynamic;
  704. -- ----------------------------
  705. -- 人脸管理
  706. -- ----------------------------
  707. DROP TABLE IF EXISTS `base_face_management`;
  708. CREATE TABLE `base_face_management` (
  709. `id` bigint NOT NULL COMMENT '主键',
  710. `create_user_id` bigint NULL DEFAULT NULL COMMENT '创建人',
  711. `create_date` date NULL DEFAULT NULL COMMENT '创建时间',
  712. `modify_user_id` bigint NULL DEFAULT NULL COMMENT '修改人',
  713. `modify_date` date NULL DEFAULT NULL COMMENT '修改时间',
  714. `delete_mark` int NOT NULL COMMENT '删除标记',
  715. `enabled_mark` int NOT NULL COMMENT '有效标志',
  716. `user_id` bigint COMMENT '用户(xjr_user)',
  717. `face_code` varchar(50) not null default '' COMMENT '人脸编码',
  718. `name` varchar(50) not null default '' COMMENT '姓名',
  719. `sex` varchar(10) not null default '' COMMENT '性别 男, 女',
  720. `idno` varchar(20) not null default '' COMMENT '身份证号',
  721. `people_start_date` datetime COMMENT '名单有效期开始时间',
  722. `people_end_date` datetime COMMENT '名单有效期结束时间',
  723. `icno` varchar(20) not null default '' COMMENT ' ic卡号(10位10进制)',
  724. `register_base64` mediumblob COMMENT '图片的base64字符串',
  725. `verify_status` tinyint(4) unsigned default 1 not null COMMENT '验证状态 1=未验证 2=通过 3=失败',
  726. `verify_error_msg` varchar(200) not null default '' COMMENT '验证失败说明',
  727. `sync_status` tinyint(4) unsigned default 1 not null COMMENT '数据同步状态 1=未同步 2=已同步 3=同步失败',
  728. `status` tinyint(4) unsigned default 1 not null COMMENT '状态 1=启用 2=禁用',
  729. PRIMARY KEY (`id`) USING BTREE
  730. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '人脸管理' ROW_FORMAT = Dynamic;
  731. -- ----------------------------
  732. -- 人脸识别记录
  733. -- ----------------------------
  734. DROP TABLE IF EXISTS `base_face_identify_records`;
  735. CREATE TABLE `base_face_identify_records` (
  736. `id` bigint NOT NULL COMMENT '主键',
  737. `mac_addr` varchar(100) COMMENT '设备唯一标识码',
  738. `verify_time` datetime COMMENT '比对时间 yyyy -MM - dd HH:mm:ss',
  739. `device_name` varchar(100) COMMENT '设备名称',
  740. `location` varchar(100) COMMENT '安装位置',
  741. `inout_direction` tinyint(4) unsigned COMMENT '出入 0=出口 1=入口',
  742. `face_code` varchar(50) not null default '' COMMENT '人脸编码',
  743. `name` varchar(50) COMMENT '姓名',
  744. `temperature` varchar(50) COMMENT '体温',
  745. `face_base64` text COMMENT '比对抓拍照片 base64位字符串',
  746. `result_status` tinyint(4) unsigned COMMENT '比对结果 1=比对成功 0=比对失败',
  747. `identify_type` tinyint(4) unsigned COMMENT '识别方式(比对类型):0人脸识别, 1 黑名单识别(预留字段),2人证比对, 3 IC卡识别',
  748. `face_identify_sync_id` int default 0 not null COMMENT '数据同步编号',
  749. PRIMARY KEY (`id`) USING BTREE,
  750. unique index index_no(face_identify_sync_id)
  751. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '人脸识别记录' ROW_FORMAT = Dynamic;
  752. SET FOREIGN_KEY_CHECKS = 1;