crm_db.sql 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. CREATE TABLE `up_base_info` (
  2. `id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '自增ID',
  3. `mid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'up主id',
  4. `name` varchar(36) NOT NULL DEFAULT '' COMMENT '昵称',
  5. `sex` tinyint(4) NOT NULL DEFAULT '0' COMMENT '性别 0:保密 1:男 2:女',
  6. `join_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '注册时间',
  7. `first_up_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '第一次投稿时间',
  8. `level` smallint(6) NOT NULL DEFAULT '0' COMMENT '等级',
  9. `fans_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '粉丝量',
  10. `account_state` tinyint(4) NOT NULL DEFAULT '0' COMMENT '账号状态,0:正常,1:封禁',
  11. `activity` int(11) NOT NULL DEFAULT '0' COMMENT '活跃度',
  12. `article_count_30day` int(11) NOT NULL DEFAULT '0' COMMENT '30天内投稿量(所有业务)',
  13. `article_count_accumulate` int(11) NOT NULL DEFAULT '0' COMMENT '累计投稿量(各业务累加)',
  14. `verify_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '认证类型,0-个人,1-企业',
  15. `ctime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  16. `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间',
  17. `business_type` tinyint(4) NOT NULL COMMENT '业务类型, 1视频/2音频/3专栏',
  18. `credit_score` int(11) NOT NULL DEFAULT '500' COMMENT '信用分',
  19. `pr_score` int(11) NOT NULL DEFAULT '0' COMMENT '影响分',
  20. `quality_score` int(11) NOT NULL DEFAULT '0' COMMENT '质量分',
  21. `active_tid` smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '最多稿件分区',
  22. `attr` int(11) NOT NULL DEFAULT '0' COMMENT '属性,以位区分',
  23. `birthday` date NOT NULL DEFAULT '0000-00-00' COMMENT '生日',
  24. `active_province` varchar(32) NOT NULL DEFAULT '' COMMENT '省份',
  25. `active_city` varchar(32) NOT NULL DEFAULT '' COMMENT '城市',
  26. PRIMARY KEY (`id`),
  27. UNIQUE KEY `uk_mid_type` (`mid`,`business_type`),
  28. KEY `ix_mtime` (`mtime`),
  29. KEY `ix_uptime` (`first_up_time`)
  30. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='up基本信息表';
  31. CREATE TABLE `up_play_info` (
  32. `id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '自增ID',
  33. `mid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'up主id',
  34. `business_type` smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '业务类型, 1视频/2音频/3专栏',
  35. `play_count_accumulate` bigint(20) NOT NULL DEFAULT '0' COMMENT '累计播放次数',
  36. `ctime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  37. `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间',
  38. `article_count` int(11) NOT NULL DEFAULT '0' COMMENT '总稿件数',
  39. `play_count_90day` bigint(20) NOT NULL DEFAULT '0' COMMENT '90天内稿件总播放次数',
  40. `play_count_30day` bigint(20) NOT NULL DEFAULT '0' COMMENT '30天内稿件总播放次数',
  41. `play_count_7day` bigint(20) NOT NULL DEFAULT '0' COMMENT '7天内稿件总播放次数',
  42. PRIMARY KEY (`id`),
  43. UNIQUE KEY `uk_mid_bus` (`mid`,`business_type`),
  44. KEY `ix_mtime` (`mtime`)
  45. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='up基本播放信息表';
  46. CREATE TABLE `up_rank` (
  47. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  48. `mid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'up主id',
  49. `type` smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '排行榜类型',
  50. `value` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '排行榜数值,根据type不同,代表的含义不同',
  51. `generate_date` date NOT NULL DEFAULT '0000-00-00' COMMENT '排行榜日',
  52. `ctime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  53. `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间',
  54. `value2` int(11) NOT NULL DEFAULT '0' COMMENT '分数2',
  55. PRIMARY KEY (`id`),
  56. UNIQUE KEY `uk_date_type_mid` (`generate_date`,`type`,`mid`),
  57. KEY `ix_mtime` (`mtime`)
  58. ) ENGINE=InnoDB AUTO_INCREMENT=35001 DEFAULT CHARSET=utf8 COMMENT='Up蹿升榜';
  59. CREATE TABLE `task_info` (
  60. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  61. `generate_date` date NOT NULL DEFAULT '0000-00-00' COMMENT '计算日',
  62. `task_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '任务类型',
  63. `start_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '开始时间',
  64. `end_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '结束时间',
  65. `task_state` smallint(6) NOT NULL DEFAULT '0' COMMENT '任务状态, 0表示初始化, 1表示结束,其他状态根据task_type定义',
  66. `ctime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  67. `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间',
  68. PRIMARY KEY (`id`),
  69. UNIQUE KEY `uk_date_type` (`generate_date`,`task_type`),
  70. KEY `ix_mtime` (`mtime`),
  71. KEY `ix_date` (`generate_date`)
  72. ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 COMMENT='计算任务信息表';
  73. -- score_section_history: table
  74. CREATE TABLE `score_section_history` (
  75. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  76. `generate_date` date NOT NULL COMMENT '生成日期',
  77. `score_type` smallint(6) NOT NULL DEFAULT '0' COMMENT '类型, 1质量分,2影响分,3信用分',
  78. `section_0` int(11) NOT NULL DEFAULT '0' COMMENT '0~100的人数',
  79. `section_1` int(11) NOT NULL DEFAULT '0' COMMENT '101~200',
  80. `section_2` int(11) NOT NULL DEFAULT '0' COMMENT '201~300',
  81. `section_3` int(11) NOT NULL DEFAULT '0' COMMENT '301~400',
  82. `section_4` int(11) NOT NULL DEFAULT '0' COMMENT '401~500',
  83. `section_5` int(11) NOT NULL DEFAULT '0' COMMENT '501~600',
  84. `section_6` int(11) NOT NULL DEFAULT '0' COMMENT '601~700',
  85. `section_7` int(11) NOT NULL DEFAULT '0' COMMENT '701~800',
  86. `section_8` int(11) NOT NULL DEFAULT '0' COMMENT '801~900',
  87. `section_9` int(11) NOT NULL DEFAULT '0' COMMENT '901~1000',
  88. `ctime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  89. `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间',
  90. PRIMARY KEY (`id`),
  91. UNIQUE KEY `uk_date_type` (`generate_date`,`score_type`),
  92. KEY `ix_mtime` (`mtime`)
  93. ) ENGINE=InnoDB AUTO_INCREMENT=79 DEFAULT CHARSET=utf8 COMMENT='up分数段人数分布表'
  94. ;
  95. -- up_stats_history: table
  96. CREATE TABLE `up_stats_history` (
  97. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  98. `type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '1活跃、2新增(可以通过累计来计算)、3累计up主人数',
  99. `sub_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '子类',
  100. `value1` int(11) NOT NULL DEFAULT '0' COMMENT '分数',
  101. `value2` int(11) NOT NULL DEFAULT '0' COMMENT '分数2,备用',
  102. `generate_date` date NOT NULL DEFAULT '0000-00-00' COMMENT '生成日期',
  103. `ctime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  104. `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间',
  105. PRIMARY KEY (`id`),
  106. UNIQUE KEY `uk_type_subtype_date` (`generate_date`,`type`,`sub_type`),
  107. KEY `ix_mtime` (`mtime`)
  108. ) ENGINE=InnoDB AUTO_INCREMENT=110 DEFAULT CHARSET=utf8 COMMENT='up主总数表'
  109. ;
  110. -- up_scores_history_00: table
  111. CREATE TABLE `up_scores_history_00` (
  112. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  113. `mid` int(11) unsigned NOT NULL COMMENT 'up主id',
  114. `score_type` tinyint(4) NOT NULL COMMENT '1内容分,2影响分,3信用分',
  115. `score` int(11) unsigned NOT NULL COMMENT '分数',
  116. `generate_date` date NOT NULL COMMENT '生成日期',
  117. `ctime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  118. `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间',
  119. PRIMARY KEY (`id`),
  120. UNIQUE KEY `uk_mid_scoretype_date` (`mid`,`score_type`,`generate_date`),
  121. KEY `ix_date` (`generate_date`),
  122. KEY `ix_mtime` (`mtime`)
  123. ) ENGINE=InnoDB AUTO_INCREMENT=101239 DEFAULT CHARSET=utf8 COMMENT='up分数表'
  124. ;
  125. -- credit_log_00: table
  126. CREATE TABLE `credit_log_00` (
  127. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
  128. `type` smallint(6) unsigned NOT NULL COMMENT '日志类型',
  129. `op_type` smallint(6) NOT NULL COMMENT '操作类型',
  130. `reason` smallint(6) NOT NULL COMMENT '原因类型',
  131. `business_type` smallint(6) unsigned NOT NULL COMMENT '业务类型',
  132. `mid` int(11) NOT NULL COMMENT 'mid',
  133. `oid` int(11) unsigned NOT NULL COMMENT 'oid',
  134. `uid` smallint(6) unsigned NOT NULL COMMENT '操作人员id',
  135. `content` varchar(255) NOT NULL COMMENT '操作内容',
  136. `extra` varchar(2000) NOT NULL DEFAULT '' COMMENT '额外信息',
  137. `ctime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  138. `mtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间',
  139. PRIMARY KEY (`id`),
  140. KEY `ix_mtime` (`mtime`),
  141. KEY `ix_mid` (`mid`)
  142. ) ENGINE=InnoDB AUTO_INCREMENT=394475 DEFAULT CHARSET=utf8 COMMENT='信用分日志表'
  143. ;
  144. CREATE TABLE credit_log_00 LIKE credit_log_00;
  145. CREATE TABLE credit_log_01 LIKE credit_log_00;
  146. CREATE TABLE credit_log_02 LIKE credit_log_00;
  147. CREATE TABLE credit_log_03 LIKE credit_log_00;
  148. CREATE TABLE credit_log_04 LIKE credit_log_00;
  149. CREATE TABLE credit_log_05 LIKE credit_log_00;
  150. CREATE TABLE credit_log_06 LIKE credit_log_00;
  151. CREATE TABLE credit_log_07 LIKE credit_log_00;
  152. CREATE TABLE credit_log_08 LIKE credit_log_00;
  153. CREATE TABLE credit_log_09 LIKE credit_log_00;
  154. CREATE TABLE credit_log_10 LIKE credit_log_00;
  155. CREATE TABLE credit_log_11 LIKE credit_log_00;
  156. CREATE TABLE credit_log_12 LIKE credit_log_00;
  157. CREATE TABLE credit_log_13 LIKE credit_log_00;
  158. CREATE TABLE credit_log_14 LIKE credit_log_00;
  159. CREATE TABLE credit_log_15 LIKE credit_log_00;
  160. CREATE TABLE credit_log_16 LIKE credit_log_00;
  161. CREATE TABLE credit_log_17 LIKE credit_log_00;
  162. CREATE TABLE credit_log_18 LIKE credit_log_00;
  163. CREATE TABLE credit_log_19 LIKE credit_log_00;
  164. CREATE TABLE credit_log_20 LIKE credit_log_00;
  165. CREATE TABLE credit_log_21 LIKE credit_log_00;
  166. CREATE TABLE credit_log_22 LIKE credit_log_00;
  167. CREATE TABLE credit_log_23 LIKE credit_log_00;
  168. CREATE TABLE credit_log_24 LIKE credit_log_00;
  169. CREATE TABLE credit_log_25 LIKE credit_log_00;
  170. CREATE TABLE credit_log_26 LIKE credit_log_00;
  171. CREATE TABLE credit_log_27 LIKE credit_log_00;
  172. CREATE TABLE credit_log_28 LIKE credit_log_00;
  173. CREATE TABLE credit_log_29 LIKE credit_log_00;
  174. CREATE TABLE credit_log_30 LIKE credit_log_00;
  175. CREATE TABLE credit_log_31 LIKE credit_log_00;
  176. CREATE TABLE credit_log_32 LIKE credit_log_00;
  177. CREATE TABLE credit_log_33 LIKE credit_log_00;
  178. CREATE TABLE credit_log_34 LIKE credit_log_00;
  179. CREATE TABLE credit_log_35 LIKE credit_log_00;
  180. CREATE TABLE credit_log_36 LIKE credit_log_00;
  181. CREATE TABLE credit_log_37 LIKE credit_log_00;
  182. CREATE TABLE credit_log_38 LIKE credit_log_00;
  183. CREATE TABLE credit_log_39 LIKE credit_log_00;
  184. CREATE TABLE credit_log_40 LIKE credit_log_00;
  185. CREATE TABLE credit_log_41 LIKE credit_log_00;
  186. CREATE TABLE credit_log_42 LIKE credit_log_00;
  187. CREATE TABLE credit_log_43 LIKE credit_log_00;
  188. CREATE TABLE credit_log_44 LIKE credit_log_00;
  189. CREATE TABLE credit_log_45 LIKE credit_log_00;
  190. CREATE TABLE credit_log_46 LIKE credit_log_00;
  191. CREATE TABLE credit_log_47 LIKE credit_log_00;
  192. CREATE TABLE credit_log_48 LIKE credit_log_00;
  193. CREATE TABLE credit_log_49 LIKE credit_log_00;
  194. CREATE TABLE credit_log_50 LIKE credit_log_00;
  195. CREATE TABLE credit_log_51 LIKE credit_log_00;
  196. CREATE TABLE credit_log_52 LIKE credit_log_00;
  197. CREATE TABLE credit_log_53 LIKE credit_log_00;
  198. CREATE TABLE credit_log_54 LIKE credit_log_00;
  199. CREATE TABLE credit_log_55 LIKE credit_log_00;
  200. CREATE TABLE credit_log_56 LIKE credit_log_00;
  201. CREATE TABLE credit_log_57 LIKE credit_log_00;
  202. CREATE TABLE credit_log_58 LIKE credit_log_00;
  203. CREATE TABLE credit_log_59 LIKE credit_log_00;
  204. CREATE TABLE credit_log_60 LIKE credit_log_00;
  205. CREATE TABLE credit_log_61 LIKE credit_log_00;
  206. CREATE TABLE credit_log_62 LIKE credit_log_00;
  207. CREATE TABLE credit_log_63 LIKE credit_log_00;
  208. CREATE TABLE credit_log_64 LIKE credit_log_00;
  209. CREATE TABLE credit_log_65 LIKE credit_log_00;
  210. CREATE TABLE credit_log_66 LIKE credit_log_00;
  211. CREATE TABLE credit_log_67 LIKE credit_log_00;
  212. CREATE TABLE credit_log_68 LIKE credit_log_00;
  213. CREATE TABLE credit_log_69 LIKE credit_log_00;
  214. CREATE TABLE credit_log_70 LIKE credit_log_00;
  215. CREATE TABLE credit_log_71 LIKE credit_log_00;
  216. CREATE TABLE credit_log_72 LIKE credit_log_00;
  217. CREATE TABLE credit_log_73 LIKE credit_log_00;
  218. CREATE TABLE credit_log_74 LIKE credit_log_00;
  219. CREATE TABLE credit_log_75 LIKE credit_log_00;
  220. CREATE TABLE credit_log_76 LIKE credit_log_00;
  221. CREATE TABLE credit_log_77 LIKE credit_log_00;
  222. CREATE TABLE credit_log_78 LIKE credit_log_00;
  223. CREATE TABLE credit_log_79 LIKE credit_log_00;
  224. CREATE TABLE credit_log_80 LIKE credit_log_00;
  225. CREATE TABLE credit_log_81 LIKE credit_log_00;
  226. CREATE TABLE credit_log_82 LIKE credit_log_00;
  227. CREATE TABLE credit_log_83 LIKE credit_log_00;
  228. CREATE TABLE credit_log_84 LIKE credit_log_00;
  229. CREATE TABLE credit_log_85 LIKE credit_log_00;
  230. CREATE TABLE credit_log_86 LIKE credit_log_00;
  231. CREATE TABLE credit_log_87 LIKE credit_log_00;
  232. CREATE TABLE credit_log_88 LIKE credit_log_00;
  233. CREATE TABLE credit_log_89 LIKE credit_log_00;
  234. CREATE TABLE credit_log_90 LIKE credit_log_00;
  235. CREATE TABLE credit_log_91 LIKE credit_log_00;
  236. CREATE TABLE credit_log_92 LIKE credit_log_00;
  237. CREATE TABLE credit_log_93 LIKE credit_log_00;
  238. CREATE TABLE credit_log_94 LIKE credit_log_00;
  239. CREATE TABLE credit_log_95 LIKE credit_log_00;
  240. CREATE TABLE credit_log_96 LIKE credit_log_00;
  241. CREATE TABLE credit_log_97 LIKE credit_log_00;
  242. CREATE TABLE credit_log_98 LIKE credit_log_00;
  243. CREATE TABLE credit_log_99 LIKE credit_log_00;
  244. CREATE TABLE up_scores_history_00 LIKE up_scores_history_00;
  245. CREATE TABLE up_scores_history_01 LIKE up_scores_history_00;
  246. CREATE TABLE up_scores_history_02 LIKE up_scores_history_00;
  247. CREATE TABLE up_scores_history_03 LIKE up_scores_history_00;
  248. CREATE TABLE up_scores_history_04 LIKE up_scores_history_00;
  249. CREATE TABLE up_scores_history_05 LIKE up_scores_history_00;
  250. CREATE TABLE up_scores_history_06 LIKE up_scores_history_00;
  251. CREATE TABLE up_scores_history_07 LIKE up_scores_history_00;
  252. CREATE TABLE up_scores_history_08 LIKE up_scores_history_00;
  253. CREATE TABLE up_scores_history_09 LIKE up_scores_history_00;
  254. CREATE TABLE up_scores_history_10 LIKE up_scores_history_00;
  255. CREATE TABLE up_scores_history_11 LIKE up_scores_history_00;
  256. CREATE TABLE up_scores_history_12 LIKE up_scores_history_00;
  257. CREATE TABLE up_scores_history_13 LIKE up_scores_history_00;
  258. CREATE TABLE up_scores_history_14 LIKE up_scores_history_00;
  259. CREATE TABLE up_scores_history_15 LIKE up_scores_history_00;
  260. CREATE TABLE up_scores_history_16 LIKE up_scores_history_00;
  261. CREATE TABLE up_scores_history_17 LIKE up_scores_history_00;
  262. CREATE TABLE up_scores_history_18 LIKE up_scores_history_00;
  263. CREATE TABLE up_scores_history_19 LIKE up_scores_history_00;
  264. CREATE TABLE up_scores_history_20 LIKE up_scores_history_00;
  265. CREATE TABLE up_scores_history_21 LIKE up_scores_history_00;
  266. CREATE TABLE up_scores_history_22 LIKE up_scores_history_00;
  267. CREATE TABLE up_scores_history_23 LIKE up_scores_history_00;
  268. CREATE TABLE up_scores_history_24 LIKE up_scores_history_00;
  269. CREATE TABLE up_scores_history_25 LIKE up_scores_history_00;
  270. CREATE TABLE up_scores_history_26 LIKE up_scores_history_00;
  271. CREATE TABLE up_scores_history_27 LIKE up_scores_history_00;
  272. CREATE TABLE up_scores_history_28 LIKE up_scores_history_00;
  273. CREATE TABLE up_scores_history_29 LIKE up_scores_history_00;
  274. CREATE TABLE up_scores_history_30 LIKE up_scores_history_00;
  275. CREATE TABLE up_scores_history_31 LIKE up_scores_history_00;
  276. CREATE TABLE up_scores_history_32 LIKE up_scores_history_00;
  277. CREATE TABLE up_scores_history_33 LIKE up_scores_history_00;
  278. CREATE TABLE up_scores_history_34 LIKE up_scores_history_00;
  279. CREATE TABLE up_scores_history_35 LIKE up_scores_history_00;
  280. CREATE TABLE up_scores_history_36 LIKE up_scores_history_00;
  281. CREATE TABLE up_scores_history_37 LIKE up_scores_history_00;
  282. CREATE TABLE up_scores_history_38 LIKE up_scores_history_00;
  283. CREATE TABLE up_scores_history_39 LIKE up_scores_history_00;
  284. CREATE TABLE up_scores_history_40 LIKE up_scores_history_00;
  285. CREATE TABLE up_scores_history_41 LIKE up_scores_history_00;
  286. CREATE TABLE up_scores_history_42 LIKE up_scores_history_00;
  287. CREATE TABLE up_scores_history_43 LIKE up_scores_history_00;
  288. CREATE TABLE up_scores_history_44 LIKE up_scores_history_00;
  289. CREATE TABLE up_scores_history_45 LIKE up_scores_history_00;
  290. CREATE TABLE up_scores_history_46 LIKE up_scores_history_00;
  291. CREATE TABLE up_scores_history_47 LIKE up_scores_history_00;
  292. CREATE TABLE up_scores_history_48 LIKE up_scores_history_00;
  293. CREATE TABLE up_scores_history_49 LIKE up_scores_history_00;
  294. CREATE TABLE up_scores_history_50 LIKE up_scores_history_00;
  295. CREATE TABLE up_scores_history_51 LIKE up_scores_history_00;
  296. CREATE TABLE up_scores_history_52 LIKE up_scores_history_00;
  297. CREATE TABLE up_scores_history_53 LIKE up_scores_history_00;
  298. CREATE TABLE up_scores_history_54 LIKE up_scores_history_00;
  299. CREATE TABLE up_scores_history_55 LIKE up_scores_history_00;
  300. CREATE TABLE up_scores_history_56 LIKE up_scores_history_00;
  301. CREATE TABLE up_scores_history_57 LIKE up_scores_history_00;
  302. CREATE TABLE up_scores_history_58 LIKE up_scores_history_00;
  303. CREATE TABLE up_scores_history_59 LIKE up_scores_history_00;
  304. CREATE TABLE up_scores_history_60 LIKE up_scores_history_00;
  305. CREATE TABLE up_scores_history_61 LIKE up_scores_history_00;
  306. CREATE TABLE up_scores_history_62 LIKE up_scores_history_00;
  307. CREATE TABLE up_scores_history_63 LIKE up_scores_history_00;
  308. CREATE TABLE up_scores_history_64 LIKE up_scores_history_00;
  309. CREATE TABLE up_scores_history_65 LIKE up_scores_history_00;
  310. CREATE TABLE up_scores_history_66 LIKE up_scores_history_00;
  311. CREATE TABLE up_scores_history_67 LIKE up_scores_history_00;
  312. CREATE TABLE up_scores_history_68 LIKE up_scores_history_00;
  313. CREATE TABLE up_scores_history_69 LIKE up_scores_history_00;
  314. CREATE TABLE up_scores_history_70 LIKE up_scores_history_00;
  315. CREATE TABLE up_scores_history_71 LIKE up_scores_history_00;
  316. CREATE TABLE up_scores_history_72 LIKE up_scores_history_00;
  317. CREATE TABLE up_scores_history_73 LIKE up_scores_history_00;
  318. CREATE TABLE up_scores_history_74 LIKE up_scores_history_00;
  319. CREATE TABLE up_scores_history_75 LIKE up_scores_history_00;
  320. CREATE TABLE up_scores_history_76 LIKE up_scores_history_00;
  321. CREATE TABLE up_scores_history_77 LIKE up_scores_history_00;
  322. CREATE TABLE up_scores_history_78 LIKE up_scores_history_00;
  323. CREATE TABLE up_scores_history_79 LIKE up_scores_history_00;
  324. CREATE TABLE up_scores_history_80 LIKE up_scores_history_00;
  325. CREATE TABLE up_scores_history_81 LIKE up_scores_history_00;
  326. CREATE TABLE up_scores_history_82 LIKE up_scores_history_00;
  327. CREATE TABLE up_scores_history_83 LIKE up_scores_history_00;
  328. CREATE TABLE up_scores_history_84 LIKE up_scores_history_00;
  329. CREATE TABLE up_scores_history_85 LIKE up_scores_history_00;
  330. CREATE TABLE up_scores_history_86 LIKE up_scores_history_00;
  331. CREATE TABLE up_scores_history_87 LIKE up_scores_history_00;
  332. CREATE TABLE up_scores_history_88 LIKE up_scores_history_00;
  333. CREATE TABLE up_scores_history_89 LIKE up_scores_history_00;
  334. CREATE TABLE up_scores_history_90 LIKE up_scores_history_00;
  335. CREATE TABLE up_scores_history_91 LIKE up_scores_history_00;
  336. CREATE TABLE up_scores_history_92 LIKE up_scores_history_00;
  337. CREATE TABLE up_scores_history_93 LIKE up_scores_history_00;
  338. CREATE TABLE up_scores_history_94 LIKE up_scores_history_00;
  339. CREATE TABLE up_scores_history_95 LIKE up_scores_history_00;
  340. CREATE TABLE up_scores_history_96 LIKE up_scores_history_00;
  341. CREATE TABLE up_scores_history_97 LIKE up_scores_history_00;
  342. CREATE TABLE up_scores_history_98 LIKE up_scores_history_00;
  343. CREATE TABLE up_scores_history_99 LIKE up_scores_history_00;
  344. --------- 以上是建表语句 -----------
  345. --------- 修改 up_play_info表字段,有数据溢出 -----------
  346. # (fat 1, uat 1, prod 1)
  347. alter table up_play_info modify play_count_accumulate BIGINT(20) NOT NULL DEFAULT '0' COMMENT '累计播放次数';
  348. alter table up_play_info modify play_count_90day BIGINT(20) NOT NULL DEFAULT '0' COMMENT '90天内稿件总播放次数';
  349. alter table up_play_info modify play_count_30day BIGINT(20) NOT NULL DEFAULT '0' COMMENT '30天内稿件总播放次数';
  350. alter table up_play_info modify play_count_7day BIGINT(20) NOT NULL DEFAULT '0' COMMENT '7天内稿件总播放次数';
  351. --------- 修改 自增ID为bigint unsigned -----------
  352. # (fat 1, uat 1, prod 1)
  353. alter table up_play_info modify id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '自增ID';
  354. alter table up_base_info modify id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0' COMMENT '自增ID';