Commit 544bcd9a by 罗长华

会话表增加 是否禁止群成员互加好友 是否禁止发红包 是否禁止发图片 是否禁止发链接 四个字段

parent 05b199c8
...@@ -12,6 +12,7 @@ import java.util.Date; ...@@ -12,6 +12,7 @@ import java.util.Date;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
/** /**
...@@ -71,4 +72,19 @@ public class ImConversation extends BaseEntity { ...@@ -71,4 +72,19 @@ public class ImConversation extends BaseEntity {
@ApiModelProperty("禁言开关 1-未禁言 2-禁言") @ApiModelProperty("禁言开关 1-未禁言 2-禁言")
private Integer muted; private Integer muted;
@TableField("is_forbid_add_friend")
@ApiModelProperty("禁止互加好友")
private Boolean forbidAddFriend;
@TableField("is_forbid_send_red_packets")
@ApiModelProperty("禁止发红包")
private Boolean forbidSendRedPackets;
@TableField("is_forbid_send_pic")
@ApiModelProperty("禁止发图片")
private Boolean forbidSendPic;
@TableField("is_forbid_send_link")
@ApiModelProperty("禁止发链接")
private Boolean forbidSendLink;
} }
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
SET NAMES utf8mb4; SET NAMES utf8mb4;
SET SET
FOREIGN_KEY_CHECKS = 0; FOREIGN_KEY_CHECKS = 0;
-- ---------------------------- -- ----------------------------
-- Table structure for im_application -- Table structure for im_application
...@@ -39,7 +39,8 @@ CREATE TABLE `im_application` ...@@ -39,7 +39,8 @@ CREATE TABLE `im_application`
`contrast_extended_field_status` int(1) DEFAULT '0' COMMENT '创建会话时对比扩展字段 0不 1是', `contrast_extended_field_status` int(1) DEFAULT '0' COMMENT '创建会话时对比扩展字段 0不 1是',
PRIMARY KEY (`id`) USING BTREE, PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `app_key` (`app_key`) USING HASH UNIQUE KEY `app_key` (`app_key`) USING HASH
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='第三方应用表'; ) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT ='第三方应用表';
-- ---------------------------- -- ----------------------------
-- Table structure for im_client -- Table structure for im_client
...@@ -60,8 +61,9 @@ CREATE TABLE `im_client` ...@@ -60,8 +61,9 @@ CREATE TABLE `im_client`
`head_portrait` varchar(1000) DEFAULT NULL COMMENT '头像', `head_portrait` varchar(1000) DEFAULT NULL COMMENT '头像',
`nickname` varchar(30) DEFAULT NULL COMMENT '主昵称', `nickname` varchar(30) DEFAULT NULL COMMENT '主昵称',
PRIMARY KEY (`id`) USING BTREE, PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY ```fk_appid``, ``client_id``` (`fk_appid`,`client_id`) USING BTREE UNIQUE KEY ```fk_appid``, ``client_id``` (`fk_appid`, `client_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='终端表'; ) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT ='终端表';
-- ---------------------------- -- ----------------------------
-- Table structure for im_client_blacklist -- Table structure for im_client_blacklist
...@@ -76,7 +78,8 @@ CREATE TABLE `im_client_blacklist` ...@@ -76,7 +78,8 @@ CREATE TABLE `im_client_blacklist`
`fk_client_id_prevent` bigint(20) DEFAULT NULL COMMENT '拉黑者', `fk_client_id_prevent` bigint(20) DEFAULT NULL COMMENT '拉黑者',
`fk_client_id_be_prevent` bigint(20) DEFAULT NULL COMMENT '被拉黑', `fk_client_id_be_prevent` bigint(20) DEFAULT NULL COMMENT '被拉黑',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='黑名单'; ) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT ='黑名单';
-- ---------------------------- -- ----------------------------
-- Table structure for im_conversation -- Table structure for im_conversation
...@@ -94,7 +97,8 @@ CREATE TABLE `im_conversation` ...@@ -94,7 +97,8 @@ CREATE TABLE `im_conversation`
`attributes` json DEFAULT NULL COMMENT '可选 自定义属性,供开发者扩展使用。', `attributes` json DEFAULT NULL COMMENT '可选 自定义属性,供开发者扩展使用。',
`system` tinyint(1) DEFAULT NULL COMMENT '可选 对话类型标志,是否是系统对话,后面会说明。', `system` tinyint(1) DEFAULT NULL COMMENT '可选 对话类型标志,是否是系统对话,后面会说明。',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='会话表'; ) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT ='会话表';
-- ---------------------------- -- ----------------------------
-- Table structure for im_conversation_members -- Table structure for im_conversation_members
...@@ -114,7 +118,8 @@ CREATE TABLE `im_conversation_members` ...@@ -114,7 +118,8 @@ CREATE TABLE `im_conversation_members`
`client_remark_name` varchar(255) DEFAULT NULL COMMENT '会话中client的备注名', `client_remark_name` varchar(255) DEFAULT NULL COMMENT '会话中client的备注名',
PRIMARY KEY (`id`) USING BTREE, PRIMARY KEY (`id`) USING BTREE,
KEY `fk_conversation_id` (`fk_conversation_id`) USING HASH KEY `fk_conversation_id` (`fk_conversation_id`) USING HASH
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='会话成员表'; ) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT ='会话成员表';
-- ---------------------------- -- ----------------------------
-- Table structure for im_inbox -- Table structure for im_inbox
...@@ -135,7 +140,8 @@ CREATE TABLE `im_inbox` ...@@ -135,7 +140,8 @@ CREATE TABLE `im_inbox`
`fk_conversation_id` bigint(20) NOT NULL COMMENT '会话id', `fk_conversation_id` bigint(20) NOT NULL COMMENT '会话id',
PRIMARY KEY (`id`) USING BTREE, PRIMARY KEY (`id`) USING BTREE,
KEY `getMyOfflineMsg` (`receiver`) USING HASH KEY `getMyOfflineMsg` (`receiver`) USING HASH
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='消息收件箱表'; ) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT ='消息收件箱表';
-- ---------------------------- -- ----------------------------
-- Table structure for im_ios_apns -- Table structure for im_ios_apns
...@@ -150,7 +156,8 @@ CREATE TABLE `im_ios_apns` ...@@ -150,7 +156,8 @@ CREATE TABLE `im_ios_apns`
`bundle_id` varchar(500) DEFAULT NULL COMMENT 'bundle_id', `bundle_id` varchar(500) DEFAULT NULL COMMENT 'bundle_id',
`pwd` varchar(500) DEFAULT NULL COMMENT '证书密码', `pwd` varchar(500) DEFAULT NULL COMMENT '证书密码',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='apns配置表'; ) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT ='apns配置表';
-- ---------------------------- -- ----------------------------
-- Table structure for im_message -- Table structure for im_message
...@@ -173,7 +180,8 @@ CREATE TABLE `im_message` ...@@ -173,7 +180,8 @@ CREATE TABLE `im_message`
`send_status` int(2) DEFAULT NULL COMMENT '发送状态\n1AVIMMessageStatusSending(发送中)\n2AVIMMessageStatusSent(发送成功)\n3AVIMMessageStatusFailed(失败)', `send_status` int(2) DEFAULT NULL COMMENT '发送状态\n1AVIMMessageStatusSending(发送中)\n2AVIMMessageStatusSent(发送成功)\n3AVIMMessageStatusFailed(失败)',
PRIMARY KEY (`id`) USING BTREE, PRIMARY KEY (`id`) USING BTREE,
KEY ```fk_conversation_id``` (`fk_conversation_id`) USING HASH KEY ```fk_conversation_id``` (`fk_conversation_id`) USING HASH
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='消息存储表'; ) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT ='消息存储表';
-- ---------------------------- -- ----------------------------
-- Table structure for im_rtc_channel -- Table structure for im_rtc_channel
...@@ -190,7 +198,8 @@ CREATE TABLE `im_rtc_channel` ...@@ -190,7 +198,8 @@ CREATE TABLE `im_rtc_channel`
`attributes` json DEFAULT NULL COMMENT '可选 自定义属性,供开发者扩展使用。', `attributes` json DEFAULT NULL COMMENT '可选 自定义属性,供开发者扩展使用。',
`channel_status` int(1) DEFAULT NULL COMMENT '频道状态, 1打开 , 0关闭', `channel_status` int(1) DEFAULT NULL COMMENT '频道状态, 1打开 , 0关闭',
PRIMARY KEY (`id`) USING BTREE PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Rtc频道表'; ) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT ='Rtc频道表';
-- ---------------------------- -- ----------------------------
-- Table structure for im_rtc_log -- Table structure for im_rtc_log
...@@ -222,3 +231,12 @@ alter table `im_conversation_members` ...@@ -222,3 +231,12 @@ alter table `im_conversation_members`
add column `is_do_not_disturb` tinyint(1) unsigned default 0 comment '免打扰开关 0-关闭 1开启'; add column `is_do_not_disturb` tinyint(1) unsigned default 0 comment '免打扰开关 0-关闭 1开启';
alter table `im_conversation_members` alter table `im_conversation_members`
add column `is_top` tinyint(1) unsigned default 0 comment '置顶开关 0-关闭 1开启'; add column `is_top` tinyint(1) unsigned default 0 comment '置顶开关 0-关闭 1开启';
alter table `im_conversation`
add column `is_forbid_add_friend` tinyint(1) unsigned default 0 comment '是否禁止群里互加好友0否1是';
alter table `im_conversation`
add column `is_forbid_send_red_packets` tinyint(1) unsigned default 0 comment '是否禁止发红包0否1是';
alter table `im_conversation`
add column `is_forbid_send_pic` tinyint(1) unsigned default 0 comment '是否禁止发图片0否1是';
alter table `im_conversation`
add column `is_forbid_send_link` tinyint(1) unsigned default 0 comment '是否禁止发链接0否1是';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment