Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
forked from cloudtalk/cloudtalk
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
master
Branches (1)
Tags (4)
master
3.0.2
3.0.1
cloudtalk-windows-pc
1.0
master
Branches (1)
Tags (4)
master
3.0.2
3.0.1
cloudtalk-windows-pc
1.0
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
master
Branches (1)
Tags (4)
master
3.0.2
3.0.1
cloudtalk-windows-pc
1.0
cloudtalk
/
database
/
newim.sql
cloudtalk
/
database
/
newim.sql
newim.sql 28.30 KB
Copy Edit Raw Blame History
cloudtalk authored 2019年02月18日 18:25 +08:00 . 初始化
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566
/*
Navicat Premium Data Transfer
Source Server : im.b56.cn
Source Server Type : MySQL
Source Server Version : 50641
Source Host : im.b56.cn
Source Database : newim
Target Server Type : MySQL
Target Server Version : 50641
File Encoding : utf-8
Date: 02/17/2019 13:45:54 PM
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `on_IMAdmin`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMAdmin`;
CREATE TABLE `on_IMAdmin` (
`id` mediumint(6) unsigned NOT NULL AUTO_INCREMENT,
`uname` varchar(40) NOT NULL COMMENT '用户名',
`pwd` char(32) NOT NULL COMMENT '密码',
`status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '用户状态 0 :正常 1:删除 可扩展',
`created` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间 ́',
`updated` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间 ́',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `on_IMAudio`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMAudio`;
CREATE TABLE `on_IMAudio` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fromId` int(11) unsigned NOT NULL COMMENT '发送者Id',
`toId` int(11) unsigned NOT NULL COMMENT '接收者Id',
`path` varchar(255) COLLATE utf8mb4_bin DEFAULT '' COMMENT '语音存储的地址',
`size` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '文件大小',
`duration` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '语音时长',
`created` int(11) unsigned NOT NULL COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `idx_fromId_toId` (`fromId`,`toId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- ----------------------------
-- Table structure for `on_IMDepart`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMDepart`;
CREATE TABLE `on_IMDepart` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '部门id',
`uid` int(20) NOT NULL DEFAULT '0',
`departName` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '部门名称',
`priority` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '显示优先级',
`parentId` int(11) unsigned NOT NULL COMMENT '上级部门id',
`status` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
`created` int(11) unsigned NOT NULL COMMENT '创建时间',
`updated` int(11) unsigned NOT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
KEY `idx_departName` (`departName`),
KEY `idx_priority_status` (`priority`,`status`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- ----------------------------
-- Table structure for `on_IMDiscovery`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMDiscovery`;
CREATE TABLE `on_IMDiscovery` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
`itemName` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '名称',
`itemUrl` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT 'URL',
`itemPriority` int(11) unsigned NOT NULL COMMENT '显示优先级',
`status` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
`created` int(11) unsigned NOT NULL COMMENT '创建时间',
`updated` int(11) unsigned NOT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
KEY `idx_itemName` (`itemName`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- ----------------------------
-- Table structure for `on_IMGroup`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMGroup`;
CREATE TABLE `on_IMGroup` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(256) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '群名称',
`avatar` varchar(256) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '群头像',
`creator` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建者用户id',
`type` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '群组类型,1-固定;2-临时群',
`userCnt` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '成员人数',
`status` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '是否删除,0-正常,1-删除',
`version` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '群版本号',
`lastChated` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最后聊天时间',
`updated` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`created` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `idx_name` (`name`(191)),
KEY `idx_creator` (`creator`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='IM群信息';
-- ----------------------------
-- Table structure for `on_IMGroupMember`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMGroupMember`;
CREATE TABLE `on_IMGroupMember` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`groupId` int(11) unsigned NOT NULL COMMENT '群Id',
`userId` int(11) unsigned NOT NULL COMMENT '用户id',
`status` tinyint(4) unsigned NOT NULL DEFAULT '1' COMMENT '是否退出群,0-正常,1-已退出',
`remak` varchar(50) DEFAULT NULL,
`created` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`updated` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
PRIMARY KEY (`id`),
KEY `idx_groupId_userId_status` (`groupId`,`userId`,`status`),
KEY `idx_userId_status_updated` (`userId`,`status`,`updated`),
KEY `idx_groupId_updated` (`groupId`,`updated`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8 COMMENT='用户和群的关系表';
-- ----------------------------
-- Table structure for `on_IMGroupMessage_0`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMGroupMessage_0`;
CREATE TABLE `on_IMGroupMessage_0` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`groupId` int(11) unsigned NOT NULL COMMENT '用户的关系id',
`userId` int(11) unsigned NOT NULL COMMENT '发送用户的id',
`msgId` int(11) unsigned NOT NULL COMMENT '消息ID',
`content` varchar(4096) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '消息内容',
`type` tinyint(3) unsigned NOT NULL DEFAULT '2' COMMENT '群消息类型,101为群语音,2为文本',
`status` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '消息状态',
`updated` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`created` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `idx_groupId_status_created` (`groupId`,`status`,`created`),
KEY `idx_groupId_msgId_status_created` (`groupId`,`msgId`,`status`,`created`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='IM群消息表';
-- ----------------------------
-- Table structure for `on_IMGroupMessage_1`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMGroupMessage_1`;
CREATE TABLE `on_IMGroupMessage_1` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`groupId` int(11) unsigned NOT NULL COMMENT '用户的关系id',
`userId` int(11) unsigned NOT NULL COMMENT '发送用户的id',
`msgId` int(11) unsigned NOT NULL COMMENT '消息ID',
`content` varchar(4096) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '消息内容',
`type` tinyint(3) unsigned NOT NULL DEFAULT '2' COMMENT '群消息类型,101为群语音,2为文本',
`status` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '消息状态',
`updated` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`created` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `idx_groupId_status_created` (`groupId`,`status`,`created`),
KEY `idx_groupId_msgId_status_created` (`groupId`,`msgId`,`status`,`created`)
) ENGINE=InnoDB AUTO_INCREMENT=87 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='IM群消息表';
-- ----------------------------
-- Table structure for `on_IMGroupMessage_2`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMGroupMessage_2`;
CREATE TABLE `on_IMGroupMessage_2` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`groupId` int(11) unsigned NOT NULL COMMENT '用户的关系id',
`userId` int(11) unsigned NOT NULL COMMENT '发送用户的id',
`msgId` int(11) unsigned NOT NULL COMMENT '消息ID',
`content` varchar(4096) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '消息内容',
`type` tinyint(3) unsigned NOT NULL DEFAULT '2' COMMENT '群消息类型,101为群语音,2为文本',
`status` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '消息状态',
`updated` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`created` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `idx_groupId_status_created` (`groupId`,`status`,`created`),
KEY `idx_groupId_msgId_status_created` (`groupId`,`msgId`,`status`,`created`)
) ENGINE=InnoDB AUTO_INCREMENT=241 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='IM群消息表';
-- ----------------------------
-- Table structure for `on_IMGroupMessage_3`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMGroupMessage_3`;
CREATE TABLE `on_IMGroupMessage_3` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`groupId` int(11) unsigned NOT NULL COMMENT '用户的关系id',
`userId` int(11) unsigned NOT NULL COMMENT '发送用户的id',
`msgId` int(11) unsigned NOT NULL COMMENT '消息ID',
`content` varchar(4096) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '消息内容',
`type` tinyint(3) unsigned NOT NULL DEFAULT '2' COMMENT '群消息类型,101为群语音,2为文本',
`status` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '消息状态',
`updated` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`created` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `idx_groupId_status_created` (`groupId`,`status`,`created`),
KEY `idx_groupId_msgId_status_created` (`groupId`,`msgId`,`status`,`created`)
) ENGINE=InnoDB AUTO_INCREMENT=204 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='IM群消息表';
-- ----------------------------
-- Table structure for `on_IMGroupMessage_4`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMGroupMessage_4`;
CREATE TABLE `on_IMGroupMessage_4` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`groupId` int(11) unsigned NOT NULL COMMENT '用户的关系id',
`userId` int(11) unsigned NOT NULL COMMENT '发送用户的id',
`msgId` int(11) unsigned NOT NULL COMMENT '消息ID',
`content` varchar(4096) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '消息内容',
`type` tinyint(3) unsigned NOT NULL DEFAULT '2' COMMENT '群消息类型,101为群语音,2为文本',
`status` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '消息状态',
`updated` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`created` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`flag` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_groupId_status_created` (`groupId`,`status`,`created`),
KEY `idx_groupId_msgId_status_created` (`groupId`,`msgId`,`status`,`created`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='IM群消息表';
-- ----------------------------
-- Table structure for `on_IMGroupMessage_5`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMGroupMessage_5`;
CREATE TABLE `on_IMGroupMessage_5` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`groupId` int(11) unsigned NOT NULL COMMENT '用户的关系id',
`userId` int(11) unsigned NOT NULL COMMENT '发送用户的id',
`msgId` int(11) unsigned NOT NULL COMMENT '消息ID',
`content` varchar(4096) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '消息内容',
`type` tinyint(3) unsigned NOT NULL DEFAULT '2' COMMENT '群消息类型,101为群语音,2为文本',
`status` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '消息状态',
`updated` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`created` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `idx_groupId_status_created` (`groupId`,`status`,`created`),
KEY `idx_groupId_msgId_status_created` (`groupId`,`msgId`,`status`,`created`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='IM群消息表';
-- ----------------------------
-- Table structure for `on_IMGroupMessage_6`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMGroupMessage_6`;
CREATE TABLE `on_IMGroupMessage_6` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`groupId` int(11) unsigned NOT NULL COMMENT '用户的关系id',
`userId` int(11) unsigned NOT NULL COMMENT '发送用户的id',
`msgId` int(11) unsigned NOT NULL COMMENT '消息ID',
`content` varchar(4096) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '消息内容',
`type` tinyint(3) unsigned NOT NULL DEFAULT '2' COMMENT '群消息类型,101为群语音,2为文本',
`status` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '消息状态',
`updated` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`created` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `idx_groupId_status_created` (`groupId`,`status`,`created`),
KEY `idx_groupId_msgId_status_created` (`groupId`,`msgId`,`status`,`created`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='IM群消息表';
-- ----------------------------
-- Table structure for `on_IMGroupMessage_7`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMGroupMessage_7`;
CREATE TABLE `on_IMGroupMessage_7` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`groupId` int(11) unsigned NOT NULL COMMENT '用户的关系id',
`userId` int(11) unsigned NOT NULL COMMENT '发送用户的id',
`msgId` int(11) unsigned NOT NULL COMMENT '消息ID',
`content` varchar(4096) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '消息内容',
`type` tinyint(3) unsigned NOT NULL DEFAULT '2' COMMENT '群消息类型,101为群语音,2为文本',
`status` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '消息状态',
`updated` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`created` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `idx_groupId_status_created` (`groupId`,`status`,`created`),
KEY `idx_groupId_msgId_status_created` (`groupId`,`msgId`,`status`,`created`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='IM群消息表';
-- ----------------------------
-- Table structure for `on_IMMessage_0`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMMessage_0`;
CREATE TABLE `on_IMMessage_0` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`relateId` int(11) unsigned NOT NULL COMMENT '用户的关系id',
`fromId` int(11) unsigned NOT NULL COMMENT '发送用户的id',
`toId` int(11) unsigned NOT NULL COMMENT '接收用户的id',
`msgId` int(11) unsigned NOT NULL COMMENT '消息ID',
`content` varchar(4096) COLLATE utf8mb4_bin DEFAULT '' COMMENT '消息内容',
`type` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '消息类型',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0正常 1被删除',
`updated` int(11) unsigned NOT NULL COMMENT '更新时间',
`created` int(11) unsigned NOT NULL COMMENT '创建时间',
`flag` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_relateId_status_created` (`relateId`,`status`,`created`),
KEY `idx_relateId_status_msgId_created` (`relateId`,`status`,`msgId`,`created`),
KEY `idx_fromId_toId_created` (`fromId`,`toId`,`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- ----------------------------
-- Table structure for `on_IMMessage_1`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMMessage_1`;
CREATE TABLE `on_IMMessage_1` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`relateId` int(11) unsigned NOT NULL COMMENT '用户的关系id',
`fromId` int(11) unsigned NOT NULL COMMENT '发送用户的id',
`toId` int(11) unsigned NOT NULL COMMENT '接收用户的id',
`msgId` int(11) unsigned NOT NULL COMMENT '消息ID',
`content` varchar(4096) COLLATE utf8mb4_bin DEFAULT '' COMMENT '消息内容',
`type` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '消息类型',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0正常 1被删除',
`updated` int(11) unsigned NOT NULL COMMENT '更新时间',
`created` int(11) unsigned NOT NULL COMMENT '创建时间',
`flag` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_relateId_status_created` (`relateId`,`status`,`created`),
KEY `idx_relateId_status_msgId_created` (`relateId`,`status`,`msgId`,`created`),
KEY `idx_fromId_toId_created` (`fromId`,`toId`,`status`)
) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- ----------------------------
-- Table structure for `on_IMMessage_2`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMMessage_2`;
CREATE TABLE `on_IMMessage_2` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`relateId` int(11) unsigned NOT NULL COMMENT '用户的关系id',
`fromId` int(11) unsigned NOT NULL COMMENT '发送用户的id',
`toId` int(11) unsigned NOT NULL COMMENT '接收用户的id',
`msgId` int(11) unsigned NOT NULL COMMENT '消息ID',
`content` varchar(4096) COLLATE utf8mb4_bin DEFAULT '' COMMENT '消息内容',
`type` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '消息类型',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0正常 1被删除',
`updated` int(11) unsigned NOT NULL COMMENT '更新时间',
`created` int(11) unsigned NOT NULL COMMENT '创建时间',
`flag` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_relateId_status_created` (`relateId`,`status`,`created`),
KEY `idx_relateId_status_msgId_created` (`relateId`,`status`,`msgId`,`created`),
KEY `idx_fromId_toId_created` (`fromId`,`toId`,`status`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- ----------------------------
-- Table structure for `on_IMMessage_3`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMMessage_3`;
CREATE TABLE `on_IMMessage_3` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`relateId` int(11) unsigned NOT NULL COMMENT '用户的关系id',
`fromId` int(11) unsigned NOT NULL COMMENT '发送用户的id',
`toId` int(11) unsigned NOT NULL COMMENT '接收用户的id',
`msgId` int(11) unsigned NOT NULL COMMENT '消息ID',
`content` varchar(4096) COLLATE utf8mb4_bin DEFAULT '' COMMENT '消息内容',
`type` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '消息类型',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0正常 1被删除',
`updated` int(11) unsigned NOT NULL COMMENT '更新时间',
`created` int(11) unsigned NOT NULL COMMENT '创建时间',
`flag` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_relateId_status_created` (`relateId`,`status`,`created`),
KEY `idx_relateId_status_msgId_created` (`relateId`,`status`,`msgId`,`created`),
KEY `idx_fromId_toId_created` (`fromId`,`toId`,`status`)
) ENGINE=InnoDB AUTO_INCREMENT=267 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- ----------------------------
-- Table structure for `on_IMMessage_4`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMMessage_4`;
CREATE TABLE `on_IMMessage_4` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`relateId` int(11) unsigned NOT NULL COMMENT '用户的关系id',
`fromId` int(11) unsigned NOT NULL COMMENT '发送用户的id',
`toId` int(11) unsigned NOT NULL COMMENT '接收用户的id',
`msgId` int(11) unsigned NOT NULL COMMENT '消息ID',
`content` varchar(4096) COLLATE utf8mb4_bin DEFAULT '' COMMENT '消息内容',
`type` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '消息类型',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0正常 1被删除',
`updated` int(11) unsigned NOT NULL COMMENT '更新时间',
`created` int(11) unsigned NOT NULL COMMENT '创建时间',
`flag` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_relateId_status_created` (`relateId`,`status`,`created`),
KEY `idx_relateId_status_msgId_created` (`relateId`,`status`,`msgId`,`created`),
KEY `idx_fromId_toId_created` (`fromId`,`toId`,`status`)
) ENGINE=InnoDB AUTO_INCREMENT=660 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- ----------------------------
-- Table structure for `on_IMMessage_5`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMMessage_5`;
CREATE TABLE `on_IMMessage_5` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`relateId` int(11) unsigned NOT NULL COMMENT '用户的关系id',
`fromId` int(11) unsigned NOT NULL COMMENT '发送用户的id',
`toId` int(11) unsigned NOT NULL COMMENT '接收用户的id',
`msgId` int(11) unsigned NOT NULL COMMENT '消息ID',
`content` varchar(4096) COLLATE utf8mb4_bin DEFAULT '' COMMENT '消息内容',
`type` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '消息类型',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0正常 1被删除',
`updated` int(11) unsigned NOT NULL COMMENT '更新时间',
`created` int(11) unsigned NOT NULL COMMENT '创建时间',
`flag` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_relateId_status_created` (`relateId`,`status`,`created`),
KEY `idx_relateId_status_msgId_created` (`relateId`,`status`,`msgId`,`created`),
KEY `idx_fromId_toId_created` (`fromId`,`toId`,`status`)
) ENGINE=InnoDB AUTO_INCREMENT=171 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- ----------------------------
-- Table structure for `on_IMMessage_6`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMMessage_6`;
CREATE TABLE `on_IMMessage_6` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`relateId` int(11) unsigned NOT NULL COMMENT '用户的关系id',
`fromId` int(11) unsigned NOT NULL COMMENT '发送用户的id',
`toId` int(11) unsigned NOT NULL COMMENT '接收用户的id',
`msgId` int(11) unsigned NOT NULL COMMENT '消息ID',
`content` varchar(4096) COLLATE utf8mb4_bin DEFAULT '' COMMENT '消息内容',
`type` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '消息类型',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0正常 1被删除',
`updated` int(11) unsigned NOT NULL COMMENT '更新时间',
`created` int(11) unsigned NOT NULL COMMENT '创建时间',
`flag` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_relateId_status_created` (`relateId`,`status`,`created`),
KEY `idx_relateId_status_msgId_created` (`relateId`,`status`,`msgId`,`created`),
KEY `idx_fromId_toId_created` (`fromId`,`toId`,`status`)
) ENGINE=InnoDB AUTO_INCREMENT=99 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- ----------------------------
-- Table structure for `on_IMMessage_7`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMMessage_7`;
CREATE TABLE `on_IMMessage_7` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`relateId` int(11) unsigned NOT NULL COMMENT '用户的关系id',
`fromId` int(11) unsigned NOT NULL COMMENT '发送用户的id',
`toId` int(11) unsigned NOT NULL COMMENT '接收用户的id',
`msgId` int(11) unsigned NOT NULL COMMENT '消息ID',
`content` varchar(4096) COLLATE utf8mb4_bin DEFAULT '' COMMENT '消息内容',
`type` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '消息类型',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0正常 1被删除',
`updated` int(11) unsigned NOT NULL COMMENT '更新时间',
`created` int(11) unsigned NOT NULL COMMENT '创建时间',
`flag` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_relateId_status_created` (`relateId`,`status`,`created`),
KEY `idx_relateId_status_msgId_created` (`relateId`,`status`,`msgId`,`created`),
KEY `idx_fromId_toId_created` (`fromId`,`toId`,`status`)
) ENGINE=InnoDB AUTO_INCREMENT=825 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- ----------------------------
-- Table structure for `on_IMRecentSession`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMRecentSession`;
CREATE TABLE `on_IMRecentSession` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) unsigned NOT NULL COMMENT '用户id',
`peerId` int(11) unsigned NOT NULL COMMENT '对方id',
`type` tinyint(1) unsigned DEFAULT '0' COMMENT '类型,1-用户,2-群组',
`status` tinyint(1) unsigned DEFAULT '0' COMMENT '用户:0-正常, 1-用户A删除,群组:0-正常, 1-被删除',
`created` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`updated` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
PRIMARY KEY (`id`),
KEY `idx_userId_peerId_status_updated` (`userId`,`peerId`,`status`,`updated`),
KEY `idx_userId_peerId_type` (`userId`,`peerId`,`type`)
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `on_IMTransmitFile`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMTransmitFile`;
CREATE TABLE `on_IMTransmitFile` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fromId` int(11) DEFAULT NULL,
`toId` int(11) DEFAULT NULL,
`fileName` varchar(50) DEFAULT NULL,
`size` int(11) DEFAULT NULL,
`taskId` int(11) DEFAULT NULL,
`status` int(11) DEFAULT NULL,
`created` int(11) DEFAULT NULL,
`updated` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `on_IMUser`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMUser`;
CREATE TABLE `on_IMUser` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户id',
`appId` int(11) DEFAULT '0',
`outId` int(11) DEFAULT '0' COMMENT '用户关联的对外ID。可用于云服务的架构处理',
`username` varchar(32) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '用户名',
`password` varchar(32) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '密码',
`salt` varchar(4) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '混淆码',
`api_token` varchar(32) COLLATE utf8mb4_bin DEFAULT '',
`nickname` varchar(32) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '花名,绰号等',
`realname` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL,
`sex` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1男2女0未知',
`avatar` varchar(255) COLLATE utf8mb4_bin DEFAULT '' COMMENT '自定义用户头像',
`domain` varchar(32) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '拼音',
`phone` varchar(15) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '手机号码',
`email` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT 'email',
`departId` int(11) unsigned NOT NULL COMMENT '所属部门Id',
`push_shield_status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0关闭勿扰 1开启勿扰',
`sign_info` varchar(128) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '个性签名',
`status` tinyint(2) unsigned DEFAULT '0' COMMENT '1. 试用期 2. 正式 3. 离职 4.实习',
`updated` int(11) unsigned NOT NULL COMMENT '更新时间',
`created` int(11) unsigned NOT NULL COMMENT '创建时间',
`data_sign` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL,
`Longitude` float(11,7) DEFAULT NULL,
`Latitude` float(11,7) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `idx_domain` (`domain`),
KEY `idx_name` (`username`),
KEY `idx_phone` (`phone`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- ----------------------------
-- Table structure for `on_IMUserFriends`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMUserFriends`;
CREATE TABLE `on_IMUserFriends` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`friuid` int(11) NOT NULL,
`friName` varchar(50) DEFAULT NULL,
`friAvatar` varchar(120) DEFAULT NULL,
`remark` varchar(50) DEFAULT NULL,
`groupId` int(11) DEFAULT '1',
`message` varchar(100) DEFAULT NULL,
`status` int(11) NOT NULL,
`role` int(11) DEFAULT NULL,
`lv` int(11) DEFAULT NULL,
`updated` int(11) DEFAULT NULL,
`created` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `on_IMUserGeoData`
-- ----------------------------
DROP TABLE IF EXISTS `on_IMUserGeoData`;
CREATE TABLE `on_IMUserGeoData` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) DEFAULT NULL,
`city` varchar(50) DEFAULT NULL,
`lng` float(11,7) DEFAULT NULL,
`lat` float(11,7) DEFAULT NULL,
`uids` text,
`data` text,
`status` int(11) DEFAULT '1',
`updated` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of `on_IMUser`
-- ----------------------------
BEGIN;
INSERT INTO `on_IMUser` VALUES ('1', '88888', '0', '888888', '1dfd13b5833cc70b790d18e168fcf677', '2496', 'sdfadsfadsfdsa324234', '系统通知', '系统通知', '1', 'http://d.lanrentuku.com/down/png/1807/if-family/if_daughter_3231126.png', '0', '8888888888', '689541@qq.com', '1', '0', 'cloudtalk', '0', '1544144515', '1533019443', null, '0.0000000', '0.0000000');
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;
Loading...
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

About

【全开源】专注于 企业云布署(SaaS) 的即时通讯IM系统,基于teamtalk 开源项目二次开发,群集布置效果优化,业务模块与底层分离,能快速与自已现有系统对接,可用于企业OA,内部办公IM,App聊天沟通等业务场景。支持音,视频通话 支持 andoird ios mac windows h5/小程序 HttpApi 是全网唯一支持全平台布署的互联网即时通讯系统。
No labels
Apache-2.0
Use Apache-2.0
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/springjava/cloudtalk.git
git@gitee.com:springjava/cloudtalk.git
springjava
cloudtalk
cloudtalk
master
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /