/*
 Navicat Premium Data Transfer

 Source Server         : localhost mysql
 Source Server Type    : MySQL
 Source Server Version : 80033 (8.0.33)
 Source Host           : localhost:3306
 Source Schema         : ynxbd_wx

 Target Server Type    : MySQL
 Target Server Version : 80033 (8.0.33)
 File Encoding         : 65001

 Date: 16/08/2023 17:13:08
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for chronic
-- ----------------------------
DROP TABLE IF EXISTS `chronic`;
CREATE TABLE `chronic` (
  `ChronicId` int NOT NULL AUTO_INCREMENT,
  `ApplyName` varchar(40) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '申请人',
  `ApplyTime` datetime DEFAULT NULL COMMENT '申请时间',
  `PatientId` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '患者Id',
  `ReserveTime` varchar(100) DEFAULT NULL COMMENT '预约时间',
  `OpenId` varchar(50) DEFAULT NULL,
  `Idcard` varchar(18) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '身份证',
  `TreatId` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '住院号/门诊号',
  `PatientType` int DEFAULT NULL COMMENT '患者类型',
  `DiagProve` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci COMMENT '诊断证明',
  `IdcardFont` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci COMMENT '身份证正面',
  `IdcardBack` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci COMMENT '身份证反面',
  `InHospProve` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci COMMENT '住院证明',
  `ChronicName` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '病种名称',
  `ChronicCode` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '病种代码',
  `CheckTime` datetime DEFAULT NULL COMMENT '审核时间',
  `Checker` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '审核人',
  `Reply` varchar(2000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '回复',
  `DeleteTime` datetime DEFAULT NULL COMMENT '取消时间',
  `Phone` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '电话号码',
  `Address` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '地址',
  `RejectTime` datetime DEFAULT NULL COMMENT '拒绝时间',
  `Rejecter` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '拒绝人',
  PRIMARY KEY (`ChronicId`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3;

SET FOREIGN_KEY_CHECKS = 1;
