/* Navicat MySQL Data Transfer Source Server : 127.0.0.1 Source Server Type : MySQL Source Server Version : 80011 Source Host : localhost:3306 Source Schema : litemall2 Target Server Type : MySQL Target Server Version : 80011 File Encoding : 65001 Date: 06/08/2018 20:16:37 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for litemall_groupon_rules -- ---------------------------- DROP TABLE IF EXISTS `litemall_groupon_rules`; CREATE TABLE `litemall_groupon_rules` ( `id` int(11) NOT NULL AUTO_INCREMENT, `goods_id` int(11) NOT NULL COMMENT '商品表的商品ID', `goods_name` varchar(127) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '商品名称', `pic_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '商品图片或者商品货品图片', `discount` decimal(63, 0) NOT NULL COMMENT '优惠金额', `discount_member` int(11) NOT NULL COMMENT '达到优惠条件的人数', `add_time` datetime(0) NOT NULL COMMENT '创建时间', `expire_time` datetime(0) NULL DEFAULT NULL COMMENT '团购过期时间', `deleted` tinyint(1) NULL DEFAULT NULL COMMENT '逻辑删除', `version` int(11) NULL DEFAULT NULL COMMENT '乐观锁字段', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; SET FOREIGN_KEY_CHECKS = 1;