Browse Source

平车数据库修改

master
ma 4 years ago
parent
commit
a996423ea4
  1. 20
      内部项目/wisdomcar.sql

20
内部项目/wisdomcar.sql

@ -371,16 +371,15 @@ DROP TABLE IF EXISTS `t_hospital`;
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '医院' ROW_FORMAT = Compact;
DROP TABLE IF EXISTS `t_patient_doctor`;
CREATE TABLE `t_hospital` (
CREATE TABLE `t_patient_doctor` (
`id` bigint(20) NOT NULL COMMENT '医患id',
`patient_id` varchar(64) NULL DEFAULT '' COMMENT '患者id',
`doctor_id` varchar(64) NULL DEFAULT '' COMMENT '医生id',
`patient_id` bigint(20) NULL DEFAULT 0 COMMENT '患者id',
`doctor_id` bigint(20) NULL DEFAULT 0 COMMENT '医生id',
`created_at` timestamp NOT NULL DEFAULT current_timestamp,
`updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP,
`rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态,0正常 1禁用 2删除',
PRIMARY KEY (`id`) USING BTREE
INDEX `patient_index`(`patient_id`) USING BTREE
PRIMARY KEY (`id`) USING BTREE,
INDEX `patient_index`(`patient_id`) USING BTREE,
INDEX `doctor_index`(`doctor_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '医生和患者' ROW_FORMAT = Compact;
@ -388,4 +387,11 @@ DROP TABLE IF EXISTS `t_patient_doctor`;
ALTER TABLE t_step ADD task_sub_name varchar(50) NULL DEFAULT '' COMMENT '分解任务名称'
ALTER TABLE t_patient_wisdom_car ADD binding_status tinyint(1) NULL DEFAULT '' COMMENT '绑定状态(0-待完善,1-已完善)'
ALTER TABLE t_patient_wisdom_car ADD binding_status tinyint(1) NULL DEFAULT '' COMMENT '绑定状态(0-待完善,1-已完善)'
ALTER TABLE t_hospital_member ADD member_name varchar(20) NULL DEFAULT '' COMMENT '医生名字'
ALTER TABLE t_hospital_member ADD member_sex tinyint(1) NULL DEFAULT 0 COMMENT '医生性别(0-女,1-男)'
ALTER TABLE t_hospital_member ADD member_phone varchar(20) NULL DEFAULT '' COMMENT '医生电话'

Loading…
Cancel
Save