|
@ -435,14 +435,35 @@ INSERT INTO `wlyy_hospital_sys_dict` (`id`, `saas_id`, `dict_name`, `dict_code`,
|
|
|
|
|
|
|
|
|
CREATE TABLE `wlyy_survey_third` (
|
|
|
`id` varchar(50) NOT NULL,
|
|
|
`survey_code` varchar(50) DEFAULT NULL,
|
|
|
`patient` varchar(50) DEFAULT NULL,
|
|
|
`doctor` varchar(50) DEFAULT NULL,
|
|
|
`disease_code` varchar(50) DEFAULT NULL,
|
|
|
`create_time` datetime DEFAULT NULL,
|
|
|
PRIMARY KEY (`id`),
|
|
|
KEY `index` (`survey_code`,`disease_code`)
|
|
|
) ENGINE=InnoDB;
|
|
|
|
|
|
CREATE TABLE `wlyy_survey_record` (
|
|
|
`id` varchar(50) NOT NULL,
|
|
|
`survey_code` varchar(50) DEFAULT NULL,
|
|
|
`doctor` varchar(50) DEFAULT NULL,
|
|
|
`disease_code` varchar(50) DEFAULT NULL,
|
|
|
`name` varchar(50) DEFAULT NULL COMMENT '居民姓名',
|
|
|
`mobile` varchar(50) DEFAULT NULL COMMENT '手机号',
|
|
|
`idcard` varchar(50) DEFAULT NULL COMMENT '身份证',
|
|
|
`disease_code` varchar(50) DEFAULT NULL COMMENT '病种code',
|
|
|
`status` varchar(1) DEFAULT NULL COMMENT '状态0 待接待 1已接待 2患者拒诊',
|
|
|
`content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '短信内容',
|
|
|
`operate_time` varchar(30) DEFAULT NULL COMMENT '操作时间',
|
|
|
`doctor` varchar(50) DEFAULT NULL COMMENT '操作人',
|
|
|
`doctor_name` varchar(50) DEFAULT NULL,
|
|
|
`create_user` varchar(50) DEFAULT NULL,
|
|
|
`create_user_name` varchar(50) DEFAULT NULL,
|
|
|
`create_time` datetime DEFAULT NULL,
|
|
|
PRIMARY KEY (`id`),
|
|
|
KEY `index` (`survey_code`,`disease_code`)
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
KEY `index1` (`name`,`mobile`,`idcard`),
|
|
|
KEY `index2` (`disease_code`)
|
|
|
) ENGINE=InnoDB;
|
|
|
|
|
|
|
|
|
INSERT INTO `wlyy_hospital_sys_dict` (`id`, `saas_id`, `dict_name`, `dict_code`, `dict_value`, `py_code`, `sort`, `hospital`, `create_time`,
|
|
|
`create_user`, `create_user_name`, `update_time`, `update_user`, `update_user_name`, `img_url`, `model_name`) VALUES
|