45
CREATE TABLE `messages45` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`msgType` tinyint(4) NOT NULL DEFAULT '0' COMMENT '消息類型(0:后台手工发送的消息 1:系统自动发的消息)',
`sendUserld` int(11) NOT NULL DEFAULT '0' COMMENT '发送者ID',
`receiveUserld` int(11) NOT NULL DEFAULT '0' COMMENT '接受者ID',
`msgContent` text NOT NULL COMMENT '消息内容',
`msgStatus` tinyint(4) NOT NULL DEFAULT '0' COMMENT '阅读状态(0:未读 1:已读)',
`msgJson` varchar(255) DEFAULT NULL COMMENT '存放json数据(默认{from:1.datald} from:0:普通消息 1:订单 2:商品 3:订单投诉 4:结算信息 5:提现信息 6:订单评价 datald:关联的记录id)',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效状态(1:有效 -1:无效)',
`createTime` datetime NOT NULL COMMENT '发送时间',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
46
CREATE TABLE `message_queues46` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`userld` int(11) DEFAULT NULL COMMENT '用户ID',
`msgType` tinyint(4) DEFAULT NULL COMMENT '消息类型(1:商城消息 2:手机短信提醒 4:微信模板消息提醒)',
`paramJson` text COMMENT '消息参数JSON',
`msgJson` text COMMENT '消息JSON',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
`sendTime` datetime DEFAULT NULL COMMENT '发送时间(发送时间)',
`sendStatus` tinyint(4) DEFAULT '0' COMMENT '发送状态(状态:0未发送,1已发送)',
`msgCode` varchar(100) DEFAULT NULL COMMENT '消息代码',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;