install.sql 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983
  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_manga
  176. -- ----------------------------
  177. DROP TABLE IF EXISTS `mac_manga`;
  178. CREATE TABLE `mac_manga` (
  179. `manga_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '漫画ID',
  180. `type_id` smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '主分类ID',
  181. `type_id_1` smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '副分类ID',
  182. `group_id` smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '会员组ID',
  183. `manga_name` varchar(255) NOT NULL DEFAULT '' COMMENT '漫画名称',
  184. `manga_sub` varchar(255) NOT NULL DEFAULT '' COMMENT '副标题',
  185. `manga_en` varchar(255) NOT NULL DEFAULT '' COMMENT '英文名',
  186. `manga_status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态(0=锁定,1=正常)',
  187. `manga_letter` char(1) NOT NULL DEFAULT '' COMMENT '首字母',
  188. `manga_color` varchar(6) NOT NULL DEFAULT '' COMMENT '标题颜色',
  189. `manga_from` varchar(30) NOT NULL DEFAULT '' COMMENT '来源',
  190. `manga_author` varchar(255) NOT NULL DEFAULT '' COMMENT '作者',
  191. `manga_tag` varchar(100) NOT NULL DEFAULT '' COMMENT '标签',
  192. `manga_class` varchar(255) NOT NULL DEFAULT '' COMMENT '扩展分类',
  193. `manga_pic` varchar(1024) NOT NULL DEFAULT '' COMMENT '封面图',
  194. `manga_pic_thumb` varchar(1024) NOT NULL DEFAULT '' COMMENT '封面缩略图',
  195. `manga_pic_slide` varchar(1024) NOT NULL DEFAULT '' COMMENT '封面幻灯图',
  196. `manga_pic_screenshot` text DEFAULT NULL COMMENT '内容截图',
  197. `manga_blurb` varchar(255) NOT NULL DEFAULT '' COMMENT '简介',
  198. `manga_remarks` varchar(100) NOT NULL DEFAULT '' COMMENT '备注(例如:更新至xx话)',
  199. `manga_jumpurl` varchar(150) NOT NULL DEFAULT '' COMMENT '跳转URL',
  200. `manga_tpl` varchar(30) NOT NULL DEFAULT '' COMMENT '独立模板',
  201. `manga_level` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '推荐级别',
  202. `manga_lock` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '锁定状态(0=未锁,1=已锁)',
  203. `manga_points` smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '点播所需积分',
  204. `manga_points_detail` smallint(6) unsigned NOT NULL DEFAULT '0' COMMENT '每章所需积分',
  205. `manga_up` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '顶数',
  206. `manga_down` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '踩数',
  207. `manga_hits` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '总点击数',
  208. `manga_hits_day` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '日点击数',
  209. `manga_hits_week` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '周点击数',
  210. `manga_hits_month` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '月点击数',
  211. `manga_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  212. `manga_time_add` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
  213. `manga_time_hits` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '点击时间',
  214. `manga_time_make` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '生成时间',
  215. `manga_score` decimal(3,1) unsigned NOT NULL DEFAULT '0.0' COMMENT '平均评分',
  216. `manga_score_all` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '总评分',
  217. `manga_score_num` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '评分次数',
  218. `manga_rel_manga` varchar(255) NOT NULL DEFAULT '' COMMENT '关联漫画',
  219. `manga_rel_vod` varchar(255) NOT NULL DEFAULT '' COMMENT '关联视频',
  220. `manga_pwd` varchar(10) NOT NULL DEFAULT '' COMMENT '访问密码',
  221. `manga_pwd_url` varchar(255) NOT NULL DEFAULT '' COMMENT '密码跳转URL',
  222. `manga_content` mediumtext DEFAULT NULL COMMENT '详细介绍',
  223. `manga_serial` varchar(20) NOT NULL DEFAULT '0' COMMENT '连载状态(文字)',
  224. `manga_total` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '总章节数',
  225. `manga_chapter_from` varchar(255) NOT NULL DEFAULT '' COMMENT '章节来源',
  226. `manga_chapter_url` mediumtext DEFAULT NULL COMMENT '章节URL列表',
  227. `manga_last_update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最后更新时间戳',
  228. `manga_age_rating` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '年龄分级(0=全年龄,1=12+,2=18+)',
  229. `manga_orientation` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '阅读方向(1=左到右,2=右到左,3=垂直)',
  230. `manga_is_vip` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否VIP(0=否,1=是)',
  231. `manga_copyright_info` varchar(255) NOT NULL DEFAULT '' COMMENT '版权信息',
  232. PRIMARY KEY (`manga_id`),
  233. KEY `type_id` (`type_id`) USING BTREE,
  234. KEY `type_id_1` (`type_id_1`) USING BTREE,
  235. KEY `manga_level` (`manga_level`) USING BTREE,
  236. KEY `manga_hits` (`manga_hits`) USING BTREE,
  237. KEY `manga_time` (`manga_time`) USING BTREE,
  238. KEY `manga_letter` (`manga_letter`) USING BTREE,
  239. KEY `manga_down` (`manga_down`) USING BTREE,
  240. KEY `manga_up` (`manga_up`) USING BTREE,
  241. KEY `manga_tag` (`manga_tag`) USING BTREE,
  242. KEY `manga_name` (`manga_name`) USING BTREE,
  243. KEY `manga_en` (`manga_en`) USING BTREE,
  244. KEY `manga_hits_day` (`manga_hits_day`) USING BTREE,
  245. KEY `manga_hits_week` (`manga_hits_week`) USING BTREE,
  246. KEY `manga_hits_month` (`manga_hits_month`) USING BTREE,
  247. KEY `manga_time_add` (`manga_time_add`) USING BTREE,
  248. KEY `manga_time_make` (`manga_time_make`) USING BTREE,
  249. KEY `manga_lock` (`manga_lock`),
  250. KEY `manga_score` (`manga_score`),
  251. KEY `manga_score_all` (`manga_score_all`),
  252. KEY `manga_score_num` (`manga_score_num`)
  253. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='漫画表';
  254. -- ----------------------------
  255. -- Table structure for mac_card
  256. -- ----------------------------
  257. DROP TABLE IF EXISTS `mac_card`;
  258. CREATE TABLE `mac_card` (
  259. `card_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  260. `card_no` varchar(16) NOT NULL DEFAULT '' ,
  261. `card_pwd` varchar(8) NOT NULL DEFAULT '' ,
  262. `card_money` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  263. `card_points` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  264. `card_use_status` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  265. `card_sale_status` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  266. `user_id` int(10) unsigned NOT NULL DEFAULT '0' ,
  267. `card_add_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  268. `card_use_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  269. PRIMARY KEY (`card_id`),
  270. KEY `user_id` (`user_id`) USING BTREE,
  271. KEY `card_add_time` (`card_add_time`) USING BTREE,
  272. KEY `card_use_time` (`card_use_time`) USING BTREE,
  273. KEY `card_no` (`card_no`),
  274. KEY `card_pwd` (`card_pwd`)
  275. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  276. -- ----------------------------
  277. -- Table structure for mac_cash
  278. -- ----------------------------
  279. DROP TABLE IF EXISTS `mac_cash`;
  280. CREATE TABLE `mac_cash` (
  281. `cash_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  282. `user_id` int(10) unsigned NOT NULL DEFAULT '0',
  283. `cash_status` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  284. `cash_points` smallint(6) unsigned NOT NULL DEFAULT '0',
  285. `cash_money` decimal(12,2) unsigned NOT NULL DEFAULT '0.00',
  286. `cash_bank_name` varchar(60) NOT NULL DEFAULT '',
  287. `cash_bank_no` varchar(30) NOT NULL DEFAULT '',
  288. `cash_payee_name` varchar(30) NOT NULL DEFAULT '',
  289. `cash_time` int(10) unsigned NOT NULL DEFAULT '0',
  290. `cash_time_audit` int(10) unsigned NOT NULL DEFAULT '0',
  291. PRIMARY KEY (`cash_id`),
  292. KEY `user_id` (`user_id`),
  293. KEY `cash_status` (`cash_status`) USING BTREE
  294. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  295. -- ----------------------------
  296. -- Table structure for mac_cj_content
  297. -- ----------------------------
  298. DROP TABLE IF EXISTS `mac_cj_content`;
  299. CREATE TABLE `mac_cj_content` (
  300. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  301. `nodeid` int(10) unsigned NOT NULL DEFAULT '0',
  302. `status` tinyint(1) unsigned NOT NULL DEFAULT '1',
  303. `url` char(255) NOT NULL,
  304. `title` char(100) NOT NULL,
  305. `data` mediumtext NOT NULL,
  306. PRIMARY KEY (`id`),
  307. KEY `nodeid` (`nodeid`),
  308. KEY `status` (`status`)
  309. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC ;
  310. -- ----------------------------
  311. -- Table structure for mac_cj_history
  312. -- ----------------------------
  313. DROP TABLE IF EXISTS `mac_cj_history`;
  314. CREATE TABLE `mac_cj_history` (
  315. `md5` char(32) NOT NULL,
  316. PRIMARY KEY (`md5`),
  317. KEY `md5` (`md5`)
  318. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
  319. -- ----------------------------
  320. -- Table structure for mac_cj_node
  321. -- ----------------------------
  322. DROP TABLE IF EXISTS `mac_cj_node`;
  323. CREATE TABLE `mac_cj_node` (
  324. `nodeid` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
  325. `name` varchar(20) NOT NULL,
  326. `lastdate` int(10) unsigned NOT NULL DEFAULT '0',
  327. `sourcecharset` varchar(8) NOT NULL,
  328. `sourcetype` tinyint(1) unsigned NOT NULL DEFAULT '0',
  329. `urlpage` text NOT NULL,
  330. `pagesize_start` tinyint(3) unsigned NOT NULL DEFAULT '0',
  331. `pagesize_end` mediumint(8) unsigned NOT NULL DEFAULT '0',
  332. `page_base` char(255) NOT NULL,
  333. `par_num` tinyint(3) unsigned NOT NULL DEFAULT '1',
  334. `url_contain` char(100) NOT NULL,
  335. `url_except` char(100) NOT NULL,
  336. `url_start` char(100) NOT NULL DEFAULT '',
  337. `url_end` char(100) NOT NULL DEFAULT '',
  338. `title_rule` char(100) NOT NULL,
  339. `title_html_rule` text NOT NULL,
  340. `type_rule` char(100) NOT NULL,
  341. `type_html_rule` text NOT NULL,
  342. `content_rule` char(100) NOT NULL,
  343. `content_html_rule` text NOT NULL,
  344. `content_page_start` char(100) NOT NULL,
  345. `content_page_end` char(100) NOT NULL,
  346. `content_page_rule` tinyint(1) unsigned NOT NULL DEFAULT '0',
  347. `content_page` tinyint(1) unsigned NOT NULL DEFAULT '0',
  348. `content_nextpage` char(100) NOT NULL,
  349. `down_attachment` tinyint(1) unsigned NOT NULL DEFAULT '0',
  350. `watermark` tinyint(1) unsigned NOT NULL DEFAULT '0',
  351. `coll_order` tinyint(3) unsigned NOT NULL DEFAULT '0',
  352. `customize_config` text NOT NULL,
  353. `program_config` text NOT NULL,
  354. `mid` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  355. PRIMARY KEY (`nodeid`)
  356. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC ;
  357. -- ----------------------------
  358. -- Table structure for mac_collect
  359. -- ----------------------------
  360. DROP TABLE IF EXISTS `mac_collect`;
  361. CREATE TABLE `mac_collect` (
  362. `collect_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  363. `collect_name` varchar(30) NOT NULL DEFAULT '' ,
  364. `collect_url` varchar(255) NOT NULL DEFAULT '' ,
  365. `collect_type` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  366. `collect_mid` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  367. `collect_appid` varchar(30) NOT NULL DEFAULT '' ,
  368. `collect_appkey` varchar(30) NOT NULL DEFAULT '' ,
  369. `collect_param` varchar(100) NOT NULL DEFAULT '' ,
  370. `collect_filter` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  371. `collect_filter_from` varchar(255) NOT NULL DEFAULT '' ,
  372. `collect_filter_year` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '采集时,过滤年份',
  373. `collect_opt` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  374. `collect_sync_pic_opt` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '同步图片选项,0-跟随全局,1-开启,2-关闭',
  375. PRIMARY KEY (`collect_id`)
  376. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  377. -- ----------------------------
  378. -- Table structure for mac_comment
  379. -- ----------------------------
  380. DROP TABLE IF EXISTS `mac_comment`;
  381. CREATE TABLE `mac_comment` (
  382. `comment_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  383. `comment_mid` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  384. `comment_rid` int(10) unsigned NOT NULL DEFAULT '0' ,
  385. `comment_pid` int(10) unsigned NOT NULL DEFAULT '0' ,
  386. `user_id` int(10) unsigned NOT NULL DEFAULT '0' ,
  387. `comment_status` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  388. `comment_name` varchar(60) NOT NULL DEFAULT '' ,
  389. `comment_ip` int(10) unsigned NOT NULL DEFAULT '0' ,
  390. `comment_time` int(10) unsigned NOT NULL DEFAULT '0',
  391. `comment_content` varchar(255) NOT NULL DEFAULT '',
  392. `comment_up` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  393. `comment_down` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  394. `comment_reply` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  395. `comment_report` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  396. PRIMARY KEY (`comment_id`),
  397. KEY `comment_mid` (`comment_mid`) USING BTREE,
  398. KEY `comment_rid` (`comment_rid`) USING BTREE,
  399. KEY `comment_time` (`comment_time`) USING BTREE,
  400. KEY `comment_pid` (`comment_pid`),
  401. KEY `user_id` (`user_id`),
  402. KEY `comment_reply` (`comment_reply`)
  403. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  404. -- ----------------------------
  405. -- Table structure for mac_gbook
  406. -- ----------------------------
  407. DROP TABLE IF EXISTS `mac_gbook`;
  408. CREATE TABLE `mac_gbook` (
  409. `gbook_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  410. `gbook_rid` int(10) unsigned NOT NULL DEFAULT '0' ,
  411. `user_id` int(10) unsigned NOT NULL DEFAULT '0' ,
  412. `gbook_status` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  413. `gbook_name` varchar(60) NOT NULL DEFAULT '' ,
  414. `gbook_ip` int(10) unsigned NOT NULL DEFAULT '0' ,
  415. `gbook_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  416. `gbook_reply_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  417. `gbook_content` varchar(255) NOT NULL DEFAULT '' ,
  418. `gbook_reply` varchar(255) NOT NULL DEFAULT '' ,
  419. PRIMARY KEY (`gbook_id`),
  420. KEY `gbook_rid` (`gbook_rid`) USING BTREE,
  421. KEY `gbook_time` (`gbook_time`) USING BTREE,
  422. KEY `gbook_reply_time` (`gbook_reply_time`) USING BTREE,
  423. KEY `user_id` (`user_id`),
  424. KEY `gbook_reply` (`gbook_reply`)
  425. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  426. -- ----------------------------
  427. -- Table structure for mac_group
  428. -- ----------------------------
  429. DROP TABLE IF EXISTS `mac_group`;
  430. CREATE TABLE `mac_group` (
  431. `group_id` smallint(6) NOT NULL AUTO_INCREMENT,
  432. `group_name` varchar(30) NOT NULL DEFAULT '' ,
  433. `group_status` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  434. `group_type` text NOT NULL,
  435. `group_popedom` text NOT NULL,
  436. `group_points_day` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  437. `group_points_week` smallint(6) NOT NULL DEFAULT '0' ,
  438. `group_points_month` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  439. `group_points_year` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  440. `group_points_free` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  441. PRIMARY KEY (`group_id`),
  442. KEY `group_status` (`group_status`)
  443. ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ;
  444. 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');
  445. 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');
  446. 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');
  447. -- ----------------------------
  448. -- Table structure for mac_link
  449. -- ----------------------------
  450. DROP TABLE IF EXISTS `mac_link`;
  451. CREATE TABLE `mac_link` (
  452. `link_id` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
  453. `link_type` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  454. `link_name` varchar(60) NOT NULL DEFAULT '' ,
  455. `link_sort` smallint(6) NOT NULL DEFAULT '0' ,
  456. `link_add_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  457. `link_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  458. `link_url` varchar(255) NOT NULL DEFAULT '' ,
  459. `link_logo` varchar(255) NOT NULL DEFAULT '' ,
  460. PRIMARY KEY (`link_id`),
  461. KEY `link_sort` (`link_sort`) USING BTREE,
  462. KEY `link_type` (`link_type`) USING BTREE,
  463. KEY `link_add_time` (`link_add_time`),
  464. KEY `link_time` (`link_time`)
  465. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  466. -- ----------------------------
  467. -- Table structure for mac_msg
  468. -- ----------------------------
  469. DROP TABLE IF EXISTS `mac_msg`;
  470. CREATE TABLE `mac_msg` (
  471. `msg_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  472. `user_id` int(10) unsigned NOT NULL DEFAULT '0',
  473. `msg_type` tinyint(1) unsigned NOT NULL DEFAULT '0',
  474. `msg_status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  475. `msg_to` varchar(30) NOT NULL DEFAULT '',
  476. `msg_code` varchar(10) NOT NULL DEFAULT '',
  477. `msg_content` varchar(255) NOT NULL DEFAULT '',
  478. `msg_time` int(10) unsigned NOT NULL DEFAULT '0',
  479. PRIMARY KEY (`msg_id`),
  480. KEY `msg_code` (`msg_code`),
  481. KEY `msg_time` (`msg_time`),
  482. KEY `user_id` (`user_id`)
  483. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  484. -- ----------------------------
  485. -- Table structure for mac_order
  486. -- ----------------------------
  487. DROP TABLE IF EXISTS `mac_order`;
  488. CREATE TABLE `mac_order` (
  489. `order_id` int(10) unsigned NOT NULL AUTO_INCREMENT ,
  490. `user_id` int(10) unsigned NOT NULL DEFAULT '0' ,
  491. `order_status` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  492. `order_code` varchar(30) NOT NULL DEFAULT '' ,
  493. `order_price` decimal(12,2) unsigned NOT NULL DEFAULT '0.00' ,
  494. `order_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  495. `order_points` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  496. `order_pay_type` varchar(10) NOT NULL DEFAULT '' ,
  497. `order_pay_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  498. `order_remarks` varchar(100) NOT NULL DEFAULT '' ,
  499. PRIMARY KEY (`order_id`),
  500. KEY `order_code` (`order_code`) USING BTREE,
  501. KEY `user_id` (`user_id`) USING BTREE,
  502. KEY `order_time` (`order_time`) USING BTREE
  503. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  504. -- ----------------------------
  505. -- Table structure for mac_plog
  506. -- ----------------------------
  507. DROP TABLE IF EXISTS `mac_plog`;
  508. CREATE TABLE `mac_plog` (
  509. `plog_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  510. `user_id` int(10) unsigned NOT NULL DEFAULT '0',
  511. `user_id_1` int(10) NOT NULL DEFAULT '0',
  512. `plog_type` tinyint(1) unsigned NOT NULL DEFAULT '1',
  513. `plog_points` smallint(6) unsigned NOT NULL DEFAULT '0',
  514. `plog_time` int(10) unsigned NOT NULL DEFAULT '0',
  515. `plog_remarks` varchar(100) NOT NULL DEFAULT '',
  516. PRIMARY KEY (`plog_id`),
  517. KEY `user_id` (`user_id`),
  518. KEY `plog_type` (`plog_type`) USING BTREE
  519. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  520. -- ----------------------------
  521. -- Table structure for mac_role
  522. -- ----------------------------
  523. DROP TABLE IF EXISTS `mac_role`;
  524. CREATE TABLE `mac_role` (
  525. `role_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  526. `role_rid` int(10) unsigned NOT NULL DEFAULT '0' ,
  527. `role_name` varchar(255) NOT NULL DEFAULT '' ,
  528. `role_en` varchar(255) NOT NULL DEFAULT '' ,
  529. `role_status` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  530. `role_lock` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  531. `role_letter` char(1) NOT NULL DEFAULT '' ,
  532. `role_color` varchar(6) NOT NULL DEFAULT '' ,
  533. `role_actor` varchar(255) NOT NULL DEFAULT '' ,
  534. `role_remarks` varchar(100) NOT NULL DEFAULT '',
  535. `role_pic` varchar(1024) NOT NULL DEFAULT '' ,
  536. `role_sort` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  537. `role_level` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  538. `role_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  539. `role_time_add` int(10) unsigned NOT NULL DEFAULT '0' ,
  540. `role_time_hits` int(10) unsigned NOT NULL DEFAULT '0' ,
  541. `role_time_make` int(10) unsigned NOT NULL DEFAULT '0' ,
  542. `role_hits` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  543. `role_hits_day` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  544. `role_hits_week` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  545. `role_hits_month` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  546. `role_score` decimal(3,1) unsigned NOT NULL DEFAULT '0.0',
  547. `role_score_all` mediumint(8) unsigned NOT NULL DEFAULT '0',
  548. `role_score_num` mediumint(8) unsigned NOT NULL DEFAULT '0',
  549. `role_up` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  550. `role_down` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  551. `role_tpl` varchar(30) NOT NULL DEFAULT '' ,
  552. `role_jumpurl` varchar(150) NOT NULL DEFAULT '' ,
  553. `role_content` text NOT NULL ,
  554. PRIMARY KEY (`role_id`),
  555. KEY `role_rid` (`role_rid`),
  556. KEY `role_name` (`role_name`),
  557. KEY `role_en` (`role_en`),
  558. KEY `role_letter` (`role_letter`),
  559. KEY `role_actor` (`role_actor`),
  560. KEY `role_level` (`role_level`),
  561. KEY `role_time` (`role_time`),
  562. KEY `role_time_add` (`role_time_add`),
  563. KEY `role_score` (`role_score`),
  564. KEY `role_score_all` (`role_score_all`),
  565. KEY `role_score_num` (`role_score_num`),
  566. KEY `role_up` (`role_up`),
  567. KEY `role_down` (`role_down`)
  568. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  569. -- ----------------------------
  570. -- Table structure for mac_topic
  571. -- ----------------------------
  572. DROP TABLE IF EXISTS `mac_topic`;
  573. CREATE TABLE `mac_topic` (
  574. `topic_id` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
  575. `topic_name` varchar(255) NOT NULL DEFAULT '' ,
  576. `topic_en` varchar(255) NOT NULL DEFAULT '' ,
  577. `topic_sub` varchar(255) NOT NULL DEFAULT '' ,
  578. `topic_status` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  579. `topic_sort` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  580. `topic_letter` char(1) NOT NULL DEFAULT '' ,
  581. `topic_color` varchar(6) NOT NULL DEFAULT '' ,
  582. `topic_tpl` varchar(30) NOT NULL DEFAULT '' ,
  583. `topic_type` varchar(255) NOT NULL DEFAULT '' ,
  584. `topic_pic` varchar(1024) NOT NULL DEFAULT '',
  585. `topic_pic_thumb` varchar(1024) NOT NULL DEFAULT '',
  586. `topic_pic_slide` varchar(1024) NOT NULL DEFAULT '',
  587. `topic_key` varchar(255) NOT NULL DEFAULT '' ,
  588. `topic_des` varchar(255) NOT NULL DEFAULT '' ,
  589. `topic_title` varchar(255) NOT NULL DEFAULT '' ,
  590. `topic_blurb` varchar(255) NOT NULL DEFAULT '' ,
  591. `topic_remarks` varchar(100) NOT NULL DEFAULT '' ,
  592. `topic_level` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  593. `topic_up` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  594. `topic_down` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  595. `topic_score` decimal(3,1) unsigned NOT NULL DEFAULT '0.0' ,
  596. `topic_score_all` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  597. `topic_score_num` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  598. `topic_hits` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  599. `topic_hits_day` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  600. `topic_hits_week` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  601. `topic_hits_month` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  602. `topic_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  603. `topic_time_add` int(10) unsigned NOT NULL DEFAULT '0' ,
  604. `topic_time_hits` int(10) unsigned NOT NULL DEFAULT '0' ,
  605. `topic_time_make` int(10) unsigned NOT NULL DEFAULT '0' ,
  606. `topic_tag` varchar(255) NOT NULL DEFAULT '' ,
  607. `topic_rel_vod` text NOT NULL,
  608. `topic_rel_art` text NOT NULL,
  609. `topic_content` text NOT NULL,
  610. `topic_extend` text NOT NULL,
  611. PRIMARY KEY (`topic_id`),
  612. KEY `topic_sort` (`topic_sort`) USING BTREE,
  613. KEY `topic_level` (`topic_level`) USING BTREE,
  614. KEY `topic_score` (`topic_score`) USING BTREE,
  615. KEY `topic_score_all` (`topic_score_all`) USING BTREE,
  616. KEY `topic_score_num` (`topic_score_num`) USING BTREE,
  617. KEY `topic_hits` (`topic_hits`) USING BTREE,
  618. KEY `topic_hits_day` (`topic_hits_day`) USING BTREE,
  619. KEY `topic_hits_week` (`topic_hits_week`) USING BTREE,
  620. KEY `topic_hits_month` (`topic_hits_month`) USING BTREE,
  621. KEY `topic_time_add` (`topic_time_add`) USING BTREE,
  622. KEY `topic_time` (`topic_time`) USING BTREE,
  623. KEY `topic_time_hits` (`topic_time_hits`) USING BTREE,
  624. KEY `topic_name` (`topic_name`),
  625. KEY `topic_en` (`topic_en`),
  626. KEY `topic_up` (`topic_up`),
  627. KEY `topic_down` (`topic_down`)
  628. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  629. -- ----------------------------
  630. -- Table structure for mac_type
  631. -- ----------------------------
  632. DROP TABLE IF EXISTS `mac_type`;
  633. CREATE TABLE `mac_type` (
  634. `type_id` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
  635. `type_name` varchar(60) NOT NULL DEFAULT '' ,
  636. `type_en` varchar(60) NOT NULL DEFAULT '' ,
  637. `type_sort` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  638. `type_mid` smallint(6) unsigned NOT NULL DEFAULT '1' ,
  639. `type_pid` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  640. `type_status` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  641. `type_tpl` varchar(30) NOT NULL DEFAULT '' ,
  642. `type_tpl_list` varchar(30) NOT NULL DEFAULT '',
  643. `type_tpl_detail` varchar(30) NOT NULL DEFAULT '' ,
  644. `type_tpl_play` varchar(30) NOT NULL DEFAULT '' ,
  645. `type_tpl_down` varchar(30) NOT NULL DEFAULT '' ,
  646. `type_key` varchar(255) NOT NULL DEFAULT '' ,
  647. `type_des` varchar(255) NOT NULL DEFAULT '' ,
  648. `type_title` varchar(255) NOT NULL DEFAULT '' ,
  649. `type_union` varchar(255) NOT NULL DEFAULT '',
  650. `type_extend` text NOT NULL,
  651. `type_logo` VARCHAR( 255 ) NOT NULL DEFAULT '',
  652. `type_pic` VARCHAR( 1024 ) NOT NULL DEFAULT '',
  653. `type_jumpurl` VARCHAR( 150 ) NOT NULL DEFAULT '',
  654. PRIMARY KEY (`type_id`),
  655. KEY `type_sort` (`type_sort`) USING BTREE,
  656. KEY `type_pid` (`type_pid`) USING BTREE,
  657. KEY `type_name` (`type_name`),
  658. KEY `type_en` (`type_en`),
  659. KEY `type_mid` (`type_mid`)
  660. ) ENGINE=MyISAM AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 ;
  661. -- ----------------------------
  662. -- Table structure for mac_ulog
  663. -- ----------------------------
  664. DROP TABLE IF EXISTS `mac_ulog`;
  665. CREATE TABLE `mac_ulog` (
  666. `ulog_id` int(10) unsigned NOT NULL AUTO_INCREMENT ,
  667. `user_id` int(10) unsigned NOT NULL DEFAULT '0' ,
  668. `ulog_mid` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  669. `ulog_type` tinyint(1) unsigned NOT NULL DEFAULT '1' ,
  670. `ulog_rid` int(10) unsigned NOT NULL DEFAULT '0' ,
  671. `ulog_sid` tinyint(3) unsigned NOT NULL DEFAULT '0' ,
  672. `ulog_nid` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  673. `ulog_points` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  674. `ulog_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  675. PRIMARY KEY (`ulog_id`),
  676. KEY `user_id` (`user_id`),
  677. KEY `ulog_mid` (`ulog_mid`),
  678. KEY `ulog_type` (`ulog_type`),
  679. KEY `ulog_rid` (`ulog_rid`)
  680. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  681. -- ----------------------------
  682. -- Table structure for mac_user
  683. -- ----------------------------
  684. DROP TABLE IF EXISTS `mac_user`;
  685. CREATE TABLE `mac_user` (
  686. `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  687. `group_id` varchar(255) NOT NULL DEFAULT '0' COMMENT '会员组ID,多个用逗号分隔',
  688. `user_name` varchar(30) NOT NULL DEFAULT '' ,
  689. `user_pwd` varchar(32) NOT NULL DEFAULT '' ,
  690. `user_nick_name` varchar(30) NOT NULL DEFAULT '' ,
  691. `user_qq` varchar(16) NOT NULL DEFAULT '' ,
  692. `user_email` varchar(30) NOT NULL DEFAULT '' ,
  693. `user_phone` varchar(16) NOT NULL DEFAULT '' ,
  694. `user_status` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  695. `user_portrait` varchar(100) NOT NULL DEFAULT '' ,
  696. `user_portrait_thumb` varchar(100) NOT NULL DEFAULT '' ,
  697. `user_openid_qq` varchar(40) NOT NULL DEFAULT '' ,
  698. `user_openid_weixin` varchar(40) NOT NULL DEFAULT '' ,
  699. `user_question` varchar(255) NOT NULL DEFAULT '' ,
  700. `user_answer` varchar(255) NOT NULL DEFAULT '' ,
  701. `user_points` int(10) unsigned NOT NULL DEFAULT '0' ,
  702. `user_points_froze` int(10) unsigned NOT NULL DEFAULT '0' ,
  703. `user_reg_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  704. `user_reg_ip` int(10) unsigned NOT NULL DEFAULT '0' ,
  705. `user_login_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  706. `user_login_ip` int(10) unsigned NOT NULL DEFAULT '0' ,
  707. `user_last_login_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  708. `user_last_login_ip` int(10) unsigned NOT NULL DEFAULT '0' ,
  709. `user_login_num` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  710. `user_extend` smallint(6) unsigned NOT NULL DEFAULT '0',
  711. `user_random` varchar(32) NOT NULL DEFAULT '' ,
  712. `user_end_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  713. `user_pid` int(10) unsigned NOT NULL DEFAULT '0' ,
  714. `user_pid_2` int(10) unsigned NOT NULL DEFAULT '0' ,
  715. `user_pid_3` int(10) unsigned NOT NULL DEFAULT '0' ,
  716. PRIMARY KEY (`user_id`),
  717. KEY `type_id` (`group_id`) USING BTREE,
  718. KEY `user_name` (`user_name`),
  719. KEY `user_reg_time` (`user_reg_time`)
  720. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  721. -- ----------------------------
  722. -- Table structure for mac_visit
  723. -- ----------------------------
  724. DROP TABLE IF EXISTS `mac_visit`;
  725. CREATE TABLE `mac_visit` (
  726. `visit_id` int(10) unsigned NOT NULL AUTO_INCREMENT ,
  727. `user_id` int(10) unsigned DEFAULT '0',
  728. `visit_ip` int(10) unsigned NOT NULL DEFAULT '0' ,
  729. `visit_ly` varchar(100) NOT NULL DEFAULT '',
  730. `visit_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  731. PRIMARY KEY (`visit_id`),
  732. KEY `user_id` (`user_id`),
  733. KEY `visit_time` (`visit_time`)
  734. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  735. -- ----------------------------
  736. -- Table structure for mac_vod
  737. -- ----------------------------
  738. DROP TABLE IF EXISTS `mac_vod`;
  739. CREATE TABLE `mac_vod` (
  740. `vod_id` int(10) unsigned NOT NULL AUTO_INCREMENT ,
  741. `type_id` smallint(6) NOT NULL DEFAULT '0' ,
  742. `type_id_1` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  743. `group_id` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  744. `vod_name` varchar(255) NOT NULL DEFAULT '' ,
  745. `vod_sub` varchar(255) NOT NULL DEFAULT '' ,
  746. `vod_en` varchar(255) NOT NULL DEFAULT '' ,
  747. `vod_status` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  748. `vod_letter` char(1) NOT NULL DEFAULT '' ,
  749. `vod_color` varchar(6) NOT NULL DEFAULT '' ,
  750. `vod_tag` varchar(100) NOT NULL DEFAULT '' ,
  751. `vod_class` varchar(255) NOT NULL DEFAULT '' ,
  752. `vod_pic` varchar(1024) NOT NULL DEFAULT '' ,
  753. `vod_pic_thumb` varchar(1024) NOT NULL DEFAULT '' ,
  754. `vod_pic_slide` varchar(1024) NOT NULL DEFAULT '' ,
  755. `vod_pic_screenshot` text,
  756. `vod_actor` varchar(255) NOT NULL DEFAULT '' ,
  757. `vod_director` varchar(255) NOT NULL DEFAULT '' ,
  758. `vod_writer` varchar(100) NOT NULL DEFAULT '' ,
  759. `vod_behind` varchar(100) NOT NULL DEFAULT '' ,
  760. `vod_blurb` varchar(255) NOT NULL DEFAULT '' ,
  761. `vod_remarks` varchar(100) NOT NULL DEFAULT '' ,
  762. `vod_pubdate` varchar(100) NOT NULL DEFAULT '' ,
  763. `vod_total` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  764. `vod_serial` varchar(20) NOT NULL DEFAULT '0' ,
  765. `vod_tv` varchar(30) NOT NULL DEFAULT '' ,
  766. `vod_weekday` varchar(30) NOT NULL DEFAULT '' ,
  767. `vod_area` varchar(20) NOT NULL DEFAULT '' ,
  768. `vod_lang` varchar(10) NOT NULL DEFAULT '' ,
  769. `vod_year` varchar(10) NOT NULL DEFAULT '' ,
  770. `vod_version` varchar(30) NOT NULL DEFAULT '' ,
  771. `vod_state` varchar(30) NOT NULL DEFAULT '' ,
  772. `vod_author` varchar(60) NOT NULL DEFAULT '' ,
  773. `vod_jumpurl` varchar(150) NOT NULL DEFAULT '' ,
  774. `vod_tpl` varchar(30) NOT NULL DEFAULT '' ,
  775. `vod_tpl_play` varchar(30) NOT NULL DEFAULT '' ,
  776. `vod_tpl_down` varchar(30) NOT NULL DEFAULT '' ,
  777. `vod_isend` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  778. `vod_lock` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  779. `vod_level` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  780. `vod_copyright` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  781. `vod_points` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  782. `vod_points_play` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  783. `vod_points_down` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  784. `vod_hits` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  785. `vod_hits_day` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  786. `vod_hits_week` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  787. `vod_hits_month` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  788. `vod_duration` varchar(10) NOT NULL DEFAULT '' ,
  789. `vod_up` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  790. `vod_down` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  791. `vod_score` decimal(3,1) unsigned NOT NULL DEFAULT '0.0' ,
  792. `vod_score_all` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  793. `vod_score_num` mediumint(8) unsigned NOT NULL DEFAULT '0' ,
  794. `vod_time` int(10) unsigned NOT NULL DEFAULT '0' ,
  795. `vod_time_add` int(10) unsigned NOT NULL DEFAULT '0' ,
  796. `vod_time_hits` int(10) unsigned NOT NULL DEFAULT '0' ,
  797. `vod_time_make` int(10) unsigned NOT NULL DEFAULT '0' ,
  798. `vod_trysee` smallint(6) unsigned NOT NULL DEFAULT '0' ,
  799. `vod_douban_id` int(10) unsigned NOT NULL DEFAULT '0' ,
  800. `vod_douban_score` decimal(3,1) unsigned NOT NULL DEFAULT '0.0' ,
  801. `vod_reurl` varchar(255) NOT NULL DEFAULT '' ,
  802. `vod_rel_vod` varchar(255) NOT NULL DEFAULT '' ,
  803. `vod_rel_art` varchar(255) NOT NULL DEFAULT '' ,
  804. `vod_pwd` varchar(10) NOT NULL DEFAULT '' ,
  805. `vod_pwd_url` varchar(255) NOT NULL DEFAULT '' ,
  806. `vod_pwd_play` varchar(10) NOT NULL DEFAULT '' ,
  807. `vod_pwd_play_url` varchar(255) NOT NULL DEFAULT '' ,
  808. `vod_pwd_down` varchar(10) NOT NULL DEFAULT '' ,
  809. `vod_pwd_down_url` varchar(255) NOT NULL DEFAULT '' ,
  810. `vod_content` mediumtext NOT NULL ,
  811. `vod_play_from` varchar(255) NOT NULL DEFAULT '' ,
  812. `vod_play_server` varchar(255) NOT NULL DEFAULT '' ,
  813. `vod_play_note` varchar(255) NOT NULL DEFAULT '' ,
  814. `vod_play_url` mediumtext NOT NULL ,
  815. `vod_down_from` varchar(255) NOT NULL DEFAULT '' ,
  816. `vod_down_server` varchar(255) NOT NULL DEFAULT '' ,
  817. `vod_down_note` varchar(255) NOT NULL DEFAULT '' ,
  818. `vod_down_url` mediumtext NOT NULL ,
  819. `vod_plot` tinyint(1) unsigned NOT NULL DEFAULT '0' ,
  820. `vod_plot_name` mediumtext NOT NULL ,
  821. `vod_plot_detail` mediumtext NOT NULL ,
  822. PRIMARY KEY (`vod_id`),
  823. KEY `type_id` (`type_id`) USING BTREE,
  824. KEY `type_id_1` (`type_id_1`) USING BTREE,
  825. KEY `vod_level` (`vod_level`) USING BTREE,
  826. KEY `vod_hits` (`vod_hits`) USING BTREE,
  827. KEY `vod_letter` (`vod_letter`) USING BTREE,
  828. KEY `vod_name` (`vod_name`) USING BTREE,
  829. KEY `vod_year` (`vod_year`) USING BTREE,
  830. KEY `vod_area` (`vod_area`) USING BTREE,
  831. KEY `vod_lang` (`vod_lang`) USING BTREE,
  832. KEY `vod_tag` (`vod_tag`) USING BTREE,
  833. KEY `vod_class` (`vod_class`) USING BTREE,
  834. KEY `vod_lock` (`vod_lock`) USING BTREE,
  835. KEY `vod_up` (`vod_up`) USING BTREE,
  836. KEY `vod_down` (`vod_down`) USING BTREE,
  837. KEY `vod_en` (`vod_en`) USING BTREE,
  838. KEY `vod_hits_day` (`vod_hits_day`) USING BTREE,
  839. KEY `vod_hits_week` (`vod_hits_week`) USING BTREE,
  840. KEY `vod_hits_month` (`vod_hits_month`) USING BTREE,
  841. KEY `vod_plot` (`vod_plot`) USING BTREE,
  842. KEY `vod_points_play` (`vod_points_play`) USING BTREE,
  843. KEY `vod_points_down` (`vod_points_down`) USING BTREE,
  844. KEY `group_id` (`group_id`) USING BTREE,
  845. KEY `vod_time_add` (`vod_time_add`) USING BTREE,
  846. KEY `vod_time` (`vod_time`) USING BTREE,
  847. KEY `vod_time_make` (`vod_time_make`) USING BTREE,
  848. KEY `vod_actor` (`vod_actor`) USING BTREE,
  849. KEY `vod_director` (`vod_director`) USING BTREE,
  850. KEY `vod_score_all` (`vod_score_all`) USING BTREE,
  851. KEY `vod_score_num` (`vod_score_num`) USING BTREE,
  852. KEY `vod_total` (`vod_total`) USING BTREE,
  853. KEY `vod_score` (`vod_score`) USING BTREE,
  854. KEY `vod_version` (`vod_version`),
  855. KEY `vod_state` (`vod_state`),
  856. KEY `vod_isend` (`vod_isend`)
  857. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  858. -- ----------------------------
  859. -- Table structure for mac_website
  860. -- ----------------------------
  861. DROP TABLE IF EXISTS `mac_website`;
  862. CREATE TABLE `mac_website` (
  863. `website_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  864. `type_id` smallint(5) unsigned NOT NULL DEFAULT '0',
  865. `type_id_1` smallint(5) unsigned NOT NULL DEFAULT '0',
  866. `website_name` varchar(60) NOT NULL DEFAULT '',
  867. `website_sub` varchar(255) NOT NULL DEFAULT '',
  868. `website_en` varchar(255) NOT NULL DEFAULT '',
  869. `website_status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  870. `website_letter` char(1) NOT NULL DEFAULT '',
  871. `website_color` varchar(6) NOT NULL DEFAULT '',
  872. `website_lock` tinyint(1) unsigned NOT NULL DEFAULT '0',
  873. `website_sort` int(10) NOT NULL DEFAULT '0',
  874. `website_jumpurl` varchar(255) NOT NULL DEFAULT '',
  875. `website_pic` varchar(1024) NOT NULL DEFAULT '',
  876. `website_pic_screenshot` text,
  877. `website_logo` varchar(255) NOT NULL DEFAULT '',
  878. `website_area` varchar(20) NOT NULL DEFAULT '',
  879. `website_lang` varchar(10) NOT NULL DEFAULT '',
  880. `website_level` tinyint(1) unsigned NOT NULL DEFAULT '0',
  881. `website_time` int(10) unsigned NOT NULL DEFAULT '0',
  882. `website_time_add` int(10) unsigned NOT NULL DEFAULT '0',
  883. `website_time_hits` int(10) unsigned NOT NULL DEFAULT '0',
  884. `website_time_make` int(10) unsigned NOT NULL DEFAULT '0',
  885. `website_time_referer` int(10) unsigned NOT NULL DEFAULT '0',
  886. `website_hits` mediumint(8) unsigned NOT NULL DEFAULT '0',
  887. `website_hits_day` mediumint(8) unsigned NOT NULL DEFAULT '0',
  888. `website_hits_week` mediumint(8) unsigned NOT NULL DEFAULT '0',
  889. `website_hits_month` mediumint(8) unsigned NOT NULL DEFAULT '0',
  890. `website_score` decimal(3,1) unsigned NOT NULL DEFAULT '0.0',
  891. `website_score_all` mediumint(8) unsigned NOT NULL DEFAULT '0',
  892. `website_score_num` mediumint(8) unsigned NOT NULL DEFAULT '0',
  893. `website_up` mediumint(8) unsigned NOT NULL DEFAULT '0',
  894. `website_down` mediumint(8) unsigned NOT NULL DEFAULT '0',
  895. `website_referer` mediumint(8) unsigned NOT NULL DEFAULT '0',
  896. `website_referer_day` mediumint(8) unsigned NOT NULL DEFAULT '0',
  897. `website_referer_week` mediumint(8) unsigned NOT NULL DEFAULT '0',
  898. `website_referer_month` mediumint(8) unsigned NOT NULL DEFAULT '0',
  899. `website_tag` varchar(100) NOT NULL DEFAULT '',
  900. `website_class` varchar(255) NOT NULL DEFAULT '',
  901. `website_remarks` varchar(100) NOT NULL DEFAULT '',
  902. `website_tpl` varchar(30) NOT NULL DEFAULT '',
  903. `website_blurb` varchar(255) NOT NULL DEFAULT '',
  904. `website_content` mediumtext NOT NULL,
  905. PRIMARY KEY (`website_id`),
  906. KEY `type_id` (`type_id`),
  907. KEY `type_id_1` (`type_id_1`),
  908. KEY `website_name` (`website_name`),
  909. KEY `website_en` (`website_en`),
  910. KEY `website_letter` (`website_letter`),
  911. KEY `website_sort` (`website_sort`),
  912. KEY `website_lock` (`website_lock`),
  913. KEY `website_time` (`website_time`),
  914. KEY `website_time_add` (`website_time_add`),
  915. KEY `website_time_referer` (`website_time_referer`),
  916. KEY `website_hits` (`website_hits`),
  917. KEY `website_hits_day` (`website_hits_day`),
  918. KEY `website_hits_week` (`website_hits_week`),
  919. KEY `website_hits_month` (`website_hits_month`),
  920. KEY `website_time_make` (`website_time_make`),
  921. KEY `website_score` (`website_score`),
  922. KEY `website_score_all` (`website_score_all`),
  923. KEY `website_score_num` (`website_score_num`),
  924. KEY `website_up` (`website_up`),
  925. KEY `website_down` (`website_down`),
  926. KEY `website_level` (`website_level`),
  927. KEY `website_tag` (`website_tag`),
  928. KEY `website_class` (`website_class`),
  929. KEY `website_referer` (`website_referer`),
  930. KEY `website_referer_day` (`website_referer_day`),
  931. KEY `website_referer_week` (`website_referer_week`),
  932. KEY `website_referer_month` (`website_referer_month`)
  933. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 ;
  934. -- ----------------------------
  935. -- Table structure for mac_vod_search
  936. -- ----------------------------
  937. DROP TABLE IF EXISTS `mac_vod_search`;
  938. CREATE TABLE `mac_vod_search` (
  939. `search_key` char(32) CHARACTER SET ascii COLLATE ascii_bin NOT NULL COMMENT '搜索键(关键词md5)',
  940. `search_word` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '搜索关键词',
  941. `search_field` varchar(64) CHARACTER SET ascii COLLATE ascii_bin NOT NULL COMMENT '搜索字段名(可有多个,用|分隔)',
  942. `search_hit_count` bigint unsigned NOT NULL DEFAULT '0' COMMENT '搜索命中次数',
  943. `search_last_hit_time` int unsigned NOT NULL DEFAULT '0' COMMENT '最近命中时间',
  944. `search_update_time` int unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
  945. `search_result_count` int unsigned NOT NULL DEFAULT '0' COMMENT '结果Id数量',
  946. `search_result_ids` mediumtext CHARACTER SET ascii COLLATE ascii_bin NOT NULL COMMENT '搜索结果Id列表,英文半角逗号分隔',
  947. PRIMARY KEY (`search_key`),
  948. KEY `search_field` (`search_field`),
  949. KEY `search_update_time` (`search_update_time`),
  950. KEY `search_hit_count` (`search_hit_count`),
  951. KEY `search_last_hit_time` (`search_last_hit_time`)
  952. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='vod搜索缓存表';