From 94a8a89289aab3272ec37dac61118ebe2d23f4a9 Mon Sep 17 00:00:00 2001 From: wyb <1977763549@qq.com> Date: Fri, 30 Jun 2023 18:16:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/mysql.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 script/mysql.sql diff --git a/script/mysql.sql b/script/mysql.sql new file mode 100644 index 0000000..a8bbc9f --- /dev/null +++ b/script/mysql.sql @@ -0,0 +1,12 @@ +USE `docus_medicalrecord`; +CREATE TABLE `unify_message` ( + `id` bigint(20) NOT NULL COMMENT '主键', + `message` longtext COMMENT '接收到的消息', + `method` varchar(255) DEFAULT NULL COMMENT '转发方法', + `create_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '消息接收时间', + `state` int(1) DEFAULT NULL COMMENT '状态 0:失败 1:成功', + PRIMARY KEY (`id`), + KEY `idx_unify_message_create_time` (`create_time`) USING BTREE, + KEY `idx_unify_message_method` (`method`) USING BTREE, + KEY `idx_unify_message_state` (`state`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; \ No newline at end of file