源战役
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.

33 lines
2.2 KiB

  1. -- tyl 宠物支援
  2. CREATE TABLE IF NOT EXISTS `pet_support_info` (
  3. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  4. `slot_id` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '槽位Id',
  5. `support_type` tinyint(2) unsigned NOT NULL COMMENT '支援类型 1,普通支援 2,全服支援',
  6. `pet_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '宠物Id',
  7. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
  8. PRIMARY KEY (`role_id`,`slot_id`,`pet_id`)
  9. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='宠物支援槽位表';
  10. CREATE TABLE IF NOT EXISTS `pet_support_rank` (
  11. `server_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '服务器Id(后台唯一服号)',
  12. `rank` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '排名',
  13. `pet_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '宠物Id',
  14. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  15. `role_name` varchar(255) NOT NULL DEFAULT '' COMMENT '角色名称',
  16. `role_power` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色战力',
  17. `support_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '支援数',
  18. `yesterday_support_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '宠物昨天的支援人数',
  19. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
  20. PRIMARY KEY (`pet_id`)
  21. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='宠物全服支援排行榜数据表';
  22. CREATE TABLE IF NOT EXISTS `pet_support_statistics` (
  23. `server_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '服务器Id(后台唯一服号)',
  24. `refresh_times` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '刷新次数',
  25. `yesterday_online_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '宠物支援昨天登录的人数',
  26. `today_online_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '宠物支援今天的登录人数',
  27. `today_support_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '当天支援人次',
  28. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间戳',
  29. PRIMARY KEY (`server_id`,`refresh_times`)
  30. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='宠物全服支援统计数据表';