Commit fd3e3205 by 孙龙

Merge branch 'master' of http://119.23.72.7/liyang/CMS-Message

# Conflicts:
#	.idea/workspace.xml
parents 1dd13001 9665e20f
/*
Navicat MySQL Data Transfer
Source Server : 192.168.1.232
Source Server Type : MySQL
Source Server Version : 50548
Source Host : 192.168.1.232
Source Database : liexin_message
Target Server Type : MySQL
Target Server Version : 50548
File Encoding : utf-8
Date: 02/21/2019 16:32:13 PM
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `lie_delay_message`
-- ----------------------------
DROP TABLE IF EXISTS `lie_delay_message`;
CREATE TABLE `lie_delay_message` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`queue` varchar(200) NOT NULL DEFAULT '' COMMENT '队列名',
`content` text NOT NULL COMMENT '消息内容',
`status` tinyint(1) unsigned DEFAULT '0' COMMENT '1 已经处理了 5处理失败',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '修改时间',
`expect_send_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '期望发送时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=194 DEFAULT CHARSET=utf8mb4 COMMENT='延时消息任务表';
SET FOREIGN_KEY_CHECKS = 1;
/*
Navicat MySQL Data Transfer
Source Server : 192.168.1.232
Source Server Type : MySQL
Source Server Version : 50548
Source Host : 192.168.1.232
Source Database : liexin_message
Target Server Type : MySQL
Target Server Version : 50548
File Encoding : utf-8
Date: 02/21/2019 16:32:19 PM
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `lie_failed_jobs`
-- ----------------------------
DROP TABLE IF EXISTS `lie_failed_jobs`;
CREATE TABLE `lie_failed_jobs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`connection` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '连接名称',
`queue` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '队列名称',
`payload` text COLLATE utf8_unicode_ci NOT NULL COMMENT '消息内容',
`failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=262 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='消息失败表';
SET FOREIGN_KEY_CHECKS = 1;
/*
Navicat MySQL Data Transfer
Source Server : 192.168.1.232
Source Server Type : MySQL
Source Server Version : 50548
Source Host : 192.168.1.232
Source Database : liexin_message
Target Server Type : MySQL
Target Server Version : 50548
File Encoding : utf-8
Date: 02/21/2019 16:32:24 PM
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `lie_msg_channel_tpl`
-- ----------------------------
DROP TABLE IF EXISTS `lie_msg_channel_tpl`;
CREATE TABLE `lie_msg_channel_tpl` (
`channel_tpl_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '渠道模板id',
`tpl_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '模板id',
`channel_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '渠道类型(1、站内信 2、短信 3、邮箱 4、微信通知)',
`title` varchar(64) NOT NULL DEFAULT '' COMMENT '消息标题(若微信,则存放模板消息id)',
`content` text NOT NULL COMMENT '消息内容',
`op_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '点击操作类型(1、打开消息,展示消息内容;2、点击站内信标题,跳转url)',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`url` varchar(255) DEFAULT '' COMMENT '跳转url',
`ex_int` int(11) DEFAULT '0' COMMENT '备用字段整形',
`ex_str` varchar(255) DEFAULT '' COMMENT '备用字段字符串',
PRIMARY KEY (`channel_tpl_id`),
KEY `tpl_id` (`tpl_id`) USING BTREE,
KEY `channel_type` (`channel_type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=311 DEFAULT CHARSET=utf8;
SET FOREIGN_KEY_CHECKS = 1;
/*
Navicat MySQL Data Transfer
Source Server : 192.168.1.232
Source Server Type : MySQL
Source Server Version : 50548
Source Host : 192.168.1.232
Source Database : liexin_message
Target Server Type : MySQL
Target Server Version : 50548
File Encoding : utf-8
Date: 02/21/2019 16:32:30 PM
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `lie_msg_log`
-- ----------------------------
DROP TABLE IF EXISTS `lie_msg_log`;
CREATE TABLE `lie_msg_log` (
`log_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '消息日志id',
`status` tinyint(1) NOT NULL DEFAULT '-2' COMMENT '消息状态(-4:已删除 -3:已取消 -2:待发送 -1:发送失败 1:发送成功 2:已读)',
`obj_user` varchar(32) NOT NULL DEFAULT '0' COMMENT '目标用户',
`source_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '消息来源类型(1、功能性消息 2、营销型消息)',
`tpl_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '模板id',
`channel_type` varchar(32) NOT NULL DEFAULT '1' COMMENT '渠道类型(1、站内信 2、短信 3、邮箱 4、微信通知)',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`expect_send_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '期望发送时间',
`actual_send_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '实际发送时间',
`title` varchar(64) NOT NULL DEFAULT '' COMMENT '标题',
`content` text NOT NULL COMMENT '内容',
`wechat_tpl_id` int(64) unsigned NOT NULL DEFAULT '0' COMMENT '微信模板id',
`ex_int` int(11) DEFAULT '0' COMMENT '备用字段整形',
`ex_str` varchar(255) DEFAULT '' COMMENT '备用字段字符串',
PRIMARY KEY (`log_id`),
KEY `status` (`status`) USING BTREE,
KEY `obj_user` (`obj_user`) USING BTREE,
KEY `source_type` (`source_type`) USING BTREE,
KEY `tpl_id` (`tpl_id`) USING BTREE,
KEY `channel_type` (`channel_type`) USING BTREE,
KEY `expect_send_time` (`expect_send_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=8536 DEFAULT CHARSET=utf8;
SET FOREIGN_KEY_CHECKS = 1;
/*
Navicat MySQL Data Transfer
Source Server : 192.168.1.232
Source Server Type : MySQL
Source Server Version : 50548
Source Host : 192.168.1.232
Source Database : liexin_message
Target Server Type : MySQL
Target Server Version : 50548
File Encoding : utf-8
Date: 02/21/2019 16:32:35 PM
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `lie_msg_tpl`
-- ----------------------------
DROP TABLE IF EXISTS `lie_msg_tpl`;
CREATE TABLE `lie_msg_tpl` (
`tpl_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '消息模板id',
`channels` varchar(32) NOT NULL DEFAULT '1' COMMENT '渠道类型(1、站内信 2、短信 3、邮箱 4微信通知 可多选 用逗号隔开 eg:1,2,3)',
`msg_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '消息类型(1、公告 2、活动 3、新闻)',
`source_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '消息来源类型(1、功能性消息 2、营销型消息)',
`creater` varchar(255) NOT NULL DEFAULT '' COMMENT '创建人',
`obj_user` text NOT NULL COMMENT '目标用户(存手机号(或邮箱),逗号隔开)',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`description` varchar(32) DEFAULT '' COMMENT '消息描述(不做前台展示,加强理解使用)',
`ex_int` int(11) DEFAULT '0' COMMENT '备用字段整形',
`ex_str` varchar(255) NOT NULL DEFAULT '' COMMENT '备用字段字符串',
`expect_send_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '预期发布时间',
PRIMARY KEY (`tpl_id`),
KEY `channels` (`channels`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=177 DEFAULT CHARSET=utf8 COMMENT='obj_user 只针对手动发送,自动发送无需目标用户,直接调用接口与模板对应';
SET FOREIGN_KEY_CHECKS = 1;
No preview for this file type
User-agent: *
Disallow:
Disallow:/
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 sign in to comment