bd_red_rule.sql 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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:43
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for `bd_red_rule` 红包规则
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `bd_red_rule`;
  17. CREATE TABLE `bd_red_rule` (
  18. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  19. `red_id` int(11) NOT NULL COMMENT '红包活动id',
  20. `usecount` int(11) NOT NULL COMMENT '红包被打开次数',
  21. `joincount` int(11) NOT NULL DEFAULT '0' COMMENT '可参与该活动次数',
  22. `created_at` int(11) NOT NULL COMMENT '创建时间',
  23. `start_price` decimal(10,2) NOT NULL COMMENT '红包最小金额',
  24. `end_price` decimal(10,2) NOT NULL COMMENT '最大金额',
  25. PRIMARY KEY (`id`)
  26. ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  27. -- ----------------------------
  28. -- Records of bd_red_rule
  29. -- ----------------------------