1-20
DDL
/*
Navicat MySQL Data Transfer
Source Server : mylink
Source Server Version : 50726
Source Host : localhost:3306
Source Database : quan_shop
Target Server Type : MYSQL
Target Server Version : 50726
File Encoding : 65001
Date: 2024-04-28 00:03:13
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `quan_accreds`
-- ----------------------------
DROP TABLE IF EXISTS `quan_accreds`;
CREATE TABLE `quan_accreds` (
`accredld` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增1',
`accredName` varchar(50) NOT NULL COMMENT '名称',
`accredlmg` varchar(150) NOT NULL DEFAULT '0' COMMENT '图标',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志(-1:删除 1:有效)',
`createTime` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`accredld`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='权冠宇 商家认证项目表';
-- ----------------------------
-- Records of quan_accreds
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_ad_positions`
-- ----------------------------
DROP TABLE IF EXISTS `quan_ad_positions`;
CREATE TABLE `quan_ad_positions` (
`positionld` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`positionType` tinyint(4) NOT NULL DEFAULT '0' COMMENT '广告类型(1:电脑端 2:微信端3:手机端4:app端5:小程序端)',
`positionName` varchar(100) NOT NULL COMMENT '广告位置名称',
`positionWidth` int(11) NOT NULL COMMENT '建议宽度',
`positionHeight` int(11) NOT NULL DEFAULT '0' COMMENT '建议高度',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效状态(1:有效-1:无效)',
`positionCode` varchar(20) DEFAULT NULL COMMENT '广告位置代码(N/A)',
`apSort` int(11) NOT NULL COMMENT '排序号',
PRIMARY KEY (`positionld`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权冠宇 广告位置表';
-- ----------------------------
-- Records of quan_ad_positions
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_addons`
-- ----------------------------
DROP TABLE IF EXISTS `quan_addons`;
CREATE TABLE `quan_addons` (
`addonld` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`name` varchar(40) NOT NULL COMMENT '插件名称',
`title` varchar(20) NOT NULL COMMENT '插件标题',
`description` text COMMENT '插件描述',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '插件状态(0:未安装 1:启用 2:禁用)',
`conflg` text COMMENT '插件配置参数json',
`author` varchar(40) DEFAULT NULL COMMENT '插件作者',
`version` varchar(20) DEFAULT NULL COMMENT '插件版本号',
`create Time` datetime NOT NULL COMMENT '创建时间',
`dataFlag` tinyint(4) DEFAULT '1' COMMENT '有效标识(1:有效 2:删除)',
`isConflg` tinyint(4) DEFAULT '0' COMMENT '是否配置(1:已配置,0:未配置)',
`update Time` datetime DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`addonld`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='权冠宇 插件表';
-- ----------------------------
-- Records of quan_addons
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_ads`
-- ----------------------------
DROP TABLE IF EXISTS `quan_ads`;
CREATE TABLE `quan_ads` (
`adld` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`adPosltlonld` int(11) NOT NULL DEFAULT '0' COMMENT '广告位置ID',
`adFile` varchar(150) NOT NULL COMMENT '广告文件',
`adName` varchar(100) NOT NULL COMMENT '广告名称',
`adURL` varchar(255) NOT NULL COMMENT '广告网址',
`adStartDate` date NOT NULL COMMENT '广告开始日期',
`adEndDate` date NOT NULL COMMENT '广告结束日期',
`adSort` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
`adClickNum` int(11) NOT NULL DEFAULT '0' COMMENT '广告点击数',
`position Type` tinyint(4) DEFAULT '0' COMMENT '广告类型 (1:电脑端 2:微信端 3:手机端 4:APP端 5:小程序端)',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志(-1:删除 1:有效)',
`create Time` datetime NOT NULL COMMENT '创建时间',
`subTitle` varchar(255) DEFAULT NULL COMMENT '副标题',
PRIMARY KEY (`adld`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='权冠宇 广告表';
-- ----------------------------
-- Records of quan_ads
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_areas`
-- ----------------------------
DROP TABLE IF EXISTS `quan_areas`;
CREATE TABLE `quan_areas` (
`areald` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`parentld` int(11) NOT NULL COMMENT '父id',
`areaName` varchar(100) NOT NULL COMMENT '地区名称',
`isShow` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否显示(0:是 1:否)',
`areaSort` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
`areaKey` char(10) NOT NULL COMMENT '地区首字母',
`areaType` tinyint(4) NOT NULL DEFAULT '1' COMMENT '级别标志(1:省 2:市 3:县区)',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志(-1:删除 1:有效)',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`areald`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权冠宇 区域表';
-- ----------------------------
-- Records of quan_areas
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_article_cats`
-- ----------------------------
DROP TABLE IF EXISTS `quan_article_cats`;
CREATE TABLE `quan_article_cats` (
`catld` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`parentld
catType
isShow
catName
catSort
dataFlag
parentld` int(11) NOT NULL DEFAULT '0' COMMENT '父ID',
`catType` tinyint(4) NOT NULL DEFAULT '0' COMMENT '分类类型(0:普通类型1:系统菜单)',
`isShow` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否显示(0:隐藏1:显示)',
`catName` varchar(20) NOT NULL COMMENT '分类名称',
`catSort` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志',
`createTime` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`catld`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权冠宇 文章分类表';
-- ----------------------------
-- Records of quan_article_cats
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_articles`
-- ----------------------------
DROP TABLE IF EXISTS `quan_articles`;
CREATE TABLE `quan_articles` (
`articleld` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`catld` int(11) NOT NULL COMMENT '分类id',
`articleTitle` varchar(200) NOT NULL COMMENT '文章标题',
`isShow` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否显示(0:隐藏1:显示)',
`articleContent` longtext NOT NULL COMMENT '文章内容',
`articleKey` varchar(200) DEFAULT NULL COMMENT '关键字',
`staffld` int(11) NOT NULL COMMENT '创建者',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效状态(1:有效-1:无效)',
`createTime` datetime NOT NULL COMMENT '创建时间',
`solve` int(10) unsigned DEFAULT '0' COMMENT '觉得文章有帮助的次数',
`unsolve` int(10) unsigned DEFAULT '0' COMMENT '觉得文章没帮助的次数',
`coverlmg` varchar(150) DEFAULT NULL COMMENT '文章封面图片',
`visitorNum` int(10) unsigned DEFAULT '0' COMMENT '浏览数',
`TypeStatus` int(10) DEFAULT '1' COMMENT '布局类型(1:左图右文2:左文右图3:上文下图4:全文 )',
`likeNum` int(10) DEFAULT '0' COMMENT '点赞数',
`catSort` int(11) DEFAULT '0' COMMENT '排序号',
`articleDesc` varchar(600) NOT NULL COMMENT '文章描述',
`isHide` tinyint(4) DEFAULT '0' COMMENT '是否隐藏不可编辑/删除的文章(1:是0:否)',
PRIMARY KEY (`articleld`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权冠宇 文章记录表';
-- ----------------------------
-- Records of quan_articles
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_attributes`
-- ----------------------------
DROP TABLE IF EXISTS `quan_attributes`;
CREATE TABLE `quan_attributes` (
`attrld` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`goodsCatld` int(11) NOT NULL DEFAULT '0' COMMENT '最后一级商品分类ID',
`goodsCatPath` varchar(100) NOT NULL COMMENT '商品分类路径',
`attrName` varchar(100) NOT NULL COMMENT '属性名称',
`attrType` tinyint(4) NOT NULL DEFAULT '0' COMMENT '属性类型(0:输入框1:多选框2:下拉框)',
`attrVal` text COMMENT '属性值',
`attrSort` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
`isShow` tinyint(4) DEFAULT '1' COMMENT '是否显示(1:显示0:不显示)',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效状态(1:有效-1:无效)',
`createTime` datetime NOT NULL COMMENT '创建时间',
`shopld` int(11) DEFAULT '0' COMMENT '店铺ID(如果有值则说明是店铺属性)',
PRIMARY KEY (`attrld`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权冠宇 商品属性表';
-- ----------------------------
-- Records of quan_attributes
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_banks`
-- ----------------------------
DROP TABLE IF EXISTS `quan_banks`;
CREATE TABLE `quan_banks` (
`bankld` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`bankName` varchar(50) NOT NULL COMMENT '银行名称',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效状态(1:有效-1:无效)',
`createTime` datetime NOT NULL COMMENT '创建时间',
`bankimg` varchar(150) DEFAULT NULL COMMENT '银行图标',
`bankCode` varchar(100) DEFAULT NULL COMMENT '银行代码(第三方功能会用到,如用户申请提现,管理员付款到银行卡时会用到)',
`isShow` tinyint(4) DEFAULT '1' COMMENT '使用启动(1:是0:否)',
PRIMARY KEY (`bankld`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权冠宇 银行表';
-- ----------------------------
-- Records of quan_banks
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_brands`
-- ----------------------------
DROP TABLE IF EXISTS `quan_brands`;
CREATE TABLE `quan_brands` (
`brandld` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`brandName` varchar(100) NOT NULL COMMENT '品牌名称',
`brandlmg` varchar(150) NOT NULL COMMENT '品牌图标',
`brandDesc` text COMMENT '品牌介绍',
`createTime` datetime NOT NULL COMMENT '建立时间',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志(-1:删除1:有效)',
`sortNo` int(11) DEFAULT '0' COMMENT '品牌排序号',
PRIMARY KEY (`brandld`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权冠宇 品牌表';
-- ----------------------------
-- Records of quan_brands
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_carts`
-- ----------------------------
DROP TABLE IF EXISTS `quan_carts`;
CREATE TABLE `quan_carts` (
`cartld` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`userld` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
`isCheck` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否选中',
`goodsld` int(11) NOT NULL DEFAULT '0' COMMENT '商品ld',
`goodsSpecld` varchar(200) NOT NULL DEFAULT '0' COMMENT '商品-规格ID',
`cartNum` int(11) NOT NULL DEFAULT '0' COMMENT '商品数量',
PRIMARY KEY (`cartld`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权冠宇 购物车表';
-- ----------------------------
-- Records of quan_carts
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_cash_configs`
-- ----------------------------
DROP TABLE IF EXISTS `quan_cash_configs`;
CREATE TABLE `quan_cash_configs` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`targetType` tinyint(4) NOT NULL DEFAULT '0' COMMENT '提现对象(0:用户1:商家)',
`targetld` int(11) NOT NULL COMMENT '提现对象ID',
`accType` tinyint(4) NOT NULL DEFAULT '0' COMMENT '提现类型(3:银行卡)',
`accTargetld` int(11) NOT NULL DEFAULT '0' COMMENT '银行卡ID(-1:支付宝-2:微信)',
`accAreald` int(11) DEFAULT NULL COMMENT '开卡地区ID',
`accNo` varchar(100) NOT NULL COMMENT '银行卡号',
`accUser` varchar(100) NOT NULL COMMENT '持卡人',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '有效标志(1:有效-1:删除)',
`createTime` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权冠宇 提现账号配置表';
-- ----------------------------
-- Records of quan_cash_configs
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_cash_draws`
-- ----------------------------
DROP TABLE IF EXISTS `quan_cash_draws`;
CREATE TABLE `quan_cash_draws` (
`cashld` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`cashNo` varchar(50) NOT NULL COMMENT '提现单号',
`targetType` tinyint(4) NOT NULL DEFAULT '0' COMMENT '提现对象(0:用户1:商家)',
`targetld` int(11) NOT NULL DEFAULT '0' COMMENT '提现对象ID',
`money` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '金额',
`accType` tinyint(4) NOT NULL DEFAULT '0' COMMENT '提现类型',
`accTargetName` varchar(100) DEFAULT NULL COMMENT '开卡银行名称',
`accAreaName` varchar(100) DEFAULT NULL COMMENT '开卡地区名称',
`accNo` varchar(100) NOT NULL COMMENT '卡号',
`accUser` varchar(100) DEFAULT NULL COMMENT '持卡人',
`cashSatus` tinyint(4) NOT NULL DEFAULT '0' COMMENT '提现状态(-1:提现失败0:待处理1:提现成功)',
`cashRemarks` varchar(255) DEFAULT NULL COMMENT '提现备注',
`cashConfigld` int(11) NOT NULL COMMENT '提现设置对应的id',
`createTime` datetime NOT NULL COMMENT '创建时间',
`commission` decimal(11,2) DEFAULT '0.00' COMMENT '提现手续费',
`actualMoney` decimal(11,2) DEFAULT '0.00' COMMENT '实际到账金额',
`commissionRate` tinyint(4) DEFAULT '0' COMMENT '提现手续费率',
`sendData` text COMMENT '向微信商户号请求的内容',
`returnData` text COMMENT '微信商户号返回的内容',
`returnMsg` varchar(300) DEFAULT '' COMMENT '微信商户返回的结果(内容取自returnData)',
`payTime` datetime DEFAULT NULL COMMENT '付款时间(N/A)',
`payNo` varchar(300) DEFAULT NULL COMMENT '付款流水(商户号返回的)',
`accTargetld` int(11) DEFAULT '0' COMMENT '银行ID(通过这个可以知道银行代码是什么)',
`payFee` int(11) DEFAULT '0' COMMENT '手续费(微信商户号收)',
`incNo` int(11) DEFAULT '0' COMMENT '自增ID(向银行卡付款失败后,再次请求需要做加1操作,和提现申请单号组合使用)',
`queryData` text COMMENT '查询银行卡付款状态请求的数据(N/A)',
`queryReturnData` text COMMENT '查询银行卡付款状态返回的数据',
PRIMARY KEY (`cashld`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权冠宇 提现记录表';
-- ----------------------------
-- Records of quan_cash_draws
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_cat_brands`
-- ----------------------------
DROP TABLE IF EXISTS `quan_cat_brands`;
CREATE TABLE `quan_cat_brands` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`catld` int(11) DEFAULT NULL COMMENT '分类ID',
`brandld` int(11) DEFAULT NULL COMMENT '品牌ID',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权冠宇 分类-品牌表';
-- ----------------------------
-- Records of quan_cat_brands
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_cat_shops`
-- ----------------------------
DROP TABLE IF EXISTS `quan_cat_shops`;
CREATE TABLE `quan_cat_shops` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`shopld` int(11) NOT NULL DEFAULT '0' COMMENT '店铺ID',
`catld` int(11) NOT NULL DEFAULT '0' COMMENT '所属分类ID',
`commissionRate` decimal(11,2) DEFAULT '0.00' COMMENT '商家店铺分类佣金比例',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权冠宇 店铺经营类目表';
-- ----------------------------
-- Records of quan_cat_shops
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_charge_items`
-- ----------------------------
DROP TABLE IF EXISTS `quan_charge_items`;
CREATE TABLE `quan_charge_items` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`chargeMoney` int(11) DEFAULT '0' COMMENT '充值金额',
`giveMoney` decimal(11,1) DEFAULT '0.0' COMMENT '赠送金额',
`itemSort` int(11) DEFAULT '0' COMMENT '排序号',
`dataFlag` tinyint(4) DEFAULT '1' COMMENT '是否有效(1:有效-1:删除)',
`createTime` datetime DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权冠宇 充值项表';
-- ----------------------------
-- Records of quan_charge_items
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_data_cats`
-- ----------------------------
DROP TABLE IF EXISTS `quan_data_cats`;
CREATE TABLE `quan_data_cats` (
`catld` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`catName` varchar(255) NOT NULL COMMENT '数据分类名称',
`dataFlag` tinyint(4) DEFAULT '1' COMMENT '有效标志(1:有效-1:删除)',
`catCode` varchar(255) NOT NULL COMMENT '分类表标记字母',
PRIMARY KEY (`catld`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权冠宇 基础数据分类表';
-- ----------------------------
-- Records of quan_data_cats
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_datas`
-- ----------------------------
DROP TABLE IF EXISTS `quan_datas`;
CREATE TABLE `quan_datas` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`catld` int(11) NOT NULL DEFAULT '0' COMMENT '分类ID',
`dataName` varchar(255) NOT NULL COMMENT '数据名称',
`dataVal` varchar(255) NOT NULL COMMENT '数据值',
`dataSort` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
`dataFlag` tinyint(4) DEFAULT '1' COMMENT '有效标记(1:有效-1:删除)',
`subCatld` int(11) DEFAULT '0' COMMENT '子分类ID',
`subDataVal` int(11) DEFAULT '0' COMMENT '子分类数据内容',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权冠宇 基础数据表';
-- ----------------------------
-- Records of quan_datas
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_express`
-- ----------------------------
DROP TABLE IF EXISTS `quan_express`;
CREATE TABLE `quan_express` (
`expressld` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`expressName` varchar(50) NOT NULL COMMENT '快递名称',
`dataFlag` tinyint(4) NOT NULL DEFAULT '1' COMMENT '删除标志(1:有效-1:删除)',
`expressCode` varchar(50) DEFAULT NULL COMMENT '快递代码(主要用于物流插件)',
`isShow` tinyint(4) DEFAULT '1' COMMENT '是否启用(1:是0:否)',
PRIMARY KEY (`expressld`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权冠宇 快递表。';
-- ----------------------------
-- Records of quan_express
-- ----------------------------
-- ----------------------------
-- Table structure for `quan_favorites`
-- ----------------------------
DROP TABLE IF EXISTS `quan_favorites`;
CREATE TABLE `quan_favorites` (
`favoriteld` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`userld` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
`createTime` datetime NOT NULL COMMENT '创建时间',
`goodsld` int(11) DEFAULT NULL COMMENT '商品ID',
`currShopPrice` decimal(11,2) DEFAULT '0.00' COMMENT '关注时的价格',
PRIMARY KEY (`favoriteld`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='权冠宇 关注商品表';
-- ----------------------------
-- Records of quan_favorites
-- ----------------------------