初始化脚本.sql 126 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : localhost_3306
  4. Source Server Type : MySQL
  5. Source Server Version : 80026 (8.0.26)
  6. Source Host : localhost:3306
  7. Source Schema : eitc_bak
  8. Target Server Type : MySQL
  9. Target Server Version : 80026 (8.0.26)
  10. File Encoding : 65001
  11. Date: 09/08/2024 14:59:30
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for erm_app_user
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `erm_app_user`;
  19. CREATE TABLE `erm_app_user` (
  20. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  21. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  22. `create_date` datetime NOT NULL COMMENT '创建时间',
  23. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  24. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  25. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  26. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  27. `phone_number` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '手机号码',
  28. `password` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '密码',
  29. `avatar` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '头像地址',
  30. `identification_card` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '身份证号',
  31. PRIMARY KEY (`id`) USING BTREE,
  32. UNIQUE INDEX `phone_number_idx`(`is_del` ASC, `phone_number` ASC) USING BTREE
  33. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'APP端-用户表' ROW_FORMAT = DYNAMIC;
  34. -- ----------------------------
  35. -- Records of erm_app_user
  36. -- ----------------------------
  37. -- ----------------------------
  38. -- Table structure for erm_app_user_patients
  39. -- ----------------------------
  40. DROP TABLE IF EXISTS `erm_app_user_patients`;
  41. CREATE TABLE `erm_app_user_patients` (
  42. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  43. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  44. `create_date` datetime NOT NULL COMMENT '创建时间',
  45. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  46. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  47. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  48. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  49. `app_user_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'app端用户id',
  50. `patient_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '患者id',
  51. `relationship` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关系(朋友、父母)',
  52. `is_default` int NULL DEFAULT 0 COMMENT '是否默认(1默认,0不是默认)',
  53. PRIMARY KEY (`id`) USING BTREE
  54. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '患者与app用户关联表' ROW_FORMAT = DYNAMIC;
  55. -- ----------------------------
  56. -- Records of erm_app_user_patients
  57. -- ----------------------------
  58. -- ----------------------------
  59. -- Table structure for erm_appointment_project
  60. -- ----------------------------
  61. DROP TABLE IF EXISTS `erm_appointment_project`;
  62. CREATE TABLE `erm_appointment_project` (
  63. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  64. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  65. `create_date` datetime NOT NULL COMMENT '创建时间',
  66. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  67. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  68. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  69. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  70. `parent_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '父级id',
  71. `appointment_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '项目名称',
  72. `type` int NOT NULL COMMENT '类型(1目录,2项目)',
  73. PRIMARY KEY (`id`) USING BTREE,
  74. UNIQUE INDEX `idx_appointment_name`(`parent_id` ASC, `appointment_name` ASC, `is_del` ASC) USING BTREE
  75. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '预约项目' ROW_FORMAT = DYNAMIC;
  76. -- ----------------------------
  77. -- Records of erm_appointment_project
  78. -- ----------------------------
  79. -- ----------------------------
  80. -- Table structure for erm_business_dict_data
  81. -- ----------------------------
  82. DROP TABLE IF EXISTS `erm_business_dict_data`;
  83. CREATE TABLE `erm_business_dict_data` (
  84. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'id',
  85. `dict_sort` int NULL DEFAULT 0 COMMENT '字典排序',
  86. `dict_status` int NULL DEFAULT NULL COMMENT '字典状态(0关闭,1开启)',
  87. `dict_value` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典键值',
  88. `dict_type` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典类型',
  89. `dict_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '字典名称',
  90. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  91. `create_date` datetime NOT NULL COMMENT '创建时间',
  92. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  93. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  94. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  95. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  96. PRIMARY KEY (`id`) USING BTREE,
  97. INDEX `id_idx`(`dict_value` ASC, `dict_type` ASC, `dict_name` ASC, `is_del` ASC) USING BTREE
  98. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '字典数据表' ROW_FORMAT = DYNAMIC;
  99. -- ----------------------------
  100. -- Records of erm_business_dict_data
  101. -- ----------------------------
  102. INSERT INTO `erm_business_dict_data` VALUES ('118', 0, 1, '1', 'erm_marriage', '未婚', 0, '2024-06-24 15:42:11', '1', NULL, NULL, '000000');
  103. INSERT INTO `erm_business_dict_data` VALUES ('119', 1, 1, '2', 'erm_marriage', '已婚', 0, '2024-06-24 15:42:11', '1', NULL, NULL, '000000');
  104. INSERT INTO `erm_business_dict_data` VALUES ('120', 2, 1, '3', 'erm_marriage', '丧偶', 0, '2024-06-24 15:42:11', '1', NULL, NULL, '000000');
  105. INSERT INTO `erm_business_dict_data` VALUES ('121', 3, 1, '4', 'erm_marriage', '离婚', 0, '2024-06-24 15:42:11', '1', NULL, NULL, '000000');
  106. INSERT INTO `erm_business_dict_data` VALUES ('122', 0, 1, '1', 'erm_patient_source', '朋友介绍', 0, '2024-06-24 15:42:11', '1', NULL, NULL, '000000');
  107. INSERT INTO `erm_business_dict_data` VALUES ('123', 1, 1, '2', 'erm_patient_source', '自进门店', 0, '2024-06-24 15:42:11', '1', NULL, NULL, '000000');
  108. INSERT INTO `erm_business_dict_data` VALUES ('135', 0, 1, '本人', 'erm_personal_relationship', '本人', 0, '2024-06-24 00:00:00', '1', '2024-06-25 11:33:44', 'admin', '000000');
  109. INSERT INTO `erm_business_dict_data` VALUES ('136', 1, 1, '子女', 'erm_personal_relationship', '子女', 0, '2024-06-24 15:42:11', '1', NULL, NULL, '000000');
  110. INSERT INTO `erm_business_dict_data` VALUES ('137', 2, 1, '夫妻', 'erm_personal_relationship', '夫妻', 0, '2024-06-24 15:42:11', '1', NULL, NULL, '000000');
  111. INSERT INTO `erm_business_dict_data` VALUES ('138', 3, 1, '父母', 'erm_personal_relationship', '父母', 0, '2024-06-24 15:42:11', '1', NULL, NULL, '000000');
  112. INSERT INTO `erm_business_dict_data` VALUES ('139', 4, 1, '朋友', 'erm_personal_relationship', '朋友', 0, '2024-06-24 15:42:11', '1', NULL, NULL, '000000');
  113. INSERT INTO `erm_business_dict_data` VALUES ('168', 0, 1, '标签', 'erm_doctor_tags', '标签', 0, '2024-06-24 15:42:11', '1', NULL, NULL, '000000');
  114. INSERT INTO `erm_business_dict_data` VALUES ('182fb30f8496a6dd9a22c240b9e0dbab', 2, 1, '1', 'erm_class_settings', '正常', 0, '2024-07-02 10:45:24', 'admin', '2024-07-02 10:45:24', 'admin', '000000');
  115. INSERT INTO `erm_business_dict_data` VALUES ('434ff314fcc4005dbbcc5b2dd2ebe5d4', 1, 1, '回访内容', 'erm_follow_up_content', '回访内容', 0, '2024-06-25 13:54:56', 'admin', '2024-06-25 13:54:56', 'admin', '000000');
  116. INSERT INTO `erm_business_dict_data` VALUES ('45b6e888cf35ed50f5302bfba47cefd7', 1, 1, '台', 'erm_unit_settings', '台', 0, '2024-06-25 13:55:47', 'admin', '2024-06-25 13:55:47', 'admin', '000000');
  117. INSERT INTO `erm_business_dict_data` VALUES ('518a29c2e21b34870e6fad62851ede33', 0, 1, '无', 'erm_past_history', '无', 0, '2024-07-30 15:00:25', 'admin', '2024-07-30 15:00:25', 'admin', '000000');
  118. INSERT INTO `erm_business_dict_data` VALUES ('5ab868a08ad1a1ae771208859f563f52', 1, 1, '半次', 'erm_class_settings', '半次', 0, '2024-06-25 08:00:00', 'admin', '2024-06-25 08:00:00', 'admin', '000000');
  119. INSERT INTO `erm_business_dict_data` VALUES ('61b6bc19bbff3561557756b554e48bdd', 0, 1, '无', 'erm_family_history', '无', 0, '2024-07-30 14:59:55', 'admin', '2024-07-30 14:59:55', 'admin', '000000');
  120. INSERT INTO `erm_business_dict_data` VALUES ('8e80aeff66578a46248b18fbfe4b2815', 1, 1, '回访结果', 'erm_follow_up_results', '回访结果', 0, '2024-06-25 13:55:11', 'admin', '2024-06-25 13:55:11', 'admin', '000000');
  121. INSERT INTO `erm_business_dict_data` VALUES ('bc453e86f7e3fea85ae976c8261daf25', 1, 1, '1', 'erm_follow_up_type', '回访类型', 0, '2024-06-25 13:54:35', 'admin', '2024-06-25 13:54:35', 'admin', '000000');
  122. -- ----------------------------
  123. -- Table structure for erm_chat_disease
  124. -- ----------------------------
  125. DROP TABLE IF EXISTS `erm_chat_disease`;
  126. CREATE TABLE `erm_chat_disease` (
  127. `id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键id',
  128. `is_del` int NOT NULL DEFAULT 0 COMMENT '是否删除',
  129. `create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
  130. `create_user` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人\r\n',
  131. `update_date` datetime NULL DEFAULT NULL COMMENT '修改时间',
  132. `update_user` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '修改人',
  133. `tenant_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '租户',
  134. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '问诊人姓名',
  135. `age` int NULL DEFAULT NULL COMMENT '问诊人年龄',
  136. `sex` int NULL DEFAULT NULL COMMENT '性别',
  137. `docker` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '医生',
  138. `resource` varchar(3000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '病情资料',
  139. `patient_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '患者id',
  140. PRIMARY KEY (`id`) USING BTREE
  141. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '聊天记录资料卡片' ROW_FORMAT = DYNAMIC;
  142. -- ----------------------------
  143. -- Records of erm_chat_disease
  144. -- ----------------------------
  145. INSERT INTO `erm_chat_disease` VALUES ('11301448fb4831f99a25f9be242a1604', 0, '2024-07-30 17:28:29', 'f3841896f0d63362f6276eee04bf0f76', '2024-08-02 17:12:05', 'f3841896f0d63362f6276eee04bf0f76', NULL, '悦悦', 2, 0, '小刘', '产品测试', '9d89756caa702636640cdc8ef4a6080d');
  146. INSERT INTO `erm_chat_disease` VALUES ('3dbc33c09f25e0ae31e32247f7cd5429', 0, '2024-08-02 13:39:02', 'f3841896f0d63362f6276eee04bf0f76', '2024-08-05 15:03:47', 'f3841896f0d63362f6276eee04bf0f76', NULL, '丹丹', 4, 0, '刘一', '日日日', '8b97633b0592a4d940b33316c0eef171');
  147. INSERT INTO `erm_chat_disease` VALUES ('62506a55f1c298eb5e2f5d30cd59182e', 0, '2024-07-30 10:41:03', 'f3841896f0d63362f6276eee04bf0f76', '2024-07-30 10:41:03', 'f3841896f0d63362f6276eee04bf0f76', NULL, '李帅', 2, 0, '刘一', '嘎嘎嘎', '4f3f21fe132af34fd5774ef9a105676e');
  148. INSERT INTO `erm_chat_disease` VALUES ('fe9ec3149bcb81db7b90b3db94fd2ea0', 0, '2024-07-22 10:54:45', '15611664439', '2024-07-22 10:54:45', '15611664439', NULL, '陈祖彬', 0, 0, '刘一', '得到', 'ee16178c5199228ede4800233e82dbaa');
  149. -- ----------------------------
  150. -- Table structure for erm_chat_disease_info
  151. -- ----------------------------
  152. DROP TABLE IF EXISTS `erm_chat_disease_info`;
  153. CREATE TABLE `erm_chat_disease_info` (
  154. `id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键id',
  155. `chat_disease_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '问诊资料id',
  156. `url` varchar(3000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '图片链接',
  157. `is_del` int NOT NULL DEFAULT 0 COMMENT '是否删除',
  158. `create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
  159. `create_user` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人\r\n',
  160. `update_date` datetime NULL DEFAULT NULL COMMENT '修改时间',
  161. `update_user` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '修改人',
  162. `tenant_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '租户',
  163. PRIMARY KEY (`id`) USING BTREE
  164. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
  165. -- ----------------------------
  166. -- Records of erm_chat_disease_info
  167. -- ----------------------------
  168. INSERT INTO `erm_chat_disease_info` VALUES ('47da744489bef6413d99bdedc9258ce1', '3dbc33c09f25e0ae31e32247f7cd5429', '', 0, '2024-08-05 15:03:47', 'f3841896f0d63362f6276eee04bf0f76', '2024-08-05 15:03:47', 'f3841896f0d63362f6276eee04bf0f76', NULL);
  169. INSERT INTO `erm_chat_disease_info` VALUES ('62e1e7e6390c833ecabb59970d3a4d3e', '11301448fb4831f99a25f9be242a1604', '', 0, '2024-08-02 17:12:05', 'f3841896f0d63362f6276eee04bf0f76', '2024-08-02 17:12:05', 'f3841896f0d63362f6276eee04bf0f76', NULL);
  170. INSERT INTO `erm_chat_disease_info` VALUES ('a071475928edbf38671bcd70b9c40ffb', '62506a55f1c298eb5e2f5d30cd59182e', 'http://39.105.121.97:19000/eitc/chat/2024-07-30/IMG_20240718_105904.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minioadmin%2F20240730%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240730T024100Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=e9050338883e2d3a42b40f824a3e3dd582734b01699ad4c7a503a25b04b75eff', 0, '2024-07-30 10:41:03', 'f3841896f0d63362f6276eee04bf0f76', '2024-07-30 10:41:03', 'f3841896f0d63362f6276eee04bf0f76', NULL);
  171. -- ----------------------------
  172. -- Table structure for erm_chat_history
  173. -- ----------------------------
  174. DROP TABLE IF EXISTS `erm_chat_history`;
  175. CREATE TABLE `erm_chat_history` (
  176. `id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键id',
  177. `app_user_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'app用户ID',
  178. `app_user_phone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户手机号',
  179. `chat_history` varchar(3000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '聊天记录',
  180. `is_del` int NOT NULL DEFAULT 0 COMMENT '是否删除',
  181. `create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
  182. `create_user` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人\r\n',
  183. `update_date` datetime NULL DEFAULT NULL COMMENT '修改时间',
  184. `update_user` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '修改人',
  185. `tenant_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '租户',
  186. `is_read` int NOT NULL DEFAULT 0 COMMENT '默认未读(0) 已读 1',
  187. `user_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '医生用户的账户',
  188. `user_phone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '医生手机号',
  189. PRIMARY KEY (`id`) USING BTREE
  190. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '聊天记录表' ROW_FORMAT = DYNAMIC;
  191. -- ----------------------------
  192. -- Records of erm_chat_history
  193. -- ----------------------------
  194. -- ----------------------------
  195. -- Table structure for erm_clinic_info
  196. -- ----------------------------
  197. DROP TABLE IF EXISTS `erm_clinic_info`;
  198. CREATE TABLE `erm_clinic_info` (
  199. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  200. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  201. `create_date` datetime NOT NULL COMMENT '创建时间',
  202. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  203. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  204. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  205. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  206. `clinic_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '诊所名称',
  207. `logo_pic` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'logo照片',
  208. `clinic_link_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '诊所联系人',
  209. `clinic_link_phone` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '绑定手机',
  210. `city` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '所在地区',
  211. `city_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '所在地区code',
  212. `detailed_address` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '详细信息',
  213. `business_license_name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '营业执照名称',
  214. `business_license_code` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '营业执照代码',
  215. `medical_institution_code` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '医疗机构代码',
  216. `business_start_time` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '营业开始时间',
  217. `business_end_time` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '营业结束时间',
  218. `clinic_working_days` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '诊所工作日',
  219. `operating_years` int NULL DEFAULT NULL COMMENT '经营年限',
  220. `dental_chairs_num` int NULL DEFAULT NULL COMMENT '牙椅数量',
  221. `store_area` int NULL DEFAULT NULL COMMENT '门店面积',
  222. `store_introduction` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '门店介绍',
  223. `banner_pic` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'banner图',
  224. `medical_institution_occupational_license` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '医疗机构职业许可证',
  225. `scanned_copy_business_license` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '营业执照扫描件',
  226. `version_info` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前履约版本编号',
  227. `version_info_new` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '总服务器履约最新版本',
  228. `version_repair` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前修复版本号',
  229. `version_repair_new` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前总服务器修复版本号',
  230. `clinic_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '诊所编号',
  231. PRIMARY KEY (`id`) USING BTREE
  232. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '诊所信息' ROW_FORMAT = DYNAMIC;
  233. -- ----------------------------
  234. -- Records of erm_clinic_info
  235. -- ----------------------------
  236. -- ----------------------------
  237. -- Table structure for erm_collect_cost_details
  238. -- ----------------------------
  239. DROP TABLE IF EXISTS `erm_collect_cost_details`;
  240. CREATE TABLE `erm_collect_cost_details` (
  241. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  242. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  243. `create_date` datetime NOT NULL COMMENT '创建时间',
  244. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  245. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  246. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  247. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  248. `collect_cost_type_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '收费类型ID',
  249. `project_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '项目编号',
  250. `project_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '项目名称',
  251. `unit_price` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '单价',
  252. `unit` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位',
  253. `status` int NOT NULL DEFAULT 1 COMMENT '状态(1开启,0禁用)',
  254. `order_num` int NULL DEFAULT 0 COMMENT '排序',
  255. PRIMARY KEY (`id`) USING BTREE
  256. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '收费分类详情' ROW_FORMAT = DYNAMIC;
  257. -- ----------------------------
  258. -- Records of erm_collect_cost_details
  259. -- ----------------------------
  260. -- ----------------------------
  261. -- Table structure for erm_collect_cost_patients
  262. -- ----------------------------
  263. DROP TABLE IF EXISTS `erm_collect_cost_patients`;
  264. CREATE TABLE `erm_collect_cost_patients` (
  265. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  266. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  267. `create_date` datetime NOT NULL COMMENT '创建时间',
  268. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  269. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  270. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  271. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  272. `patient_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '患者ID',
  273. `patient_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '患者名字',
  274. `medical_record_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '病历ID',
  275. `amount_cost` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '合计费用',
  276. `receivable_cost` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '应收费用',
  277. `net_receipts_cost` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '实收费用',
  278. `cost_status` int NOT NULL DEFAULT 1 COMMENT '收费状态(1待收费,2已收费)',
  279. PRIMARY KEY (`id`) USING BTREE
  280. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '患者收费信息' ROW_FORMAT = DYNAMIC;
  281. -- ----------------------------
  282. -- Records of erm_collect_cost_patients
  283. -- ----------------------------
  284. -- ----------------------------
  285. -- Table structure for erm_collect_cost_patients_details
  286. -- ----------------------------
  287. DROP TABLE IF EXISTS `erm_collect_cost_patients_details`;
  288. CREATE TABLE `erm_collect_cost_patients_details` (
  289. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  290. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  291. `create_date` datetime NOT NULL COMMENT '创建时间',
  292. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  293. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  294. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  295. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  296. `collect_cost_patients_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '患者收费信息ID',
  297. `project_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '项目编号',
  298. `project_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '项目名称',
  299. `unit_price` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '单价',
  300. `preferential_price` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '优惠价格',
  301. `unit` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位',
  302. `tooth_position` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '牙位',
  303. `total` int NOT NULL DEFAULT 0 COMMENT '数量',
  304. PRIMARY KEY (`id`) USING BTREE
  305. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '患者收费信息详情' ROW_FORMAT = DYNAMIC;
  306. -- ----------------------------
  307. -- Records of erm_collect_cost_patients_details
  308. -- ----------------------------
  309. -- ----------------------------
  310. -- Table structure for erm_collect_cost_type
  311. -- ----------------------------
  312. DROP TABLE IF EXISTS `erm_collect_cost_type`;
  313. CREATE TABLE `erm_collect_cost_type` (
  314. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  315. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  316. `create_date` datetime NOT NULL COMMENT '创建时间',
  317. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  318. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  319. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  320. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  321. `parent_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '父级ID',
  322. `cost_type_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分类名称',
  323. `order_num` int NULL DEFAULT 0 COMMENT '排序',
  324. PRIMARY KEY (`id`) USING BTREE
  325. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '收费分类表' ROW_FORMAT = DYNAMIC;
  326. -- ----------------------------
  327. -- Records of erm_collect_cost_type
  328. -- ----------------------------
  329. -- ----------------------------
  330. -- Table structure for erm_collection_doctor
  331. -- ----------------------------
  332. DROP TABLE IF EXISTS `erm_collection_doctor`;
  333. CREATE TABLE `erm_collection_doctor` (
  334. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  335. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  336. `create_date` datetime NOT NULL COMMENT '创建时间',
  337. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  338. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  339. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  340. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  341. `doctor_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '医生id',
  342. `app_user_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'app端用户id',
  343. PRIMARY KEY (`id`) USING BTREE
  344. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '我的医生' ROW_FORMAT = DYNAMIC;
  345. -- ----------------------------
  346. -- Records of erm_collection_doctor
  347. -- ----------------------------
  348. -- ----------------------------
  349. -- Table structure for erm_diagnosis_type
  350. -- ----------------------------
  351. DROP TABLE IF EXISTS `erm_diagnosis_type`;
  352. CREATE TABLE `erm_diagnosis_type` (
  353. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  354. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  355. `create_date` datetime NOT NULL COMMENT '创建时间',
  356. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  357. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  358. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  359. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  360. `parent_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '父级id',
  361. `diagnosis_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '诊断名称',
  362. PRIMARY KEY (`id`) USING BTREE,
  363. UNIQUE INDEX `idx_diagnosis_name`(`is_del` ASC, `parent_id` ASC, `diagnosis_name` ASC) USING BTREE
  364. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '诊断分类' ROW_FORMAT = DYNAMIC;
  365. -- ----------------------------
  366. -- Records of erm_diagnosis_type
  367. -- ----------------------------
  368. -- ----------------------------
  369. -- Table structure for erm_diagnosis_type_cost_project
  370. -- ----------------------------
  371. DROP TABLE IF EXISTS `erm_diagnosis_type_cost_project`;
  372. CREATE TABLE `erm_diagnosis_type_cost_project` (
  373. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  374. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  375. `create_date` datetime NOT NULL COMMENT '创建时间',
  376. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  377. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  378. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  379. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  380. `diagnosis_type_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '诊断分类ID',
  381. `collect_cost_details_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '收费分类详情ID',
  382. `total` int NOT NULL DEFAULT 0 COMMENT '数量',
  383. PRIMARY KEY (`id`) USING BTREE
  384. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '诊断分类收费项目表' ROW_FORMAT = DYNAMIC;
  385. -- ----------------------------
  386. -- Records of erm_diagnosis_type_cost_project
  387. -- ----------------------------
  388. -- ----------------------------
  389. -- Table structure for erm_diagnosis_type_order_doctor
  390. -- ----------------------------
  391. DROP TABLE IF EXISTS `erm_diagnosis_type_order_doctor`;
  392. CREATE TABLE `erm_diagnosis_type_order_doctor` (
  393. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  394. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  395. `create_date` datetime NOT NULL COMMENT '创建时间',
  396. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  397. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  398. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  399. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  400. `doctor_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '医生id',
  401. `diagnosis_type_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '诊断类型id',
  402. `order_num` int NULL DEFAULT 0 COMMENT '排序',
  403. `parent_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '父级id',
  404. PRIMARY KEY (`id`) USING BTREE
  405. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '诊断分类排序与医生的关联表' ROW_FORMAT = DYNAMIC;
  406. -- ----------------------------
  407. -- Records of erm_diagnosis_type_order_doctor
  408. -- ----------------------------
  409. -- ----------------------------
  410. -- Table structure for erm_diagnosis_type_template
  411. -- ----------------------------
  412. DROP TABLE IF EXISTS `erm_diagnosis_type_template`;
  413. CREATE TABLE `erm_diagnosis_type_template` (
  414. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  415. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  416. `create_date` datetime NOT NULL COMMENT '创建时间',
  417. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  418. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  419. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  420. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  421. `diagnosis_type_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '诊断分类id',
  422. `template_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '模板名称',
  423. `template_example` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '模板示例',
  424. `template_info` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '模板信息',
  425. `template_option` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '模板选项',
  426. `review_status` int NULL DEFAULT NULL COMMENT '审核状态(1待审核,2已审核)',
  427. `order_num` int NOT NULL DEFAULT 0 COMMENT '排序',
  428. PRIMARY KEY (`id`) USING BTREE,
  429. UNIQUE INDEX `idx_template_name`(`is_del` ASC, `diagnosis_type_id` ASC, `template_name` ASC) USING BTREE
  430. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '诊断分类模板' ROW_FORMAT = DYNAMIC;
  431. -- ----------------------------
  432. -- Records of erm_diagnosis_type_template
  433. -- ----------------------------
  434. -- ----------------------------
  435. -- Table structure for erm_medical_history
  436. -- ----------------------------
  437. DROP TABLE IF EXISTS `erm_medical_history`;
  438. CREATE TABLE `erm_medical_history` (
  439. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  440. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  441. `create_date` datetime NOT NULL COMMENT '创建时间',
  442. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  443. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  444. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  445. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  446. `medical_record_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '病历id',
  447. `patient_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '患者id',
  448. `disease_type` int NULL DEFAULT NULL COMMENT '疾病类型',
  449. `disease_content` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '疾病内容',
  450. `disease_source` int NULL DEFAULT NULL COMMENT '疾病来源(1患者,2医生)',
  451. PRIMARY KEY (`id`) USING BTREE,
  452. UNIQUE INDEX `idx_id`(`is_del` ASC, `medical_record_id` ASC, `patient_id` ASC, `disease_source` ASC) USING BTREE
  453. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '病史表' ROW_FORMAT = DYNAMIC;
  454. -- ----------------------------
  455. -- Records of erm_medical_history
  456. -- ----------------------------
  457. -- ----------------------------
  458. -- Table structure for erm_medical_record
  459. -- ----------------------------
  460. DROP TABLE IF EXISTS `erm_medical_record`;
  461. CREATE TABLE `erm_medical_record` (
  462. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  463. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  464. `create_date` datetime NOT NULL COMMENT '创建时间',
  465. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  466. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  467. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  468. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  469. `patient_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '患者id',
  470. `status` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '状态(1未完成,2已完成治疗)',
  471. `attending_doctor_id` bigint NULL DEFAULT NULL COMMENT '主治医生',
  472. `attending_doctor_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '主治医生',
  473. `visit_type` int NULL DEFAULT NULL COMMENT '就诊类型(1初诊,2复诊)',
  474. `outpatient_service` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预约门诊',
  475. `department` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预约科室',
  476. `cost` decimal(10, 2) NULL DEFAULT NULL COMMENT '费用',
  477. PRIMARY KEY (`id`) USING BTREE
  478. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '病历表' ROW_FORMAT = DYNAMIC;
  479. -- ----------------------------
  480. -- Records of erm_medical_record
  481. -- ----------------------------
  482. -- ----------------------------
  483. -- Table structure for erm_medical_record_details
  484. -- ----------------------------
  485. DROP TABLE IF EXISTS `erm_medical_record_details`;
  486. CREATE TABLE `erm_medical_record_details` (
  487. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  488. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  489. `create_date` datetime NOT NULL COMMENT '创建时间',
  490. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  491. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  492. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  493. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  494. `medical_record_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '病历id',
  495. `diagnosis_type_template_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '诊断分类模板id',
  496. `diagnosis_type_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '诊断分类',
  497. `diagnosis_type_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '诊断分类名称',
  498. `tooth_position` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '牙位',
  499. `tooth_status` int NULL DEFAULT NULL COMMENT '牙齿状态',
  500. `template_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '模板名称',
  501. `template_example` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '模板示例',
  502. `content_info` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '内容信息',
  503. `template_info` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '模板信息',
  504. `template_option` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '模板选项',
  505. `template_view` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '模板视图',
  506. `order_num` int NOT NULL DEFAULT 0 COMMENT '排序',
  507. PRIMARY KEY (`id`) USING BTREE
  508. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '病历详情表' ROW_FORMAT = DYNAMIC;
  509. -- ----------------------------
  510. -- Records of erm_medical_record_details
  511. -- ----------------------------
  512. -- ----------------------------
  513. -- Table structure for erm_notice_manage
  514. -- ----------------------------
  515. DROP TABLE IF EXISTS `erm_notice_manage`;
  516. CREATE TABLE `erm_notice_manage` (
  517. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  518. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  519. `create_date` datetime NOT NULL COMMENT '创建时间',
  520. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  521. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  522. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  523. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  524. `notice_title` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '公告标题',
  525. `notice_content` longblob NULL COMMENT '公告内容',
  526. `notice_start_time` datetime NOT NULL COMMENT '公告开始时间',
  527. `notice_end_time` datetime NOT NULL COMMENT '公告结束时间',
  528. `publish_status` int NULL DEFAULT NULL COMMENT '发布状态(1发布,0未发布)',
  529. `display_status` int NULL DEFAULT NULL COMMENT '显示状态(1未开始,2显示中,3已结束)',
  530. `publish_people` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发布人',
  531. PRIMARY KEY (`id`) USING BTREE
  532. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '公告管理' ROW_FORMAT = DYNAMIC;
  533. -- ----------------------------
  534. -- Records of erm_notice_manage
  535. -- ----------------------------
  536. -- ----------------------------
  537. -- Table structure for erm_patient
  538. -- ----------------------------
  539. DROP TABLE IF EXISTS `erm_patient`;
  540. CREATE TABLE `erm_patient` (
  541. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  542. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  543. `create_date` datetime NOT NULL COMMENT '创建时间',
  544. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  545. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  546. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  547. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  548. `medical_record_num` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '病历号',
  549. `patient_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '患者姓名',
  550. `patient_phone` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '患者手机号',
  551. `personal_relationship` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '与患者关系',
  552. `link_phone` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系人电话',
  553. `home_address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '家庭住址',
  554. `birthday` datetime NULL DEFAULT NULL COMMENT '出生日期',
  555. `sex` int NULL DEFAULT NULL COMMENT '性别(1男,2女)',
  556. `citizenship` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '国籍',
  557. `avatar` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '头像',
  558. `identification_card` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '身份证号',
  559. `document_type` int NULL DEFAULT NULL COMMENT '证件类型',
  560. `work_unit` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作单位',
  561. `occupation` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '职业',
  562. `nationality` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '民族',
  563. `blood_group` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '血型',
  564. `marriage` int NULL DEFAULT NULL COMMENT '婚姻(1未婚,2已婚)',
  565. `patient_source` int NULL DEFAULT NULL COMMENT '患者来源',
  566. `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  567. `patient_tags` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '患者标签',
  568. `create_type` int NULL DEFAULT NULL COMMENT '创建类型(1pc,2app)',
  569. PRIMARY KEY (`id`) USING BTREE,
  570. UNIQUE INDEX `identification_card_idx`(`identification_card` ASC) USING BTREE COMMENT '身份证号',
  571. UNIQUE INDEX `medical_record_num_idx`(`medical_record_num` ASC) USING BTREE COMMENT '病历号'
  572. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '患者表' ROW_FORMAT = DYNAMIC;
  573. -- ----------------------------
  574. -- Records of erm_patient
  575. -- ----------------------------
  576. -- ----------------------------
  577. -- Table structure for erm_patient_appointment
  578. -- ----------------------------
  579. DROP TABLE IF EXISTS `erm_patient_appointment`;
  580. CREATE TABLE `erm_patient_appointment` (
  581. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  582. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  583. `create_date` datetime NOT NULL COMMENT '创建时间',
  584. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  585. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  586. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  587. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  588. `outpatient_service` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预约门诊',
  589. `department` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预约科室',
  590. `appointment_type` int NULL DEFAULT NULL COMMENT '预约类型(1就诊,2复诊)',
  591. `attending_doctor_id` bigint NULL DEFAULT NULL COMMENT '主治医生',
  592. `attending_doctor` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '主治医生',
  593. `visit_type` int NULL DEFAULT NULL COMMENT '就诊类型(1初诊,2复诊)',
  594. `appointment_person_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '患者',
  595. `appointment_person` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '患者',
  596. `appointment_start_time` datetime NULL DEFAULT NULL COMMENT '预约开始时间',
  597. `appointment_end_time` datetime NULL DEFAULT NULL COMMENT '预约结束时间',
  598. `appointment_project` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预约项目',
  599. `appointment_status` int NULL DEFAULT NULL COMMENT '预约状态(1预约,2已确定,3已到店,4治疗中,5治疗完成,6已结账,7已离开,8已失约)',
  600. `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  601. `register_user_id` bigint NULL DEFAULT NULL COMMENT '登记人',
  602. `register_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '登记人',
  603. `medical_record_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '病历id',
  604. PRIMARY KEY (`id`) USING BTREE
  605. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '患者预约表' ROW_FORMAT = DYNAMIC;
  606. -- ----------------------------
  607. -- Records of erm_patient_appointment
  608. -- ----------------------------
  609. -- ----------------------------
  610. -- Table structure for erm_patient_follow_up
  611. -- ----------------------------
  612. DROP TABLE IF EXISTS `erm_patient_follow_up`;
  613. CREATE TABLE `erm_patient_follow_up` (
  614. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  615. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  616. `create_date` datetime NOT NULL COMMENT '创建时间',
  617. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  618. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  619. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  620. `tenant_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  621. `follow_up_user_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '回访人:默认当前账号姓名,可修改',
  622. `follow_up_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  623. `patient_appointment_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '就诊表外键',
  624. `appointment_start_time` datetime NULL DEFAULT NULL COMMENT '就诊时间',
  625. `follow_up_time` datetime NOT NULL COMMENT '回访时间:默认当前日期及时间,可修改',
  626. `follow_up_status` int NULL DEFAULT NULL COMMENT '回访状态:已回访、待回访',
  627. `follow_up_type` int NULL DEFAULT NULL COMMENT '回访类型:未成交、已上门、术后',
  628. `follow_up_content` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '回访内容:治疗一周回访、拔牙一天回访',
  629. `follow_up_result` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '回访结果:无不适、数量出血、牙微疼痛',
  630. PRIMARY KEY (`id`) USING BTREE
  631. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '患者回访表' ROW_FORMAT = DYNAMIC;
  632. -- ----------------------------
  633. -- Records of erm_patient_follow_up
  634. -- ----------------------------
  635. -- ----------------------------
  636. -- Table structure for erm_protocol_template
  637. -- ----------------------------
  638. DROP TABLE IF EXISTS `erm_protocol_template`;
  639. CREATE TABLE `erm_protocol_template` (
  640. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  641. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  642. `create_date` datetime NOT NULL COMMENT '创建时间',
  643. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  644. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  645. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  646. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  647. `protocol_type` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '协议类型',
  648. `protocol_template_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '协议模板名称',
  649. `protocol_template_content` longblob NULL COMMENT '协议模板内容',
  650. `status` int NOT NULL DEFAULT 1 COMMENT '状态(1开启,0禁用)',
  651. PRIMARY KEY (`id`) USING BTREE
  652. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '协议模板表' ROW_FORMAT = DYNAMIC;
  653. -- ----------------------------
  654. -- Records of erm_protocol_template
  655. -- ----------------------------
  656. INSERT INTO `erm_protocol_template` VALUES ('5bc4118321f7296501729412383d4394', 0, '2024-07-29 11:51:25', 'admin', '2024-07-29 11:51:25', 'admin', '000000', '83df5a50b8cff58beb24a86e1e5431db', '知情同意书', 0x3C6832207374796C653D22746578742D616C69676E3A63656E7465723B223E0A093C6272202F3E0A3C2F68323E, 1);
  657. INSERT INTO `erm_protocol_template` VALUES ('a0a0cded4f755cdbfdd6a45c81c309ff', 0, '2024-07-29 11:50:05', 'admin', '2024-07-29 11:50:05', 'admin', '000000', '23328b8380fd0410bcc2285d88e079f6', '用户须知', 0x3C70207374796C653D22746578742D616C69676E3A63656E7465723B223E0A093C6272202F3E0A3C2F703E, 1);
  658. -- ----------------------------
  659. -- Table structure for erm_protocol_type
  660. -- ----------------------------
  661. DROP TABLE IF EXISTS `erm_protocol_type`;
  662. CREATE TABLE `erm_protocol_type` (
  663. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  664. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  665. `create_date` datetime NOT NULL COMMENT '创建时间',
  666. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  667. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  668. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  669. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  670. `protocol_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '协议名称',
  671. `order_num` int NOT NULL DEFAULT 0 COMMENT '排序',
  672. PRIMARY KEY (`id`) USING BTREE
  673. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '协议类型配置表' ROW_FORMAT = DYNAMIC;
  674. -- ----------------------------
  675. -- Records of erm_protocol_type
  676. -- ----------------------------
  677. INSERT INTO `erm_protocol_type` VALUES ('23328b8380fd0410bcc2285d88e079f6', 0, '2024-07-19 14:50:32', 'admin', '2024-07-19 14:50:32', 'admin', '000000', '用户须知', 0);
  678. INSERT INTO `erm_protocol_type` VALUES ('83df5a50b8cff58beb24a86e1e5431db', 0, '2024-07-19 14:51:06', 'admin', '2024-07-19 14:51:06', 'admin', '000000', '知情同意书', 0);
  679. -- ----------------------------
  680. -- Table structure for erm_scheduling_configuration
  681. -- ----------------------------
  682. DROP TABLE IF EXISTS `erm_scheduling_configuration`;
  683. CREATE TABLE `erm_scheduling_configuration` (
  684. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  685. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  686. `create_date` datetime NOT NULL COMMENT '创建时间',
  687. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  688. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  689. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  690. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  691. `doctor_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '医生ID',
  692. `week_num` int NOT NULL COMMENT '星期几',
  693. `work_status` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工作状态',
  694. PRIMARY KEY (`id`) USING BTREE
  695. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '排班配置' ROW_FORMAT = DYNAMIC;
  696. -- ----------------------------
  697. -- Records of erm_scheduling_configuration
  698. -- ----------------------------
  699. -- ----------------------------
  700. -- Table structure for erm_scheduling_details
  701. -- ----------------------------
  702. DROP TABLE IF EXISTS `erm_scheduling_details`;
  703. CREATE TABLE `erm_scheduling_details` (
  704. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  705. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  706. `create_date` datetime NOT NULL COMMENT '创建时间',
  707. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  708. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  709. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  710. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  711. `doctor_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '医生ID',
  712. `work_date` date NOT NULL COMMENT '工作日期',
  713. `work_year` int NULL DEFAULT NULL COMMENT '工作年份',
  714. `work_month` int NULL DEFAULT NULL COMMENT '工作月份',
  715. `work_day` int NULL DEFAULT NULL COMMENT '工作月份',
  716. `work_status` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作状态',
  717. PRIMARY KEY (`id`) USING BTREE
  718. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '排班详情' ROW_FORMAT = DYNAMIC;
  719. -- ----------------------------
  720. -- Records of erm_scheduling_details
  721. -- ----------------------------
  722. -- ----------------------------
  723. -- Table structure for erm_scheduling_status
  724. -- ----------------------------
  725. DROP TABLE IF EXISTS `erm_scheduling_status`;
  726. CREATE TABLE `erm_scheduling_status` (
  727. `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  728. `is_del` int NOT NULL DEFAULT 0 COMMENT '删除标识:0正常,1已删除',
  729. `create_date` datetime NOT NULL COMMENT '创建时间',
  730. `create_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '创建人',
  731. `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
  732. `update_user` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新人',
  733. `tenant_id` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '000000' COMMENT '租户ID',
  734. `status_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '状态名称',
  735. `start_time` time NULL DEFAULT NULL COMMENT '开始时间',
  736. `end_time` time NULL DEFAULT NULL COMMENT '结束时间',
  737. `color` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '颜色',
  738. `order_num` int NULL DEFAULT 0 COMMENT '排序',
  739. PRIMARY KEY (`id`) USING BTREE
  740. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '排班类型' ROW_FORMAT = DYNAMIC;
  741. -- ----------------------------
  742. -- Records of erm_scheduling_status
  743. -- ----------------------------
  744. INSERT INTO `erm_scheduling_status` VALUES ('0eef00213a9fbd85c4a7b3155cd52662', 0, '2024-07-05 16:51:03', 'admin', '2024-07-05 16:51:03', 'admin', NULL, '下', '13:00:00', '20:30:00', '#ffe6ff', 3);
  745. INSERT INTO `erm_scheduling_status` VALUES ('358283103e671dc7929e9c6a916abf00', 0, '2024-07-05 16:50:48', 'admin', '2024-07-05 16:50:48', 'admin', NULL, '上', '08:00:00', '11:30:00', '#e6ffff', 2);
  746. INSERT INTO `erm_scheduling_status` VALUES ('628f4112d5e6f425d5f659cc0b2ea61d', 0, '2024-07-05 00:00:00', 'admin', '2024-07-05 00:00:00', 'admin', NULL, '休', NULL, NULL, '#c0c0c0', 4);
  747. INSERT INTO `erm_scheduling_status` VALUES ('eb96fc4c755561a266e4f3e2f09e7142', 0, '2024-07-05 00:00:00', 'admin', '2024-07-05 00:00:00', 'admin', NULL, '全', '08:00:00', '20:30:00', '#4e8ec8', 1);
  748. -- ----------------------------
  749. -- Table structure for gen_table
  750. -- ----------------------------
  751. DROP TABLE IF EXISTS `gen_table`;
  752. CREATE TABLE `gen_table` (
  753. `table_id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  754. `table_name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '表名称',
  755. `table_comment` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '表描述',
  756. `sub_table_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联子表的表名',
  757. `sub_table_fk_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '子表关联的外键名',
  758. `class_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '实体类名称',
  759. `tpl_category` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'crud' COMMENT '使用的模板(crud单表操作 tree树表操作)',
  760. `tpl_web_type` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '前端模板类型(element-ui模版 element-plus模版)',
  761. `package_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生成包路径',
  762. `module_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生成模块名',
  763. `business_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生成业务名',
  764. `function_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生成功能名',
  765. `function_author` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生成功能作者',
  766. `gen_type` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '生成代码方式(0zip压缩包 1自定义路径)',
  767. `gen_path` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '/' COMMENT '生成路径(不填默认项目路径)',
  768. `options` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '其它生成选项',
  769. `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  770. `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  771. `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  772. `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  773. `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  774. PRIMARY KEY (`table_id`) USING BTREE
  775. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '代码生成业务表' ROW_FORMAT = DYNAMIC;
  776. -- ----------------------------
  777. -- Records of gen_table
  778. -- ----------------------------
  779. -- ----------------------------
  780. -- Table structure for gen_table_column
  781. -- ----------------------------
  782. DROP TABLE IF EXISTS `gen_table_column`;
  783. CREATE TABLE `gen_table_column` (
  784. `column_id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  785. `table_id` bigint NULL DEFAULT NULL COMMENT '归属表编号',
  786. `column_name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '列名称',
  787. `column_comment` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '列描述',
  788. `column_type` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '列类型',
  789. `java_type` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'JAVA类型',
  790. `java_field` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'JAVA字段名',
  791. `is_pk` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否主键(1是)',
  792. `is_increment` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否自增(1是)',
  793. `is_required` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否必填(1是)',
  794. `is_insert` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否为插入字段(1是)',
  795. `is_edit` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否编辑字段(1是)',
  796. `is_list` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否列表字段(1是)',
  797. `is_query` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否查询字段(1是)',
  798. `query_type` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'EQ' COMMENT '查询方式(等于、不等于、大于、小于、范围)',
  799. `html_type` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)',
  800. `dict_type` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典类型',
  801. `sort` int NULL DEFAULT NULL COMMENT '排序',
  802. `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  803. `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  804. `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  805. `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  806. PRIMARY KEY (`column_id`) USING BTREE
  807. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '代码生成业务表字段' ROW_FORMAT = DYNAMIC;
  808. -- ----------------------------
  809. -- Records of gen_table_column
  810. -- ----------------------------
  811. -- ----------------------------
  812. -- Table structure for sys_clinic_info
  813. -- ----------------------------
  814. DROP TABLE IF EXISTS `sys_clinic_info`;
  815. CREATE TABLE `sys_clinic_info` (
  816. `id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
  817. `clinic_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '诊所编号',
  818. `clinic_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '诊所名称',
  819. `clinic_ip` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '服务IP',
  820. `server_post` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '服务端口',
  821. `web_socket_post` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'websocket端口',
  822. `server_user` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '服务用户',
  823. `server_password` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '服务密码',
  824. `realm_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '诊所域名',
  825. `creat_time` datetime NOT NULL COMMENT '开户时间',
  826. `expire_time` datetime NOT NULL COMMENT '到期时间',
  827. `region` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所在地区',
  828. `phone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '绑定手机',
  829. `address` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '详细地址',
  830. `status_int` int NULL DEFAULT NULL COMMENT '诊所状态',
  831. `quota` int NULL DEFAULT NULL COMMENT '账户名额',
  832. `is_del` int NULL DEFAULT 0 COMMENT '是否删除',
  833. `create_date` datetime NULL DEFAULT NULL COMMENT '创建时间',
  834. `create_user` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人\r\n',
  835. `update_date` datetime NULL DEFAULT NULL COMMENT '修改时间',
  836. `update_user` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '修改人',
  837. `tenant_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '租户',
  838. `server_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '服务器唯一标识',
  839. `version_refer` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '版本描述',
  840. `version_repair` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '修复版本号',
  841. `version_info` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '版本信息',
  842. `v_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '履约版本MD5的编码',
  843. `repair_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'bug版本MD5的编码',
  844. PRIMARY KEY (`id`) USING BTREE
  845. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '诊所信息表' ROW_FORMAT = DYNAMIC;
  846. -- ----------------------------
  847. -- Records of sys_clinic_info
  848. -- ----------------------------
  849. -- ----------------------------
  850. -- Table structure for sys_config
  851. -- ----------------------------
  852. DROP TABLE IF EXISTS `sys_config`;
  853. CREATE TABLE `sys_config` (
  854. `config_id` int NOT NULL AUTO_INCREMENT COMMENT '参数主键',
  855. `config_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '参数名称',
  856. `config_key` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '参数键名',
  857. `config_value` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '参数键值',
  858. `config_type` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT '系统内置(Y是 N否)',
  859. `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  860. `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  861. `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  862. `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  863. `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  864. PRIMARY KEY (`config_id`) USING BTREE
  865. ) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '参数配置表' ROW_FORMAT = DYNAMIC;
  866. -- ----------------------------
  867. -- Records of sys_config
  868. -- ----------------------------
  869. INSERT INTO `sys_config` VALUES (1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', '2024-05-16 17:28:08', '', NULL, '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow');
  870. INSERT INTO `sys_config` VALUES (2, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', '2024-05-16 17:28:08', '', NULL, '初始化密码 123456');
  871. INSERT INTO `sys_config` VALUES (3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', '2024-05-16 17:28:08', '', NULL, '深色主题theme-dark,浅色主题theme-light');
  872. INSERT INTO `sys_config` VALUES (4, '账号自助-验证码开关', 'sys.account.captchaEnabled', 'false', 'Y', 'admin', '2024-05-16 17:28:08', '', NULL, '是否开启验证码功能(true开启,false关闭)');
  873. INSERT INTO `sys_config` VALUES (5, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 'admin', '2024-05-16 17:28:08', '', NULL, '是否开启注册用户功能(true开启,false关闭)');
  874. INSERT INTO `sys_config` VALUES (6, '用户登录-黑名单列表', 'sys.login.blackIPList', '', 'Y', 'admin', '2024-05-16 17:28:08', '', NULL, '设置登录IP黑名单限制,多个匹配项以;分隔,支持匹配(*通配、网段)');
  875. -- ----------------------------
  876. -- Table structure for sys_dept
  877. -- ----------------------------
  878. DROP TABLE IF EXISTS `sys_dept`;
  879. CREATE TABLE `sys_dept` (
  880. `dept_id` bigint NOT NULL AUTO_INCREMENT COMMENT '部门id',
  881. `parent_id` bigint NULL DEFAULT 0 COMMENT '父部门id',
  882. `ancestors` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '祖级列表',
  883. `dept_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '部门名称',
  884. `order_num` int NULL DEFAULT 0 COMMENT '显示顺序',
  885. `leader` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '负责人',
  886. `phone` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系电话',
  887. `email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '邮箱',
  888. `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '部门状态(0正常 1停用)',
  889. `del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
  890. `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  891. `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  892. `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  893. `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  894. PRIMARY KEY (`dept_id`) USING BTREE
  895. ) ENGINE = InnoDB AUTO_INCREMENT = 102 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '部门表(门诊-科室)' ROW_FORMAT = DYNAMIC;
  896. -- ----------------------------
  897. -- Records of sys_dept
  898. -- ----------------------------
  899. INSERT INTO `sys_dept` VALUES (100, 0, '0', '诊所名称', 0, '', '', '', '0', '0', 'admin', '2024-05-16 17:27:47', 'admin', '2024-06-18 16:36:41');
  900. INSERT INTO `sys_dept` VALUES (101, 100, '0,100', '科室', 1, '', '', '', '0', '0', 'admin', '2024-05-16 17:27:47', 'admin', '2024-08-08 09:36:25');
  901. -- ----------------------------
  902. -- Table structure for sys_dict_data
  903. -- ----------------------------
  904. DROP TABLE IF EXISTS `sys_dict_data`;
  905. CREATE TABLE `sys_dict_data` (
  906. `dict_code` bigint NOT NULL AUTO_INCREMENT COMMENT '字典编码',
  907. `dict_sort` int NULL DEFAULT 0 COMMENT '字典排序',
  908. `dict_label` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典标签',
  909. `dict_value` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典键值',
  910. `dict_type` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典类型',
  911. `css_class` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '样式属性(其他样式扩展)',
  912. `list_class` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '表格回显样式',
  913. `is_default` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT '是否默认(Y是 N否)',
  914. `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1停用)',
  915. `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  916. `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  917. `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  918. `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  919. `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  920. PRIMARY KEY (`dict_code`) USING BTREE
  921. ) ENGINE = InnoDB AUTO_INCREMENT = 160 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '字典数据表' ROW_FORMAT = DYNAMIC;
  922. -- ----------------------------
  923. -- Records of sys_dict_data
  924. -- ----------------------------
  925. INSERT INTO `sys_dict_data` VALUES (1, 1, '男', '0', 'sys_user_sex', '', '', 'Y', '0', 'admin', '2024-05-16 17:28:06', '', NULL, '性别男');
  926. INSERT INTO `sys_dict_data` VALUES (2, 2, '女', '1', 'sys_user_sex', '', '', 'N', '0', 'admin', '2024-05-16 17:28:06', '', NULL, '性别女');
  927. INSERT INTO `sys_dict_data` VALUES (3, 3, '未知', '2', 'sys_user_sex', '', '', 'N', '0', 'admin', '2024-05-16 17:28:06', '', NULL, '性别未知');
  928. INSERT INTO `sys_dict_data` VALUES (4, 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', '0', 'admin', '2024-05-16 17:28:06', '', NULL, '显示菜单');
  929. INSERT INTO `sys_dict_data` VALUES (5, 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', '0', 'admin', '2024-05-16 17:28:06', '', NULL, '隐藏菜单');
  930. INSERT INTO `sys_dict_data` VALUES (6, 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', '0', 'admin', '2024-05-16 17:28:06', '', NULL, '正常状态');
  931. INSERT INTO `sys_dict_data` VALUES (7, 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', '0', 'admin', '2024-05-16 17:28:06', '', NULL, '停用状态');
  932. INSERT INTO `sys_dict_data` VALUES (8, 1, '正常', '0', 'sys_job_status', '', 'primary', 'Y', '0', 'admin', '2024-05-16 17:28:06', '', NULL, '正常状态');
  933. INSERT INTO `sys_dict_data` VALUES (9, 2, '暂停', '1', 'sys_job_status', '', 'danger', 'N', '0', 'admin', '2024-05-16 17:28:06', '', NULL, '停用状态');
  934. INSERT INTO `sys_dict_data` VALUES (10, 1, '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', '0', 'admin', '2024-05-16 17:28:06', '', NULL, '默认分组');
  935. INSERT INTO `sys_dict_data` VALUES (11, 2, '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', '0', 'admin', '2024-05-16 17:28:06', '', NULL, '系统分组');
  936. INSERT INTO `sys_dict_data` VALUES (12, 1, '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', '0', 'admin', '2024-05-16 17:28:06', '', NULL, '系统默认是');
  937. INSERT INTO `sys_dict_data` VALUES (13, 2, '否', 'N', 'sys_yes_no', '', 'danger', 'N', '0', 'admin', '2024-05-16 17:28:06', '', NULL, '系统默认否');
  938. INSERT INTO `sys_dict_data` VALUES (14, 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', '0', 'admin', '2024-05-16 17:28:06', '', NULL, '通知');
  939. INSERT INTO `sys_dict_data` VALUES (15, 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', '0', 'admin', '2024-05-16 17:28:06', '', NULL, '公告');
  940. INSERT INTO `sys_dict_data` VALUES (16, 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', '0', 'admin', '2024-05-16 17:28:07', '', NULL, '正常状态');
  941. INSERT INTO `sys_dict_data` VALUES (17, 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', '0', 'admin', '2024-05-16 17:28:07', '', NULL, '关闭状态');
  942. INSERT INTO `sys_dict_data` VALUES (18, 99, '其他', '0', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2024-05-16 17:28:07', '', NULL, '其他操作');
  943. INSERT INTO `sys_dict_data` VALUES (19, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2024-05-16 17:28:07', '', NULL, '新增操作');
  944. INSERT INTO `sys_dict_data` VALUES (20, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2024-05-16 17:28:07', '', NULL, '修改操作');
  945. INSERT INTO `sys_dict_data` VALUES (21, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2024-05-16 17:28:07', '', NULL, '删除操作');
  946. INSERT INTO `sys_dict_data` VALUES (22, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', '0', 'admin', '2024-05-16 17:28:07', '', NULL, '授权操作');
  947. INSERT INTO `sys_dict_data` VALUES (23, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2024-05-16 17:28:07', '', NULL, '导出操作');
  948. INSERT INTO `sys_dict_data` VALUES (24, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2024-05-16 17:28:07', '', NULL, '导入操作');
  949. INSERT INTO `sys_dict_data` VALUES (25, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2024-05-16 17:28:07', '', NULL, '强退操作');
  950. INSERT INTO `sys_dict_data` VALUES (26, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2024-05-16 17:28:07', '', NULL, '生成操作');
  951. INSERT INTO `sys_dict_data` VALUES (27, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2024-05-16 17:28:07', '', NULL, '清空操作');
  952. INSERT INTO `sys_dict_data` VALUES (28, 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', '0', 'admin', '2024-05-16 17:28:07', '', NULL, '正常状态');
  953. INSERT INTO `sys_dict_data` VALUES (29, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', '0', 'admin', '2024-05-16 17:28:07', '', NULL, '停用状态');
  954. INSERT INTO `sys_dict_data` VALUES (100, 1, '主诉', '主诉', 'erm_diagnosis_type_template_name', NULL, 'default', 'N', '0', 'admin', '2024-05-30 11:27:58', '', NULL, NULL);
  955. INSERT INTO `sys_dict_data` VALUES (101, 2, '现病史', '现病史', 'erm_diagnosis_type_template_name', NULL, 'default', 'N', '0', 'admin', '2024-05-30 11:28:18', '', NULL, NULL);
  956. INSERT INTO `sys_dict_data` VALUES (102, 3, '既往史', '既往史', 'erm_diagnosis_type_template_name', NULL, 'default', 'N', '0', 'admin', '2024-05-30 11:28:31', '', NULL, NULL);
  957. INSERT INTO `sys_dict_data` VALUES (103, 4, '家族史', '家族史', 'erm_diagnosis_type_template_name', NULL, 'default', 'N', '0', 'admin', '2024-05-30 11:28:41', '', NULL, NULL);
  958. INSERT INTO `sys_dict_data` VALUES (104, 5, '过敏史', '过敏史', 'erm_diagnosis_type_template_name', NULL, 'default', 'N', '0', 'admin', '2024-05-30 11:28:49', 'admin', '2024-06-18 18:34:56', NULL);
  959. INSERT INTO `sys_dict_data` VALUES (105, 7, 'X线片示(影像)', 'X线片示(影像)', 'erm_diagnosis_type_template_name', NULL, 'default', 'N', '0', 'admin', '2024-05-30 11:29:09', 'admin', '2024-06-18 18:35:07', NULL);
  960. INSERT INTO `sys_dict_data` VALUES (106, 8, '诊断', '诊断', 'erm_diagnosis_type_template_name', NULL, 'default', 'N', '0', 'admin', '2024-05-30 11:29:24', 'admin', '2024-06-18 18:35:17', NULL);
  961. INSERT INTO `sys_dict_data` VALUES (107, 9, '治疗计划', '治疗计划', 'erm_diagnosis_type_template_name', NULL, 'default', 'N', '0', 'admin', '2024-05-30 11:29:34', 'admin', '2024-06-18 18:35:28', NULL);
  962. INSERT INTO `sys_dict_data` VALUES (108, 10, '处置(基础模版公用)', '处置(基础模版公用)', 'erm_diagnosis_type_template_name', NULL, 'default', 'N', '0', 'admin', '2024-05-30 11:29:45', 'admin', '2024-06-24 14:22:29', NULL);
  963. INSERT INTO `sys_dict_data` VALUES (109, 11, '处置', '处置', 'erm_diagnosis_type_template_name', NULL, 'default', 'N', '0', 'admin', '2024-05-30 11:30:07', 'admin', '2024-06-24 14:22:35', NULL);
  964. INSERT INTO `sys_dict_data` VALUES (110, 12, '医嘱', '医嘱', 'erm_diagnosis_type_template_name', NULL, 'default', 'N', '0', 'admin', '2024-05-30 11:30:18', 'admin', '2024-06-24 14:22:39', NULL);
  965. INSERT INTO `sys_dict_data` VALUES (111, 0, '中国', 'CN', 'erm_citizenship', NULL, 'default', 'N', '0', 'admin', '2024-06-03 13:58:34', '', NULL, NULL);
  966. INSERT INTO `sys_dict_data` VALUES (112, 1, '巴基斯坦', '巴铁', 'erm_citizenship', NULL, 'default', 'N', '0', 'admin', '2024-06-03 14:00:54', 'admin', '2024-06-03 14:01:02', NULL);
  967. INSERT INTO `sys_dict_data` VALUES (115, 0, '汉族', '汉族', 'erm_nationality', NULL, 'default', 'N', '0', 'admin', '2024-06-03 14:24:52', '', NULL, NULL);
  968. INSERT INTO `sys_dict_data` VALUES (116, 1, '回族', '回族', 'erm_nationality', NULL, 'default', 'N', '0', 'admin', '2024-06-03 14:25:03', '', NULL, NULL);
  969. INSERT INTO `sys_dict_data` VALUES (117, 2, '满族', '满族', 'erm_nationality', NULL, 'default', 'N', '0', 'admin', '2024-06-03 14:25:12', '', NULL, NULL);
  970. INSERT INTO `sys_dict_data` VALUES (132, 0, '身份证', '身份证', 'erm_document_type', NULL, 'default', 'N', '0', 'admin', '2024-06-03 14:33:12', '', NULL, NULL);
  971. INSERT INTO `sys_dict_data` VALUES (140, 1, 'A型血', '1', 'erm_patient_blood', NULL, 'default', 'N', '0', 'admin', '2024-06-04 15:10:42', '', NULL, NULL);
  972. INSERT INTO `sys_dict_data` VALUES (141, 2, 'B型血', '2', 'erm_patient_blood', NULL, 'default', 'N', '0', 'admin', '2024-06-04 15:10:56', '', NULL, NULL);
  973. INSERT INTO `sys_dict_data` VALUES (142, 3, 'O型血', '3', 'erm_patient_blood', NULL, 'default', 'N', '0', 'admin', '2024-06-04 15:11:17', '', NULL, NULL);
  974. INSERT INTO `sys_dict_data` VALUES (143, 4, 'AB型血', '4', 'erm_patient_blood', NULL, 'default', 'N', '0', 'admin', '2024-06-04 15:11:29', '', NULL, NULL);
  975. INSERT INTO `sys_dict_data` VALUES (144, 5, 'RH型血', '5', 'erm_patient_blood', NULL, 'default', 'N', '0', 'admin', '2024-06-04 15:11:57', '', NULL, NULL);
  976. INSERT INTO `sys_dict_data` VALUES (145, 1, '预约', '1', 'erm_reservation_status', NULL, 'default', 'N', '0', 'admin', '2024-06-13 11:02:15', '', NULL, NULL);
  977. INSERT INTO `sys_dict_data` VALUES (146, 2, '已确定', '2', 'erm_reservation_status', NULL, 'default', 'N', '1', 'admin', '2024-06-13 11:02:36', 'admin', '2024-06-25 09:07:40', NULL);
  978. INSERT INTO `sys_dict_data` VALUES (147, 3, '已到店', '3', 'erm_reservation_status', NULL, 'default', 'N', '1', 'admin', '2024-06-13 11:02:46', 'admin', '2024-07-08 08:47:28', NULL);
  979. INSERT INTO `sys_dict_data` VALUES (148, 4, '待复诊', '4', 'erm_reservation_status', NULL, 'default', 'N', '0', 'admin', '2024-06-13 11:02:56', 'admin', '2024-07-08 08:45:11', NULL);
  980. INSERT INTO `sys_dict_data` VALUES (149, 5, '治疗完成', '5', 'erm_reservation_status', NULL, 'default', 'N', '0', 'admin', '2024-06-13 11:03:05', '', NULL, NULL);
  981. INSERT INTO `sys_dict_data` VALUES (150, 6, '已结账', '6', 'erm_reservation_status', NULL, 'default', 'N', '0', 'admin', '2024-06-13 11:03:15', '', NULL, NULL);
  982. INSERT INTO `sys_dict_data` VALUES (151, 7, '已离开', '7', 'erm_reservation_status', NULL, 'default', 'N', '1', 'admin', '2024-06-13 11:03:25', 'admin', '2024-06-25 09:07:47', NULL);
  983. INSERT INTO `sys_dict_data` VALUES (152, 8, '已失约', '8', 'erm_reservation_status', NULL, 'default', 'N', '0', 'admin', '2024-06-13 11:03:41', '', NULL, NULL);
  984. INSERT INTO `sys_dict_data` VALUES (153, 6, '检查', '检查', 'erm_diagnosis_type_template_name', NULL, 'default', 'N', '0', 'admin', '2024-06-18 18:34:06', 'admin', '2024-06-18 18:34:22', NULL);
  985. INSERT INTO `sys_dict_data` VALUES (154, 0, '1个月', '1', 'erm_query_scope', NULL, 'default', 'N', '0', 'admin', '2024-07-19 17:08:39', 'admin', '2024-07-19 17:09:31', NULL);
  986. INSERT INTO `sys_dict_data` VALUES (155, 0, '2个月', '2', 'erm_query_scope', NULL, 'default', 'N', '0', 'admin', '2024-07-19 17:10:03', '', NULL, NULL);
  987. INSERT INTO `sys_dict_data` VALUES (156, 0, 'access-key-id', 'xx', 'erm_sms', NULL, 'default', 'N', '0', 'admin', '2024-07-31 10:49:18', 'admin', '2024-07-31 11:07:26', NULL);
  988. INSERT INTO `sys_dict_data` VALUES (157, 1, 'access-key-secret', 'xxx', 'erm_sms', NULL, 'default', 'N', '0', 'admin', '2024-07-31 10:50:31', 'admin', '2024-07-31 11:41:55', NULL);
  989. INSERT INTO `sys_dict_data` VALUES (158, 2, 'sign-name', 'xxxx', 'erm_sms', NULL, 'default', 'N', '0', 'admin', '2024-07-31 10:50:43', 'admin', '2024-07-31 11:42:01', NULL);
  990. INSERT INTO `sys_dict_data` VALUES (159, 3, 'template-code', 'xxxxx', 'erm_sms', NULL, 'default', 'N', '0', 'admin', '2024-07-31 10:51:11', 'admin', '2024-07-31 11:42:06', NULL);
  991. -- ----------------------------
  992. -- Table structure for sys_dict_type
  993. -- ----------------------------
  994. DROP TABLE IF EXISTS `sys_dict_type`;
  995. CREATE TABLE `sys_dict_type` (
  996. `dict_id` bigint NOT NULL AUTO_INCREMENT COMMENT '字典主键',
  997. `dict_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典名称',
  998. `dict_type` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典类型',
  999. `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1停用)',
  1000. `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  1001. `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  1002. `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  1003. `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  1004. `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  1005. PRIMARY KEY (`dict_id`) USING BTREE,
  1006. UNIQUE INDEX `dict_type`(`dict_type` ASC) USING BTREE
  1007. ) ENGINE = InnoDB AUTO_INCREMENT = 115 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '字典类型表' ROW_FORMAT = DYNAMIC;
  1008. -- ----------------------------
  1009. -- Records of sys_dict_type
  1010. -- ----------------------------
  1011. INSERT INTO `sys_dict_type` VALUES (1, '用户性别', 'sys_user_sex', '0', 'admin', '2024-05-16 17:28:05', '', NULL, '用户性别列表');
  1012. INSERT INTO `sys_dict_type` VALUES (2, '菜单状态', 'sys_show_hide', '0', 'admin', '2024-05-16 17:28:05', '', NULL, '菜单状态列表');
  1013. INSERT INTO `sys_dict_type` VALUES (3, '系统开关', 'sys_normal_disable', '0', 'admin', '2024-05-16 17:28:05', '', NULL, '系统开关列表');
  1014. INSERT INTO `sys_dict_type` VALUES (4, '任务状态', 'sys_job_status', '0', 'admin', '2024-05-16 17:28:05', '', NULL, '任务状态列表');
  1015. INSERT INTO `sys_dict_type` VALUES (5, '任务分组', 'sys_job_group', '0', 'admin', '2024-05-16 17:28:05', '', NULL, '任务分组列表');
  1016. INSERT INTO `sys_dict_type` VALUES (6, '系统是否', 'sys_yes_no', '0', 'admin', '2024-05-16 17:28:05', '', NULL, '系统是否列表');
  1017. INSERT INTO `sys_dict_type` VALUES (7, '通知类型', 'sys_notice_type', '0', 'admin', '2024-05-16 17:28:05', '', NULL, '通知类型列表');
  1018. INSERT INTO `sys_dict_type` VALUES (8, '通知状态', 'sys_notice_status', '0', 'admin', '2024-05-16 17:28:05', '', NULL, '通知状态列表');
  1019. INSERT INTO `sys_dict_type` VALUES (9, '操作类型', 'sys_oper_type', '0', 'admin', '2024-05-16 17:28:05', '', NULL, '操作类型列表');
  1020. INSERT INTO `sys_dict_type` VALUES (10, '系统状态', 'sys_common_status', '0', 'admin', '2024-05-16 17:28:05', '', NULL, '登录状态列表');
  1021. INSERT INTO `sys_dict_type` VALUES (100, '诊断分类模板名称', 'erm_diagnosis_type_template_name', '0', 'admin', '2024-05-30 11:26:12', '', NULL, NULL);
  1022. INSERT INTO `sys_dict_type` VALUES (101, '国籍', 'erm_citizenship', '0', 'admin', '2024-06-03 13:56:03', '', NULL, NULL);
  1023. INSERT INTO `sys_dict_type` VALUES (103, '民族', 'erm_nationality', '0', 'admin', '2024-06-03 14:20:25', '', NULL, NULL);
  1024. INSERT INTO `sys_dict_type` VALUES (109, '证件类型', 'erm_document_type', '0', 'admin', '2024-06-03 14:32:05', '', NULL, NULL);
  1025. INSERT INTO `sys_dict_type` VALUES (111, '血型', 'erm_patient_blood', '0', 'admin', '2024-06-04 15:09:10', '', NULL, NULL);
  1026. INSERT INTO `sys_dict_type` VALUES (112, '预约状态', 'erm_reservation_status', '0', 'admin', '2024-06-13 10:59:49', '', NULL, NULL);
  1027. INSERT INTO `sys_dict_type` VALUES (113, '就诊时间范围', 'erm_query_scope', '0', 'admin', '2024-07-19 17:08:09', '', NULL, NULL);
  1028. INSERT INTO `sys_dict_type` VALUES (114, '短信配置', 'erm_sms', '0', 'admin', '2024-07-31 10:46:41', '', NULL, NULL);
  1029. -- ----------------------------
  1030. -- Table structure for sys_job
  1031. -- ----------------------------
  1032. DROP TABLE IF EXISTS `sys_job`;
  1033. CREATE TABLE `sys_job` (
  1034. `job_id` bigint NOT NULL AUTO_INCREMENT COMMENT '任务ID',
  1035. `job_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '任务名称',
  1036. `job_group` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'DEFAULT' COMMENT '任务组名',
  1037. `invoke_target` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '调用目标字符串',
  1038. `cron_expression` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT 'cron执行表达式',
  1039. `misfire_policy` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '3' COMMENT '计划执行错误策略(1立即执行 2执行一次 3放弃执行)',
  1040. `concurrent` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '1' COMMENT '是否并发执行(0允许 1禁止)',
  1041. `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1暂停)',
  1042. `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  1043. `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  1044. `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  1045. `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  1046. `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注信息',
  1047. PRIMARY KEY (`job_id`, `job_name`, `job_group`) USING BTREE
  1048. ) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '定时任务调度表' ROW_FORMAT = DYNAMIC;
  1049. -- ----------------------------
  1050. -- Records of sys_job
  1051. -- ----------------------------
  1052. INSERT INTO `sys_job` VALUES (1, '验证预约状态', 'DEFAULT', 'patientAppointmentTask.checkAppointmentStatus', '30 * * * * ?', '1', '1', '0', 'admin', '2024-05-16 17:28:09', 'admin', '2024-08-05 11:39:31', '');
  1053. INSERT INTO `sys_job` VALUES (2, '定时生成排班', 'DEFAULT', 'schedulingConfigurationTask.generateScheduling', '0 0 1 1 * ?', '1', '1', '0', 'admin', '2024-07-04 02:37:10', '', '2024-08-01 15:01:32', '');
  1054. INSERT INTO `sys_job` VALUES (3, '定时验证公告显示状态', 'DEFAULT', 'noticeManageTask.checkNoticeManageDisplayStatus', '0 * * * * ?', '1', '1', '0', 'admin', '2024-07-04 02:37:10', 'admin', '2024-07-31 16:46:29', '');
  1055. -- ----------------------------
  1056. -- Table structure for sys_job_log
  1057. -- ----------------------------
  1058. DROP TABLE IF EXISTS `sys_job_log`;
  1059. CREATE TABLE `sys_job_log` (
  1060. `job_log_id` bigint NOT NULL AUTO_INCREMENT COMMENT '任务日志ID',
  1061. `job_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '任务名称',
  1062. `job_group` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '任务组名',
  1063. `invoke_target` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '调用目标字符串',
  1064. `job_message` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '日志信息',
  1065. `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '执行状态(0正常 1失败)',
  1066. `exception_info` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '异常信息',
  1067. `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  1068. PRIMARY KEY (`job_log_id`) USING BTREE
  1069. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '定时任务调度日志表' ROW_FORMAT = DYNAMIC;
  1070. -- ----------------------------
  1071. -- Records of sys_job_log
  1072. -- ----------------------------
  1073. -- ----------------------------
  1074. -- Table structure for sys_logininfor
  1075. -- ----------------------------
  1076. DROP TABLE IF EXISTS `sys_logininfor`;
  1077. CREATE TABLE `sys_logininfor` (
  1078. `info_id` bigint NOT NULL AUTO_INCREMENT COMMENT '访问ID',
  1079. `user_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '用户账号',
  1080. `ipaddr` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '登录IP地址',
  1081. `login_location` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '登录地点',
  1082. `browser` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '浏览器类型',
  1083. `os` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '操作系统',
  1084. `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '登录状态(0成功 1失败)',
  1085. `msg` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '提示消息',
  1086. `login_time` datetime NULL DEFAULT NULL COMMENT '访问时间',
  1087. PRIMARY KEY (`info_id`) USING BTREE,
  1088. INDEX `idx_sys_logininfor_s`(`status` ASC) USING BTREE,
  1089. INDEX `idx_sys_logininfor_lt`(`login_time` ASC) USING BTREE
  1090. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '系统访问记录' ROW_FORMAT = DYNAMIC;
  1091. -- ----------------------------
  1092. -- Records of sys_logininfor
  1093. -- ----------------------------
  1094. -- ----------------------------
  1095. -- Table structure for sys_menu
  1096. -- ----------------------------
  1097. DROP TABLE IF EXISTS `sys_menu`;
  1098. CREATE TABLE `sys_menu` (
  1099. `menu_id` bigint NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
  1100. `menu_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '菜单名称',
  1101. `parent_id` bigint NULL DEFAULT 0 COMMENT '父菜单ID',
  1102. `order_num` int NULL DEFAULT 0 COMMENT '显示顺序',
  1103. `path` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '路由地址',
  1104. `component` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '组件路径',
  1105. `query` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '路由参数',
  1106. `is_frame` int NULL DEFAULT 1 COMMENT '是否为外链(0是 1否)',
  1107. `is_cache` int NULL DEFAULT 0 COMMENT '是否缓存(0缓存 1不缓存)',
  1108. `menu_type` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '菜单类型(M目录 C菜单 F按钮)',
  1109. `visible` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '菜单状态(0显示 1隐藏)',
  1110. `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '菜单状态(0正常 1停用)',
  1111. `perms` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '权限标识',
  1112. `icon` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '#' COMMENT '菜单图标',
  1113. `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  1114. `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  1115. `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  1116. `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  1117. `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
  1118. PRIMARY KEY (`menu_id`) USING BTREE
  1119. ) ENGINE = InnoDB AUTO_INCREMENT = 2019 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '菜单权限表' ROW_FORMAT = DYNAMIC;
  1120. -- ----------------------------
  1121. -- Records of sys_menu
  1122. -- ----------------------------
  1123. INSERT INTO `sys_menu` VALUES (1, '系统管理', 0, 109, 'system', NULL, '', 1, 0, 'M', '0', '0', '', 'system', 'admin', '2024-05-16 17:27:50', 'admin', '2024-06-20 09:34:15', '系统管理目录');
  1124. INSERT INTO `sys_menu` VALUES (2, '系统监控', 1, 110, 'monitor', NULL, '', 1, 0, 'M', '1', '0', '', 'monitor', 'admin', '2024-05-16 17:27:51', 'admin', '2024-08-08 09:56:46', '系统监控目录');
  1125. INSERT INTO `sys_menu` VALUES (3, '系统工具', 1, 111, 'tool', NULL, '', 1, 0, 'M', '1', '0', '', 'tool', 'admin', '2024-05-16 17:27:51', 'admin', '2024-08-08 09:56:54', '系统工具目录');
  1126. INSERT INTO `sys_menu` VALUES (100, '用户管理', 1, 1, 'user', 'system/user/index', '', 1, 0, 'C', '0', '0', 'system:user:list', 'user', 'admin', '2024-05-16 17:27:51', '', NULL, '用户管理菜单');
  1127. INSERT INTO `sys_menu` VALUES (101, '角色管理', 1, 2, 'role', 'system/role/index', '', 1, 0, 'C', '0', '0', 'system:role:list', 'peoples', 'admin', '2024-05-16 17:27:51', '', NULL, '角色管理菜单');
  1128. INSERT INTO `sys_menu` VALUES (102, '菜单管理', 1, 3, 'menu', 'system/menu/index', '', 1, 0, 'C', '1', '0', 'system:menu:list', 'tree-table', 'admin', '2024-05-16 17:27:51', 'admin', '2024-08-07 17:19:42', '菜单管理菜单');
  1129. INSERT INTO `sys_menu` VALUES (103, '科室管理', 1, 4, 'dept', 'system/dept/index', '', 1, 0, 'C', '0', '0', 'system:dept:list', 'tree', 'admin', '2024-05-16 17:27:51', 'admin', '2024-05-29 10:58:29', '部门管理菜单');
  1130. INSERT INTO `sys_menu` VALUES (104, '岗位管理', 1, 5, 'post', 'system/post/index', '', 1, 0, 'C', '0', '0', 'system:post:list', 'post', 'admin', '2024-05-16 17:27:51', '', NULL, '岗位管理菜单');
  1131. INSERT INTO `sys_menu` VALUES (105, '字典管理', 1, 6, 'dict', 'system/dict/index', '', 1, 0, 'C', '1', '0', 'system:dict:list', 'dict', 'admin', '2024-05-16 17:27:51', 'admin', '2024-08-07 17:20:47', '字典管理菜单');
  1132. INSERT INTO `sys_menu` VALUES (106, '参数设置', 1, 7, 'config', 'system/config/index', '', 1, 0, 'C', '0', '1', 'system:config:list', 'edit', 'admin', '2024-05-16 17:27:51', 'admin', '2024-07-22 09:48:20', '参数设置菜单');
  1133. INSERT INTO `sys_menu` VALUES (107, '通知公告', 1, 8, 'notice', 'system/notice/index', '', 1, 0, 'C', '0', '1', 'system:notice:list', 'message', 'admin', '2024-05-16 17:27:51', 'admin', '2024-08-02 16:42:12', '通知公告菜单');
  1134. INSERT INTO `sys_menu` VALUES (108, '日志管理', 1, 9, 'log', '', '', 1, 0, 'M', '0', '1', '', 'log', 'admin', '2024-05-16 17:27:51', 'admin', '2024-07-22 09:48:27', '日志管理菜单');
  1135. INSERT INTO `sys_menu` VALUES (109, '在线用户', 2, 1, 'online', 'monitor/online/index', '', 1, 0, 'C', '0', '0', 'monitor:online:list', 'online', 'admin', '2024-05-16 17:27:51', '', NULL, '在线用户菜单');
  1136. INSERT INTO `sys_menu` VALUES (110, '定时任务', 2, 2, 'job', 'monitor/job/index', '', 1, 0, 'C', '0', '0', 'monitor:job:list', 'job', 'admin', '2024-05-16 17:27:51', '', NULL, '定时任务菜单');
  1137. INSERT INTO `sys_menu` VALUES (111, '数据监控', 2, 3, 'druid', 'monitor/druid/index', '', 1, 0, 'C', '0', '1', 'monitor:druid:list', 'druid', 'admin', '2024-05-16 17:27:51', 'admin', '2024-07-31 15:46:57', '数据监控菜单');
  1138. INSERT INTO `sys_menu` VALUES (112, '服务监控', 2, 4, 'server', 'monitor/server/index', '', 1, 0, 'C', '0', '1', 'monitor:server:list', 'server', 'admin', '2024-05-16 17:27:52', 'admin', '2024-07-31 15:47:03', '服务监控菜单');
  1139. INSERT INTO `sys_menu` VALUES (113, '缓存监控', 2, 5, 'cache', 'monitor/cache/index', '', 1, 0, 'C', '0', '1', 'monitor:cache:list', 'redis', 'admin', '2024-05-16 17:27:52', 'admin', '2024-08-05 11:40:56', '缓存监控菜单');
  1140. INSERT INTO `sys_menu` VALUES (114, '缓存列表', 2, 6, 'cacheList', 'monitor/cache/list', '', 1, 0, 'C', '0', '0', 'monitor:cache:list', 'redis-list', 'admin', '2024-05-16 17:27:52', 'admin', '2024-08-05 11:40:51', '缓存列表菜单');
  1141. INSERT INTO `sys_menu` VALUES (115, '表单构建', 3, 1, 'build', 'tool/build/index', '', 1, 0, 'C', '0', '1', 'tool:build:list', 'build', 'admin', '2024-05-16 17:27:52', 'admin', '2024-07-29 14:16:21', '表单构建菜单');
  1142. INSERT INTO `sys_menu` VALUES (116, '代码生成', 3, 2, 'gen', 'tool/gen/index', '', 1, 0, 'C', '0', '1', 'tool:gen:list', 'code', 'admin', '2024-05-16 17:27:52', 'admin', '2024-07-29 14:16:28', '代码生成菜单');
  1143. INSERT INTO `sys_menu` VALUES (117, '系统接口', 3, 3, 'swagger', 'tool/swagger/index', '', 1, 0, 'C', '0', '0', 'tool:swagger:list', 'swagger', 'admin', '2024-05-16 17:27:52', '', NULL, '系统接口菜单');
  1144. INSERT INTO `sys_menu` VALUES (500, '操作日志', 108, 1, 'operlog', 'monitor/operlog/index', '', 1, 0, 'C', '0', '0', 'monitor:operlog:list', 'form', 'admin', '2024-05-16 17:27:52', '', NULL, '操作日志菜单');
  1145. INSERT INTO `sys_menu` VALUES (501, '登录日志', 108, 2, 'logininfor', 'monitor/logininfor/index', '', 1, 0, 'C', '0', '0', 'monitor:logininfor:list', 'logininfor', 'admin', '2024-05-16 17:27:52', '', NULL, '登录日志菜单');
  1146. INSERT INTO `sys_menu` VALUES (1000, '用户查询', 100, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:user:query', '#', 'admin', '2024-05-16 17:27:52', '', NULL, '');
  1147. INSERT INTO `sys_menu` VALUES (1001, '用户新增', 100, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:user:add', '#', 'admin', '2024-05-16 17:27:52', '', NULL, '');
  1148. INSERT INTO `sys_menu` VALUES (1002, '用户修改', 100, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:user:edit', '#', 'admin', '2024-05-16 17:27:52', '', NULL, '');
  1149. INSERT INTO `sys_menu` VALUES (1003, '用户删除', 100, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:user:remove', '#', 'admin', '2024-05-16 17:27:52', '', NULL, '');
  1150. INSERT INTO `sys_menu` VALUES (1004, '用户导出', 100, 5, '', '', '', 1, 0, 'F', '0', '0', 'system:user:export', '#', 'admin', '2024-05-16 17:27:52', '', NULL, '');
  1151. INSERT INTO `sys_menu` VALUES (1005, '用户导入', 100, 6, '', '', '', 1, 0, 'F', '0', '0', 'system:user:import', '#', 'admin', '2024-05-16 17:27:52', '', NULL, '');
  1152. INSERT INTO `sys_menu` VALUES (1006, '重置密码', 100, 7, '', '', '', 1, 0, 'F', '0', '0', 'system:user:resetPwd', '#', 'admin', '2024-05-16 17:27:52', '', NULL, '');
  1153. INSERT INTO `sys_menu` VALUES (1007, '角色查询', 101, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:role:query', '#', 'admin', '2024-05-16 17:27:52', '', NULL, '');
  1154. INSERT INTO `sys_menu` VALUES (1008, '角色新增', 101, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:role:add', '#', 'admin', '2024-05-16 17:27:53', '', NULL, '');
  1155. INSERT INTO `sys_menu` VALUES (1009, '角色修改', 101, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:role:edit', '#', 'admin', '2024-05-16 17:27:53', '', NULL, '');
  1156. INSERT INTO `sys_menu` VALUES (1010, '角色删除', 101, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:role:remove', '#', 'admin', '2024-05-16 17:27:53', '', NULL, '');
  1157. INSERT INTO `sys_menu` VALUES (1011, '角色导出', 101, 5, '', '', '', 1, 0, 'F', '0', '0', 'system:role:export', '#', 'admin', '2024-05-16 17:27:53', '', NULL, '');
  1158. INSERT INTO `sys_menu` VALUES (1012, '菜单查询', 102, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:menu:query', '#', 'admin', '2024-05-16 17:27:53', '', NULL, '');
  1159. INSERT INTO `sys_menu` VALUES (1013, '菜单新增', 102, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:menu:add', '#', 'admin', '2024-05-16 17:27:53', '', NULL, '');
  1160. INSERT INTO `sys_menu` VALUES (1014, '菜单修改', 102, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:menu:edit', '#', 'admin', '2024-05-16 17:27:53', '', NULL, '');
  1161. INSERT INTO `sys_menu` VALUES (1015, '菜单删除', 102, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:menu:remove', '#', 'admin', '2024-05-16 17:27:53', '', NULL, '');
  1162. INSERT INTO `sys_menu` VALUES (1016, '部门查询', 103, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:dept:query', '#', 'admin', '2024-05-16 17:27:53', '', NULL, '');
  1163. INSERT INTO `sys_menu` VALUES (1017, '部门新增', 103, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:dept:add', '#', 'admin', '2024-05-16 17:27:53', '', NULL, '');
  1164. INSERT INTO `sys_menu` VALUES (1018, '部门修改', 103, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:dept:edit', '#', 'admin', '2024-05-16 17:27:53', '', NULL, '');
  1165. INSERT INTO `sys_menu` VALUES (1019, '部门删除', 103, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:dept:remove', '#', 'admin', '2024-05-16 17:27:53', '', NULL, '');
  1166. INSERT INTO `sys_menu` VALUES (1020, '岗位查询', 104, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:post:query', '#', 'admin', '2024-05-16 17:27:53', '', NULL, '');
  1167. INSERT INTO `sys_menu` VALUES (1021, '岗位新增', 104, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:post:add', '#', 'admin', '2024-05-16 17:27:53', '', NULL, '');
  1168. INSERT INTO `sys_menu` VALUES (1022, '岗位修改', 104, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:post:edit', '#', 'admin', '2024-05-16 17:27:54', '', NULL, '');
  1169. INSERT INTO `sys_menu` VALUES (1023, '岗位删除', 104, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:post:remove', '#', 'admin', '2024-05-16 17:27:54', '', NULL, '');
  1170. INSERT INTO `sys_menu` VALUES (1024, '岗位导出', 104, 5, '', '', '', 1, 0, 'F', '0', '0', 'system:post:export', '#', 'admin', '2024-05-16 17:27:54', '', NULL, '');
  1171. INSERT INTO `sys_menu` VALUES (1025, '字典查询', 105, 1, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:query', '#', 'admin', '2024-05-16 17:27:54', '', NULL, '');
  1172. INSERT INTO `sys_menu` VALUES (1026, '字典新增', 105, 2, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:add', '#', 'admin', '2024-05-16 17:27:54', '', NULL, '');
  1173. INSERT INTO `sys_menu` VALUES (1027, '字典修改', 105, 3, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:edit', '#', 'admin', '2024-05-16 17:27:54', '', NULL, '');
  1174. INSERT INTO `sys_menu` VALUES (1028, '字典删除', 105, 4, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:remove', '#', 'admin', '2024-05-16 17:27:54', '', NULL, '');
  1175. INSERT INTO `sys_menu` VALUES (1029, '字典导出', 105, 5, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:export', '#', 'admin', '2024-05-16 17:27:54', '', NULL, '');
  1176. INSERT INTO `sys_menu` VALUES (1030, '参数查询', 106, 1, '#', '', '', 1, 0, 'F', '0', '0', 'system:config:query', '#', 'admin', '2024-05-16 17:27:54', '', NULL, '');
  1177. INSERT INTO `sys_menu` VALUES (1031, '参数新增', 106, 2, '#', '', '', 1, 0, 'F', '0', '0', 'system:config:add', '#', 'admin', '2024-05-16 17:27:54', '', NULL, '');
  1178. INSERT INTO `sys_menu` VALUES (1032, '参数修改', 106, 3, '#', '', '', 1, 0, 'F', '0', '0', 'system:config:edit', '#', 'admin', '2024-05-16 17:27:54', '', NULL, '');
  1179. INSERT INTO `sys_menu` VALUES (1033, '参数删除', 106, 4, '#', '', '', 1, 0, 'F', '0', '0', 'system:config:remove', '#', 'admin', '2024-05-16 17:27:54', '', NULL, '');
  1180. INSERT INTO `sys_menu` VALUES (1034, '参数导出', 106, 5, '#', '', '', 1, 0, 'F', '0', '0', 'system:config:export', '#', 'admin', '2024-05-16 17:27:54', '', NULL, '');
  1181. INSERT INTO `sys_menu` VALUES (1035, '公告查询', 107, 1, '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:query', '#', 'admin', '2024-05-16 17:27:54', '', NULL, '');
  1182. INSERT INTO `sys_menu` VALUES (1036, '公告新增', 107, 2, '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:add', '#', 'admin', '2024-05-16 17:27:54', '', NULL, '');
  1183. INSERT INTO `sys_menu` VALUES (1037, '公告修改', 107, 3, '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:edit', '#', 'admin', '2024-05-16 17:27:54', '', NULL, '');
  1184. INSERT INTO `sys_menu` VALUES (1038, '公告删除', 107, 4, '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:remove', '#', 'admin', '2024-05-16 17:27:55', '', NULL, '');
  1185. INSERT INTO `sys_menu` VALUES (1039, '操作查询', 500, 1, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:query', '#', 'admin', '2024-05-16 17:27:55', '', NULL, '');
  1186. INSERT INTO `sys_menu` VALUES (1040, '操作删除', 500, 2, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:remove', '#', 'admin', '2024-05-16 17:27:55', '', NULL, '');
  1187. INSERT INTO `sys_menu` VALUES (1041, '日志导出', 500, 3, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:export', '#', 'admin', '2024-05-16 17:27:55', '', NULL, '');
  1188. INSERT INTO `sys_menu` VALUES (1042, '登录查询', 501, 1, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:query', '#', 'admin', '2024-05-16 17:27:55', '', NULL, '');
  1189. INSERT INTO `sys_menu` VALUES (1043, '登录删除', 501, 2, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:remove', '#', 'admin', '2024-05-16 17:27:55', '', NULL, '');
  1190. INSERT INTO `sys_menu` VALUES (1044, '日志导出', 501, 3, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:export', '#', 'admin', '2024-05-16 17:27:55', '', NULL, '');
  1191. INSERT INTO `sys_menu` VALUES (1045, '账户解锁', 501, 4, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:unlock', '#', 'admin', '2024-05-16 17:27:55', '', NULL, '');
  1192. INSERT INTO `sys_menu` VALUES (1046, '在线查询', 109, 1, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:online:query', '#', 'admin', '2024-05-16 17:27:55', '', NULL, '');
  1193. INSERT INTO `sys_menu` VALUES (1047, '批量强退', 109, 2, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:online:batchLogout', '#', 'admin', '2024-05-16 17:27:55', '', NULL, '');
  1194. INSERT INTO `sys_menu` VALUES (1048, '单条强退', 109, 3, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:online:forceLogout', '#', 'admin', '2024-05-16 17:27:55', '', NULL, '');
  1195. INSERT INTO `sys_menu` VALUES (1049, '任务查询', 110, 1, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:query', '#', 'admin', '2024-05-16 17:27:55', '', NULL, '');
  1196. INSERT INTO `sys_menu` VALUES (1050, '任务新增', 110, 2, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:add', '#', 'admin', '2024-05-16 17:27:55', '', NULL, '');
  1197. INSERT INTO `sys_menu` VALUES (1051, '任务修改', 110, 3, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:edit', '#', 'admin', '2024-05-16 17:27:55', '', NULL, '');
  1198. INSERT INTO `sys_menu` VALUES (1052, '任务删除', 110, 4, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:remove', '#', 'admin', '2024-05-16 17:27:55', '', NULL, '');
  1199. INSERT INTO `sys_menu` VALUES (1053, '状态修改', 110, 5, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:changeStatus', '#', 'admin', '2024-05-16 17:27:55', '', NULL, '');
  1200. INSERT INTO `sys_menu` VALUES (1054, '任务导出', 110, 6, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:export', '#', 'admin', '2024-05-16 17:27:56', '', NULL, '');
  1201. INSERT INTO `sys_menu` VALUES (1055, '生成查询', 116, 1, '#', '', '', 1, 0, 'F', '0', '0', 'tool:gen:query', '#', 'admin', '2024-05-16 17:27:56', '', NULL, '');
  1202. INSERT INTO `sys_menu` VALUES (1056, '生成修改', 116, 2, '#', '', '', 1, 0, 'F', '0', '0', 'tool:gen:edit', '#', 'admin', '2024-05-16 17:27:56', '', NULL, '');
  1203. INSERT INTO `sys_menu` VALUES (1057, '生成删除', 116, 3, '#', '', '', 1, 0, 'F', '0', '0', 'tool:gen:remove', '#', 'admin', '2024-05-16 17:27:56', '', NULL, '');
  1204. INSERT INTO `sys_menu` VALUES (1058, '导入代码', 116, 4, '#', '', '', 1, 0, 'F', '0', '0', 'tool:gen:import', '#', 'admin', '2024-05-16 17:27:56', '', NULL, '');
  1205. INSERT INTO `sys_menu` VALUES (1059, '预览代码', 116, 5, '#', '', '', 1, 0, 'F', '0', '0', 'tool:gen:preview', '#', 'admin', '2024-05-16 17:27:56', '', NULL, '');
  1206. INSERT INTO `sys_menu` VALUES (1060, '生成代码', 116, 6, '#', '', '', 1, 0, 'F', '0', '0', 'tool:gen:code', '#', 'admin', '2024-05-16 17:27:56', '', NULL, '');
  1207. INSERT INTO `sys_menu` VALUES (2002, '病历模版', 2007, 20, 'medicalRecord', 'system/medicalRecord/index', NULL, 1, 0, 'C', '0', '0', '', '#', 'admin', '2024-05-29 10:32:34', 'admin', '2024-07-19 14:19:07', '');
  1208. INSERT INTO `sys_menu` VALUES (2003, '工作台', 0, 0, '/', 'home/index', NULL, 1, 0, 'C', '0', '0', '', '#', 'admin', '2024-05-29 11:29:29', 'admin', '2024-05-29 11:29:46', '');
  1209. INSERT INTO `sys_menu` VALUES (2004, '患者中心', 0, 1, '/patientCenter', 'patientCenter/index', NULL, 1, 0, 'C', '1', '0', 'system:user:list', '#', 'admin', '2024-05-31 09:47:51', 'admin', '2024-07-19 14:24:36', '');
  1210. INSERT INTO `sys_menu` VALUES (2005, '预约项目管理', 2007, 30, 'appointmentProject', 'system/appointmentProject/index', NULL, 1, 0, 'C', '0', '0', '', '#', 'admin', '2024-05-31 13:48:23', 'admin', '2024-07-22 09:54:58', '');
  1211. INSERT INTO `sys_menu` VALUES (2006, '预约管理', 0, 3, '/makeAppointment', 'makeAppointment/index', NULL, 1, 0, 'C', '1', '1', 'system:user:list', '#', 'admin', '2024-06-20 09:33:14', 'admin', '2024-07-19 14:24:27', '');
  1212. INSERT INTO `sys_menu` VALUES (2007, '诊所管理', 1, 19, 'settingsPage', NULL, NULL, 1, 0, 'M', '0', '0', '', 'server', 'admin', '2024-06-25 09:46:30', 'admin', '2024-06-25 09:50:26', '');
  1213. INSERT INTO `sys_menu` VALUES (2008, '配置设置', 2007, 5, 'configurationSettings', 'settingsPage/configurationSettings/index', NULL, 1, 0, 'C', '0', '0', '', '#', 'admin', '2024-06-25 09:48:04', 'admin', '2024-06-25 09:51:09', '');
  1214. INSERT INTO `sys_menu` VALUES (2009, '诊所概览', 2007, 1, 'clinicOverview', 'settingsPage/clinicOverview/index', NULL, 1, 0, 'C', '0', '0', '', '#', 'admin', '2024-06-26 06:00:09', 'admin', '2024-06-26 06:08:18', '');
  1215. INSERT INTO `sys_menu` VALUES (2010, '排班管理', 0, 5, '/scheduling', 'scheduling/index', NULL, 1, 0, 'C', '0', '0', '', 'druid', 'admin', '2024-07-02 06:53:33', 'admin', '2024-07-10 16:57:53', '');
  1216. INSERT INTO `sys_menu` VALUES (2011, '回访管理', 0, 4, '/returnVisit', 'returnVisit/index', NULL, 1, 0, 'C', '0', '0', NULL, 'phone', 'admin', '2024-07-10 17:00:11', '', NULL, '');
  1217. INSERT INTO `sys_menu` VALUES (2012, '协议模版', 2007, 7, 'protocolTemplate', 'settingsPage/protocolTemplate/index', NULL, 1, 0, 'C', '0', '0', '', '#', 'admin', '2024-07-19 14:22:03', 'admin', '2024-07-19 14:22:57', '');
  1218. INSERT INTO `sys_menu` VALUES (2013, '就诊记录', 0, 2, '/medicalRecords', 'medicalRecords/index', NULL, 1, 0, 'C', '0', '0', '', '#', 'admin', '2024-07-19 14:24:54', 'admin', '2024-07-19 14:25:31', '');
  1219. INSERT INTO `sys_menu` VALUES (2014, '收费分类', 2007, 8, 'feeClassification', 'settingsPage/feeClassification/index', NULL, 1, 0, 'C', '0', '0', '', '#', 'admin', '2024-07-22 09:56:37', 'admin', '2024-07-22 10:03:07', '');
  1220. INSERT INTO `sys_menu` VALUES (2015, '患者收费分类', 2007, 9, 'patientFees', 'settingsPage/patientFees/index', NULL, 1, 0, 'C', '0', '0', NULL, '#', 'admin', '2024-07-22 16:21:40', '', NULL, '');
  1221. INSERT INTO `sys_menu` VALUES (2016, '运营分析', 0, 6, '/operationsAnalysis', 'operationsAnalysis/index', NULL, 1, 0, 'C', '0', '0', NULL, 'server', 'admin', '2024-07-25 15:16:05', '', NULL, '');
  1222. INSERT INTO `sys_menu` VALUES (2017, '诊所维护', 1, 40, 'clinicMaintenance', 'settingsPage/clinicMaintenance/index', NULL, 1, 0, 'C', '0', '1', '', '#', 'admin', '2024-07-30 09:08:55', 'admin', '2024-08-09 14:56:57', '');
  1223. INSERT INTO `sys_menu` VALUES (2018, '公告管理', 2007, 50, 'announcements', 'settingsPage/announcements/index', NULL, 1, 0, 'C', '0', '0', NULL, '#', 'admin', '2024-07-30 14:39:33', '', NULL, '');
  1224. -- ----------------------------
  1225. -- Table structure for sys_notice
  1226. -- ----------------------------
  1227. DROP TABLE IF EXISTS `sys_notice`;
  1228. CREATE TABLE `sys_notice` (
  1229. `notice_id` int NOT NULL AUTO_INCREMENT COMMENT '公告ID',
  1230. `notice_title` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '公告标题',
  1231. `notice_type` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '公告类型(1通知 2公告)',
  1232. `notice_content` longblob NULL COMMENT '公告内容',
  1233. `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '公告状态(0正常 1关闭)',
  1234. `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  1235. `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  1236. `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  1237. `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  1238. `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  1239. PRIMARY KEY (`notice_id`) USING BTREE
  1240. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '通知公告表' ROW_FORMAT = DYNAMIC;
  1241. -- ----------------------------
  1242. -- Records of sys_notice
  1243. -- ----------------------------
  1244. -- ----------------------------
  1245. -- Table structure for sys_oper_log
  1246. -- ----------------------------
  1247. DROP TABLE IF EXISTS `sys_oper_log`;
  1248. CREATE TABLE `sys_oper_log` (
  1249. `oper_id` bigint NOT NULL AUTO_INCREMENT COMMENT '日志主键',
  1250. `title` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '模块标题',
  1251. `business_type` int NULL DEFAULT 0 COMMENT '业务类型(0其它 1新增 2修改 3删除)',
  1252. `method` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '方法名称',
  1253. `request_method` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '请求方式',
  1254. `operator_type` int NULL DEFAULT 0 COMMENT '操作类别(0其它 1后台用户 2手机端用户)',
  1255. `oper_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '操作人员',
  1256. `dept_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '部门名称',
  1257. `oper_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '请求URL',
  1258. `oper_ip` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '主机地址',
  1259. `oper_location` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '操作地点',
  1260. `oper_param` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '请求参数',
  1261. `json_result` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '返回参数',
  1262. `status` int NULL DEFAULT 0 COMMENT '操作状态(0正常 1异常)',
  1263. `error_msg` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '错误消息',
  1264. `oper_time` datetime NULL DEFAULT NULL COMMENT '操作时间',
  1265. `cost_time` bigint NULL DEFAULT 0 COMMENT '消耗时间',
  1266. PRIMARY KEY (`oper_id`) USING BTREE,
  1267. INDEX `idx_sys_oper_log_bt`(`business_type` ASC) USING BTREE,
  1268. INDEX `idx_sys_oper_log_s`(`status` ASC) USING BTREE,
  1269. INDEX `idx_sys_oper_log_ot`(`oper_time` ASC) USING BTREE
  1270. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '操作日志记录' ROW_FORMAT = DYNAMIC;
  1271. -- ----------------------------
  1272. -- Records of sys_oper_log
  1273. -- ----------------------------
  1274. -- ----------------------------
  1275. -- Table structure for sys_post
  1276. -- ----------------------------
  1277. DROP TABLE IF EXISTS `sys_post`;
  1278. CREATE TABLE `sys_post` (
  1279. `post_id` bigint NOT NULL AUTO_INCREMENT COMMENT '岗位ID',
  1280. `post_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '岗位编码',
  1281. `post_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '岗位名称',
  1282. `post_sort` int NOT NULL COMMENT '显示顺序',
  1283. `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '状态(0正常 1停用)',
  1284. `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  1285. `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  1286. `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  1287. `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  1288. `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  1289. PRIMARY KEY (`post_id`) USING BTREE
  1290. ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '岗位信息表' ROW_FORMAT = DYNAMIC;
  1291. -- ----------------------------
  1292. -- Records of sys_post
  1293. -- ----------------------------
  1294. INSERT INTO `sys_post` VALUES (1, 'ceo', '院长', 1, '0', 'admin', '2024-05-16 17:27:49', 'admin', '2024-06-18 16:37:28', '');
  1295. -- ----------------------------
  1296. -- Table structure for sys_role
  1297. -- ----------------------------
  1298. DROP TABLE IF EXISTS `sys_role`;
  1299. CREATE TABLE `sys_role` (
  1300. `role_id` bigint NOT NULL AUTO_INCREMENT COMMENT '角色ID',
  1301. `role_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色名称',
  1302. `role_key` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色权限字符串',
  1303. `role_sort` int NOT NULL COMMENT '显示顺序',
  1304. `data_scope` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '1' COMMENT '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)',
  1305. `menu_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '菜单树选择项是否关联显示',
  1306. `dept_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '部门树选择项是否关联显示',
  1307. `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色状态(0正常 1停用)',
  1308. `del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
  1309. `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  1310. `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  1311. `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  1312. `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  1313. `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  1314. PRIMARY KEY (`role_id`) USING BTREE
  1315. ) ENGINE = InnoDB AUTO_INCREMENT = 101 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色信息表' ROW_FORMAT = DYNAMIC;
  1316. -- ----------------------------
  1317. -- Records of sys_role
  1318. -- ----------------------------
  1319. INSERT INTO `sys_role` VALUES (1, '超级管理员', 'admin', 1, '1', 1, 1, '0', '0', 'admin', '2024-05-16 17:27:50', '', NULL, '超级管理员');
  1320. -- ----------------------------
  1321. -- Table structure for sys_role_dept
  1322. -- ----------------------------
  1323. DROP TABLE IF EXISTS `sys_role_dept`;
  1324. CREATE TABLE `sys_role_dept` (
  1325. `role_id` bigint NOT NULL COMMENT '角色ID',
  1326. `dept_id` bigint NOT NULL COMMENT '部门ID',
  1327. PRIMARY KEY (`role_id`, `dept_id`) USING BTREE
  1328. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色和部门关联表' ROW_FORMAT = DYNAMIC;
  1329. -- ----------------------------
  1330. -- Records of sys_role_dept
  1331. -- ----------------------------
  1332. -- ----------------------------
  1333. -- Table structure for sys_role_menu
  1334. -- ----------------------------
  1335. DROP TABLE IF EXISTS `sys_role_menu`;
  1336. CREATE TABLE `sys_role_menu` (
  1337. `role_id` bigint NOT NULL COMMENT '角色ID',
  1338. `menu_id` bigint NOT NULL COMMENT '菜单ID',
  1339. PRIMARY KEY (`role_id`, `menu_id`) USING BTREE
  1340. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色和菜单关联表' ROW_FORMAT = DYNAMIC;
  1341. -- ----------------------------
  1342. -- Records of sys_role_menu
  1343. -- ----------------------------
  1344. -- ----------------------------
  1345. -- Table structure for sys_user
  1346. -- ----------------------------
  1347. DROP TABLE IF EXISTS `sys_user`;
  1348. CREATE TABLE `sys_user` (
  1349. `user_id` bigint NOT NULL AUTO_INCREMENT COMMENT '用户ID',
  1350. `dept_id` bigint NULL DEFAULT NULL COMMENT '部门ID',
  1351. `user_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户账号',
  1352. `nick_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户昵称',
  1353. `user_type` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '00' COMMENT '用户类型(00系统用户)',
  1354. `email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '用户邮箱',
  1355. `phonenumber` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '手机号码',
  1356. `sex` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '用户性别(0男 1女 2未知)',
  1357. `avatar` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '头像地址',
  1358. `password` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '密码',
  1359. `status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '帐号状态(0正常 1停用)',
  1360. `del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
  1361. `login_ip` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '最后登录IP',
  1362. `login_date` datetime NULL DEFAULT NULL COMMENT '最后登录时间',
  1363. `create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
  1364. `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  1365. `update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
  1366. `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  1367. `remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  1368. `physician_qualification_certificate_pic` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '医师资格证书',
  1369. `medical_practicing_certificate_pic` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '医师执业证书',
  1370. `physician_qualification_certificate_num` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '医师资格证书编号',
  1371. `medical_practicing_certificate_num` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '医师执业证书编号',
  1372. `show_patient` int NULL DEFAULT NULL COMMENT '是否展示患者端',
  1373. `doctor_proficient` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '医生擅长',
  1374. `doctor_blurb` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '医生简介',
  1375. PRIMARY KEY (`user_id`) USING BTREE
  1376. ) ENGINE = InnoDB AUTO_INCREMENT = 101 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户信息表' ROW_FORMAT = DYNAMIC;
  1377. -- ----------------------------
  1378. -- Records of sys_user
  1379. -- ----------------------------
  1380. INSERT INTO `sys_user` VALUES (1, 100, 'admin', '管理员', '00', NULL, NULL, '0', NULL, '$2a$10$VHHmhcGIEryylqXeMtAM0u94XQFCSBglxX9uI8JxTxW8Y3wxiRTpi', '0', '0', '117.9.171.201', '2024-08-08 09:53:39', 'admin', '2024-05-16 17:27:49', '', '2024-08-08 09:53:39', NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL);
  1381. -- ----------------------------
  1382. -- Table structure for sys_user_post
  1383. -- ----------------------------
  1384. DROP TABLE IF EXISTS `sys_user_post`;
  1385. CREATE TABLE `sys_user_post` (
  1386. `user_id` bigint NOT NULL COMMENT '用户ID',
  1387. `post_id` bigint NOT NULL COMMENT '岗位ID',
  1388. PRIMARY KEY (`user_id`, `post_id`) USING BTREE
  1389. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户与岗位关联表' ROW_FORMAT = DYNAMIC;
  1390. -- ----------------------------
  1391. -- Records of sys_user_post
  1392. -- ----------------------------
  1393. INSERT INTO `sys_user_post` VALUES (1, 1);
  1394. -- ----------------------------
  1395. -- Table structure for sys_user_role
  1396. -- ----------------------------
  1397. DROP TABLE IF EXISTS `sys_user_role`;
  1398. CREATE TABLE `sys_user_role` (
  1399. `user_id` bigint NOT NULL COMMENT '用户ID',
  1400. `role_id` bigint NOT NULL COMMENT '角色ID',
  1401. PRIMARY KEY (`user_id`, `role_id`) USING BTREE
  1402. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户和角色关联表' ROW_FORMAT = DYNAMIC;
  1403. -- ----------------------------
  1404. -- Records of sys_user_role
  1405. -- ----------------------------
  1406. INSERT INTO `sys_user_role` VALUES (1, 1);
  1407. SET FOREIGN_KEY_CHECKS = 1;