源战役
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
1.2 KiB

  1. -- hh
  2. -- 聊天日志
  3. DROP TABLE IF EXISTS `log_chat`;
  4. CREATE TABLE `log_chat` (
  5. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  6. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色id',
  7. `name` varchar(20) NOT NULL DEFAULT '' COMMENT '角色名',
  8. `level` smallint(3) unsigned NOT NULL DEFAULT '0' COMMENT '角色等级',
  9. `vip_level` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'VIP等级',
  10. `address` varchar(39) NOT NULL DEFAULT '' COMMENT 'IP地址',
  11. `type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '聊天频道',
  12. `scene_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '场景id',
  13. `guild_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '帮派id',
  14. `guild_name` varchar(50) NOT NULL DEFAULT '' COMMENT '帮派名',
  15. `chat_to_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '私聊对象角色id',
  16. `chat_to_name` varchar(20) NOT NULL DEFAULT '' COMMENT '私聊对象角色名',
  17. `content` varchar(1000) NOT NULL DEFAULT '' COMMENT '发言内容',
  18. `ctime` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '聊天时间',
  19. PRIMARY KEY (`id`)
  20. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='聊天日志';