activity.sql 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. Source Server Version : 50173
  3. Target Server Type : MYSQL
  4. Target Server Version : 50173
  5. File Encoding : 65001
  6. Date: 2016-06-01 13:32:32
  7. */
  8. SET FOREIGN_KEY_CHECKS=0;
  9. -- ----------------------------
  10. -- Table structure for activity_free_shipping
  11. -- ----------------------------
  12. DROP TABLE IF EXISTS `activity_free_shipping`;
  13. CREATE TABLE `activity_free_shipping` (
  14. `id` bigint(11) NOT NULL AUTO_INCREMENT,
  15. `type_id` bigint(11) DEFAULT NULL COMMENT '包邮券类型',
  16. `user_id` bigint(11) DEFAULT NULL COMMENT '用户',
  17. `club_id` bigint(11) DEFAULT NULL COMMENT '会所',
  18. `status` varchar(1) DEFAULT '0' COMMENT '使用状态 0未使用 1已使用',
  19. `enabled_status` varchar(1) DEFAULT '1' COMMENT '启用/禁用状态',
  20. `create_date` datetime DEFAULT NULL COMMENT '创建时间/领取时间',
  21. PRIMARY KEY (`id`)
  22. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='包邮券基础表';
  23. -- ----------------------------
  24. -- Records of activity_free_shipping
  25. -- ----------------------------
  26. -- ----------------------------
  27. -- Table structure for activity_free_shipping_type
  28. -- ----------------------------
  29. DROP TABLE IF EXISTS `activity_free_shipping_type`;
  30. CREATE TABLE `activity_free_shipping_type` (
  31. `id` bigint(11) NOT NULL AUTO_INCREMENT,
  32. `scope` varchar(100) DEFAULT NULL,
  33. `number` int(11) DEFAULT NULL COMMENT '可使用数量',
  34. `start_time` datetime DEFAULT NULL COMMENT '有效期开始时间',
  35. `end_time` datetime DEFAULT NULL COMMENT '有效期截止时间',
  36. `info` text COMMENT '使用须知',
  37. `images` text COMMENT '网站端图片',
  38. `crm_images` text COMMENT 'CRM端图片',
  39. `status` varchar(1) DEFAULT '1' COMMENT '可领取状态 0否 1是',
  40. `enabled_status` varchar(1) DEFAULT '1' COMMENT '可使用状态 0否 1是',
  41. `update_by` bigint(11) DEFAULT NULL COMMENT '最后更新人',
  42. `update_date` datetime DEFAULT NULL COMMENT '最后更新时间',
  43. PRIMARY KEY (`id`)
  44. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='包邮券类型表';
  45. -- ----------------------------
  46. -- Records of activity_free_shipping_type
  47. -- ----------------------------
  48. INSERT INTO `activity_free_shipping_type` VALUES ('1', '全品类', '0', '2016-05-29 00:00:00', '2016-05-30 23:59:59', '<p>\r\n <i class="shuoming">1、在提交订单时勾选<span style="color:#ff0000;">【使用包邮券】</span>,支付订单时使用; </i></p>\r\n<p>\r\n <i class="shuoming">2、本券仅限于“采美365官方网站”或“采美365”公众号内采购使用;</i></p>\r\n<p>\r\n <i class="shuoming">3、本券仅限会所身份用户领取及使用;</i></p>\r\n<p>\r\n <i class="shuoming">4、每个会所身份最多只能拥有一张优惠券,使用并支付后,系统赠送一张包邮券;</i></p>\r\n<p>\r\n <i class="shuoming">5、包邮区域仅限广东省内XX快递可配送范围;</i></p>\r\n<p>\r\n <i class="shuoming">6、深圳采美科技有限公司拥有最终解释权。</i></p>', '', '', '1', '1', '1', '2016-06-01 11:44:00');
  49. INSERT INTO `activity_free_shipping_type` VALUES ('2', '自营类', '2', '2016-06-02 09:47:54', '2016-06-09 09:47:59', null, null, null, '0', '0', '1', '2016-06-01 09:48:12');