onepage_project.sql 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  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 focus
  84. -- ----------------------------
  85. DROP TABLE IF EXISTS `focus`;
  86. /*!40101 SET @saved_cs_client = @@character_set_client */;
  87. /*!40101 SET character_set_client = utf8 */;
  88. CREATE TABLE `focus` (
  89. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  90. `platform_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '平台ID',
  91. `name` varchar(100) NOT NULL COMMENT '名称',
  92. `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态:1:存在 2:删除',
  93. `extend` text NOT NULL COMMENT '扩展字段',
  94. `create_time` int(10) unsigned NOT NULL COMMENT '创建时间',
  95. `update_time` int(10) unsigned NOT NULL COMMENT '更新时间',
  96. `cas_token` int(10) unsigned NOT NULL COMMENT '乐观锁',
  97. PRIMARY KEY (`id`)
  98. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='精彩推荐';
  99. /*!40101 SET character_set_client = @saved_cs_client */;
  100. --
  101. -- Table structure for table `lottery_events`
  102. --
  103. DROP TABLE IF EXISTS `lottery_events`;
  104. /*!40101 SET @saved_cs_client = @@character_set_client */;
  105. /*!40101 SET character_set_client = utf8 */;
  106. CREATE TABLE `lottery_events` (
  107. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '抽奖活动ID',
  108. `events_name` varchar(100) NOT NULL DEFAULT '' COMMENT '抽奖活动名称',
  109. `begin_time` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '活动开始时间',
  110. `end_time` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '活动结束时间',
  111. `type` tinyint(3) NOT NULL DEFAULT '0' COMMENT '活动类型 :转盘:刮挂卡',
  112. `display` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否显示 0 :不显示 1:显示',
  113. `share_button` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否显示分享按钮 1 :不显示 2:显示',
  114. `del` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否被管理员删除',
  115. `list_display` tinyint(1) NOT NULL DEFAULT '0' COMMENT '列表中是否显示',
  116. `category_id` tinyint(1) NOT NULL DEFAULT '0' COMMENT '分类id',
  117. `focus_display` tinyint(1) NOT NULL DEFAULT '0' COMMENT '推荐到焦点图',
  118. `top_display` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否置顶',
  119. `platform_ids` int(10) NOT NULL DEFAULT '0' COMMENT '所属列表',
  120. `operator_uid` int(10) NOT NULL DEFAULT '0' COMMENT '操作人UID',
  121. `extend` text NOT NULL DEFAULT '',
  122. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  123. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  124. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  125. PRIMARY KEY (`id`)
  126. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='抽奖活动信息表';
  127. /*!40101 SET character_set_client = @saved_cs_client */;
  128. --
  129. -- Table structure for table `lottery_events_code_data`
  130. --
  131. DROP TABLE IF EXISTS `lottery_events_code_data`;
  132. /*!40101 SET @saved_cs_client = @@character_set_client */;
  133. /*!40101 SET character_set_client = utf8 */;
  134. CREATE TABLE `lottery_events_code_data` (
  135. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  136. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  137. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  138. `data` text NOT NULL DEFAULT '' COMMENT '数据',
  139. `extend` text NOT NULL DEFAULT '',
  140. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  141. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  142. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  143. PRIMARY KEY (`id`)
  144. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='奖池数据表';
  145. /*!40101 SET character_set_client = @saved_cs_client */;
  146. --
  147. -- Table structure for table `lottery_events_forms`
  148. --
  149. DROP TABLE IF EXISTS `lottery_events_forms`;
  150. /*!40101 SET @saved_cs_client = @@character_set_client */;
  151. /*!40101 SET character_set_client = utf8 */;
  152. CREATE TABLE `lottery_events_forms` (
  153. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  154. `events_id` int(10) unsigned NOT NULL DEFAULT 0,
  155. `uid` int(10) unsigned NOT NULL DEFAULT 0,
  156. `extend` text NOT NULL DEFAULT '',
  157. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  158. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  159. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  160. PRIMARY KEY (`id`)
  161. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='活动表单';
  162. /*!40101 SET character_set_client = @saved_cs_client */;
  163. --
  164. -- Table structure for table `lottery_events_invitation`
  165. --
  166. DROP TABLE IF EXISTS `lottery_events_invitation`;
  167. /*!40101 SET @saved_cs_client = @@character_set_client */;
  168. /*!40101 SET character_set_client = utf8 */;
  169. CREATE TABLE `lottery_events_invitation` (
  170. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  171. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  172. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  173. `user_name` varchar(100) NOT NULL DEFAULT '' COMMENT '姓名',
  174. `phone` varchar(100) NOT NULL DEFAULT '' COMMENT '电话',
  175. `city` varchar(100) NOT NULL DEFAULT '' COMMENT '城市',
  176. `mail` varchar(100) NOT NULL DEFAULT '' COMMENT 'Email',
  177. `extend` text NOT NULL DEFAULT '',
  178. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  179. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  180. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  181. PRIMARY KEY (`id`)
  182. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='活动[邀请函用户]';
  183. /*!40101 SET character_set_client = @saved_cs_client */;
  184. --
  185. -- Table structure for table `lottery_events_letters`
  186. --
  187. DROP TABLE IF EXISTS `lottery_events_letters`;
  188. /*!40101 SET @saved_cs_client = @@character_set_client */;
  189. /*!40101 SET character_set_client = utf8 */;
  190. CREATE TABLE `lottery_events_letters` (
  191. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '字母-id',
  192. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  193. `ABC_name` varchar(100) NOT NULL DEFAULT '' COMMENT '字母名称',
  194. `img_1` varchar(100) NOT NULL DEFAULT 'null' COMMENT '字母名称图片1',
  195. `img_2` varchar(100) NOT NULL DEFAULT 'null' COMMENT '字母名称图片2',
  196. `num` int(10) NOT NULL DEFAULT '1' COMMENT '字母数量',
  197. `winning_num` int(10) NOT NULL DEFAULT '0' COMMENT '抽中字母数量',
  198. `extend` text NOT NULL DEFAULT '',
  199. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  200. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  201. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  202. PRIMARY KEY (`id`)
  203. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='活动[收集字母信息]';
  204. /*!40101 SET character_set_client = @saved_cs_client */;
  205. --
  206. -- Table structure for table `lottery_events_log`
  207. --
  208. DROP TABLE IF EXISTS `lottery_events_log`;
  209. /*!40101 SET @saved_cs_client = @@character_set_client */;
  210. /*!40101 SET character_set_client = utf8 */;
  211. CREATE TABLE `lottery_events_log` (
  212. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'LOGID',
  213. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  214. `type` tinyint(3) NOT NULL DEFAULT '0' COMMENT '1:访问 2:参与 3:获得',
  215. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '获奖用户ID',
  216. `extend` text NOT NULL DEFAULT '',
  217. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  218. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  219. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  220. PRIMARY KEY (`id`)
  221. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='活动日志信息表';
  222. /*!40101 SET character_set_client = @saved_cs_client */;
  223. --
  224. -- Table structure for table `lottery_events_try`
  225. --
  226. DROP TABLE IF EXISTS `lottery_events_try`;
  227. /*!40101 SET @saved_cs_client = @@character_set_client */;
  228. /*!40101 SET character_set_client = utf8 */;
  229. CREATE TABLE `lottery_events_try` (
  230. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'LOGID',
  231. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  232. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '获奖用户ID',
  233. `apply_txt` text NOT NULL COMMENT '用户申请信息',
  234. `extend` text NOT NULL DEFAULT '',
  235. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  236. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  237. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  238. PRIMARY KEY (`id`)
  239. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='活动[试用申请信息]';
  240. /*!40101 SET character_set_client = @saved_cs_client */;
  241. --
  242. -- Table structure for table `lottery_events_user_letters`
  243. --
  244. DROP TABLE IF EXISTS `lottery_events_user_letters`;
  245. /*!40101 SET @saved_cs_client = @@character_set_client */;
  246. /*!40101 SET character_set_client = utf8 */;
  247. CREATE TABLE `lottery_events_user_letters` (
  248. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  249. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  250. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  251. `extend` text NOT NULL DEFAULT '',
  252. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  253. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  254. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  255. PRIMARY KEY (`id`)
  256. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='活动[用户收集字母信息]';
  257. /*!40101 SET character_set_client = @saved_cs_client */;
  258. --
  259. -- Table structure for table `lottery_events_vote`
  260. --
  261. DROP TABLE IF EXISTS `lottery_events_vote`;
  262. /*!40101 SET @saved_cs_client = @@character_set_client */;
  263. /*!40101 SET character_set_client = utf8 */;
  264. CREATE TABLE `lottery_events_vote` (
  265. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  266. `events_id` int(10) unsigned NOT NULL COMMENT '所属活动ID',
  267. `title` varchar(100) NOT NULL DEFAULT '' COMMENT '投票标题',
  268. `img_url` varchar(100) NOT NULL DEFAULT '' COMMENT '投票配图',
  269. `num` int(10) NOT NULL DEFAULT '0' COMMENT '投票数',
  270. `add_num` int(10) NOT NULL DEFAULT '0' COMMENT '作弊投票数',
  271. `extend` text NOT NULL DEFAULT '',
  272. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  273. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  274. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  275. PRIMARY KEY (`id`)
  276. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='活动[投票项]';
  277. /*!40101 SET character_set_client = @saved_cs_client */;
  278. --
  279. -- Table structure for table `lottery_events_vote_user_log`
  280. --
  281. DROP TABLE IF EXISTS `lottery_events_vote_user_log`;
  282. /*!40101 SET @saved_cs_client = @@character_set_client */;
  283. /*!40101 SET character_set_client = utf8 */;
  284. CREATE TABLE `lottery_events_vote_user_log` (
  285. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  286. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  287. `vote_id` varchar(100) NOT NULL DEFAULT '' COMMENT '投票项ID',
  288. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  289. `extend` text NOT NULL DEFAULT '',
  290. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  291. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  292. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  293. PRIMARY KEY (`id`)
  294. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='活动[用户投票记录]';
  295. /*!40101 SET character_set_client = @saved_cs_client */;
  296. --
  297. -- Table structure for table `lottery_prize`
  298. --
  299. DROP TABLE IF EXISTS `lottery_prize`;
  300. /*!40101 SET @saved_cs_client = @@character_set_client */;
  301. /*!40101 SET character_set_client = utf8 */;
  302. CREATE TABLE `lottery_prize` (
  303. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '奖项ID',
  304. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  305. `prize_name` varchar(100) NOT NULL DEFAULT '' COMMENT '奖品名称',
  306. `prize_num` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '奖品数量',
  307. `prize_winning_num` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '已经抽中的数量',
  308. `type` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '状态 1:实物 2:虚拟',
  309. `display` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否显示 0 :不显示 1:显示',
  310. `extend` text NOT NULL DEFAULT '',
  311. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  312. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  313. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  314. PRIMARY KEY (`id`)
  315. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='抽奖奖品表';
  316. /*!40101 SET character_set_client = @saved_cs_client */;
  317. --
  318. -- Table structure for table `lottery_prize_virtual_data`
  319. --
  320. DROP TABLE IF EXISTS `lottery_prize_virtual_data`;
  321. /*!40101 SET @saved_cs_client = @@character_set_client */;
  322. /*!40101 SET character_set_client = utf8 */;
  323. CREATE TABLE `lottery_prize_virtual_data` (
  324. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  325. `prize_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '奖项ID',
  326. `data` text NOT NULL DEFAULT '' COMMENT '奖池数据',
  327. `lottery_data_id` int(11) NOT NULL DEFAULT '0' COMMENT '获奖数据ID',
  328. `extend` text NOT NULL DEFAULT '',
  329. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  330. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  331. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  332. PRIMARY KEY (`id`)
  333. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='奖池数据表';
  334. /*!40101 SET character_set_client = @saved_cs_client */;
  335. --
  336. -- Table structure for table `lottery_pv_uv_log`
  337. --
  338. DROP TABLE IF EXISTS `lottery_pv_uv_log`;
  339. /*!40101 SET @saved_cs_client = @@character_set_client */;
  340. /*!40101 SET character_set_client = utf8 */;
  341. CREATE TABLE `lottery_pv_uv_log` (
  342. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  343. `events_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '活动ID',
  344. `pv_num` int(10) NOT NULL DEFAULT '0' COMMENT 'pv数',
  345. `uv_num` int(10) NOT NULL DEFAULT '0' COMMENT 'uv数',
  346. `date` int(10) unsigned NOT NULL COMMENT '统计日期时间戳',
  347. `extend` text NOT NULL DEFAULT '' COMMENT '扩展字段',
  348. `create_time` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '创建时间',
  349. `update_time` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '更新时间',
  350. `cas_token` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '乐观锁',
  351. PRIMARY KEY (`id`),
  352. UNIQUE KEY `events_id` (`events_id`,`date`)
  353. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='活动PV&UV统计按日';
  354. /*!40101 SET character_set_client = @saved_cs_client */;
  355. --
  356. -- Table structure for table `lottery_user_express`
  357. --
  358. DROP TABLE IF EXISTS `lottery_user_express`;
  359. /*!40101 SET @saved_cs_client = @@character_set_client */;
  360. /*!40101 SET character_set_client = utf8 */;
  361. CREATE TABLE `lottery_user_express` (
  362. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  363. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  364. `phone` varchar(100) NOT NULL DEFAULT '' COMMENT '电话',
  365. `address` text NOT NULL COMMENT '地址',
  366. `user_name` varchar(100) NOT NULL DEFAULT '' COMMENT '收货人姓名',
  367. `extend` text NOT NULL DEFAULT '',
  368. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  369. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  370. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  371. PRIMARY KEY (`id`),
  372. UNIQUE KEY `uid` (`uid`),
  373. UNIQUE KEY `uid_2` (`uid`)
  374. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='用户收货信息';
  375. /*!40101 SET character_set_client = @saved_cs_client */;
  376. --
  377. -- Table structure for table `lottery_user_feedback`
  378. --
  379. DROP TABLE IF EXISTS `lottery_user_feedback`;
  380. /*!40101 SET @saved_cs_client = @@character_set_client */;
  381. /*!40101 SET character_set_client = utf8 */;
  382. CREATE TABLE `lottery_user_feedback` (
  383. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'LOGID',
  384. `events_id` int(10) unsigned NOT NULL COMMENT '所属活动ID',
  385. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  386. `extend` text NOT NULL DEFAULT '',
  387. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  388. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  389. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  390. `status` int(10) unsigned NOT NULL DEFAULT 1 COMMENT '显示状态 1显示 2隐藏',
  391. PRIMARY KEY (`id`)
  392. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='用户反馈信息';
  393. /*!40101 SET character_set_client = @saved_cs_client */;
  394. --
  395. -- Table structure for table `lottery_user_participate_log`
  396. --
  397. DROP TABLE IF EXISTS `lottery_user_participate_log`;
  398. /*!40101 SET @saved_cs_client = @@character_set_client */;
  399. /*!40101 SET character_set_client = utf8 */;
  400. CREATE TABLE `lottery_user_participate_log` (
  401. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'LOGID',
  402. `events_id` int(10) unsigned NOT NULL COMMENT '所属活动ID',
  403. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '获奖用户ID',
  404. `extend` text NOT NULL DEFAULT '',
  405. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  406. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  407. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  408. `audit` int(10) unsigned NOT NULL DEFAULT 1,
  409. PRIMARY KEY (`id`)
  410. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='活动用户参与表';
  411. /*!40101 SET character_set_client = @saved_cs_client */;
  412. -- ----------------------------
  413. -- Table structure for category
  414. -- ----------------------------
  415. DROP TABLE IF EXISTS `category`;
  416. CREATE TABLE `category` (
  417. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  418. `name` varchar(100) NOT NULL COMMENT '分类名',
  419. `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态:1:存在 2:删除',
  420. `extend` text NOT NULL COMMENT '扩展字段',
  421. `create_time` int(10) unsigned NOT NULL COMMENT '创建时间',
  422. `update_time` int(10) unsigned NOT NULL COMMENT '更新时间',
  423. `cas_token` int(10) unsigned NOT NULL COMMENT '乐观锁',
  424. PRIMARY KEY (`id`)
  425. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='平台分类';
  426. --
  427. -- Table structure for table `platform`
  428. --
  429. DROP TABLE IF EXISTS `platform`;
  430. /*!40101 SET @saved_cs_client = @@character_set_client */;
  431. /*!40101 SET character_set_client = utf8 */;
  432. CREATE TABLE `platform` (
  433. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'platformID',
  434. `name` varchar(100) NOT NULL DEFAULT '' COMMENT '平台名称',
  435. `css` varchar(100) NOT NULL DEFAULT '' COMMENT 'css文件名称',
  436. `extend` text NOT NULL DEFAULT '',
  437. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  438. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  439. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  440. PRIMARY KEY (`id`)
  441. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='平台';
  442. /*!40101 SET character_set_client = @saved_cs_client */;
  443. --
  444. -- Table structure for table `platform_bulletin`
  445. --
  446. DROP TABLE IF EXISTS `platform_bulletin`;
  447. /*!40101 SET @saved_cs_client = @@character_set_client */;
  448. /*!40101 SET character_set_client = utf8 */;
  449. CREATE TABLE `platform_bulletin` (
  450. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'bulletinID',
  451. `title` varchar(100) NOT NULL DEFAULT '' COMMENT '标题',
  452. `content` text NOT NULL DEFAULT '' COMMENT '内容',
  453. `operator_uid` int(11) NOT NULL DEFAULT '0' COMMENT '操作ID',
  454. `extend` text NOT NULL DEFAULT '',
  455. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  456. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  457. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  458. PRIMARY KEY (`id`)
  459. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='平台公告';
  460. /*!40101 SET character_set_client = @saved_cs_client */;
  461. --
  462. -- Table structure for table `user_info`
  463. --
  464. DROP TABLE IF EXISTS `user_info`;
  465. /*!40101 SET @saved_cs_client = @@character_set_client */;
  466. /*!40101 SET character_set_client = utf8 */;
  467. CREATE TABLE `user_info` (
  468. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id(本平台UID)',
  469. `passport_uid` varchar(100) NOT NULL DEFAULT '' COMMENT '第三方用户ID',
  470. `groupid` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '分组id',
  471. `is_new` tinyint(1) unsigned NOT NULL COMMENT '是否新用户,0新用户(待获取用户信息) 1老用户',
  472. `nickname` char(255) NOT NULL DEFAULT '' COMMENT '用户的昵称',
  473. `localRemark` char(150) NOT NULL DEFAULT '' COMMENT '本地备注',
  474. `extend` text NOT NULL COMMENT '扩展字段',
  475. `create_time` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '创建时间',
  476. `update_time` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '更新时间',
  477. `cas_token` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '乐观锁',
  478. PRIMARY KEY (`id`)
  479. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='用户基础数据';
  480. /*!40101 SET character_set_client = @saved_cs_client */;
  481. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  482. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  483. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  484. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  485. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  486. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  487. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  488. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  489. -- Dump completed on 2015-12-17 17:36:39