81-88 DDL查询
/*
Navicat MySQL Data Transfer
Source Server : laoshifu
Source Server Version : 50726
Source Host : localhost:3306
Source Database : li_shop
Target Server Type : MYSQL
Target Server Version : 50726
File Encoding : 65001
Date: 2024-04-28 14:32:01
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `li_styles`
-- ----------------------------
DROP TABLE IF EXISTS `li_styles`;
CREATE TABLE `li_styles` (
`id` int(11) NOT NULL COMMENT '自增ID',
`styleSys` varchar(20) DEFAULT NULL COMMENT '系统类型(home:PC)',
`styleName` varchar(255) NOT NULL COMMENT '风格名称',
`styleAuthor` varchar(255) DEFAULT NULL COMMENT '风格开发者',
`styleShopSite` varchar(11) DEFAULT NULL COMMENT '风格开发者站点',
`styleShopId` int(11) DEFAULT NULL COMMENT '店铺风格Id',
`stylePath` varchar(255) NOT NULL COMMENT '风格目录名称',
`isUse` tinyint(4) NOT NULL COMMENT '是否使用中(1:使用中 0:未使用)',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='李佳丽 系统风格设置表';
-- ----------------------------
-- Records of li_styles
-- ----------------------------
-- ----------------------------
-- Table structure for `li_switchs`
-- ----------------------------
DROP TABLE IF EXISTS `li_switchs`;
CREATE TABLE `li_switchs` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`homeURL` varchar(255) DEFAULT NULL COMMENT '电脑端页面',
`mobileURL` varchar(255) DEFAULT NULL COMMENT '手机端页面',
`wechatURL` varchar(255) DEFAULT NULL COMMENT '微信店页面',
`urlMark` varchar(255) DEFAULT NULL COMMENT '插件标志,插件新增的记录会有插件标记',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='李佳丽 页面切换表';
-- ----------------------------
-- Records of li_switchs
-- ----------------------------
-- ----------------------------
-- Table structure for `li_sys_configs`
-- ----------------------------
DROP TABLE IF EXISTS `li_sys_configs`;
CREATE TABLE `li_sys_configs` (
`configId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`fieldName` varchar(255) DEFAULT NULL COMMENT '字段名称',
`fieldCode` varchar(255) DEFAULT NULL COMMENT '字段代码',
`fieldValue` text COMMENT '字段值',
`fieldType` tinyint(255) DEFAULT '0' COMMENT '字段类型(0:PC版设置 1:微信版设置 2:小程序版设置 44:app版设置)',
PRIMARY KEY (`configId`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='李佳丽 商城配置表';
-- ----------------------------
-- Records of li_sys_configs
-- ----------------------------
-- ----------------------------
-- Table structure for `li_template_msgs`
-- ----------------------------
DROP TABLE IF EXISTS `li_template_msgs`;
CREATE TABLE `li_template_msgs` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`tplType` tinyint(4) NOT NULL DEFAULT '0' COMMENT '模板类型(0:系统消息 1:邮件模板 2:短信模板 3:微信模板)',
`tplCode` varchar(50) NOT NULL COMMENT '模板代码',
`tplExternaId` varchar(255) DEFAULT NULL COMMENT '外部模板ID',
`tplContent` text NOT NULL COMMENT '模板内容',
`isEnbale` tinyint(4) DEFAULT '1' COMMENT '暂无用处',
`tplDesc` text COMMENT '模板描述',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效标志(1:有效 -1:删除)',
`status` tinyint(4) DEFAULT '1' COMMENT '模板状态(1:启用 0:不启用)',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='李佳丽_系统模板表';
-- ----------------------------
-- Records of li_template_msgs
-- ----------------------------
-- ----------------------------
-- Table structure for `li_user_address`
-- ----------------------------
DROP TABLE IF EXISTS `li_user_address`;
CREATE TABLE `li_user_address` (
`addressId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`userId` int(11) NOT NULL COMMENT '会员ID',
`userName` varchar(50) NOT NULL COMMENT '收货人名称',
`userPhone` varchar(20) DEFAULT NULL COMMENT '收货人手机',
`areaIdPath` varchar(255) NOT NULL DEFAULT '0' COMMENT '区域id路径(省id_市id_县id_例如:440000_440100_440106_)',
`areaId` int(11) NOT NULL DEFAULT '0' COMMENT '最后一级区域id',
`userAddress` varchar(255) NOT NULL COMMENT '详细地址',
`isDefault` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否默认地址(0:否 1:是)',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效状态(1:有效 -1:无效)',
`createTime` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`addressId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='李佳丽会员地址表';
-- ----------------------------
-- Records of li_user_address
-- ----------------------------
-- ----------------------------
-- Table structure for `li_user_ranks`
-- ----------------------------
DROP TABLE IF EXISTS `li_user_ranks`;
CREATE TABLE `li_user_ranks` (
`rankId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`rankName` varchar(20) NOT NULL COMMENT '等级名称',
`startScore` int(11) NOT NULL DEFAULT '0' COMMENT '开始积分(大于开始积分)',
`endScore` int(11) NOT NULL DEFAULT '0' COMMENT '结束积分(包含结束积分)',
`userrankImg` varchar(150) DEFAULT NULL COMMENT '等级图标',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志(-1:删除 1:有效)',
`createTime` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`rankId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='李佳丽_会员等级表';
-- ----------------------------
-- Records of li_user_ranks
-- ----------------------------
-- ----------------------------
-- Table structure for `li_user_scores`
-- ----------------------------
DROP TABLE IF EXISTS `li_user_scores`;
CREATE TABLE `li_user_scores` (
`scoreId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`userId` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
`score` int(11) NOT NULL DEFAULT '0' COMMENT '积分数',
`dataSrc` int(11) NOT NULL DEFAULT '0' COMMENT '来源(1:订单 2:评价 3:订单取消返还 4:拒收返还)',
`dataId` int(11) NOT NULL DEFAULT '0' COMMENT '来源记录ID(orderId)',
`dataRemarks` text COMMENT '描述(N/A)',
`scoreType` int(11) NOT NULL DEFAULT '0' COMMENT '积分类型(1:收入 2:支出)',
`createTime` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`scoreId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='李佳丽_会员积分表';
-- ----------------------------
-- Records of li_user_scores
-- ----------------------------
-- ----------------------------
-- Table structure for `li_users`
-- ----------------------------
DROP TABLE IF EXISTS `li_users`;
CREATE TABLE `li_users` (
`userId` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`loginName` varchar(20) NOT NULL COMMENT '账号',
`loginSecret` int(11) NOT NULL COMMENT '安全码',
`loginPwd` varchar(50) NOT NULL COMMENT '密码',
`userType` tinyint(4) NOT NULL DEFAULT '0' COMMENT '用户类型(0:普通会员 1:门店用户)',
` userSex` tinyint(4) DEFAULT '0' COMMENT '性别(0:保密 1:男 2:女)',
`userName` varchar(100) DEFAULT NULL COMMENT '用户名称',
`tureName` varchar(100) DEFAULT NULL COMMENT '真实姓名',
`birthday` date DEFAULT NULL COMMENT '生日',
`userPhoto` varchar(200) DEFAULT NULL COMMENT '会员头像',
`userQQ` varchar(20) DEFAULT NULL COMMENT '用户QQ',
`userPhone` char(11) DEFAULT NULL COMMENT '手机',
`userEmail` varchar(50) DEFAULT NULL COMMENT '邮箱',
`userScore` int(11) DEFAULT '0' COMMENT '用户积分',
`userTotalScore` int(11) DEFAULT '0' COMMENT '用户历史消费积分(跟会员等级有关)',
`lastIp` varchar(16) DEFAULT NULL COMMENT '最后登录IP',
`lastTime` datetime DEFAULT NULL COMMENT '最后登录时间',
`userFrom` tinyint(4) DEFAULT '0' COMMENT '第三方标识(0:系统本身 1:QQ登录)',
`userMoney` decimal(11,2) DEFAULT '0.00' COMMENT '用户钱包余额',
`lockMoney` decimal(11,2) DEFAULT '0.00' COMMENT '冻结金额',
`userStatus` tinyint(4) NOT NULL DEFAULT '1' COMMENT '帐号状态',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志',
`createTime` datetime NOT NULL COMMENT '创建时间',
`payPwd` varchar(100) DEFAULT NULL COMMENT '支付密码',
`wxOpneId` char(100) DEFAULT NULL COMMENT '微信用户openId',
`wxUnionId` char(100) DEFAULT NULL COMMENT '微信用户UnionId',
`distributMoney` decimal(11,2) DEFAULT '0.00' COMMENT '分销佣金',
`isBuyer` tinyint(4) DEFAULT '0' COMMENT '是否购买商品标识(1:有 0:无)',
`rechargeMoney` decimal(11,2) DEFAULT '0.00' COMMENT '充值金额',
`isInform` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否允许举报',
`ucUid` int(11) DEFAULT '0' COMMENT 'Ucenter用户ID',
`weOpenId` char(100) DEFAULT NULL COMMENT '小程序openId',
`isDealer` tinyint(4) DEFAULT '0' COMMENT '是否为经销商(1:是 0:否)',
`distributStatus` tinyint(4) DEFAULT '0' COMMENT '分销商状态(1:分销商 0:非分销商)',
`cancelRemarks` varchar(100) DEFAULT NULL COMMENT '注销备注',
`applyCancelTime` datetime DEFAULT NULL COMMENT '申请注销时间',
PRIMARY KEY (`userId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='李佳丽_会员表';
-- ----------------------------
-- Records of li_users
-- ----------------------------
88个表格