1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- -- 后台用户
- DROP TABLE IF EXISTS `mall_admin_user`;
- CREATE TABLE `mall_admin_user` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
- `username` varchar(100) NOT NULL COMMENT '用户名',
- `password` char(32) NOT NULL COMMENT '密码',
- `status` tinyint(1) unsigned NOT NULL COMMENT '1正常,0待审,99删除',
- `create_time` int(10) unsigned NOT NULL COMMENT '创建时间',
- `update_time` int(10) NOT NULL COMMENT '更新时间',
- `last_login_time` int(10) NOT NULL COMMENT '最后登录时间',
- `last_login_ip` varchar(100) NOT NULL COMMENT '最后登录ip',
- `operate_user` varchar(100) NOT NULL COMMENT '操作人',
- PRIMARY KEY (`id`),
- 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',
- `username` varchar(100) NOT NULL COMMENT '用户名',
- `phone_number` varchar(20) NOT NULL COMMENT '手机号',
- `password` char(32) NOT NULL COMMENT '密码',
- `ltype` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '登录方式 默认0手机号码登录 1用户密码登录',
- `type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '会话保存天数',
- `sex` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '性别',
- `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
- `update_time` int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
- `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1正常,0待审,99删除',
- `operate_user` varchar(100) NOT NULL COMMENT '操作人',
- PRIMARY KEY (`id`) USING BTREE,
- KEY `username` (`username`),
- KEY `phone_number` (`phone_number`)
- ) 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;
|