onepage_project_update.sql 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. `lottery_data_id` int(10) unsigned NOT NULL COMMENT '参与活动的数据ID',
  52. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  53. `extend` text NOT NULL COMMENT '扩展字段',
  54. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  55. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  56. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  57. `status` int(10) unsigned NOT NULL DEFAULT 1 COMMENT '显示状态 1显示 2隐藏',
  58. PRIMARY KEY (`id`)
  59. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='用户反馈信息';
  60. /*!40101 SET character_set_client = @saved_cs_client */;
  61. --
  62. -- Table structure for table `lottery_events_help_user`
  63. --
  64. DROP TABLE IF EXISTS `lottery_events_help_user`;
  65. /*!40101 SET @saved_cs_client = @@character_set_client */;
  66. /*!40101 SET character_set_client = utf8 */;
  67. CREATE TABLE `lottery_events_help_user` (
  68. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  69. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  70. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  71. `extend` text NOT NULL COMMENT '扩展字段',
  72. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  73. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  74. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  75. PRIMARY KEY (`id`)
  76. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='助力用户表';
  77. /*!40101 SET character_set_client = @saved_cs_client */;
  78. --
  79. -- Table structure for table `lottery_events_help_user_log`
  80. --
  81. DROP TABLE IF EXISTS `lottery_events_help_user_log`;
  82. /*!40101 SET @saved_cs_client = @@character_set_client */;
  83. /*!40101 SET character_set_client = utf8 */;
  84. CREATE TABLE `lottery_events_help_user_log` (
  85. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  86. `events_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT '所属活动ID',
  87. `help_id` int(11) NOT NULL DEFAULT '0' COMMENT '助力id',
  88. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  89. `extend` text NOT NULL COMMENT '扩展字段',
  90. `create_time` int(10) unsigned NOT NULL DEFAULT 0,
  91. `update_time` int(10) unsigned NOT NULL DEFAULT 0,
  92. `cas_token` int(10) unsigned NOT NULL DEFAULT 0,
  93. PRIMARY KEY (`id`)
  94. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='助力用户日志表';
  95. /*!40101 SET character_set_client = @saved_cs_client */;
  96. ALTER TABLE lottery_events ADD `focus_display` int(10) DEFAULT 1;
  97. ALTER TABLE lottery_events ADD `top_display` int(10) DEFAULT 1;
  98. ALTER TABLE lottery_events ADD `category_id` int(10) DEFAULT 1;
  99. ALTER TABLE lottery_user_participate_log ADD `audit` int(10) DEFAULT 1;
  100. ALTER TABLE lottery_events_forms ADD `audit` int(10) DEFAULT 1;
  101. ALTER TABLE lottery_data ADD `audit` int(10) DEFAULT 2;
  102. ALTER TABLE lottery_data ADD `platform_id` int(10) DEFAULT 2;
  103. ALTER TABLE lottery_events_help_user ADD `num` int(10) DEFAULT 0;
  104. ALTER TABLE lottery_user_feedback ADD `lottery_data_id` int(10) DEFAULT 0;