CREATE TABLE `[#DB_PREFIX#]notification` ( `notification_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID', `sender_uid` int(11) DEFAULT NULL COMMENT '发送者ID', `recipient_uid` int(11) DEFAULT '0' COMMENT '接收者ID', `action_type` int(4) DEFAULT NULL COMMENT '操作类型', `model_type` smallint(11) NOT NULL DEFAULT '0', `source_id` int(11) NOT NULL DEFAULT '0' COMMENT '问题或比赛ID', `add_time` int(10) DEFAULT NULL COMMENT '添加时间', `read_flag` TINYINT( 1 ) NULL DEFAULT '0' COMMENT '阅读状态', PRIMARY KEY (`notification_id`), KEY `recipient_read_flag` (`recipient_uid`,`read_flag`), KEY `sender_uid` (`sender_uid`), KEY `model_type` (`model_type`), KEY `source_id` (`source_id`), KEY `action_type` (`action_type`), KEY `add_time` (`add_time`) ) ENGINE=[#DB_ENGINE#] DEFAULT CHARSET=utf8 COMMENT='系统通知'; CREATE TABLE `[#DB_PREFIX#]notification_data` ( `notification_id` int(11) unsigned NOT NULL, `data` text, PRIMARY KEY (`notification_id`) ) ENGINE=[#DB_ENGINE#] DEFAULT CHARSET=utf8 COMMENT='系统通知数据表';为什么要把data字段另外用一个表来存储,有什么用意?
这家伙很懒,还没有设置简介