install.sql 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902
  1. -- ----------------------------
  2. -- Table structure for mac_actor
  3. -- ----------------------------
  4. DROP TABLE IF EXISTS `mac_actor`;
  5. CREATE TABLE `mac_actor` (
  6. `actor_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  7. `type_id` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  8. `type_id_1` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  9. `actor_name` varchar(255) NOT NULL DEFAULT '',
  10. `actor_en` varchar(255) NOT NULL DEFAULT '',
  11. `actor_alias` varchar(255) NOT NULL DEFAULT '' ,
  12. `actor_status` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  13. `actor_lock` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  14. `actor_letter` char(1) NOT NULL DEFAULT '' ,
  15. `actor_sex` char(1) NOT NULL DEFAULT '',
  16. `actor_color` varchar(6) NOT NULL DEFAULT '' ,
  17. `actor_pic` varchar(1024) NOT NULL DEFAULT '' ,
  18. `actor_blurb` varchar(255) NOT NULL DEFAULT '',
  19. `actor_remarks` varchar(100) NOT NULL DEFAULT '' ,
  20. `actor_area` varchar(20) NOT NULL DEFAULT '',
  21. `actor_height` varchar(10) NOT NULL DEFAULT '' ,
  22. `actor_weight` varchar(10) NOT NULL DEFAULT '' ,
  23. `actor_birthday` varchar(10) NOT NULL DEFAULT '' ,
  24. `actor_birtharea` varchar(20) NOT NULL DEFAULT '',
  25. `actor_blood` varchar(10) NOT NULL DEFAULT '' ,
  26. `actor_starsign` varchar(10) NOT NULL DEFAULT '',
  27. `actor_school` varchar(20) NOT NULL DEFAULT '',
  28. `actor_works` varchar(255) NOT NULL DEFAULT '',
  29. `actor_tag` varchar(255) NOT NULL DEFAULT '',
  30. `actor_class` varchar(255) NOT NULL DEFAULT '',
  31. `actor_level` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  32. `actor_time` int(10) unsigned NOT NULL DEFAULT '0',
  33. `actor_time_add` int(10) unsigned NOT NULL DEFAULT '0',
  34. `actor_time_hits` int(10) unsigned NOT NULL DEFAULT '0',
  35. `actor_time_make` int(10) unsigned NOT NULL DEFAULT '0',
  36. `actor_hits` mediumint(8) unsigned NOT NULL DEFAULT '0',
  37. `actor_hits_day` mediumint(8) unsigned NOT NULL DEFAULT '0',
  38. `actor_hits_week` mediumint(8) unsigned NOT NULL DEFAULT '0',
  39. `actor_hits_month` mediumint(8) unsigned NOT NULL DEFAULT '0',
  40. `actor_score` decimal(3,1) unsigned NOT NULL DEFAULT '0.0',
  41. `actor_score_all` mediumint(8) unsigned NOT NULL DEFAULT '0',
  42. `actor_score_num` mediumint(8) unsigned NOT NULL DEFAULT '0',
  43. `actor_up` mediumint(8) unsigned NOT NULL DEFAULT '0',
  44. `actor_down` mediumint(8) unsigned NOT NULL DEFAULT '0',
  45. `actor_tpl` varchar(30) NOT NULL DEFAULT '',
  46. `actor_jumpurl` varchar(150) NOT NULL DEFAULT '',
  47. `actor_content` text NOT NULL ,
  48. PRIMARY KEY (`actor_id`),
  49. KEY `type_id` (`type_id`) USING BTREE,
  50. KEY `type_id_1` (`type_id_1`) USING BTREE,
  51. KEY `actor_name` (`actor_name`) USING BTREE,
  52. KEY `actor_en` (`actor_en`) USING BTREE,
  53. KEY `actor_letter` (`actor_letter`) USING BTREE,
  54. KEY `actor_level` (`actor_level`) USING BTREE,
  55. KEY `actor_time` (`actor_time`) USING BTREE,
  56. KEY `actor_time_add` (`actor_time_add`) USING BTREE,
  57. KEY `actor_sex` (`actor_sex`),
  58. KEY `actor_area` (`actor_area`),
  59. KEY `actor_up` (`actor_up`),
  60. KEY `actor_down` (`actor_down`),
  61. KEY `actor_tag` (`actor_tag`),
  62. KEY `actor_class` (`actor_class`),
  63. KEY `actor_score` (`actor_score`),
  64. KEY `actor_score_all` (`actor_score_all`),
  65. KEY `actor_score_num` (`actor_score_num`)
  66. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  67. -- ----------------------------
  68. -- Table structure for mac_admin
  69. -- ----------------------------
  70. DROP TABLE IF EXISTS `mac_admin`;
  71. CREATE TABLE `mac_admin` (
  72. `admin_id` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
  73. `admin_name` varchar(30) NOT NULL DEFAULT '',
  74. `admin_pwd` char(32) NOT NULL DEFAULT '',
  75. `admin_random` char(32) NOT NULL DEFAULT '',
  76. `admin_status` tinyint(1) unsigned NOT NULL DEFAULT '1',
  77. `admin_auth` text NOT NULL,
  78. `admin_login_time` int(10) unsigned NOT NULL DEFAULT '0',
  79. `admin_login_ip` int(10) unsigned NOT NULL DEFAULT '0',
  80. `admin_login_num` int(10) unsigned NOT NULL DEFAULT '0',
  81. `admin_last_login_time` int(10) unsigned NOT NULL DEFAULT '0',
  82. `admin_last_login_ip` int(10) unsigned NOT NULL DEFAULT '0',
  83. PRIMARY KEY (`admin_id`),
  84. KEY `admin_name` (`admin_name`)
  85. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  86. -- ----------------------------
  87. -- Table structure for mac_annex
  88. -- ----------------------------
  89. DROP TABLE IF EXISTS `mac_annex`;
  90. CREATE TABLE `mac_annex` (
  91. `annex_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  92. `annex_time` int(10) unsigned NOT NULL DEFAULT '0',
  93. `annex_file` varchar(255) NOT NULL DEFAULT '',
  94. `annex_size` int(10) unsigned NOT NULL DEFAULT '0',
  95. `annex_type` varchar(8) NOT NULL DEFAULT '',
  96. PRIMARY KEY (`annex_id`),
  97. KEY `annex_time` (`annex_time`),
  98. KEY `annex_file` (`annex_file`),
  99. KEY `annex_type` (`annex_type`)
  100. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  101. -- ----------------------------
  102. -- Table structure for mac_art
  103. -- ----------------------------
  104. DROP TABLE IF EXISTS `mac_art`;
  105. CREATE TABLE `mac_art` (
  106. `art_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  107. `type_id` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  108. `type_id_1` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  109. `group_id` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  110. `art_name` varchar(255) NOT NULL DEFAULT '' ,
  111. `art_sub` varchar(255) NOT NULL DEFAULT '' ,
  112. `art_en` varchar(255) NOT NULL DEFAULT '' ,
  113. `art_status` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  114. `art_letter` char(1) NOT NULL DEFAULT '' ,
  115. `art_color` varchar(6) NOT NULL DEFAULT '' ,
  116. `art_from` varchar(30) NOT NULL DEFAULT '' ,
  117. `art_author` varchar(30) NOT NULL DEFAULT '' ,
  118. `art_tag` varchar(100) NOT NULL DEFAULT '' ,
  119. `art_class` varchar(255) NOT NULL DEFAULT '' ,
  120. `art_pic` varchar(1024) NOT NULL DEFAULT '' ,
  121. `art_pic_thumb` varchar(1024) NOT NULL DEFAULT '' ,
  122. `art_pic_slide` varchar(1024) NOT NULL DEFAULT '' ,
  123. `art_pic_screenshot` text,
  124. `art_blurb` varchar(255) NOT NULL DEFAULT '' ,
  125. `art_remarks` varchar(100) NOT NULL DEFAULT '' ,
  126. `art_jumpurl` varchar(150) NOT NULL DEFAULT '' ,
  127. `art_tpl` varchar(30) NOT NULL DEFAULT '' ,
  128. `art_level` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  129. `art_lock` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  130. `art_points` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  131. `art_points_detail` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  132. `art_up` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  133. `art_down` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  134. `art_hits` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  135. `art_hits_day` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  136. `art_hits_week` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  137. `art_hits_month` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  138. `art_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  139. `art_time_add` int(10) unsigned NOT NULL DEFAULT '0' ,
  140. `art_time_hits` int(10) unsigned NOT NULL DEFAULT '0' ,
  141. `art_time_make` int(10) unsigned NOT NULL DEFAULT '0' ,
  142. `art_score` decimal(3,1) unsigned NOT NULL DEFAULT '0.0' ,
  143. `art_score_all` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  144. `art_score_num` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  145. `art_rel_art` varchar(255) NOT NULL DEFAULT '' ,
  146. `art_rel_vod` varchar(255) NOT NULL DEFAULT '' ,
  147. `art_pwd` varchar(10) NOT NULL DEFAULT '' ,
  148. `art_pwd_url` varchar(255) NOT NULL DEFAULT '' ,
  149. `art_title` mediumtext NOT NULL ,
  150. `art_note` mediumtext NOT NULL ,
  151. `art_content` mediumtext NOT NULL ,
  152. PRIMARY KEY (`art_id`),
  153. KEY `type_id` (`type_id`) USING BTREE,
  154. KEY `type_id_1` (`type_id_1`) USING BTREE,
  155. KEY `art_level` (`art_level`) USING BTREE,
  156. KEY `art_hits` (`art_hits`) USING BTREE,
  157. KEY `art_time` (`art_time`) USING BTREE,
  158. KEY `art_letter` (`art_letter`) USING BTREE,
  159. KEY `art_down` (`art_down`) USING BTREE,
  160. KEY `art_up` (`art_up`) USING BTREE,
  161. KEY `art_tag` (`art_tag`) USING BTREE,
  162. KEY `art_name` (`art_name`) USING BTREE,
  163. KEY `art_enn` (`art_en`) USING BTREE,
  164. KEY `art_hits_day` (`art_hits_day`) USING BTREE,
  165. KEY `art_hits_week` (`art_hits_week`) USING BTREE,
  166. KEY `art_hits_month` (`art_hits_month`) USING BTREE,
  167. KEY `art_time_add` (`art_time_add`) USING BTREE,
  168. KEY `art_time_make` (`art_time_make`) USING BTREE,
  169. KEY `art_lock` (`art_lock`),
  170. KEY `art_score` (`art_score`),
  171. KEY `art_score_all` (`art_score_all`),
  172. KEY `art_score_num` (`art_score_num`)
  173. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  174. -- ----------------------------
  175. -- Table structure for mac_card
  176. -- ----------------------------
  177. DROP TABLE IF EXISTS `mac_card`;
  178. CREATE TABLE `mac_card` (
  179. `card_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  180. `card_no` varchar(16) NOT NULL DEFAULT '' ,
  181. `card_pwd` varchar(8) NOT NULL DEFAULT '' ,
  182. `card_money` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  183. `card_points` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  184. `card_use_status` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  185. `card_sale_status` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  186. `user_id` int(10) unsigned NOT NULL DEFAULT '0' ,
  187. `card_add_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  188. `card_use_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  189. PRIMARY KEY (`card_id`),
  190. KEY `user_id` (`user_id`) USING BTREE,
  191. KEY `card_add_time` (`card_add_time`) USING BTREE,
  192. KEY `card_use_time` (`card_use_time`) USING BTREE,
  193. KEY `card_no` (`card_no`),
  194. KEY `card_pwd` (`card_pwd`)
  195. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  196. -- ----------------------------
  197. -- Table structure for mac_cash
  198. -- ----------------------------
  199. DROP TABLE IF EXISTS `mac_cash`;
  200. CREATE TABLE `mac_cash` (
  201. `cash_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  202. `user_id` int(10) unsigned NOT NULL DEFAULT '0',
  203. `cash_status` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  204. `cash_points` smallint(6) unsigned NOT NULL DEFAULT '0',
  205. `cash_money` decimal(12,2) unsigned NOT NULL DEFAULT '0.00',
  206. `cash_bank_name` varchar(60) NOT NULL DEFAULT '',
  207. `cash_bank_no` varchar(30) NOT NULL DEFAULT '',
  208. `cash_payee_name` varchar(30) NOT NULL DEFAULT '',
  209. `cash_time` int(10) unsigned NOT NULL DEFAULT '0',
  210. `cash_time_audit` int(10) unsigned NOT NULL DEFAULT '0',
  211. PRIMARY KEY (`cash_id`),
  212. KEY `user_id` (`user_id`),
  213. KEY `cash_status` (`cash_status`) USING BTREE
  214. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  215. -- ----------------------------
  216. -- Table structure for mac_cj_content
  217. -- ----------------------------
  218. DROP TABLE IF EXISTS `mac_cj_content`;
  219. CREATE TABLE `mac_cj_content` (
  220. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  221. `nodeid` int(10) unsigned NOT NULL DEFAULT '0',
  222. `status` tinyint(1) unsigned NOT NULL DEFAULT '1',
  223. `url` char(255) NOT NULL,
  224. `title` char(100) NOT NULL,
  225. `data` mediumtext NOT NULL,
  226. PRIMARY KEY (`id`),
  227. KEY `nodeid` (`nodeid`),
  228. KEY `status` (`status`)
  229. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC ;
  230. -- ----------------------------
  231. -- Table structure for mac_cj_history
  232. -- ----------------------------
  233. DROP TABLE IF EXISTS `mac_cj_history`;
  234. CREATE TABLE `mac_cj_history` (
  235. `md5` char(32) NOT NULL,
  236. PRIMARY KEY (`md5`),
  237. KEY `md5` (`md5`)
  238. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
  239. -- ----------------------------
  240. -- Table structure for mac_cj_node
  241. -- ----------------------------
  242. DROP TABLE IF EXISTS `mac_cj_node`;
  243. CREATE TABLE `mac_cj_node` (
  244. `nodeid` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
  245. `name` varchar(20) NOT NULL,
  246. `lastdate` int(10) unsigned NOT NULL DEFAULT '0',
  247. `sourcecharset` varchar(8) NOT NULL,
  248. `sourcetype` tinyint(1) unsigned NOT NULL DEFAULT '0',
  249. `urlpage` text NOT NULL,
  250. `pagesize_start` tinyint(3) unsigned NOT NULL DEFAULT '0',
  251. `pagesize_end` mediumint(8) unsigned NOT NULL DEFAULT '0',
  252. `page_base` char(255) NOT NULL,
  253. `par_num` tinyint(3) unsigned NOT NULL DEFAULT '1',
  254. `url_contain` char(100) NOT NULL,
  255. `url_except` char(100) NOT NULL,
  256. `url_start` char(100) NOT NULL DEFAULT '',
  257. `url_end` char(100) NOT NULL DEFAULT '',
  258. `title_rule` char(100) NOT NULL,
  259. `title_html_rule` text NOT NULL,
  260. `type_rule` char(100) NOT NULL,
  261. `type_html_rule` text NOT NULL,
  262. `content_rule` char(100) NOT NULL,
  263. `content_html_rule` text NOT NULL,
  264. `content_page_start` char(100) NOT NULL,
  265. `content_page_end` char(100) NOT NULL,
  266. `content_page_rule` tinyint(1) unsigned NOT NULL DEFAULT '0',
  267. `content_page` tinyint(1) unsigned NOT NULL DEFAULT '0',
  268. `content_nextpage` char(100) NOT NULL,
  269. `down_attachment` tinyint(1) unsigned NOT NULL DEFAULT '0',
  270. `watermark` tinyint(1) unsigned NOT NULL DEFAULT '0',
  271. `coll_order` tinyint(3) unsigned NOT NULL DEFAULT '0',
  272. `customize_config` text NOT NULL,
  273. `program_config` text NOT NULL,
  274. `mid` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  275. PRIMARY KEY (`nodeid`)
  276. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC ;
  277. -- ----------------------------
  278. -- Table structure for mac_collect
  279. -- ----------------------------
  280. DROP TABLE IF EXISTS `mac_collect`;
  281. CREATE TABLE `mac_collect` (
  282. `collect_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  283. `collect_name` varchar(30) NOT NULL DEFAULT '' ,
  284. `collect_url` varchar(255) NOT NULL DEFAULT '' ,
  285. `collect_type` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  286. `collect_mid` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  287. `collect_appid` varchar(30) NOT NULL DEFAULT '' ,
  288. `collect_appkey` varchar(30) NOT NULL DEFAULT '' ,
  289. `collect_param` varchar(100) NOT NULL DEFAULT '' ,
  290. `collect_filter` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  291. `collect_filter_from` varchar(255) NOT NULL DEFAULT '' ,
  292. `collect_filter_year` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '采集时,过滤年份',
  293. `collect_opt` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  294. `collect_sync_pic_opt` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '同步图片选项,0-跟随全局,1-开启,2-关闭',
  295. PRIMARY KEY (`collect_id`)
  296. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  297. -- ----------------------------
  298. -- Table structure for mac_comment
  299. -- ----------------------------
  300. DROP TABLE IF EXISTS `mac_comment`;
  301. CREATE TABLE `mac_comment` (
  302. `comment_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  303. `comment_mid` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  304. `comment_rid` int(10) unsigned NOT NULL DEFAULT '0' ,
  305. `comment_pid` int(10) unsigned NOT NULL DEFAULT '0' ,
  306. `user_id` int(10) unsigned NOT NULL DEFAULT '0' ,
  307. `comment_status` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  308. `comment_name` varchar(60) NOT NULL DEFAULT '' ,
  309. `comment_ip` int(10) unsigned NOT NULL DEFAULT '0' ,
  310. `comment_time` int(10) unsigned NOT NULL DEFAULT '0',
  311. `comment_content` varchar(255) NOT NULL DEFAULT '',
  312. `comment_up` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  313. `comment_down` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  314. `comment_reply` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  315. `comment_report` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  316. PRIMARY KEY (`comment_id`),
  317. KEY `comment_mid` (`comment_mid`) USING BTREE,
  318. KEY `comment_rid` (`comment_rid`) USING BTREE,
  319. KEY `comment_time` (`comment_time`) USING BTREE,
  320. KEY `comment_pid` (`comment_pid`),
  321. KEY `user_id` (`user_id`),
  322. KEY `comment_reply` (`comment_reply`)
  323. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  324. -- ----------------------------
  325. -- Table structure for mac_gbook
  326. -- ----------------------------
  327. DROP TABLE IF EXISTS `mac_gbook`;
  328. CREATE TABLE `mac_gbook` (
  329. `gbook_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  330. `gbook_rid` int(10) unsigned NOT NULL DEFAULT '0' ,
  331. `user_id` int(10) unsigned NOT NULL DEFAULT '0' ,
  332. `gbook_status` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  333. `gbook_name` varchar(60) NOT NULL DEFAULT '' ,
  334. `gbook_ip` int(10) unsigned NOT NULL DEFAULT '0' ,
  335. `gbook_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  336. `gbook_reply_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  337. `gbook_content` varchar(255) NOT NULL DEFAULT '' ,
  338. `gbook_reply` varchar(255) NOT NULL DEFAULT '' ,
  339. PRIMARY KEY (`gbook_id`),
  340. KEY `gbook_rid` (`gbook_rid`) USING BTREE,
  341. KEY `gbook_time` (`gbook_time`) USING BTREE,
  342. KEY `gbook_reply_time` (`gbook_reply_time`) USING BTREE,
  343. KEY `user_id` (`user_id`),
  344. KEY `gbook_reply` (`gbook_reply`)
  345. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  346. -- ----------------------------
  347. -- Table structure for mac_group
  348. -- ----------------------------
  349. DROP TABLE IF EXISTS `mac_group`;
  350. CREATE TABLE `mac_group` (
  351. `group_id` smallint(6) NOT NULL AUTO_INCREMENT,
  352. `group_name` varchar(30) NOT NULL DEFAULT '' ,
  353. `group_status` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  354. `group_type` text NOT NULL,
  355. `group_popedom` text NOT NULL,
  356. `group_points_day` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  357. `group_points_week` smallint(6) NOT NULL DEFAULT '0' ,
  358. `group_points_month` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  359. `group_points_year` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  360. `group_points_free` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  361. PRIMARY KEY (`group_id`),
  362. KEY `group_status` (`group_status`)
  363. ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ;
  364. INSERT INTO `mac_group` VALUES ('1', '游客', '1', ',1,6,7,8,9,10,11,12,2,13,14,15,16,3,4,5,17,18,', '{\"1\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"6\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"7\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"8\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"9\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"10\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"11\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"12\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"2\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"13\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"14\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"15\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"16\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"3\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"4\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"5\":{\"1\":\"1\",\"2\":\"2\"},\"17\":{\"1\":\"1\",\"2\":\"2\"},\"18\":{\"1\":\"1\",\"2\":\"2\"}}', '0', '0', '0', '0', '0');
  365. INSERT INTO `mac_group` VALUES ('2', '默认会员', '1', ',1,6,7,8,9,10,11,12,2,13,14,15,16,3,4,5,17,18,', '{\"1\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"6\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"7\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"8\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"9\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"10\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"11\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"12\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"2\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"13\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"14\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"15\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"16\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"3\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"4\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"5\":{\"1\":\"1\",\"2\":\"2\"},\"17\":{\"1\":\"1\",\"2\":\"2\"},\"18\":{\"1\":\"1\",\"2\":\"2\"}}', '0', '0', '0', '0', '0');
  366. INSERT INTO `mac_group` VALUES ('3', 'VIP会员', '1', ',1,6,7,8,9,10,11,12,2,13,14,15,16,3,4,5,17,18,', '{\"1\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"6\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"7\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"8\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"9\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"10\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"11\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"12\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"2\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"13\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"14\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"15\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"16\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"3\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"4\":{\"1\":\"1\",\"2\":\"2\",\"3\":\"3\",\"4\":\"4\",\"5\":\"5\"},\"5\":{\"1\":\"1\",\"2\":\"2\"},\"17\":{\"1\":\"1\",\"2\":\"2\"},\"18\":{\"1\":\"1\",\"2\":\"2\"}}', '10', '70', '300', '3600', '0');
  367. -- ----------------------------
  368. -- Table structure for mac_link
  369. -- ----------------------------
  370. DROP TABLE IF EXISTS `mac_link`;
  371. CREATE TABLE `mac_link` (
  372. `link_id` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
  373. `link_type` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  374. `link_name` varchar(60) NOT NULL DEFAULT '' ,
  375. `link_sort` smallint(6) NOT NULL DEFAULT '0' ,
  376. `link_add_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  377. `link_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  378. `link_url` varchar(255) NOT NULL DEFAULT '' ,
  379. `link_logo` varchar(255) NOT NULL DEFAULT '' ,
  380. PRIMARY KEY (`link_id`),
  381. KEY `link_sort` (`link_sort`) USING BTREE,
  382. KEY `link_type` (`link_type`) USING BTREE,
  383. KEY `link_add_time` (`link_add_time`),
  384. KEY `link_time` (`link_time`)
  385. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  386. -- ----------------------------
  387. -- Table structure for mac_msg
  388. -- ----------------------------
  389. DROP TABLE IF EXISTS `mac_msg`;
  390. CREATE TABLE `mac_msg` (
  391. `msg_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  392. `user_id` int(10) unsigned NOT NULL DEFAULT '0',
  393. `msg_type` tinyint(1) unsigned NOT NULL DEFAULT '0',
  394. `msg_status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  395. `msg_to` varchar(30) NOT NULL DEFAULT '',
  396. `msg_code` varchar(10) NOT NULL DEFAULT '',
  397. `msg_content` varchar(255) NOT NULL DEFAULT '',
  398. `msg_time` int(10) unsigned NOT NULL DEFAULT '0',
  399. PRIMARY KEY (`msg_id`),
  400. KEY `msg_code` (`msg_code`),
  401. KEY `msg_time` (`msg_time`),
  402. KEY `user_id` (`user_id`)
  403. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  404. -- ----------------------------
  405. -- Table structure for mac_order
  406. -- ----------------------------
  407. DROP TABLE IF EXISTS `mac_order`;
  408. CREATE TABLE `mac_order` (
  409. `order_id` int(10) unsigned NOT NULL AUTO_INCREMENT ,
  410. `user_id` int(10) unsigned NOT NULL DEFAULT '0' ,
  411. `order_status` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  412. `order_code` varchar(30) NOT NULL DEFAULT '' ,
  413. `order_price` decimal(12,2) unsigned NOT NULL DEFAULT '0.00' ,
  414. `order_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  415. `order_points` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  416. `order_pay_type` varchar(10) NOT NULL DEFAULT '' ,
  417. `order_pay_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  418. `order_remarks` varchar(100) NOT NULL DEFAULT '' ,
  419. PRIMARY KEY (`order_id`),
  420. KEY `order_code` (`order_code`) USING BTREE,
  421. KEY `user_id` (`user_id`) USING BTREE,
  422. KEY `order_time` (`order_time`) USING BTREE
  423. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  424. -- ----------------------------
  425. -- Table structure for mac_plog
  426. -- ----------------------------
  427. DROP TABLE IF EXISTS `mac_plog`;
  428. CREATE TABLE `mac_plog` (
  429. `plog_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  430. `user_id` int(10) unsigned NOT NULL DEFAULT '0',
  431. `user_id_1` int(10) NOT NULL DEFAULT '0',
  432. `plog_type` tinyint(1) unsigned NOT NULL DEFAULT '1',
  433. `plog_points` smallint(6) unsigned NOT NULL DEFAULT '0',
  434. `plog_time` int(10) unsigned NOT NULL DEFAULT '0',
  435. `plog_remarks` varchar(100) NOT NULL DEFAULT '',
  436. PRIMARY KEY (`plog_id`),
  437. KEY `user_id` (`user_id`),
  438. KEY `plog_type` (`plog_type`) USING BTREE
  439. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  440. -- ----------------------------
  441. -- Table structure for mac_role
  442. -- ----------------------------
  443. DROP TABLE IF EXISTS `mac_role`;
  444. CREATE TABLE `mac_role` (
  445. `role_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  446. `role_rid` int(10) unsigned NOT NULL DEFAULT '0' ,
  447. `role_name` varchar(255) NOT NULL DEFAULT '' ,
  448. `role_en` varchar(255) NOT NULL DEFAULT '' ,
  449. `role_status` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  450. `role_lock` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  451. `role_letter` char(1) NOT NULL DEFAULT '' ,
  452. `role_color` varchar(6) NOT NULL DEFAULT '' ,
  453. `role_actor` varchar(255) NOT NULL DEFAULT '' ,
  454. `role_remarks` varchar(100) NOT NULL DEFAULT '',
  455. `role_pic` varchar(1024) NOT NULL DEFAULT '' ,
  456. `role_sort` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  457. `role_level` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  458. `role_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  459. `role_time_add` int(10) unsigned NOT NULL DEFAULT '0' ,
  460. `role_time_hits` int(10) unsigned NOT NULL DEFAULT '0' ,
  461. `role_time_make` int(10) unsigned NOT NULL DEFAULT '0' ,
  462. `role_hits` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  463. `role_hits_day` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  464. `role_hits_week` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  465. `role_hits_month` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  466. `role_score` decimal(3,1) unsigned NOT NULL DEFAULT '0.0',
  467. `role_score_all` mediumint(8) unsigned NOT NULL DEFAULT '0',
  468. `role_score_num` mediumint(8) unsigned NOT NULL DEFAULT '0',
  469. `role_up` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  470. `role_down` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  471. `role_tpl` varchar(30) NOT NULL DEFAULT '' ,
  472. `role_jumpurl` varchar(150) NOT NULL DEFAULT '' ,
  473. `role_content` text NOT NULL ,
  474. PRIMARY KEY (`role_id`),
  475. KEY `role_rid` (`role_rid`),
  476. KEY `role_name` (`role_name`),
  477. KEY `role_en` (`role_en`),
  478. KEY `role_letter` (`role_letter`),
  479. KEY `role_actor` (`role_actor`),
  480. KEY `role_level` (`role_level`),
  481. KEY `role_time` (`role_time`),
  482. KEY `role_time_add` (`role_time_add`),
  483. KEY `role_score` (`role_score`),
  484. KEY `role_score_all` (`role_score_all`),
  485. KEY `role_score_num` (`role_score_num`),
  486. KEY `role_up` (`role_up`),
  487. KEY `role_down` (`role_down`)
  488. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  489. -- ----------------------------
  490. -- Table structure for mac_topic
  491. -- ----------------------------
  492. DROP TABLE IF EXISTS `mac_topic`;
  493. CREATE TABLE `mac_topic` (
  494. `topic_id` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
  495. `topic_name` varchar(255) NOT NULL DEFAULT '' ,
  496. `topic_en` varchar(255) NOT NULL DEFAULT '' ,
  497. `topic_sub` varchar(255) NOT NULL DEFAULT '' ,
  498. `topic_status` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  499. `topic_sort` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  500. `topic_letter` char(1) NOT NULL DEFAULT '' ,
  501. `topic_color` varchar(6) NOT NULL DEFAULT '' ,
  502. `topic_tpl` varchar(30) NOT NULL DEFAULT '' ,
  503. `topic_type` varchar(255) NOT NULL DEFAULT '' ,
  504. `topic_pic` varchar(1024) NOT NULL DEFAULT '',
  505. `topic_pic_thumb` varchar(1024) NOT NULL DEFAULT '',
  506. `topic_pic_slide` varchar(1024) NOT NULL DEFAULT '',
  507. `topic_key` varchar(255) NOT NULL DEFAULT '' ,
  508. `topic_des` varchar(255) NOT NULL DEFAULT '' ,
  509. `topic_title` varchar(255) NOT NULL DEFAULT '' ,
  510. `topic_blurb` varchar(255) NOT NULL DEFAULT '' ,
  511. `topic_remarks` varchar(100) NOT NULL DEFAULT '' ,
  512. `topic_level` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  513. `topic_up` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  514. `topic_down` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  515. `topic_score` decimal(3,1) unsigned NOT NULL DEFAULT '0.0' ,
  516. `topic_score_all` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  517. `topic_score_num` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  518. `topic_hits` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  519. `topic_hits_day` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  520. `topic_hits_week` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  521. `topic_hits_month` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  522. `topic_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  523. `topic_time_add` int(10) unsigned NOT NULL DEFAULT '0' ,
  524. `topic_time_hits` int(10) unsigned NOT NULL DEFAULT '0' ,
  525. `topic_time_make` int(10) unsigned NOT NULL DEFAULT '0' ,
  526. `topic_tag` varchar(255) NOT NULL DEFAULT '' ,
  527. `topic_rel_vod` text NOT NULL,
  528. `topic_rel_art` text NOT NULL,
  529. `topic_content` text NOT NULL,
  530. `topic_extend` text NOT NULL,
  531. PRIMARY KEY (`topic_id`),
  532. KEY `topic_sort` (`topic_sort`) USING BTREE,
  533. KEY `topic_level` (`topic_level`) USING BTREE,
  534. KEY `topic_score` (`topic_score`) USING BTREE,
  535. KEY `topic_score_all` (`topic_score_all`) USING BTREE,
  536. KEY `topic_score_num` (`topic_score_num`) USING BTREE,
  537. KEY `topic_hits` (`topic_hits`) USING BTREE,
  538. KEY `topic_hits_day` (`topic_hits_day`) USING BTREE,
  539. KEY `topic_hits_week` (`topic_hits_week`) USING BTREE,
  540. KEY `topic_hits_month` (`topic_hits_month`) USING BTREE,
  541. KEY `topic_time_add` (`topic_time_add`) USING BTREE,
  542. KEY `topic_time` (`topic_time`) USING BTREE,
  543. KEY `topic_time_hits` (`topic_time_hits`) USING BTREE,
  544. KEY `topic_name` (`topic_name`),
  545. KEY `topic_en` (`topic_en`),
  546. KEY `topic_up` (`topic_up`),
  547. KEY `topic_down` (`topic_down`)
  548. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  549. -- ----------------------------
  550. -- Table structure for mac_type
  551. -- ----------------------------
  552. DROP TABLE IF EXISTS `mac_type`;
  553. CREATE TABLE `mac_type` (
  554. `type_id` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
  555. `type_name` varchar(60) NOT NULL DEFAULT '' ,
  556. `type_en` varchar(60) NOT NULL DEFAULT '' ,
  557. `type_sort` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  558. `type_mid` smallint(6) unsigned NOT NULL DEFAULT '1' ,
  559. `type_pid` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  560. `type_status` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  561. `type_tpl` varchar(30) NOT NULL DEFAULT '' ,
  562. `type_tpl_list` varchar(30) NOT NULL DEFAULT '',
  563. `type_tpl_detail` varchar(30) NOT NULL DEFAULT '' ,
  564. `type_tpl_play` varchar(30) NOT NULL DEFAULT '' ,
  565. `type_tpl_down` varchar(30) NOT NULL DEFAULT '' ,
  566. `type_key` varchar(255) NOT NULL DEFAULT '' ,
  567. `type_des` varchar(255) NOT NULL DEFAULT '' ,
  568. `type_title` varchar(255) NOT NULL DEFAULT '' ,
  569. `type_union` varchar(255) NOT NULL DEFAULT '',
  570. `type_extend` text NOT NULL,
  571. `type_logo` VARCHAR( 255 ) NOT NULL DEFAULT '',
  572. `type_pic` VARCHAR( 1024 ) NOT NULL DEFAULT '',
  573. `type_jumpurl` VARCHAR( 150 ) NOT NULL DEFAULT '',
  574. PRIMARY KEY (`type_id`),
  575. KEY `type_sort` (`type_sort`) USING BTREE,
  576. KEY `type_pid` (`type_pid`) USING BTREE,
  577. KEY `type_name` (`type_name`),
  578. KEY `type_en` (`type_en`),
  579. KEY `type_mid` (`type_mid`)
  580. ) ENGINE=MyISAM AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 ;
  581. -- ----------------------------
  582. -- Table structure for mac_ulog
  583. -- ----------------------------
  584. DROP TABLE IF EXISTS `mac_ulog`;
  585. CREATE TABLE `mac_ulog` (
  586. `ulog_id` int(10) unsigned NOT NULL AUTO_INCREMENT ,
  587. `user_id` int(10) unsigned NOT NULL DEFAULT '0' ,
  588. `ulog_mid` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  589. `ulog_type` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  590. `ulog_rid` int(10) unsigned NOT NULL DEFAULT '0' ,
  591. `ulog_sid` tinyint(3) unsigned NOT NULL DEFAULT '0' ,
  592. `ulog_nid` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  593. `ulog_points` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  594. `ulog_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  595. PRIMARY KEY (`ulog_id`),
  596. KEY `user_id` (`user_id`),
  597. KEY `ulog_mid` (`ulog_mid`),
  598. KEY `ulog_type` (`ulog_type`),
  599. KEY `ulog_rid` (`ulog_rid`)
  600. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  601. -- ----------------------------
  602. -- Table structure for mac_user
  603. -- ----------------------------
  604. DROP TABLE IF EXISTS `mac_user`;
  605. CREATE TABLE `mac_user` (
  606. `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  607. `group_id` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  608. `user_name` varchar(30) NOT NULL DEFAULT '' ,
  609. `user_pwd` varchar(32) NOT NULL DEFAULT '' ,
  610. `user_nick_name` varchar(30) NOT NULL DEFAULT '' ,
  611. `user_qq` varchar(16) NOT NULL DEFAULT '' ,
  612. `user_email` varchar(30) NOT NULL DEFAULT '' ,
  613. `user_phone` varchar(16) NOT NULL DEFAULT '' ,
  614. `user_status` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  615. `user_portrait` varchar(100) NOT NULL DEFAULT '' ,
  616. `user_portrait_thumb` varchar(100) NOT NULL DEFAULT '' ,
  617. `user_openid_qq` varchar(40) NOT NULL DEFAULT '' ,
  618. `user_openid_weixin` varchar(40) NOT NULL DEFAULT '' ,
  619. `user_question` varchar(255) NOT NULL DEFAULT '' ,
  620. `user_answer` varchar(255) NOT NULL DEFAULT '' ,
  621. `user_points` int(10) unsigned NOT NULL DEFAULT '0' ,
  622. `user_points_froze` int(10) unsigned NOT NULL DEFAULT '0' ,
  623. `user_reg_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  624. `user_reg_ip` int(10) unsigned NOT NULL DEFAULT '0' ,
  625. `user_login_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  626. `user_login_ip` int(10) unsigned NOT NULL DEFAULT '0' ,
  627. `user_last_login_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  628. `user_last_login_ip` int(10) unsigned NOT NULL DEFAULT '0' ,
  629. `user_login_num` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  630. `user_extend` smallint(6) unsigned NOT NULL DEFAULT '0',
  631. `user_random` varchar(32) NOT NULL DEFAULT '' ,
  632. `user_end_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  633. `user_pid` int(10) unsigned NOT NULL DEFAULT '0' ,
  634. `user_pid_2` int(10) unsigned NOT NULL DEFAULT '0' ,
  635. `user_pid_3` int(10) unsigned NOT NULL DEFAULT '0' ,
  636. PRIMARY KEY (`user_id`),
  637. KEY `type_id` (`group_id`) USING BTREE,
  638. KEY `user_name` (`user_name`),
  639. KEY `user_reg_time` (`user_reg_time`)
  640. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  641. -- ----------------------------
  642. -- Table structure for mac_visit
  643. -- ----------------------------
  644. DROP TABLE IF EXISTS `mac_visit`;
  645. CREATE TABLE `mac_visit` (
  646. `visit_id` int(10) unsigned NOT NULL AUTO_INCREMENT ,
  647. `user_id` int(10) unsigned DEFAULT '0',
  648. `visit_ip` int(10) unsigned NOT NULL DEFAULT '0' ,
  649. `visit_ly` varchar(100) NOT NULL DEFAULT '',
  650. `visit_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  651. PRIMARY KEY (`visit_id`),
  652. KEY `user_id` (`user_id`),
  653. KEY `visit_time` (`visit_time`)
  654. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  655. -- ----------------------------
  656. -- Table structure for mac_vod
  657. -- ----------------------------
  658. DROP TABLE IF EXISTS `mac_vod`;
  659. CREATE TABLE `mac_vod` (
  660. `vod_id` int(10) unsigned NOT NULL AUTO_INCREMENT ,
  661. `type_id` smallint(6) NOT NULL DEFAULT '0' ,
  662. `type_id_1` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  663. `group_id` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  664. `vod_name` varchar(255) NOT NULL DEFAULT '' ,
  665. `vod_sub` varchar(255) NOT NULL DEFAULT '' ,
  666. `vod_en` varchar(255) NOT NULL DEFAULT '' ,
  667. `vod_status` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  668. `vod_letter` char(1) NOT NULL DEFAULT '' ,
  669. `vod_color` varchar(6) NOT NULL DEFAULT '' ,
  670. `vod_tag` varchar(100) NOT NULL DEFAULT '' ,
  671. `vod_class` varchar(255) NOT NULL DEFAULT '' ,
  672. `vod_pic` varchar(1024) NOT NULL DEFAULT '' ,
  673. `vod_pic_thumb` varchar(1024) NOT NULL DEFAULT '' ,
  674. `vod_pic_slide` varchar(1024) NOT NULL DEFAULT '' ,
  675. `vod_pic_screenshot` text,
  676. `vod_actor` varchar(255) NOT NULL DEFAULT '' ,
  677. `vod_director` varchar(255) NOT NULL DEFAULT '' ,
  678. `vod_writer` varchar(100) NOT NULL DEFAULT '' ,
  679. `vod_behind` varchar(100) NOT NULL DEFAULT '' ,
  680. `vod_blurb` varchar(255) NOT NULL DEFAULT '' ,
  681. `vod_remarks` varchar(100) NOT NULL DEFAULT '' ,
  682. `vod_pubdate` varchar(100) NOT NULL DEFAULT '' ,
  683. `vod_total` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  684. `vod_serial` varchar(20) NOT NULL DEFAULT '0' ,
  685. `vod_tv` varchar(30) NOT NULL DEFAULT '' ,
  686. `vod_weekday` varchar(30) NOT NULL DEFAULT '' ,
  687. `vod_area` varchar(20) NOT NULL DEFAULT '' ,
  688. `vod_lang` varchar(10) NOT NULL DEFAULT '' ,
  689. `vod_year` varchar(10) NOT NULL DEFAULT '' ,
  690. `vod_version` varchar(30) NOT NULL DEFAULT '' ,
  691. `vod_state` varchar(30) NOT NULL DEFAULT '' ,
  692. `vod_author` varchar(60) NOT NULL DEFAULT '' ,
  693. `vod_jumpurl` varchar(150) NOT NULL DEFAULT '' ,
  694. `vod_tpl` varchar(30) NOT NULL DEFAULT '' ,
  695. `vod_tpl_play` varchar(30) NOT NULL DEFAULT '' ,
  696. `vod_tpl_down` varchar(30) NOT NULL DEFAULT '' ,
  697. `vod_isend` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  698. `vod_lock` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  699. `vod_level` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  700. `vod_copyright` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  701. `vod_points` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  702. `vod_points_play` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  703. `vod_points_down` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  704. `vod_hits` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  705. `vod_hits_day` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  706. `vod_hits_week` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  707. `vod_hits_month` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  708. `vod_duration` varchar(10) NOT NULL DEFAULT '' ,
  709. `vod_up` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  710. `vod_down` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  711. `vod_score` decimal(3,1) unsigned NOT NULL DEFAULT '0.0' ,
  712. `vod_score_all` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  713. `vod_score_num` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  714. `vod_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  715. `vod_time_add` int(10) unsigned NOT NULL DEFAULT '0' ,
  716. `vod_time_hits` int(10) unsigned NOT NULL DEFAULT '0' ,
  717. `vod_time_make` int(10) unsigned NOT NULL DEFAULT '0' ,
  718. `vod_trysee` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  719. `vod_douban_id` int(10) unsigned NOT NULL DEFAULT '0' ,
  720. `vod_douban_score` decimal(3,1) unsigned NOT NULL DEFAULT '0.0' ,
  721. `vod_reurl` varchar(255) NOT NULL DEFAULT '' ,
  722. `vod_rel_vod` varchar(255) NOT NULL DEFAULT '' ,
  723. `vod_rel_art` varchar(255) NOT NULL DEFAULT '' ,
  724. `vod_pwd` varchar(10) NOT NULL DEFAULT '' ,
  725. `vod_pwd_url` varchar(255) NOT NULL DEFAULT '' ,
  726. `vod_pwd_play` varchar(10) NOT NULL DEFAULT '' ,
  727. `vod_pwd_play_url` varchar(255) NOT NULL DEFAULT '' ,
  728. `vod_pwd_down` varchar(10) NOT NULL DEFAULT '' ,
  729. `vod_pwd_down_url` varchar(255) NOT NULL DEFAULT '' ,
  730. `vod_content` mediumtext NOT NULL ,
  731. `vod_play_from` varchar(255) NOT NULL DEFAULT '' ,
  732. `vod_play_server` varchar(255) NOT NULL DEFAULT '' ,
  733. `vod_play_note` varchar(255) NOT NULL DEFAULT '' ,
  734. `vod_play_url` mediumtext NOT NULL ,
  735. `vod_down_from` varchar(255) NOT NULL DEFAULT '' ,
  736. `vod_down_server` varchar(255) NOT NULL DEFAULT '' ,
  737. `vod_down_note` varchar(255) NOT NULL DEFAULT '' ,
  738. `vod_down_url` mediumtext NOT NULL ,
  739. `vod_plot` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  740. `vod_plot_name` mediumtext NOT NULL ,
  741. `vod_plot_detail` mediumtext NOT NULL ,
  742. PRIMARY KEY (`vod_id`),
  743. KEY `type_id` (`type_id`) USING BTREE,
  744. KEY `type_id_1` (`type_id_1`) USING BTREE,
  745. KEY `vod_level` (`vod_level`) USING BTREE,
  746. KEY `vod_hits` (`vod_hits`) USING BTREE,
  747. KEY `vod_letter` (`vod_letter`) USING BTREE,
  748. KEY `vod_name` (`vod_name`) USING BTREE,
  749. KEY `vod_year` (`vod_year`) USING BTREE,
  750. KEY `vod_area` (`vod_area`) USING BTREE,
  751. KEY `vod_lang` (`vod_lang`) USING BTREE,
  752. KEY `vod_tag` (`vod_tag`) USING BTREE,
  753. KEY `vod_class` (`vod_class`) USING BTREE,
  754. KEY `vod_lock` (`vod_lock`) USING BTREE,
  755. KEY `vod_up` (`vod_up`) USING BTREE,
  756. KEY `vod_down` (`vod_down`) USING BTREE,
  757. KEY `vod_en` (`vod_en`) USING BTREE,
  758. KEY `vod_hits_day` (`vod_hits_day`) USING BTREE,
  759. KEY `vod_hits_week` (`vod_hits_week`) USING BTREE,
  760. KEY `vod_hits_month` (`vod_hits_month`) USING BTREE,
  761. KEY `vod_plot` (`vod_plot`) USING BTREE,
  762. KEY `vod_points_play` (`vod_points_play`) USING BTREE,
  763. KEY `vod_points_down` (`vod_points_down`) USING BTREE,
  764. KEY `group_id` (`group_id`) USING BTREE,
  765. KEY `vod_time_add` (`vod_time_add`) USING BTREE,
  766. KEY `vod_time` (`vod_time`) USING BTREE,
  767. KEY `vod_time_make` (`vod_time_make`) USING BTREE,
  768. KEY `vod_actor` (`vod_actor`) USING BTREE,
  769. KEY `vod_director` (`vod_director`) USING BTREE,
  770. KEY `vod_score_all` (`vod_score_all`) USING BTREE,
  771. KEY `vod_score_num` (`vod_score_num`) USING BTREE,
  772. KEY `vod_total` (`vod_total`) USING BTREE,
  773. KEY `vod_score` (`vod_score`) USING BTREE,
  774. KEY `vod_version` (`vod_version`),
  775. KEY `vod_state` (`vod_state`),
  776. KEY `vod_isend` (`vod_isend`)
  777. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  778. -- ----------------------------
  779. -- Table structure for mac_website
  780. -- ----------------------------
  781. DROP TABLE IF EXISTS `mac_website`;
  782. CREATE TABLE `mac_website` (
  783. `website_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  784. `type_id` smallint(5) unsigned NOT NULL DEFAULT '0',
  785. `type_id_1` smallint(5) unsigned NOT NULL DEFAULT '0',
  786. `website_name` varchar(60) NOT NULL DEFAULT '',
  787. `website_sub` varchar(255) NOT NULL DEFAULT '',
  788. `website_en` varchar(255) NOT NULL DEFAULT '',
  789. `website_status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  790. `website_letter` char(1) NOT NULL DEFAULT '',
  791. `website_color` varchar(6) NOT NULL DEFAULT '',
  792. `website_lock` tinyint(1) unsigned NOT NULL DEFAULT '0',
  793. `website_sort` int(10) NOT NULL DEFAULT '0',
  794. `website_jumpurl` varchar(255) NOT NULL DEFAULT '',
  795. `website_pic` varchar(1024) NOT NULL DEFAULT '',
  796. `website_pic_screenshot` text,
  797. `website_logo` varchar(255) NOT NULL DEFAULT '',
  798. `website_area` varchar(20) NOT NULL DEFAULT '',
  799. `website_lang` varchar(10) NOT NULL DEFAULT '',
  800. `website_level` tinyint(1) unsigned NOT NULL DEFAULT '0',
  801. `website_time` int(10) unsigned NOT NULL DEFAULT '0',
  802. `website_time_add` int(10) unsigned NOT NULL DEFAULT '0',
  803. `website_time_hits` int(10) unsigned NOT NULL DEFAULT '0',
  804. `website_time_make` int(10) unsigned NOT NULL DEFAULT '0',
  805. `website_time_referer` int(10) unsigned NOT NULL DEFAULT '0',
  806. `website_hits` mediumint(8) unsigned NOT NULL DEFAULT '0',
  807. `website_hits_day` mediumint(8) unsigned NOT NULL DEFAULT '0',
  808. `website_hits_week` mediumint(8) unsigned NOT NULL DEFAULT '0',
  809. `website_hits_month` mediumint(8) unsigned NOT NULL DEFAULT '0',
  810. `website_score` decimal(3,1) unsigned NOT NULL DEFAULT '0.0',
  811. `website_score_all` mediumint(8) unsigned NOT NULL DEFAULT '0',
  812. `website_score_num` mediumint(8) unsigned NOT NULL DEFAULT '0',
  813. `website_up` mediumint(8) unsigned NOT NULL DEFAULT '0',
  814. `website_down` mediumint(8) unsigned NOT NULL DEFAULT '0',
  815. `website_referer` mediumint(8) unsigned NOT NULL DEFAULT '0',
  816. `website_referer_day` mediumint(8) unsigned NOT NULL DEFAULT '0',
  817. `website_referer_week` mediumint(8) unsigned NOT NULL DEFAULT '0',
  818. `website_referer_month` mediumint(8) unsigned NOT NULL DEFAULT '0',
  819. `website_tag` varchar(100) NOT NULL DEFAULT '',
  820. `website_class` varchar(255) NOT NULL DEFAULT '',
  821. `website_remarks` varchar(100) NOT NULL DEFAULT '',
  822. `website_tpl` varchar(30) NOT NULL DEFAULT '',
  823. `website_blurb` varchar(255) NOT NULL DEFAULT '',
  824. `website_content` mediumtext NOT NULL,
  825. PRIMARY KEY (`website_id`),
  826. KEY `type_id` (`type_id`),
  827. KEY `type_id_1` (`type_id_1`),
  828. KEY `website_name` (`website_name`),
  829. KEY `website_en` (`website_en`),
  830. KEY `website_letter` (`website_letter`),
  831. KEY `website_sort` (`website_sort`),
  832. KEY `website_lock` (`website_lock`),
  833. KEY `website_time` (`website_time`),
  834. KEY `website_time_add` (`website_time_add`),
  835. KEY `website_time_referer` (`website_time_referer`),
  836. KEY `website_hits` (`website_hits`),
  837. KEY `website_hits_day` (`website_hits_day`),
  838. KEY `website_hits_week` (`website_hits_week`),
  839. KEY `website_hits_month` (`website_hits_month`),
  840. KEY `website_time_make` (`website_time_make`),
  841. KEY `website_score` (`website_score`),
  842. KEY `website_score_all` (`website_score_all`),
  843. KEY `website_score_num` (`website_score_num`),
  844. KEY `website_up` (`website_up`),
  845. KEY `website_down` (`website_down`),
  846. KEY `website_level` (`website_level`),
  847. KEY `website_tag` (`website_tag`),
  848. KEY `website_class` (`website_class`),
  849. KEY `website_referer` (`website_referer`),
  850. KEY `website_referer_day` (`website_referer_day`),
  851. KEY `website_referer_week` (`website_referer_week`),
  852. KEY `website_referer_month` (`website_referer_month`)
  853. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  854. -- ----------------------------
  855. -- Table structure for mac_vod_search
  856. -- ----------------------------
  857. DROP TABLE IF EXISTS `mac_vod_search`;
  858. CREATE TABLE `mac_vod_search` (
  859. `search_key` char(32) CHARACTER SET ascii COLLATE ascii_bin NOT NULL COMMENT '搜索键(关键词md5)',
  860. `search_word` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '搜索关键词',
  861. `search_field` varchar(64) CHARACTER SET ascii COLLATE ascii_bin NOT NULL COMMENT '搜索字段名(可有多个,用|分隔)',
  862. `search_hit_count` bigint unsigned NOT NULL DEFAULT '0' COMMENT '搜索命中次数',
  863. `search_last_hit_time` int unsigned NOT NULL DEFAULT '0' COMMENT '最近命中时间',
  864. `search_update_time` int unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
  865. `search_result_count` int unsigned NOT NULL DEFAULT '0' COMMENT '结果Id数量',
  866. `search_result_ids` mediumtext CHARACTER SET ascii COLLATE ascii_bin NOT NULL COMMENT '搜索结果Id列表,英文半角逗号分隔',
  867. PRIMARY KEY (`search_key`),
  868. KEY `search_field` (`search_field`),
  869. KEY `search_update_time` (`search_update_time`),
  870. KEY `search_hit_count` (`search_hit_count`),
  871. KEY `search_last_hit_time` (`search_last_hit_time`)
  872. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='vod搜索缓存表';