123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- -- ----------------------------
- -- Table structure for discount_collect_record
- -- ----------------------------
- DROP TABLE IF EXISTS `discount_collect_record`;
- CREATE TABLE `discount_collect_record`
- (
- `record_id` int(0) NOT NULL AUTO_INCREMENT COMMENT '领取记录ID',
- `discount_id` varchar(100) NULL DEFAULT NULL COMMENT '抵扣金ID',
- `user_id` varchar(100) NULL DEFAULT NULL COMMENT '用户ID',
- `status` varchar(10) NULL DEFAULT NULL COMMENT '领取状态',
- `create_time` datetime(0) NULL DEFAULT NULL COMMENT '领取时间',
- PRIMARY KEY (`record_id`) USING BTREE
- ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
- -- ----------------------------
- -- Table structure for discount_info
- -- ----------------------------
- DROP TABLE IF EXISTS `discount_info`;
- CREATE TABLE `discount_info`
- (
- `discount_id` varchar(100) NOT NULL COMMENT '抵扣金ID',
- `name` varchar(100) NULL DEFAULT NULL COMMENT '优惠券名称',
- `photo` varchar(300) NULL DEFAULT NULL COMMENT '图片',
- `category` varchar(50) NULL DEFAULT NULL COMMENT '种类',
- `tags` varchar(50) NULL DEFAULT NULL COMMENT '可兑换群体',
- `money` float(6, 2) NULL DEFAULT NULL COMMENT '金额',
- `integral` int(0) NULL DEFAULT NULL COMMENT '需要积分',
- `count` int(0) NULL DEFAULT NULL COMMENT '发布数量',
- `status` int(0) NULL DEFAULT NULL COMMENT '上架状态',
- `start_time` datetime(0) NULL DEFAULT NULL COMMENT '领取开始时间',
- `end_time` datetime(0) NULL DEFAULT NULL COMMENT '领取结束时间',
- `location` varchar(300) NULL DEFAULT NULL COMMENT '领取地点',
- `details` mediumtext NULL DEFAULT NULL COMMENT '详情',
- `community` varchar(50) NULL DEFAULT NULL COMMENT '社区',
- `sellers` varchar(100) NULL DEFAULT NULL COMMENT '商家',
- `strategy` varchar(10) NULL DEFAULT NULL COMMENT '优惠券领取策略',
- `strategy_param` varchar(200) NULL DEFAULT NULL COMMENT '优惠券领取策略参数',
- `remain_count` int(0) NULL DEFAULT NULL COMMENT '剩余数量',
- `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
- `update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
- `create_by` varchar(100) NULL DEFAULT NULL COMMENT '创建人',
- `update_by` varchar(100) NULL DEFAULT NULL COMMENT '修改人',
- `version` int(0) UNSIGNED NULL DEFAULT 0 COMMENT '版本控制字段',
- PRIMARY KEY (`discount_id`) USING BTREE
- ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
|