Commit 7526f14a authored by 赵啸非's avatar 赵啸非

添加用户消息表

parent 6beca5de
......@@ -806,4 +806,24 @@ CREATE TABLE `mortals_xhx_attendance_export_record` (
-- ----------------------------
-- 用户消息表
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_notice`;
CREATE TABLE mortals_xhx_notice(
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`userId` bigint(20) COMMENT '接收消息的用户的唯一标识符',
`title` varchar(255) NOT NULL COMMENT '消息的标题',
`content` varchar(1024) NOT NULL COMMENT '消息的内容',
`read` tinyint(2) NOT NULL DEFAULT '0' COMMENT '是否已读 (0.否,1.是)',
`priority` int(4) NOT NULL DEFAULT '0' COMMENT '消息的优先级,越高表示越紧急,不为空',
`expireTime` datetime COMMENT '消息的过期时间,超过此时间则自动标记为已读',
`sourceType` varchar(64) NOT NULL COMMENT '消息的来源类型,例如“系统”、“好友”等,可以为空',
`createTime` datetime COMMENT '创建时间',
`createUserId` bigint(20) COMMENT '创建人ID',
`updateTime` datetime COMMENT '更新时间',
`updateUserId` bigint(20) COMMENT '更新人ID',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户消息';
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