/*
 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:40
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for record
-- ----------------------------
DROP TABLE IF EXISTS `record`;
CREATE TABLE `record` (
  `RecordId` int NOT NULL AUTO_INCREMENT,
  `ApplyTime` datetime DEFAULT NULL COMMENT '申请时间',
  `ApplyName` varchar(40) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '申请人',
  `Idcard` varchar(18) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '身份证号',
  `PatientId` varchar(20) DEFAULT NULL,
  `OpenId` varchar(40) DEFAULT NULL,
  `IdcardFront` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci COMMENT '身份证正面照片 base64',
  `IdcardBack` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci COMMENT '身份证反面照片 base64',
  `TreatId` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '住院号',
  `InHospProve` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci COMMENT '住院证明照片 base64',
  `Use` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '用途',
  `GetWay` int DEFAULT NULL COMMENT '获取方式 1.邮寄 2.自取',
  `Address` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '地址',
  `Phone` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '电话号码',
  `CheckTime` datetime DEFAULT NULL COMMENT '审核时间',
  `Checker` varchar(40) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL COMMENT '审核人',
  `DeleteTime` datetime DEFAULT NULL COMMENT '取消申请时间',
  `RejectTime` datetime DEFAULT NULL,
  `Rejecter` varchar(40) DEFAULT NULL,
  PRIMARY KEY (`RecordId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

SET FOREIGN_KEY_CHECKS = 1;
