bd_activity_receive.sql 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : localhost_3306
  4. Source Server Version : 50540
  5. Source Host : localhost:3306
  6. Source Database : building
  7. Target Server Type : MYSQL
  8. Target Server Version : 50540
  9. File Encoding : 65001
  10. Date: 2017-08-04 14:03:32
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for `bd_activity_receive` 红包领取记录
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `bd_activity_receive`;
  17. CREATE TABLE `bd_activity_receive` (
  18. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  19. `uid` int(11) NOT NULL,
  20. `activity_id` int(11) NOT NULL COMMENT '活动编号',
  21. `source_id` int(11) NOT NULL COMMENT '获取来源ID',
  22. `amount` decimal(10,2) NOT NULL COMMENT '金额',
  23. `receive_at` int(11) NOT NULL COMMENT '领取时间',
  24. `valid_at` int(11) NOT NULL COMMENT '有效时间',
  25. `updated_at` int(11) NOT NULL COMMENT '最后修改时间',
  26. `status` tinyint(4) NOT NULL COMMENT '0',
  27. PRIMARY KEY (`id`)
  28. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;