From 32d7933286bddd56bba47fd850e0a5dc9a5cf585 Mon Sep 17 00:00:00 2001 From: Hankin Date: Fri, 29 Nov 2024 16:57:34 +0800 Subject: [PATCH] customer_service --- ...845832_create_table_customer_service_type.up.sql | 6 ++++++ 1732846388_create_table_customer_service.up.sql | 8 ++++++++ 1732869307_create_table_chat_linkmen.up.sql | 8 ++++++++ 1732869331_create_table_chat_message.up.sql | 13 +++++++++++++ 4 files changed, 35 insertions(+) create mode 100644 1732845832_create_table_customer_service_type.up.sql create mode 100644 1732846388_create_table_customer_service.up.sql create mode 100644 1732869307_create_table_chat_linkmen.up.sql create mode 100644 1732869331_create_table_chat_message.up.sql diff --git a/1732845832_create_table_customer_service_type.up.sql b/1732845832_create_table_customer_service_type.up.sql new file mode 100644 index 0000000..e96576c --- /dev/null +++ b/1732845832_create_table_customer_service_type.up.sql @@ -0,0 +1,6 @@ +CREATE TABLE `ufutx_customer_service_type` ( + `id` bigint(20) UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT, + `name` varchar(100) NOT NULL , + `created_at` timestamp NOT NULL, + `updated_at` timestamp NOT NULL +) \ No newline at end of file diff --git a/1732846388_create_table_customer_service.up.sql b/1732846388_create_table_customer_service.up.sql new file mode 100644 index 0000000..9cccd10 --- /dev/null +++ b/1732846388_create_table_customer_service.up.sql @@ -0,0 +1,8 @@ +CREATE TABLE `ufutx_customer_service` ( + `id` bigint(20) UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT, + `type_id` bigint(20) UNSIGNED NOT NULL comment "客服类型id", + `type_name` varchar(100) NOT NULL comment "客服类型", + `user_id` bigint(20) UNSIGNED NOT NULL comment "用户id", + `created_at` timestamp NOT NULL, + `updated_at` timestamp NOT NULL +) \ No newline at end of file diff --git a/1732869307_create_table_chat_linkmen.up.sql b/1732869307_create_table_chat_linkmen.up.sql new file mode 100644 index 0000000..175ca8a --- /dev/null +++ b/1732869307_create_table_chat_linkmen.up.sql @@ -0,0 +1,8 @@ +CREATE TABLE `ufutx_chat_linkman` ( + `id` bigint(20) UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT, + `user_id` bigint(20) UNSIGNED NOT NULL comment "当前用户", + `other_user_id` bigint(20) UNSIGNED NOT NULL comment "其他用户 ", + `created_at` timestamp default null, + `updated_at` timestamp default null, + `deleted_at` timestamp default null +) \ No newline at end of file diff --git a/1732869331_create_table_chat_message.up.sql b/1732869331_create_table_chat_message.up.sql new file mode 100644 index 0000000..dc80d02 --- /dev/null +++ b/1732869331_create_table_chat_message.up.sql @@ -0,0 +1,13 @@ +CREATE TABLE `ufutx_chat_message` ( + `id` bigint(20) UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT, + `from_user_id` bigint(20) UNSIGNED NOT NULL comment "发送者", + `to_user_id` bigint(20) UNSIGNED NOT NULL comment "接收者 ", + `content_type` varchar(20) NOT NULL comment "消息类型", + `content` text NOT NULL comment "消息内容", + `im_msg_id` varchar(100) NOT NULL comment "云信客户端消息id", + `msg_timestamp` varchar(100) NOT NULL comment "云信消息时间", + `is_recall` tinyInt(4) UNSIGNED default 0 comment "是否撤回, 0:未撤回。1:已撤回", + `data` text NOT NULL comment "抄送消息", + `created_at` timestamp default null, + `updated_at` timestamp default null +) \ No newline at end of file