|
|
|
@ -1,27 +1,31 @@
|
|
|
|
|
-- 创建详细问表
|
|
|
|
|
use virtual_patient;
|
|
|
|
|
|
|
|
|
|
create table vp_ask_template_question_similarity
|
|
|
|
|
(
|
|
|
|
|
id varchar(64) not null comment '主键'
|
|
|
|
|
id varchar(64) not null comment '主键'
|
|
|
|
|
primary key,
|
|
|
|
|
library_id varchar(64) not null comment '标准问题ID',
|
|
|
|
|
similarity_question varchar(255) not null comment '相似问题',
|
|
|
|
|
create_user_id varchar(64) null comment '创建人ID',
|
|
|
|
|
library_id varchar(64) not null comment '标准问题ID',
|
|
|
|
|
similarity_question varchar(255) not null comment '相似问题',
|
|
|
|
|
create_user_id varchar(64) null comment '创建人ID',
|
|
|
|
|
create_time datetime default CURRENT_TIMESTAMP null comment '创建时间',
|
|
|
|
|
update_user_id varchar(64) null comment '更新人ID',
|
|
|
|
|
update_user_id varchar(64) null comment '更新人ID',
|
|
|
|
|
update_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '更新时间'
|
|
|
|
|
) comment '相似问问题库';
|
|
|
|
|
|
|
|
|
|
-- 病历表中增加字段
|
|
|
|
|
alter table vp_medical_rec
|
|
|
|
|
add medical_record_ai text null comment '完整的病例信息,以提交大模型进行问答',
|
|
|
|
|
add medical_record_ai text null comment '完整的病例信息,以提交大模型进行问答';
|
|
|
|
|
|
|
|
|
|
-- 修改标准问表,移除默认回复
|
|
|
|
|
alter table vp_ask_template_question_library drop column default_answer_code;
|
|
|
|
|
alter table vp_ask_template_question_library
|
|
|
|
|
drop column default_answer_code;
|
|
|
|
|
|
|
|
|
|
alter table vp_ask_template_question_library drop column default_answer;
|
|
|
|
|
alter table vp_ask_template_question_library
|
|
|
|
|
drop column default_answer;
|
|
|
|
|
|
|
|
|
|
alter table vp_ask_template_question_library drop column default_answer_resource_id;
|
|
|
|
|
alter table vp_ask_template_question_library
|
|
|
|
|
drop column default_answer_resource_id;
|
|
|
|
|
|
|
|
|
|
-- 修改问题记录表结构
|
|
|
|
|
alter table vp_diagnosis_qa_record
|
|
|
|
|