onepage_project.sql 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. -- MySQL dump 10.13 Distrib 5.5.43, for debian-linux-gnu (x86_64)
  2. --
  3. -- Host: 192.168.12.4 Database: onepage_v1_sg
  4. -- ------------------------------------------------------
  5. -- Server version 5.5.38-0+wheezy1-log
  6. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  7. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  8. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  9. /*!40101 SET NAMES utf8 */;
  10. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  11. /*!40103 SET TIME_ZONE='+00:00' */;
  12. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  13. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  14. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  15. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  16. --
  17. -- Table structure for table `article_like`
  18. --
  19. DROP TABLE IF EXISTS `article_like`;
  20. /*!40101 SET @saved_cs_client = @@character_set_client */;
  21. /*!40101 SET character_set_client = utf8 */;
  22. CREATE TABLE `article_like` (
  23. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  24. `event_id` int(11) NOT NULL DEFAULT 0,
  25. `uid` int(11) NOT NULL DEFAULT 0,
  26. PRIMARY KEY (`id`),
  27. UNIQUE KEY `event_id` (`event_id`,`uid`)
  28. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='文章点赞';
  29. /*!40101 SET character_set_client = @saved_cs_client */;
  30. --
  31. -- Table structure for table `article_like_counter`
  32. --
  33. DROP TABLE IF EXISTS `article_like_counter`;
  34. /*!40101 SET @saved_cs_client = @@character_set_client */;
  35. /*!40101 SET character_set_client = utf8 */;
  36. CREATE TABLE `article_like_counter` (
  37. `event_id` int(10) unsigned NOT NULL DEFAULT 0,
  38. `likes` int(10) unsigned NOT NULL DEFAULT 0,
  39. PRIMARY KEY (`event_id`)
  40. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='文章点赞计数';
  41. /*!40101 SET character_set_client = @saved_cs_client */;
  42. --
  43. -- Table structure for table `lottery_data`
  44. --
  45. DROP TABLE IF EXISTS `lottery_data`;
  46. /*!40101 SET @saved_cs_client = @@character_set_client */;
  47. /*!40101 SET character_set_client = utf8 */;
  48. CREATE TABLE `lottery_data` (
  49. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  50. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属抽奖活动ID',
  51. `prize_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '奖项ID',
  52. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '获奖用户ID',
  53. `winning_time` int(10) unsigned NOT NULL COMMENT '用户获奖时间',
  54. `winners_time` int(10) unsigned NOT NULL COMMENT '程序到时发奖间',
  55. `scratch_receive` tinyint(2) NOT NULL DEFAULT '1' COMMENT '对刮挂卡领取奖品的特殊处理 1:用户已领取 2:用户未领取',
  56. `extend` text NOT NULL DEFAULT '',
  57. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  58. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  59. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  60. PRIMARY KEY (`id`)
  61. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='抽奖数据表';
  62. /*!40101 SET character_set_client = @saved_cs_client */;
  63. --
  64. -- Table structure for table `lottery_delivery_channels`
  65. --
  66. DROP TABLE IF EXISTS `lottery_delivery_channels`;
  67. /*!40101 SET @saved_cs_client = @@character_set_client */;
  68. /*!40101 SET character_set_client = utf8 */;
  69. CREATE TABLE `lottery_delivery_channels` (
  70. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '渠道ID',
  71. `str_name` varchar(100) NOT NULL DEFAULT '' COMMENT '渠道名称',
  72. `events_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '活动ID',
  73. `platform_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '平台ID',
  74. `pv_num` int(10) NOT NULL DEFAULT '0' COMMENT 'pv数',
  75. `extend` text NOT NULL DEFAULT '',
  76. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  77. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  78. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  79. PRIMARY KEY (`id`)
  80. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='投放渠道';
  81. /*!40101 SET character_set_client = @saved_cs_client */;
  82. --
  83. -- Table structure for table `lottery_events`
  84. --
  85. DROP TABLE IF EXISTS `lottery_events`;
  86. /*!40101 SET @saved_cs_client = @@character_set_client */;
  87. /*!40101 SET character_set_client = utf8 */;
  88. CREATE TABLE `lottery_events` (
  89. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '抽奖活动ID',
  90. `events_name` varchar(100) NOT NULL DEFAULT '' COMMENT '抽奖活动名称',
  91. `begin_time` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '活动开始时间',
  92. `end_time` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '活动结束时间',
  93. `type` tinyint(3) NOT NULL DEFAULT '0' COMMENT '活动类型 :转盘:刮挂卡',
  94. `display` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否显示 0 :不显示 1:显示',
  95. `del` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否被管理员删除',
  96. `list_display` tinyint(1) NOT NULL DEFAULT '0' COMMENT '列表中是否显示',
  97. `platform_ids` int(10) NOT NULL DEFAULT '0' COMMENT '所属列表',
  98. `operator_uid` int(10) NOT NULL DEFAULT '0' COMMENT '操作人UID',
  99. `extend` text NOT NULL DEFAULT '',
  100. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  101. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  102. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  103. PRIMARY KEY (`id`)
  104. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='抽奖活动信息表';
  105. /*!40101 SET character_set_client = @saved_cs_client */;
  106. --
  107. -- Table structure for table `lottery_events_code_data`
  108. --
  109. DROP TABLE IF EXISTS `lottery_events_code_data`;
  110. /*!40101 SET @saved_cs_client = @@character_set_client */;
  111. /*!40101 SET character_set_client = utf8 */;
  112. CREATE TABLE `lottery_events_code_data` (
  113. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  114. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  115. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  116. `data` text NOT NULL DEFAULT '' COMMENT '数据',
  117. `extend` text NOT NULL DEFAULT '',
  118. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  119. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  120. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  121. PRIMARY KEY (`id`)
  122. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='奖池数据表';
  123. /*!40101 SET character_set_client = @saved_cs_client */;
  124. --
  125. -- Table structure for table `lottery_events_forms`
  126. --
  127. DROP TABLE IF EXISTS `lottery_events_forms`;
  128. /*!40101 SET @saved_cs_client = @@character_set_client */;
  129. /*!40101 SET character_set_client = utf8 */;
  130. CREATE TABLE `lottery_events_forms` (
  131. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  132. `events_id` int(10) unsigned NOT NULL DEFAULT 0,
  133. `uid` int(10) unsigned NOT NULL DEFAULT 0,
  134. `extend` text NOT NULL DEFAULT '',
  135. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  136. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  137. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  138. PRIMARY KEY (`id`)
  139. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='活动表单';
  140. /*!40101 SET character_set_client = @saved_cs_client */;
  141. --
  142. -- Table structure for table `lottery_events_invitation`
  143. --
  144. DROP TABLE IF EXISTS `lottery_events_invitation`;
  145. /*!40101 SET @saved_cs_client = @@character_set_client */;
  146. /*!40101 SET character_set_client = utf8 */;
  147. CREATE TABLE `lottery_events_invitation` (
  148. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  149. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  150. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  151. `user_name` varchar(100) NOT NULL DEFAULT '' COMMENT '姓名',
  152. `phone` varchar(100) NOT NULL DEFAULT '' COMMENT '电话',
  153. `city` varchar(100) NOT NULL DEFAULT '' COMMENT '城市',
  154. `mail` varchar(100) NOT NULL DEFAULT '' COMMENT 'Email',
  155. `extend` text NOT NULL DEFAULT '',
  156. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  157. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  158. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  159. PRIMARY KEY (`id`)
  160. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='活动[邀请函用户]';
  161. /*!40101 SET character_set_client = @saved_cs_client */;
  162. --
  163. -- Table structure for table `lottery_events_letters`
  164. --
  165. DROP TABLE IF EXISTS `lottery_events_letters`;
  166. /*!40101 SET @saved_cs_client = @@character_set_client */;
  167. /*!40101 SET character_set_client = utf8 */;
  168. CREATE TABLE `lottery_events_letters` (
  169. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '字母-id',
  170. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  171. `ABC_name` varchar(100) NOT NULL DEFAULT '' COMMENT '字母名称',
  172. `img_1` varchar(100) NOT NULL DEFAULT 'null' COMMENT '字母名称图片1',
  173. `img_2` varchar(100) NOT NULL DEFAULT 'null' COMMENT '字母名称图片2',
  174. `num` int(10) NOT NULL DEFAULT '1' COMMENT '字母数量',
  175. `winning_num` int(10) NOT NULL DEFAULT '0' COMMENT '抽中字母数量',
  176. `extend` text NOT NULL DEFAULT '',
  177. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  178. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  179. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  180. PRIMARY KEY (`id`)
  181. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='活动[收集字母信息]';
  182. /*!40101 SET character_set_client = @saved_cs_client */;
  183. --
  184. -- Table structure for table `lottery_events_log`
  185. --
  186. DROP TABLE IF EXISTS `lottery_events_log`;
  187. /*!40101 SET @saved_cs_client = @@character_set_client */;
  188. /*!40101 SET character_set_client = utf8 */;
  189. CREATE TABLE `lottery_events_log` (
  190. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'LOGID',
  191. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  192. `type` tinyint(3) NOT NULL DEFAULT '0' COMMENT '1:访问 2:参与 3:获得',
  193. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '获奖用户ID',
  194. `extend` text NOT NULL DEFAULT '',
  195. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  196. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  197. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  198. PRIMARY KEY (`id`)
  199. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='活动日志信息表';
  200. /*!40101 SET character_set_client = @saved_cs_client */;
  201. --
  202. -- Table structure for table `lottery_events_try`
  203. --
  204. DROP TABLE IF EXISTS `lottery_events_try`;
  205. /*!40101 SET @saved_cs_client = @@character_set_client */;
  206. /*!40101 SET character_set_client = utf8 */;
  207. CREATE TABLE `lottery_events_try` (
  208. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'LOGID',
  209. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  210. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '获奖用户ID',
  211. `apply_txt` text NOT NULL COMMENT '用户申请信息',
  212. `extend` text NOT NULL DEFAULT '',
  213. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  214. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  215. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  216. PRIMARY KEY (`id`)
  217. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='活动[试用申请信息]';
  218. /*!40101 SET character_set_client = @saved_cs_client */;
  219. --
  220. -- Table structure for table `lottery_events_user_letters`
  221. --
  222. DROP TABLE IF EXISTS `lottery_events_user_letters`;
  223. /*!40101 SET @saved_cs_client = @@character_set_client */;
  224. /*!40101 SET character_set_client = utf8 */;
  225. CREATE TABLE `lottery_events_user_letters` (
  226. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  227. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  228. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  229. `extend` text NOT NULL DEFAULT '',
  230. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  231. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  232. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  233. PRIMARY KEY (`id`)
  234. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='活动[用户收集字母信息]';
  235. /*!40101 SET character_set_client = @saved_cs_client */;
  236. --
  237. -- Table structure for table `lottery_events_vote`
  238. --
  239. DROP TABLE IF EXISTS `lottery_events_vote`;
  240. /*!40101 SET @saved_cs_client = @@character_set_client */;
  241. /*!40101 SET character_set_client = utf8 */;
  242. CREATE TABLE `lottery_events_vote` (
  243. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  244. `events_id` int(10) unsigned NOT NULL COMMENT '所属活动ID',
  245. `title` varchar(100) NOT NULL DEFAULT '' COMMENT '投票标题',
  246. `img_url` varchar(100) NOT NULL DEFAULT '' COMMENT '投票配图',
  247. `num` int(10) NOT NULL DEFAULT '0' COMMENT '投票数',
  248. `add_num` int(10) NOT NULL DEFAULT '0' COMMENT '作弊投票数',
  249. `extend` text NOT NULL DEFAULT '',
  250. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  251. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  252. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  253. PRIMARY KEY (`id`)
  254. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='活动[投票项]';
  255. /*!40101 SET character_set_client = @saved_cs_client */;
  256. --
  257. -- Table structure for table `lottery_events_vote_user_log`
  258. --
  259. DROP TABLE IF EXISTS `lottery_events_vote_user_log`;
  260. /*!40101 SET @saved_cs_client = @@character_set_client */;
  261. /*!40101 SET character_set_client = utf8 */;
  262. CREATE TABLE `lottery_events_vote_user_log` (
  263. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  264. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  265. `vote_id` varchar(100) NOT NULL DEFAULT '' COMMENT '投票项ID',
  266. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  267. `extend` text NOT NULL DEFAULT '',
  268. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  269. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  270. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  271. PRIMARY KEY (`id`)
  272. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='活动[用户投票记录]';
  273. /*!40101 SET character_set_client = @saved_cs_client */;
  274. --
  275. -- Table structure for table `lottery_prize`
  276. --
  277. DROP TABLE IF EXISTS `lottery_prize`;
  278. /*!40101 SET @saved_cs_client = @@character_set_client */;
  279. /*!40101 SET character_set_client = utf8 */;
  280. CREATE TABLE `lottery_prize` (
  281. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '奖项ID',
  282. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  283. `prize_name` varchar(100) NOT NULL DEFAULT '' COMMENT '奖品名称',
  284. `prize_num` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '奖品数量',
  285. `prize_winning_num` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '已经抽中的数量',
  286. `type` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '状态 1:实物 2:虚拟',
  287. `display` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否显示 0 :不显示 1:显示',
  288. `extend` text NOT NULL DEFAULT '',
  289. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  290. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  291. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  292. PRIMARY KEY (`id`)
  293. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='抽奖奖品表';
  294. /*!40101 SET character_set_client = @saved_cs_client */;
  295. --
  296. -- Table structure for table `lottery_prize_virtual_data`
  297. --
  298. DROP TABLE IF EXISTS `lottery_prize_virtual_data`;
  299. /*!40101 SET @saved_cs_client = @@character_set_client */;
  300. /*!40101 SET character_set_client = utf8 */;
  301. CREATE TABLE `lottery_prize_virtual_data` (
  302. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  303. `prize_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '奖项ID',
  304. `data` text NOT NULL DEFAULT '' COMMENT '奖池数据',
  305. `lottery_data_id` int(11) NOT NULL DEFAULT '0' COMMENT '获奖数据ID',
  306. `extend` text NOT NULL DEFAULT '',
  307. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  308. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  309. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  310. PRIMARY KEY (`id`)
  311. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='奖池数据表';
  312. /*!40101 SET character_set_client = @saved_cs_client */;
  313. --
  314. -- Table structure for table `lottery_pv_uv_log`
  315. --
  316. DROP TABLE IF EXISTS `lottery_pv_uv_log`;
  317. /*!40101 SET @saved_cs_client = @@character_set_client */;
  318. /*!40101 SET character_set_client = utf8 */;
  319. CREATE TABLE `lottery_pv_uv_log` (
  320. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  321. `events_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '活动ID',
  322. `pv_num` int(10) NOT NULL DEFAULT '0' COMMENT 'pv数',
  323. `uv_num` int(10) NOT NULL DEFAULT '0' COMMENT 'uv数',
  324. `date` int(10) unsigned NOT NULL COMMENT '统计日期时间戳',
  325. `extend` text NOT NULL DEFAULT '' COMMENT '扩展字段',
  326. `create_time` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '创建时间',
  327. `update_time` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '更新时间',
  328. `cas_token` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '乐观锁',
  329. PRIMARY KEY (`id`),
  330. UNIQUE KEY `events_id` (`events_id`,`date`)
  331. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='活动PV&UV统计按日';
  332. /*!40101 SET character_set_client = @saved_cs_client */;
  333. --
  334. -- Table structure for table `lottery_user_express`
  335. --
  336. DROP TABLE IF EXISTS `lottery_user_express`;
  337. /*!40101 SET @saved_cs_client = @@character_set_client */;
  338. /*!40101 SET character_set_client = utf8 */;
  339. CREATE TABLE `lottery_user_express` (
  340. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  341. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  342. `phone` varchar(100) NOT NULL DEFAULT '' COMMENT '电话',
  343. `address` text NOT NULL COMMENT '地址',
  344. `user_name` varchar(100) NOT NULL DEFAULT '' COMMENT '收货人姓名',
  345. `extend` text NOT NULL DEFAULT '',
  346. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  347. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  348. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  349. PRIMARY KEY (`id`),
  350. UNIQUE KEY `uid` (`uid`),
  351. UNIQUE KEY `uid_2` (`uid`)
  352. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='用户收货信息';
  353. /*!40101 SET character_set_client = @saved_cs_client */;
  354. --
  355. -- Table structure for table `lottery_user_participate_log`
  356. --
  357. DROP TABLE IF EXISTS `lottery_user_participate_log`;
  358. /*!40101 SET @saved_cs_client = @@character_set_client */;
  359. /*!40101 SET character_set_client = utf8 */;
  360. CREATE TABLE `lottery_user_participate_log` (
  361. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'LOGID',
  362. `events_id` int(10) unsigned NOT NULL COMMENT '所属活动ID',
  363. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '获奖用户ID',
  364. `extend` text NOT NULL DEFAULT '',
  365. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  366. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  367. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  368. PRIMARY KEY (`id`)
  369. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='活动用户参与表';
  370. /*!40101 SET character_set_client = @saved_cs_client */;
  371. --
  372. -- Table structure for table `platform`
  373. --
  374. DROP TABLE IF EXISTS `platform`;
  375. /*!40101 SET @saved_cs_client = @@character_set_client */;
  376. /*!40101 SET character_set_client = utf8 */;
  377. CREATE TABLE `platform` (
  378. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'platformID',
  379. `name` varchar(100) NOT NULL DEFAULT '' COMMENT '平台名称',
  380. `css` varchar(100) NOT NULL DEFAULT '' COMMENT 'css文件名称',
  381. `extend` text NOT NULL DEFAULT '',
  382. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  383. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  384. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  385. PRIMARY KEY (`id`)
  386. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='平台';
  387. /*!40101 SET character_set_client = @saved_cs_client */;
  388. --
  389. -- Table structure for table `platform_bulletin`
  390. --
  391. DROP TABLE IF EXISTS `platform_bulletin`;
  392. /*!40101 SET @saved_cs_client = @@character_set_client */;
  393. /*!40101 SET character_set_client = utf8 */;
  394. CREATE TABLE `platform_bulletin` (
  395. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'bulletinID',
  396. `title` varchar(100) NOT NULL DEFAULT '' COMMENT '标题',
  397. `content` text NOT NULL DEFAULT '' COMMENT '内容',
  398. `operator_uid` int(11) NOT NULL DEFAULT '0' COMMENT '操作ID',
  399. `extend` text NOT NULL DEFAULT '',
  400. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  401. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  402. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  403. PRIMARY KEY (`id`)
  404. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='平台公告';
  405. /*!40101 SET character_set_client = @saved_cs_client */;
  406. --
  407. -- Table structure for table `user_info`
  408. --
  409. DROP TABLE IF EXISTS `user_info`;
  410. /*!40101 SET @saved_cs_client = @@character_set_client */;
  411. /*!40101 SET character_set_client = utf8 */;
  412. CREATE TABLE `user_info` (
  413. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id(本平台UID)',
  414. `passport_uid` int(10) signed NOT NULL DEFAULT -1 COMMENT '第三方用户ID',
  415. `groupid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '分组id',
  416. `is_new` tinyint(1) unsigned NOT NULL COMMENT '是否新用户,0新用户(待获取用户信息) 1老用户',
  417. `nickname` char(255) NOT NULL DEFAULT '' COMMENT '用户的昵称',
  418. `localRemark` char(150) NOT NULL DEFAULT '' COMMENT '本地备注',
  419. `extend` text NOT NULL COMMENT '扩展字段',
  420. `create_time` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '创建时间',
  421. `update_time` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '更新时间',
  422. `cas_token` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '乐观锁',
  423. PRIMARY KEY (`id`)
  424. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='用户基础数据';
  425. /*!40101 SET character_set_client = @saved_cs_client */;
  426. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  427. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  428. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  429. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  430. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  431. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  432. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  433. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  434. -- Dump completed on 2015-12-17 17:36:39