|
|
@@ -322,13 +322,12 @@ CREATE TABLE `goods` (
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '商品名称',
|
|
|
`logo` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '商品图片地址',
|
|
|
- `traffic` bigint(20) NOT NULL DEFAULT '0' COMMENT '商品内含多少流量,单位MiB',
|
|
|
+ `traffic` bigint(20) NOT NULL DEFAULT '0' COMMENT '商品内含多少流量,单位Mib',
|
|
|
`score` int(11) NOT NULL DEFAULT '0' COMMENT '商品价值多少积分',
|
|
|
`type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '商品类型:1-流量包、2-套餐',
|
|
|
`price` int(11) NOT NULL DEFAULT '0' COMMENT '商品售价,单位分',
|
|
|
`desc` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '商品描述',
|
|
|
- `start_time` datetime DEFAULT NULL COMMENT '有效期开始',
|
|
|
- `end_time` datetime DEFAULT NULL COMMENT '有效期结束',
|
|
|
+ `days` int(11) NOT NULL DEFAULT '30' COMMENT '有效期',
|
|
|
`is_del` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否已删除:0-否、1-是',
|
|
|
`status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '状态:0-下架、1-上架',
|
|
|
`created_at` datetime DEFAULT NULL COMMENT '创建时间',
|
|
|
@@ -337,6 +336,7 @@ CREATE TABLE `goods` (
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='商品信息表';
|
|
|
|
|
|
|
|
|
+
|
|
|
-- ----------------------------
|
|
|
-- Table structure for `coupon`
|
|
|
-- ----------------------------
|