customer_service

This commit is contained in:
Hankin 2024-11-29 16:57:34 +08:00
parent 3bb50b77fa
commit 32d7933286
4 changed files with 35 additions and 0 deletions

View File

@ -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
)

View File

@ -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
)

View File

@ -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
)

View File

@ -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
)