💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
~~~ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for hp_area -- ---------------------------- DROP TABLE IF EXISTS `hp_area`; CREATE TABLE `hp_area` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, `add_time` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='面积'; -- ---------------------------- -- Table structure for hp_cases -- ---------------------------- DROP TABLE IF EXISTS `hp_cases`; CREATE TABLE `hp_cases` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) DEFAULT NULL COMMENT '医生ID', `m_id` int(11) DEFAULT NULL COMMENT '患者ID', `state` tinyint(2) DEFAULT NULL COMMENT '是否住院 0为不住院 1为住院', `clinic_date` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '就诊日期', `record` text COLLATE utf8mb4_general_ci COMMENT '记录', `add_time` int(11) DEFAULT NULL, `length_time` varchar(11) COLLATE utf8mb4_general_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='就诊记录表'; -- ---------------------------- -- Table structure for hp_diseases -- ---------------------------- DROP TABLE IF EXISTS `hp_diseases`; CREATE TABLE `hp_diseases` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, `add_time` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='病种'; -- ---------------------------- -- Table structure for hp_instrument -- ---------------------------- DROP TABLE IF EXISTS `hp_instrument`; CREATE TABLE `hp_instrument` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '仪器名称', `add_time` int(11) DEFAULT NULL, `status` tinyint(2) DEFAULT NULL COMMENT '仪器状态 0为停用 1为正常 ', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- ---------------------------- -- Table structure for hp_instrument_buy -- ---------------------------- DROP TABLE IF EXISTS `hp_instrument_buy`; CREATE TABLE `hp_instrument_buy` ( `id` int(11) NOT NULL AUTO_INCREMENT, `instrument_id` int(11) DEFAULT NULL, `user_id` int(11) DEFAULT NULL, `m_id` int(11) DEFAULT NULL, `buy_time` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL, `number` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL, `add_time` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- ---------------------------- -- Table structure for hp_instrument_record -- ---------------------------- DROP TABLE IF EXISTS `hp_instrument_record`; CREATE TABLE `hp_instrument_record` ( `id` int(11) NOT NULL AUTO_INCREMENT, `m_id` int(11) DEFAULT NULL COMMENT '患者ID', `user_id` int(11) DEFAULT NULL COMMENT '使用者', `instrument_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '仪器名称', `location` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '部位', `operation_time` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '操作时长', `operation_doctor` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '操作医生', `feedback` tinytext COLLATE utf8mb4_general_ci COMMENT '反馈', `add_time` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='仪器使用记录'; -- ---------------------------- -- Table structure for hp_medicine_record -- ---------------------------- DROP TABLE IF EXISTS `hp_medicine_record`; CREATE TABLE `hp_medicine_record` ( `id` int(11) NOT NULL AUTO_INCREMENT, `add_time` int(11) DEFAULT NULL, `title` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '药品名称', `length_time` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '拿药时长', `user_id` int(11) DEFAULT NULL COMMENT '医生ID', `m_id` int(11) DEFAULT NULL COMMENT '患者ID', `visit_time` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '回访时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='拿药记录'; -- ---------------------------- -- Table structure for hp_members -- ---------------------------- DROP TABLE IF EXISTS `hp_members`; CREATE TABLE `hp_members` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '姓名', `sex` tinyint(2) DEFAULT NULL COMMENT '1为男 2为女 0为未知', `birthday` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '生日', `phone` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL, `diseases` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '病种', `location` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '患病部位', `area` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '面积', `way` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '来院途径', `type` tinyint(2) DEFAULT NULL COMMENT '就诊类型', `address` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '住址', `history` tinytext COLLATE utf8mb4_general_ci COMMENT '即往史', `family` tinytext COLLATE utf8mb4_general_ci COMMENT '家族史', `serial_number` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '编号', `id_card` varchar(19) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '身份证', `doctor_id` int(11) DEFAULT NULL COMMENT '医生ID', `user_id` int(11) DEFAULT NULL COMMENT '操作人 ID', `add_time` int(11) DEFAULT NULL COMMENT '添加时间', `age` int(11) DEFAULT NULL COMMENT '年龄', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='患者登记表'; -- ---------------------------- -- Table structure for hp_photographs -- ---------------------------- DROP TABLE IF EXISTS `hp_photographs`; CREATE TABLE `hp_photographs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `photo` text COLLATE utf8mb4_general_ci COMMENT '照片记录', `results` text COLLATE utf8mb4_general_ci COMMENT '结果记录', `add_time` int(11) DEFAULT NULL, `m_id` int(11) DEFAULT NULL COMMENT '用户ID', `user_id` int(11) DEFAULT NULL COMMENT '医生ID', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='照片记录'; -- ---------------------------- -- Table structure for hp_photographs_results -- ---------------------------- DROP TABLE IF EXISTS `hp_photographs_results`; CREATE TABLE `hp_photographs_results` ( `id` int(11) NOT NULL AUTO_INCREMENT, `photo` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT '照片记录', `add_time` int(11) DEFAULT NULL, `m_id` int(11) DEFAULT NULL COMMENT '用户ID', `user_id` int(11) DEFAULT NULL COMMENT '医生ID', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='照片记录'; -- ---------------------------- -- Table structure for hp_place_copy -- ---------------------------- DROP TABLE IF EXISTS `hp_place_copy`; CREATE TABLE `hp_place_copy` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, `add_time` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='部位'; -- ---------------------------- -- Table structure for hp_project -- ---------------------------- DROP TABLE IF EXISTS `hp_project`; CREATE TABLE `hp_project` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, `add_time` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='化验项目'; -- ---------------------------- -- Table structure for hp_record -- ---------------------------- DROP TABLE IF EXISTS `hp_record`; CREATE TABLE `hp_record` ( `id` int(11) NOT NULL AUTO_INCREMENT, `m_id` int(11) DEFAULT NULL, `user_id` int(11) DEFAULT NULL, `add_time` int(11) DEFAULT NULL, `type` int(11) DEFAULT NULL COMMENT '就诊类型', `to_time` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '来院时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='来院记录'; -- ---------------------------- -- Table structure for hp_results -- ---------------------------- DROP TABLE IF EXISTS `hp_results`; CREATE TABLE `hp_results` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, `add_time` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='回访结果'; -- ---------------------------- -- Table structure for hp_return_record -- ---------------------------- DROP TABLE IF EXISTS `hp_return_record`; CREATE TABLE `hp_return_record` ( `id` int(11) NOT NULL AUTO_INCREMENT, `return` text COLLATE utf8mb4_general_ci COMMENT '回访记录', `results` text COLLATE utf8mb4_general_ci COMMENT '结果', `user_id` int(11) DEFAULT NULL COMMENT '操作员', `m_id` int(11) DEFAULT NULL COMMENT '患者ID', `add_time` int(11) DEFAULT NULL, `visit_time` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '下次回访时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='回访记录'; -- ---------------------------- -- Table structure for hp_user -- ---------------------------- DROP TABLE IF EXISTS `hp_user`; CREATE TABLE `hp_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '姓名', `password` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `status` int(11) DEFAULT NULL, `add_time` int(11) DEFAULT NULL, `department_id` tinyint(2) DEFAULT NULL COMMENT '部门ID 1为医生站 2为咨询台 3为照片处 4为医技科室 5为领导端', `phone` varchar(12) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '手机号码', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='管理员'; -- ---------------------------- -- Table structure for hp_way -- ---------------------------- DROP TABLE IF EXISTS `hp_way`; CREATE TABLE `hp_way` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `add_time` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='来院途径'; ~~~