|
@@ -1,3 +1,4 @@
|
|
|
+-- 后台用户
|
|
|
DROP TABLE IF EXISTS `mall_admin_user`;
|
|
|
CREATE TABLE `mall_admin_user` (
|
|
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
|
|
@@ -13,6 +14,7 @@ CREATE TABLE `mall_admin_user` (
|
|
|
UNIQUE KEY `username` (`username`) USING BTREE
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
|
|
|
|
|
|
+-- 前端会员
|
|
|
DROP TABLE IF EXISTS `mall_user`;
|
|
|
CREATE TABLE `mall_user` (
|
|
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
|
|
@@ -29,4 +31,20 @@ CREATE TABLE `mall_user` (
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
KEY `username` (`username`),
|
|
|
KEY `phone_number` (`phone_number`)
|
|
|
-) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
|
|
|
+) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
|
|
|
+
|
|
|
+-- 商品分类
|
|
|
+DROP TABLE IF EXISTS `mall_category`;
|
|
|
+CREATE TABLE `mall_category` (
|
|
|
+ `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
|
|
|
+ `name` varchar(255) NOT NULL COMMENT '分类名称',
|
|
|
+ `pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '父类ID',
|
|
|
+ `icon` varchar(255) NOT NULL DEFAULT '' COMMENT '图标',
|
|
|
+ `path` varchar(255) NOT NULL DEFAULT '' COMMENT '路径1,2,5',
|
|
|
+ `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
|
+ `update_time` int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
|
|
|
+ `operate_user` varchar(100) NOT NULL COMMENT '操作人',
|
|
|
+ `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '',
|
|
|
+ `listorder` int(10) unsigned unsigned NOT NULL DEFAULT '0' COMMENT '排序',
|
|
|
+ PRIMARY KEY (`id`) USING BTREE
|
|
|
+) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
|