onepage_project_update.sql 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. -- ----------------------------
  7. -- Table structure for category
  8. -- ----------------------------
  9. DROP TABLE IF EXISTS `category`;
  10. /*!40101 SET @saved_cs_client = @@character_set_client */;
  11. /*!40101 SET character_set_client = utf8 */;
  12. CREATE TABLE `category` (
  13. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  14. `name` varchar(100) NOT NULL COMMENT '分类名',
  15. `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态:1:存在 2:删除',
  16. `extend` text NOT NULL COMMENT '扩展字段',
  17. `create_time` int(10) unsigned NOT NULL COMMENT '创建时间',
  18. `update_time` int(10) unsigned NOT NULL COMMENT '更新时间',
  19. `cas_token` int(10) unsigned NOT NULL COMMENT '乐观锁',
  20. PRIMARY KEY (`id`)
  21. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='平台分类';
  22. /*!40101 SET character_set_client = @saved_cs_client */;
  23. -- ----------------------------
  24. -- Table structure for focus
  25. -- ----------------------------
  26. DROP TABLE IF EXISTS `focus`;
  27. /*!40101 SET @saved_cs_client = @@character_set_client */;
  28. /*!40101 SET character_set_client = utf8 */;
  29. CREATE TABLE `focus` (
  30. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  31. `platform_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '平台ID',
  32. `index` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序',
  33. `name` varchar(100) NOT NULL COMMENT '名称',
  34. `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态:1:存在 2:删除',
  35. `extend` text NOT NULL COMMENT '扩展字段',
  36. `create_time` int(10) unsigned NOT NULL COMMENT '创建时间',
  37. `update_time` int(10) unsigned NOT NULL COMMENT '更新时间',
  38. `cas_token` int(10) unsigned NOT NULL COMMENT '乐观锁',
  39. PRIMARY KEY (`id`)
  40. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='精彩推荐';
  41. /*!40101 SET character_set_client = @saved_cs_client */;
  42. --
  43. -- Table structure for table `lottery_user_feedback`
  44. --
  45. DROP TABLE IF EXISTS `lottery_user_feedback`;
  46. /*!40101 SET @saved_cs_client = @@character_set_client */;
  47. /*!40101 SET character_set_client = utf8 */;
  48. CREATE TABLE `lottery_user_feedback` (
  49. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'LOGID',
  50. `events_id` int(10) unsigned NOT NULL COMMENT '所属活动ID',
  51. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  52. `extend` text NOT NULL COMMENT '扩展字段',
  53. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  54. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  55. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  56. `status` int(10) unsigned NOT NULL DEFAULT 1 COMMENT '显示状态 1显示 2隐藏',
  57. PRIMARY KEY (`id`)
  58. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='用户反馈信息';
  59. /*!40101 SET character_set_client = @saved_cs_client */;
  60. --
  61. -- Table structure for table `lottery_events_help_user`
  62. --
  63. DROP TABLE IF EXISTS `lottery_events_help_user`;
  64. /*!40101 SET @saved_cs_client = @@character_set_client */;
  65. /*!40101 SET character_set_client = utf8 */;
  66. CREATE TABLE `lottery_events_help_user` (
  67. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  68. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  69. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  70. `extend` text NOT NULL COMMENT '扩展字段',
  71. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  72. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  73. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  74. PRIMARY KEY (`id`)
  75. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='助力用户表';
  76. /*!40101 SET character_set_client = @saved_cs_client */;
  77. --
  78. -- Table structure for table `lottery_events_help_user_log`
  79. --
  80. DROP TABLE IF EXISTS `lottery_events_help_user_log`;
  81. /*!40101 SET @saved_cs_client = @@character_set_client */;
  82. /*!40101 SET character_set_client = utf8 */;
  83. CREATE TABLE `lottery_events_help_user_log` (
  84. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  85. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  86. `help_id` int(11) NOT NULL DEFAULT '0' COMMENT '助力id',
  87. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  88. `extend` text NOT NULL COMMENT '扩展字段',
  89. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  90. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  91. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  92. PRIMARY KEY (`id`)
  93. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='助力用户日志表';
  94. /*!40101 SET character_set_client = @saved_cs_client */;
  95. ALTER TABLE lottery_events ADD `focus_display` int(10) DEFAULT 1;
  96. ALTER TABLE lottery_events ADD `top_display` int(10) DEFAULT 1;
  97. ALTER TABLE lottery_events ADD `category_id` int(10) DEFAULT 1;
  98. ALTER TABLE lottery_user_participate_log ADD `audit` int(10) DEFAULT 1;
  99. ALTER TABLE lottery_events_help_user ADD `num` int(10) DEFAULT 0;