From 01490cfe0a1775e9d9ccf2d3f8d0f911590e1688 Mon Sep 17 00:00:00 2001 From: xsx <825657193@qq.com> Date: Sat, 17 Aug 2024 23:56:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E8=A1=A8=E7=B4=A2=E5=BC=95=E6=8B=86=E5=88=86=E6=88=90=E4=B8=A4?= =?UTF-8?q?=E4=B8=AA=E5=8D=95=E7=B4=A2=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/im-platform.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/im-platform.sql b/db/im-platform.sql index d90976f..ea7bc6a 100644 --- a/db/im-platform.sql +++ b/db/im-platform.sql @@ -35,7 +35,8 @@ create table `im_private_message`( `type` tinyint(1) NOT NULL comment '消息类型 0:文字 1:图片 2:文件 3:语音 4:视频 21:提示', `status` tinyint(1) NOT NULL comment '状态 0:未读 1:已读 2:撤回 3:已读', `send_time` datetime DEFAULT CURRENT_TIMESTAMP comment '发送时间', - key `idx_send_recv_id` (`send_id`,`recv_id`) + key `idx_send_id` (`send_id`), + key `idx_recv_id` (`recv_id`) )ENGINE=InnoDB CHARSET=utf8mb4 comment '私聊消息';