eight
2024-09-20 6f9f5260a6ccf2fb653707f54b44bc5f111d684a
sql/mysql/jh.sql
@@ -54,7 +54,6 @@
     `status` tinyint NOT NULL COMMENT '10:排队中 20:候诊准备 30:就诊中 40:就诊完成 50:过号 60:过期',
     `passed` tinyint DEFAULT '0' COMMENT '过号标记',
     `expired` tinyint DEFAULT '0' COMMENT '预约过期标记',
     `called` int DEFAULT '0' COMMENT '叫号状态 0 未播 1 已播 ',
     `jump_flag` tinyint DEFAULT '0' COMMENT '插队标记',
     `room_id` bigint DEFAULT '0' COMMENT '诊室编号',
     `room_name` varchar(10) DEFAULT '' COMMENT '诊室名称',
@@ -70,7 +69,7 @@
     KEY `idx_status` (`status`) USING BTREE,
     KEY `idx_seq_num` (`seq_num`) USING BTREE,
     KEY `idx_room_bed_status` (`room_id`,`bed_no`,`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='排队表';
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='排队表';
-- ----------------------------
-- Table structure for clinic_room
@@ -178,6 +177,7 @@
  `summary` varchar(200) DEFAULT NULL COMMENT '作业概要',
  `remark` varchar(100) DEFAULT NULL COMMENT '备注',
  `cancelled` int DEFAULT '0' COMMENT '未安装',
  `lost` int DEFAULT '0',
  `tenant_id` int DEFAULT '1' COMMENT '租户编号',
  `creator` varchar(10) DEFAULT '' COMMENT '创建者',
  `create_time` datetime NOT NULL COMMENT '创建时间',
@@ -186,11 +186,12 @@
  `deleted` bit(1) DEFAULT b'0' COMMENT '删除标记',
  PRIMARY KEY (`id`),
  KEY `idx_pat_job` (`pat_id`,`job_time`,`job_type`),
  KEY `idx_rent_id` (`rent_id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='工作记录表';
  KEY `idx_rent_id` (`rent_id`),
  KEY `idx_rent_doc_job` (`job_time`,`doc_id`,`job_type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='工作记录表';
-- ----------------------------
-- Table structure for call
-- Table structure for call_patient
-- ----------------------------
DROP TABLE IF EXISTS `call_patient`;
SELECT * FROM lihu.call_patient;CREATE TABLE `call_patient` (