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

105 lines
5.8 KiB

  1. -- tyl
  2. -- 孩子日志
  3. drop table if exists log_child_grow_up;
  4. drop table if exists log_child_upgrade;
  5. drop table if exists log_child_fashion;
  6. drop table if exists log_child_vehicle;
  7. drop table if exists log_child_skill;
  8. drop table if exists log_child_toy;
  9. drop table if exists log_child_toy_suit;
  10. drop table if exists log_child_toy_box;
  11. drop table if exists log_child_vote_reward;
  12. CREATE TABLE `log_child_item` (
  13. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  14. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  15. `type` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '操作类型 1-激活 2-升级',
  16. `item_type` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '物品类型 1-时装 2-载具',
  17. `item_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '物品id',
  18. `cost` varchar(255) NOT NULL DEFAULT '[]' COMMENT '消耗',
  19. `grade_bef` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作前等级',
  20. `grade_aft` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作后等级',
  21. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  22. PRIMARY KEY (`id`),
  23. KEY `role_id` (`role_id`,`item_type`) USING BTREE,
  24. KEY `time` (`time`) USING BTREE
  25. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='孩子时装/载具日志表';
  26. CREATE TABLE `log_child_link_heart` (
  27. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  28. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  29. `type` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '操作类型 1-任务 2-消耗材料',
  30. `task_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '任务Id',
  31. `cost` varchar(255) NOT NULL DEFAULT '[]' COMMENT '消耗材料',
  32. `link_heart_get` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '获得同心值',
  33. `link_heart_bef` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '前同心值',
  34. `link_heart_aft` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '后同心值',
  35. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  36. PRIMARY KEY (`id`),
  37. KEY `role_id` (`role_id`) USING BTREE,
  38. KEY `type` (`role_id`,`type`) USING BTREE,
  39. KEY `time` (`time`) USING BTREE
  40. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='孩子同心值日志表';
  41. CREATE TABLE `log_child_rank` (
  42. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  43. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  44. `child_name` varchar(255) NOT NULL DEFAULT '' COMMENT '孩子名称',
  45. `rank` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '排行',
  46. `vote` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '投票数',
  47. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  48. PRIMARY KEY (`id`),
  49. KEY `role_id` (`role_id`) USING BTREE
  50. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='孩子排行榜日志表';
  51. CREATE TABLE `log_child_skill` (
  52. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  53. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  54. `skill_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '技能Id',
  55. `lv_bef` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作前等级',
  56. `lv_aft` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作后等级',
  57. `cost` varchar(500) NOT NULL DEFAULT '[]' COMMENT '消耗',
  58. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  59. PRIMARY KEY (`id`),
  60. KEY `role_id` (`role_id`) USING BTREE,
  61. KEY `time` (`time`) USING BTREE
  62. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='孩子技能日志表';
  63. CREATE TABLE `log_child_toy` (
  64. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  65. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  66. `suit_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '玩具套装类型',
  67. `toy_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '玩具Id',
  68. `cost` varchar(500) NOT NULL DEFAULT '[]' COMMENT '消耗材料',
  69. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  70. PRIMARY KEY (`id`),
  71. KEY `role_id` (`role_id`) USING BTREE
  72. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  73. CREATE TABLE `log_child_toy_box` (
  74. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  75. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  76. `type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '操作类型 1-分解玩具 2-使用玩具精华',
  77. `lv_bef` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作前等级',
  78. `lv_aft` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作后等级',
  79. `exp_bef` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作前经验值',
  80. `exp_aft` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作后经验值',
  81. `toy_cost` varchar(500) CHARACTER SET utf8 NOT NULL DEFAULT '[]' COMMENT '消耗材料',
  82. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  83. PRIMARY KEY (`id`),
  84. KEY `role_id` (`role_id`,`type`) USING BTREE
  85. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;
  86. CREATE TABLE `log_child_upgrade` (
  87. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  88. `role_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '角色Id',
  89. `grade_bef` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作前阶数',
  90. `star_bef` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作前星数',
  91. `grade_aft` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作后阶数',
  92. `star_aft` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作后星数',
  93. `cost` varchar(255) NOT NULL DEFAULT '[]' COMMENT '消耗材料',
  94. `time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '时间',
  95. PRIMARY KEY (`id`),
  96. KEY `role_id` (`role_id`) USING BTREE,
  97. KEY `time` (`time`) USING BTREE
  98. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;