Files
shopxo/config/shopxo.sql

1882 lines
619 KiB
MySQL
Raw Normal View History

2021-11-23 09:21:22 +08:00
/*
Navicat Premium Data Transfer
Source Server :
Source Server Type : MySQL
Source Server Version : 80019
Source Host : 127.0.0.1:3306
2022-02-13 20:44:55 +08:00
Source Schema : shopxo_release
2021-11-23 09:21:22 +08:00
Target Server Type : MySQL
Target Server Version : 80019
File Encoding : 65001
2022-07-09 21:09:07 +08:00
Date: 09/07/2022 21:08:23
2021-11-23 09:21:22 +08:00
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for sxo_admin
-- ----------------------------
DROP TABLE IF EXISTS `sxo_admin`;
CREATE TABLE `sxo_admin` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '管理员id',
`username` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户名',
`login_pwd` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '登录密码',
`login_salt` char(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '登录密码配合加密字符串',
`mobile` char(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机号码',
`email` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '邮箱',
`gender` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '性别0保密1女2男',
`status` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态0正常, 1无效',
`login_total` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '登录次数',
`login_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '最后登录时间',
`role_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '所属角色组',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '管理员';
-- ----------------------------
-- Records of sxo_admin
-- ----------------------------
BEGIN;
2022-07-09 15:56:37 +08:00
INSERT INTO `sxo_admin` VALUES (1, 'admin', 'fa4c35609dbeea0f416eb4c7bfc9ab29', '089927', '', 'xxx@email.com', 0, 0, 1521, 1656928994, 1, 1481350313, 1627524793), (4, 'shopxo', 'ba41e3068d9956e97695a24897819ecd', '310181', '', '', 0, 0, 18, 1650538068, 13, 1580807200, 1616047308);
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-17 14:29:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_answer
-- ----------------------------
DROP TABLE IF EXISTS `sxo_answer`;
CREATE TABLE `sxo_answer` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '联系人',
`tel` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '联系电话',
`title` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题',
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '详细内容',
`reply` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '回复内容',
`is_reply` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否已回复0否, 1是',
`reply_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '回复时间',
`is_show` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否显示0不显示, 1显示',
`access_count` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '访问次数',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `user_id`(`name`) USING BTREE,
INDEX `is_show`(`is_show`) USING BTREE
2022-05-18 22:23:06 +08:00
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户留言/问答';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_answer
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_app_center_nav
-- ----------------------------
DROP TABLE IF EXISTS `sxo_app_center_nav`;
CREATE TABLE `sxo_app_center_nav` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`platform` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pc' COMMENT '所属平台pc PC网站, h5 H5手机网站, ios 苹果APP, android 安卓APP, alipay 支付宝小程序, weixin 微信小程序, baidu 百度小程序, toutiao 头条小程序, qq QQ小程序',
`event_type` tinyint NOT NULL DEFAULT -1 COMMENT '事件类型0 WEB页面, 1 内部页面(小程序或APP内部地址), 2 外部小程序(同一个主体下的小程序appid), 3 打开地图, 4 拨打电话)',
2022-02-12 18:44:59 +08:00
`event_value` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '事件值',
`images_url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '图片地址',
2021-11-23 09:21:22 +08:00
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`desc` char(18) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '描述',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`is_need_login` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否需要登录0否1是',
`sort` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `platform`(`platform`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE
2022-05-18 22:23:06 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 73 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '手机 - 用户中心导航';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_app_center_nav
-- ----------------------------
BEGIN;
2022-05-18 22:23:06 +08:00
INSERT INTO `sxo_app_center_nav` VALUES (1, 'weixin', 1, '/pages/user-order/user-order?id=100', '/static/upload/images/app_center_nav/2019/11/05/1572932149956815.png', '我的订单', '', 1, 0, 0, 1562159178, 1638879567), (2, 'weixin', 1, '/pages/user-favor/user-favor', '/static/upload/images/app_center_nav/2019/07/03/1562157390405145.png', '我的收藏', '', 1, 1, 0, 1562155833, 1562157399), (3, 'weixin', 1, '/pages/user-address/user-address', '/static/upload/images/app_center_nav/2019/07/03/1562157391533252.png', '我的地址', '', 1, 1, 0, 1562155871, 1562157408), (4, 'weixin', 1, '/pages/plugins/distribution/user/user', '/static/upload/images/app_center_nav/2019/07/03/1562157391517979.png', '我的分销', '分享赚取佣金', 1, 1, 0, 1562155901, 1572416957), (5, 'weixin', 1, '/pages/plugins/membershiplevelvip/user/user', '/static/upload/images/app_center_nav/2020/02/01/1580558516351420.png', '我的会员', '', 1, 1, 0, 1562159178, 1592661221), (6, 'weixin', 1, '/pages/plugins/wallet/user/user', '/static/upload/images/app_center_nav/2020/02/01/1580558490671574.png', '我的钱包', '', 1, 1, 0, 1562159178, 1580558500), (7, 'weixin', 1, '/pages/plugins/coupon/user/user', '/static/upload/images/app_center_nav/2019/10/16/1571231187362091.png', '我的卡券', '', 1, 1, 0, 1562159178, 1562157435), (8, 'weixin', 1, '/pages/user-answer-list/user-answer-list', '/static/upload/images/app_center_nav/2019/07/03/1562157391428293.png', '我的留言', '', 1, 1, 0, 1562156178, 1562157435), (9, 'alipay', 1, '/pages/user-order/user-order', '/static/upload/images/app_center_nav/2019/11/05/1572932149956815.png', '我的订单', '', 1, 1, 0, 1562159178, 1572932155), (10, 'alipay', 1, '/pages/user-favor/user-favor', '/static/upload/images/app_center_nav/2019/07/03/1562157390405145.png', '我的收藏', '', 1, 1, 0, 1562155833, 1562157399), (11, 'alipay', 1, '/pages/user-address/user-address', '/static/upload/images/app_center_nav/2019/07/03/1562157391533252.png', '我的地址', '', 1, 1, 0, 1562155871, 1562157408), (12, 'alipay', 1, '/pages/plugins/distribution/user/user', '/static/upload/images/app_center_nav/2019/07/03/1562157391517979.png', '我的分销', '分享赚取佣金', 1, 1, 0, 1562155901, 1572416957), (13, 'alipay', 1, '/pages/plugins/membershiplevelvip/user/user', '/static/upload/images/app_center_nav/2020/02/01/1580558516351420.png', '我的会员', '', 1, 1, 0, 1562159178, 1580558518), (14, 'alipay', 1, '/pages/plugins/wallet/user/user', '/static/upload/images/app_center_nav/2020/02/01/1580558490671574.png', '我的钱包', '', 1, 1, 0, 1562159178, 1580558500), (15, 'alipay', 1, '/pages/plugins/coupon/user/user', '/static/upload/images/app_center_nav/2019/10/16/1571231187362091.png', '我的卡券', '', 1, 1, 0, 1562159178, 1562157435), (16, 'alipay', 1, '/pages/user-answer-list/user-answer-list', '/static/upload/images/app_center_nav/2019/07/03/1562157391428293.png', '我的留言', '', 1, 1, 0, 1562156178, 1562157435), (17, 'toutiao', 1, '/pages/user-order/user-order', '/static/upload/images/app_center_nav/2019/11/05/1572932149956815.png', '我的订单', '', 1, 1, 0, 1562159178, 1572932155), (18, 'toutiao', 1, '/pages/user-favor/user-favor', '/static/upload/images/app_center_nav/2019/07/03/1562157390405145.png', '我的收藏', '', 1, 1, 0, 1562155833, 1562157399), (19, 'toutiao', 1, '/pages/user-address/user-address', '/static/upload/images/app_center_nav/2019/07/03/1562157391533252.png', '我的地址', '', 1, 1, 0, 1562155871, 1562157408), (20, 'toutiao', 1, '/pages/plugins/distribution/user/user', '/static/upload/images/app_center_nav/2019/07/03/1562157391517979.png', '我的分销', '分享赚取佣金', 1, 1, 0, 1562155901, 1572416957), (21, 'toutiao', 1, '/pages/plugins/membershiplevelvip/user/user', '/static/upload/images/app_center_nav/2020/02/01/1580558516351420.png', '我的会员', '', 1, 1, 0, 1562159178, 1580558518), (22, 'toutiao', 1, '/pages/plugins/wallet/user/user', '/static/upload/images/app_center_nav/2020/02/01/1580558490671574.png', '我的钱包', '', 1, 1, 0, 1562159178, 1580558500), (2
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-17 14:29:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_app_home_nav
-- ----------------------------
DROP TABLE IF EXISTS `sxo_app_home_nav`;
CREATE TABLE `sxo_app_home_nav` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`platform` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pc' COMMENT '所属平台pc PC网站, h5 H5手机网站, ios 苹果APP, android 安卓APP, alipay 支付宝小程序, weixin 微信小程序, baidu 百度小程序, toutiao 头条小程序, qq QQ小程序',
`event_type` tinyint NOT NULL DEFAULT -1 COMMENT '事件类型0 WEB页面, 1 内部页面(小程序或APP内部地址), 2 外部小程序(同一个主体下的小程序appid), 3 打开地图, 4 拨打电话)',
2022-02-12 18:44:59 +08:00
`event_value` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '事件值',
`images_url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '图片地址',
2021-11-23 09:21:22 +08:00
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`is_need_login` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否需要登录0否1是',
`bg_color` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'css背景色值',
`sort` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `platform`(`platform`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE
2022-05-18 22:23:06 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 36 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '手机 - 首页导航';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_app_home_nav
-- ----------------------------
BEGIN;
2022-05-18 22:23:06 +08:00
INSERT INTO `sxo_app_home_nav` VALUES (1, 'weixin', 1, '/pages/goods-category/goods-category', '/static/upload/images/app_nav/2018/11/19/2018111915461980516.png', '分类', 1, 0, '#48CFAE', 0, 1542563498, 1592659437), (2, 'weixin', 1, '/pages/plugins/coupon/index/index', '/static/upload/images/app_nav/2019/10/16/1571231655606153.png', '优惠券', 1, 0, '#FF0066', 0, 1542613659, 1592659444), (3, 'weixin', 1, '/pages/user-order/user-order', '/static/upload/images/app_nav/2018/11/19/2018111915482687655.png', '订单', 1, 0, '#CC6633', 0, 1542613706, 1572417702), (4, 'weixin', 1, '/pages/plugins/weixinliveplayer/index/index', '/static/upload/images/app_nav/2020/04/19/1587304154495133.png', '直播', 1, 0, '#FF00CC', 0, 1542613752, 1635418356), (5, 'pc', 4, '17600000000', '/static/upload/images/app_nav/2018/11/19/2018111915461980516.png', '拨打电话', 1, 0, '#FB6E52', 0, 1555913238, 1609165650), (6, 'pc', 3, 'ShopXO|上海浦东新区张江高科技园区XXX号|121.626444|31.20843', '/static/upload/images/app_nav/2018/11/19/2018111915473948001.png', '地图测试', 1, 0, '#48CFAE', 0, 1555913479, 1609165802), (7, 'pc', 0, 'index.php?s=plugins/index/pluginsname/coupon/pluginscontrol/index/pluginsaction/index.html', '/static/upload/images/app_nav/2019/10/16/1571231655606153.png', '优惠券', 1, 0, '#FF0066', 0, 1555914517, 1629617449), (8, 'pc', 0, 'index.php?s=user/index.html', '/static/upload/images/app_nav/2018/11/19/2018111915491258361.png', '我的', 1, 1, '#49acfa', 0, 1555914623, 1629617460), (9, 'alipay', 1, '/pages/goods-category/goods-category', '/static/upload/images/app_nav/2018/11/19/2018111915461980516.png', '分类', 1, 0, '#48CFAE', 0, 1542563498, 1571231781), (10, 'alipay', 1, '/pages/plugins/coupon/index/index', '/static/upload/images/app_nav/2019/10/16/1571231655606153.png', '优惠券', 1, 0, '#FF0066', 0, 1542613659, 1571231802), (11, 'alipay', 1, '/pages/user-order/user-order', '/static/upload/images/app_nav/2018/11/19/2018111915482687655.png', '订单', 1, 0, '#CC6633', 0, 1542613706, 1573648088), (12, 'alipay', 1, '/pages/user/user', '/static/upload/images/app_nav/2018/11/19/2018111915491258361.png', '我的', 1, 0, '#49acfa', 0, 1542613752, 1555913113), (13, 'baidu', 1, '/pages/goods-category/goods-category', '/static/upload/images/app_nav/2018/11/19/2018111915461980516.png', '分类', 1, 0, '#48CFAE', 0, 1542563498, 1571231781), (14, 'baidu', 1, '/pages/plugins/coupon/index/index', '/static/upload/images/app_nav/2019/10/16/1571231655606153.png', '优惠券', 1, 0, '#FF0066', 0, 1542613659, 1571231802), (15, 'baidu', 1, '/pages/user-order/user-order', '/static/upload/images/app_nav/2018/11/19/2018111915482687655.png', '订单', 1, 0, '#CC6633', 0, 1542613706, 1563363613), (16, 'baidu', 1, '/pages/user/user', '/static/upload/images/app_nav/2018/11/19/2018111915491258361.png', '我的', 1, 0, '#49acfa', 0, 1542613752, 1555913113), (17, 'toutiao', 1, '/pages/goods-category/goods-category', '/static/upload/images/app_nav/2018/11/19/2018111915461980516.png', '分类', 1, 0, '#48CFAE', 0, 1542563498, 1571231781), (18, 'toutiao', 1, '/pages/plugins/coupon/index/index', '/static/upload/images/app_nav/2019/10/16/1571231655606153.png', '优惠券', 1, 0, '#FF0066', 0, 1542613659, 1571231802), (19, 'toutiao', 1, '/pages/user-order/user-order', '/static/upload/images/app_nav/2018/11/19/2018111915482687655.png', '订单', 1, 0, '#CC6633', 0, 1542613706, 1563363613), (20, 'toutiao', 1, '/pages/user/user', '/static/upload/images/app_nav/2018/11/19/2018111915491258361.png', '我的', 1, 0, '#49acfa', 0, 1542613752, 1555913113), (21, 'qq', 1, '/pages/goods-category/goods-category', '/static/upload/images/app_nav/2018/11/19/2018111915461980516.png', '分类', 1, 0, '#48CFAE', 0, 1542563498, 1571231781), (22, 'qq', 1, '/pages/plugins/coupon/index/index', '/static/upload/images/app_nav/2019/10/16/1571231655606153.png', '优惠券', 1, 0, '#FF0066', 0, 1542613659, 1571231802), (23, 'qq', 1, '/pages/user-order/user-order', '/static/upload/images/app_nav/2018/11/19/2018111915482687655.png', '订单', 1, 0, '#CC6633', 0,
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-17 14:29:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_article
-- ----------------------------
DROP TABLE IF EXISTS `sxo_article`;
CREATE TABLE `sxo_article` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`title` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题',
`article_category_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '文章分类',
`title_color` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题颜色',
2022-02-12 18:44:59 +08:00
`jump_url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '跳转url地址',
2021-11-23 09:21:22 +08:00
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容',
`images` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '图片数据一维数组json',
`images_count` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '图片数量',
`access_count` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '访问次数',
`is_home_recommended` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否首页推荐0否, 1是',
`seo_title` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'SEO标题',
`seo_keywords` char(130) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'SEO关键字',
`seo_desc` char(230) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'SEO描述',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `title`(`title`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE,
INDEX `access_count`(`access_count`) USING BTREE,
INDEX `image_count`(`images_count`) USING BTREE,
INDEX `article_category_id`(`article_category_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 30 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '文章';
-- ----------------------------
-- Records of sxo_article
-- ----------------------------
BEGIN;
2022-07-09 21:09:07 +08:00
INSERT INTO `sxo_article` VALUES (1, '如何注册成为会员', 7, '', '', 1, '<p>如何注册成为会员</p><p>如何注册成为会员</p><p>如何注册成为会员</p><p>如何注册成为会员</p>', '[]', 0, 265, 1, '', '', '', 1484965691, 1534228456), (3, '积分细则', 7, '#FF0000', '', 1, '<p>积分细则</p><p>积分细则</p><p>积分细则</p><p>积分细则</p><p>积分细则</p><p>积分细则</p><p>积分细则</p>', '[]', 0, 107, 1, '', '', '', 1484985139, 1534228496), (4, '积分兑换说明', 17, '', '', 1, '<p>积分兑换说明</p><p>积分兑换说明</p><p>积分兑换说明</p><p>积分兑换说明</p><p>积分兑换说明</p><p>积分兑换说明</p>', '[]', 0, 55, 1, '', '', '', 1484989903, 1534228520), (5, '如何搜索', 7, '', '', 1, '<p>如何搜索</p><p>如何搜索</p><p>如何搜索</p><p>如何搜索</p><p>如何搜索</p><p>如何搜索</p><p>如何搜索</p>', '[]', 0, 98, 1, '', '', '', 1485064767, 1534228544), (6, '忘记密码', 17, '', '', 1, '<p>忘记密码</p><p>忘记密码</p><p>忘记密码</p><p>忘记密码</p><p>忘记密码</p>', '[]', 0, 30, 1, '', '', '', 1485073500, 1534228567), (7, '如何管理店铺', 10, '', '', 1, '<p>如何管理店铺</p><p>如何管理店铺</p><p>如何管理店铺</p><p>如何管理店铺</p><p>如何管理店铺</p><p>如何管理店铺</p>', '[]', 0, 85, 1, '', '', '', 1487819252, 1534228589), (8, '查看售出商品', 10, '', '', 1, '<p>查看售出商品</p><p>查看售出商品</p><p>查看售出商品</p><p>查看售出商品</p><p>查看售出商品</p>', '[]', 0, 63, 1, '', '', '', 1487819408, 1534228614), (9, '如何发货', 10, '#CC0066', '', 1, '<p>如何发货</p><p>如何发货</p><p>如何发货</p><p>如何发货</p><p>如何发货</p>', '', 0, 49, 1, '', '', '', 1487920130, 1545500851), (10, '商城商品推荐', 10, '', '', 1, '<p>商城商品推荐</p><p>商城商品推荐</p><p>商城商品推荐</p><p>商城商品推荐</p><p>商城商品推荐</p>', '[]', 0, 24, 1, '', '', '', 1534228650, 1534228650), (11, '如何申请开店', 10, '', '', 1, '<p>如何申请开店</p><p>如何申请开店</p><p>如何申请开店</p><p>如何申请开店</p>', '[]', 0, 15, 1, '', '', '', 1534228676, 1534228676), (12, '分期付款', 16, '', '', 1, '<p>分期付款</p><p>分期付款</p><p>分期付款</p><p>分期付款</p><p>分期付款</p>', '[]', 0, 44, 1, '', '', '', 1534228694, 1534228694), (13, '邮局汇款', 16, '', '', 1, '<p>邮局汇款</p><p>邮局汇款</p><p>邮局汇款</p><p>邮局汇款</p><p>邮局汇款</p>', '[]', 0, 45, 1, '', '', '', 1534228710, 1534228710), (14, '公司转账', 16, '', '', 1, '<p>公司转账</p><p>公司转账</p><p>公司转账</p><p>公司转账</p><p>公司转账</p>', '[]', 0, 47, 1, '', '', '', 1534228732, 1534228732), (15, '如何注册支付宝', 16, '', '', 1, '<p>如何注册支付宝</p><p>如何注册支付宝</p><p>如何注册支付宝</p><p>如何注册支付宝</p><p>如何注册支付宝</p>', '[]', 0, 35, 1, '', '', '', 1534228748, 1534228748), (16, '在线支付', 16, '', '', 1, '<p>在线支付</p><p>在线支付</p><p>在线支付</p><p>在线支付</p><p>在线支付</p>', '[]', 0, 40, 1, '', '', '', 1534228764, 1534228764), (17, '联系卖家', 17, '', '', 1, '<p>联系卖家</p><p>联系卖家</p><p>联系卖家</p><p>联系卖家</p><p>联系卖家</p><p>联系卖家</p>', '[]', 0, 11, 1, '', '', '', 1534228781, 1534228781), (18, '退换货政策', 17, '', '', 1, '<p>退换货政策</p><p>退换货政策</p><p>退换货政策</p><p>退换货政策</p><p>退换货政策</p>', '[]', 0, 6, 1, '', '', '', 1534228802, 1534228802), (19, '退换货流程', 17, '', '', 1, '<p>退换货流程</p><p>退换货流程</p><p>退换货流程</p><p>退换货流程</p><p>退换货流程</p>', '[]', 0, 3, 1, '', '', '', 1534228850, 1534228850), (20, '返修/退换货', 17, '', '', 1, '<p>返修/退换货</p><p>返修/退换货</p><p>返修/退换货</p><p>返修/退换货</p><p>返修/退换货</p>', '[]', 0, 37, 1, '', '', '', 1534228867, 1534228867), (21, '退款申请', 17, '', '', 1
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-17 14:29:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_article_category
-- ----------------------------
DROP TABLE IF EXISTS `sxo_article_category`;
CREATE TABLE `sxo_article_category` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '分类id',
`pid` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '父id',
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`sort` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '顺序',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `pid`(`pid`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 25 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '文章分类';
-- ----------------------------
-- Records of sxo_article_category
-- ----------------------------
BEGIN;
INSERT INTO `sxo_article_category` VALUES (7, 0, '帮助中心', 1, 0, 0, 1545501262), (10, 0, '店主之家', 1, 0, 0, 1607494981), (16, 0, '支付方式', 1, 0, 1482840545, 1534228311), (17, 0, '售后服务', 1, 0, 1482840557, 1605774851), (18, 0, '客服中心', 1, 0, 1482840577, 1605775056), (24, 0, '关于我们', 1, 0, 1483951541, 1605775135);
COMMIT;
2021-10-17 14:29:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_attachment
-- ----------------------------
DROP TABLE IF EXISTS `sxo_attachment`;
CREATE TABLE `sxo_attachment` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`title` char(160) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`original` char(160) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '原始名称',
`path_type` char(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '路径标记',
2022-05-18 22:23:06 +08:00
`size` bigint UNSIGNED NOT NULL DEFAULT 0 COMMENT '大小单位b',
2021-11-23 09:21:22 +08:00
`ext` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '类型(后缀名)',
`type` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '类型file文件, image图片, scrawl涂鸦, video视频, remote远程抓取文件',
2022-02-12 18:44:59 +08:00
`url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'url路径',
2021-11-23 09:21:22 +08:00
`hash` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'hash值',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `path_type`(`path_type`) USING BTREE,
INDEX `type`(`type`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 1462 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '附件';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_attachment
-- ----------------------------
BEGIN;
2022-07-09 15:56:37 +08:00
INSERT INTO `sxo_attachment` VALUES (1, '1547458876723311.mp4', '1547458876723311.mp4', 'goods', 5212749, '.mp4', 'video', '/static/upload/video/goods/2019/01/14/1547458876723311.mp4', '7a926ee38e8c53b128b6ea9559ae0af95324dbbb4e8b8bff55c8020b72a8261e', 1561538565), (2, '2018111915461980516.png', '2018111915461980516.png', 'app_nav', 730, '.png', 'image', '/static/upload/images/app_nav/2018/11/19/2018111915461980516.png', '7b7c3e3b0dcad495d0929f3c7b868aa08e753d7ed32e69c680479a31b8530ac4', 1561538565), (3, '2018111915473948001.png', '2018111915473948001.png', 'app_nav', 894, '.png', 'image', '/static/upload/images/app_nav/2018/11/19/2018111915473948001.png', 'bb122d0a92cc8472561ded9febb86704777541b0cc5f2582a2a78b51fb9c96f4', 1561538565), (4, '2018111915482687655.png', '2018111915482687655.png', 'app_nav', 1430, '.png', 'image', '/static/upload/images/app_nav/2018/11/19/2018111915482687655.png', '6ff6f72142d89359a57d63c7684e40f06f4a76f71648a745b8c9607b0b04e486', 1561538565), (5, '2018111915491258361.png', '2018111915491258361.png', 'app_nav', 879, '.png', 'image', '/static/upload/images/app_nav/2018/11/19/2018111915491258361.png', 'd76f8244968847868b66cd055f03a29afc3476e5385cef6b27351df7f54f98de', 1561538565), (6, '1551064260180298.jpeg', '1551064260180298.jpeg', 'brand', 2393, '.jpeg', 'image', '/static/upload/images/brand/2019/02/25/1551064260180298.jpeg', '858f2f5aa01d2cecdc907b93a99765b8dccc6a8d1015a0ab048ad2a46c96e65e', 1561538565), (7, '1551064277207182.jpeg', '1551064277207182.jpeg', 'brand', 3063, '.jpeg', 'image', '/static/upload/images/brand/2019/02/25/1551064277207182.jpeg', 'b1a4f186af72f1a2bb6cb425c5eff59c10fe11289a91944f016b0156021e55e6', 1561538565), (8, '1547448705165706.png', '1547448705165706.png', 'common', 8725, '.png', 'image', '/static/upload/images/common/2019/01/14/1547448705165706.png', '3e4a6cf6ea3ed26836a59275cdbe58d441109717dd9b961bd912cbc5f336c556', 1561538565), (9, '1547448728921121.jpg', '1547448728921121.jpg', 'common', 43556, '.jpg', 'image', '/static/upload/images/common/2019/01/14/1547448728921121.jpg', '829a7f9988db882fbd643ffdbd9a646e169b31f89641b3d4904338758016c2b4', 1561538565), (10, '1547448748316693.png', '1547448748316693.png', 'common', 21102, '.png', 'image', '/static/upload/images/common/2019/01/14/1547448748316693.png', '2db8ea9424e63d4a2affcd0ac52f8f0e89c417f5725833a97d5afd534809d9b4', 1561538565), (11, '1554805439263794.jpeg', '1554805439263794.jpeg', 'common', 19885, '.jpeg', 'image', '/static/upload/images/common/2019/04/09/1554805439263794.jpeg', 'f4b731035bac0627508caa101e1f537d25592c5201455647d2f1d1c5b7c3e3c4', 1561538565), (12, '1558025141249118.png', '1558025141249118.png', 'common', 146965, '.png', 'image', '/static/upload/images/common/2019/05/17/1558025141249118.png', '316b56dec84b3c8dcc01b7672c6dad6eff88a518495f6cf81ccf45e58306bf58', 1561538565), (13, '1558062481107570.jpg', '1558062481107570.jpg', 'common', 67729, '.jpg', 'image', '/static/upload/images/common/2019/05/17/1558062481107570.jpg', '66feea05a2fb10cb5983f4df2deeec6a35b5453876c14b7fabe62dbb3528d93c', 1561538565), (14, '1558072588843696.jpg', '1558072588843696.jpg', 'common', 61648, '.jpg', 'image', '/static/upload/images/common/2019/05/17/1558072588843696.jpg', '18739da62d47b0062eef55bff5464809ac18bbcf500c18e5e130661ff40ad223', 1561538565), (15, '1558073623385520.jpg', '1558073623385520.jpg', 'common', 83272, '.jpg', 'image', '/static/upload/images/common/2019/05/17/1558073623385520.jpg', '49acf5646f5ea6d7daf439fbea4cc9421d2d40f5979203a554e36a1da462ce7f', 1561538565), (16, '1558073623641199.jpg', '1558073623641199.jpg', 'common', 76591, '.jpg', 'image', '/static/upload/images/common/2019/05/17/1558073623641199.jpg', 'ffdf93c767c65745d2e0cd1694548f689f6f0b9108c5b6d19f499f2bbe7e6417', 1561538565), (17, '1533779966550231.jpeg', '1533779966550231.jpeg', 'customview', 23584, '.jpeg', 'image', '/static/upload/images/customview/image/2018/08/09/1533779966550231.jpeg', '2aa35a2f5037edba292bee25bc693c30422e969a13ce9d2228224efa7cfc9175', 1561538565), (18, '20180917104528_logo.png', '20180917104528_logo.png', 'expr
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-17 14:29:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_brand
-- ----------------------------
DROP TABLE IF EXISTS `sxo_brand`;
CREATE TABLE `sxo_brand` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
2022-02-12 18:44:59 +08:00
`logo` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'logo图标',
2021-11-23 09:21:22 +08:00
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
2022-02-12 18:44:59 +08:00
`describe` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '描述',
`website_url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '官网地址',
2021-11-23 09:21:22 +08:00
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`sort` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '顺序',
`seo_title` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'SEO标题',
`seo_keywords` char(130) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'SEO关键字',
`seo_desc` char(230) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'SEO描述',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '品牌';
-- ----------------------------
-- Records of sxo_brand
-- ----------------------------
BEGIN;
INSERT INTO `sxo_brand` VALUES (1, '/static/upload/images/brand/2019/02/25/1551064260180298.jpeg', '强生', '强生公司一直注重在中国的发展,强生(中国)有限公司1992年1月在上海闵行经济技术开发区注册成立,注册资本超过一亿美元,是强生公司在中国大陆设立的首家独资企业。', 'https://www.johnsonsbaby.com.cn/', 1, 0, '', '', '', 1551064263, 1610346871), (2, '/static/upload/images/brand/2019/02/25/1551064277207182.jpeg', '佳洁士', '佳洁士是享誉全球的口腔护理品牌,旗下有牙膏,牙刷,牙贴和漱口水等多种产品。上佳洁士官网,了解更多佳洁士产品和口腔保健的资讯。', 'https://www.crest.com.cn/', 1, 0, '', '', '', 1551064299, 1610346851), (3, '', '阿迪达斯', '阿迪达斯一般指adidas。adidas阿迪达斯创办于1949年是德国运动用品制造商阿迪达斯AG成员公司。以其创办人阿道夫·阿迪·达斯勒Adolf Adi Dassler', 'https://www.adidas.com.cn/', 1, 0, '', '', '', 1610019864, 1610351690);
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_brand_category
-- ----------------------------
DROP TABLE IF EXISTS `sxo_brand_category`;
CREATE TABLE `sxo_brand_category` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '分类id',
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`sort` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '顺序',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 32 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '品牌分类';
-- ----------------------------
-- Records of sxo_brand_category
-- ----------------------------
BEGIN;
INSERT INTO `sxo_brand_category` VALUES (7, '母婴用品', 1, 0, 0, 1606397242), (10, '运动健康', 1, 0, 0, 1610281945), (16, '食品饮料', 1, 0, 1482840545, 1535684635), (17, '珠宝手表', 1, 0, 1482840557, 1610281948), (18, '个护化妆', 1, 0, 1482840577, 1605775417), (24, '家用电器', 1, 0, 1483951541, 1535684669), (25, '数码办公', 1, 0, 1535684676, 0), (26, '服装鞋帽', 1, 0, 1535684688, 1605775408), (27, '家居家装', 1, 0, 1535684701, 1605775405), (28, '厨房餐饮', 1, 0, 1535684707, 1535684722), (29, '汽车用品', 1, 0, 1535684729, 0), (30, '虚拟充值', 1, 0, 1535684745, 1605775402), (31, '其他', 1, 0, 1535684797, 1605775399);
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_brand_category_join
-- ----------------------------
DROP TABLE IF EXISTS `sxo_brand_category_join`;
CREATE TABLE `sxo_brand_category_join` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`brand_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '品牌id',
`brand_category_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '分类id',
`add_time` int UNSIGNED NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `brand_id`(`brand_id`) USING BTREE,
INDEX `brand_category_id`(`brand_category_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 56 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '品牌分类关联';
-- ----------------------------
-- Records of sxo_brand_category_join
-- ----------------------------
BEGIN;
INSERT INTO `sxo_brand_category_join` VALUES (19, 4, 16, 1598276011), (29, 5, 10, 1598276166), (51, 2, 18, 1610346851), (52, 1, 7, 1610346871), (53, 1, 18, 1610346871), (54, 1, 27, 1610346871), (55, 3, 10, 1610351690);
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_cart
-- ----------------------------
DROP TABLE IF EXISTS `sxo_cart`;
CREATE TABLE `sxo_cart` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`user_id` int UNSIGNED NULL DEFAULT 0 COMMENT '用户id',
`goods_id` int UNSIGNED NULL DEFAULT 0 COMMENT '商品id',
`title` char(160) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题',
2022-02-12 18:44:59 +08:00
`images` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '封面图片',
2021-11-23 09:21:22 +08:00
`original_price` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '原价',
`price` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '销售价格',
`stock` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '购买数量',
`spec` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '规格',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE,
INDEX `goods_id`(`goods_id`) USING BTREE,
INDEX `title`(`title`) USING BTREE,
INDEX `stock`(`stock`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 292 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '购物车';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_cart
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_config
-- ----------------------------
DROP TABLE IF EXISTS `sxo_config`;
CREATE TABLE `sxo_config` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '基本设置id',
`value` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '',
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
2022-02-12 18:44:59 +08:00
`describe` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '描述',
2021-11-23 09:21:22 +08:00
`error_tips` char(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '错误提示',
`type` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '类型admin后台, home前台',
`only_tag` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '唯一的标记',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `only_tag`(`only_tag`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = MyISAM AUTO_INCREMENT = 250 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '基本配置参数';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_config
-- ----------------------------
BEGIN;
2022-07-09 15:56:37 +08:00
INSERT INTO `sxo_config` VALUES (15, '15', '分页数量', '分页显示数量', '分页不能超过3位数', 'admin', 'common_page_size', 1657352121), (59, '1', '订单商品扣减库存规则', '需扣减库存开启方可有效,默认订单支付成功', '', 'common', 'common_deduction_inventory_rules', 1638871724), (60, '1', '是否扣减库存', '建议不要随意修改,以免造成库存数据错乱,关闭不影响库存回滚', '', 'common', 'common_is_deduction_inventory', 1638871724), (11, '0', 'Excel编码', 'excel模块编码选择', '请选择编码', 'admin', 'admin_excel_charset', 1657352121), (16, 'ShopXO企业级B2C电商系统提供商 - 演示站点', '站点标题', '浏览器标题一般不超过80个字符', '站点标题不能为空', 'home', 'home_seo_site_title', 1657352039), (17, '商城系统,开源电商系统,免费电商系统,PHP电商系统,商城系统,B2C电商系统,B2B2C电商系统', '站点关键字', '一般不超过100个字符多个关键字以半圆角逗号 [ , ] 隔开', '站点关键字不能为空', 'home', 'home_seo_site_keywords', 1657352039), (18, 'ShopXO是国内领先的商城系统提供商为企业提供php商城系统、微信商城、小程序。', '站点描述', '站点描述一般不超过200个字符', '站点描述不能为空', 'home', 'home_seo_site_description', 1657352039), (19, '沪ICP备xxx号', 'ICP证书号', '沪ICP备xxx号', '', 'home', 'home_site_icp', 1657351902), (20, '', '底部统计代码', '支持html可用于添加流量统计代码', '', 'home', 'home_statistics_code', 0), (21, '1', '站点状态', '可暂时将站点关闭,其他人无法访问,但不影响管理员访问后台', '请选择站点状态', 'home', 'home_site_state', 1657351902), (22, '升级中...', '关闭原因', '支持html当网站处于关闭状态时关闭原因将显示在前台', '', 'home', 'home_site_close_reason', 1657351902), (23, 'Asia/Shanghai', '默认时区', '默认 亚洲/上海 [标准时+8]', '请选择默认时区', 'common', 'common_timezone', 1657351902), (24, '<div style=\"background: rgb(255 224 224 / 60%);color: #f00;padding: 2px 5px;text-align:left;font-size: 12px;position: fixed;bottom: 0px;left: 0px;width: 195px;z-index: 100;border-top-right-radius: 3px;border: 1px solid #fc9797;\">\r\n演示站点请勿支付可在后台站点配置->基础配置(底部代码)修改</div>', '底部代码', '支持html可用于添加流量统计代码', '', 'home', 'home_footer_info', 1657351902), (28, 'ShopXO', '站点名称', '', '站点名称不能为空', 'home', 'home_site_name', 1657351902), (29, '0', '链接模式', '非兼容模式请确保配置好伪静态规则', '请选择url模式', 'home', 'home_seo_url_model', 1657352039), (25, '20480000', '图片最大限制', '单位B [上传图片还受到服务器空间PHP配置最大上传 20M 限制]', '请填写图片上传最大限制', 'home', 'home_max_limit_image', 1629514223), (26, '51200000', '文件最大限制', '单位B [上传文件还受到服务器空间PHP配置最大上传 20M 限制]', '请填写文件上传最大限制', 'home', 'home_max_limit_file', 1629514223), (27, '102400000', '视频最大限制', '单位B [上传视频还受到服务器空间PHP配置最大上传 20M 限制]', '请填写视频上传最大限制', 'home', 'home_max_limit_video', 1629514223), (30, 'html', '伪静态后缀', '链接后面的后缀别名,默认 [ html ]', '小写字母不能超过8个字符', 'home', 'home_seo_url_html_suffix', 1657352039), (31, '0', '用户注册开启审核', '默认关闭,开启后用户注册需要审核通过方可登录', '请选择用户注册开启审核', 'common', 'common_register_is_enable_audit', 1626017004), (32, '/static/upload/images/common/2019/01/14/1547448748316693.png', '手机端logo', '支持 [jpg, png, gif]建议220x66px', '请上传手机端网站logo', 'home', 'home_site_logo_wap', 1657351902), (33, '/static/upload/images/common/2019/01/14/1547448705165706.png', '电脑端logo', '支持 [jpg, png, gif]建议220x
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-17 14:29:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_custom_view
-- ----------------------------
DROP TABLE IF EXISTS `sxo_custom_view`;
CREATE TABLE `sxo_custom_view` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
2021-12-26 13:16:01 +08:00
`title` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题',
2021-11-23 09:21:22 +08:00
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`is_header` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否包含头部0否, 1是',
`is_footer` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否包含尾部0否, 1是',
`is_full_screen` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否满屏0否, 1是',
`images` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '图片数据一维数组json',
`images_count` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '图片数量',
`access_count` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '访问次数',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `title`(`title`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE,
INDEX `access_count`(`access_count`) USING BTREE,
INDEX `image_count`(`images_count`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '自定义页面';
-- ----------------------------
-- Records of sxo_custom_view
-- ----------------------------
BEGIN;
2022-07-09 15:56:37 +08:00
INSERT INTO `sxo_custom_view` VALUES (1, '测试自定义页面22沙发上冬瓜豆腐东方红甘肃光合谷 vV 币 vv 小白菜 v 吧俄国人搞活动个人风格 VC 不超过吧都是', '<p><img src=\"/static/upload/images/customview/image/2018/08/09/1533779966550231.jpeg\" title=\"1533779966550231.jpeg\" alt=\"1.jpeg\"/></p><p><span style=\"color: rgb(255, 0, 0);\">ShopXO</span></p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \">秀,身材苗条!</span></p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \"></span></p><p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">在欧美的排版业界中,使用 Arial 的作品意即是「不使用 Helvetica 的作品」,会被认為是设计师对字体的使用没有概念或是太容易妥协,基本上我大致也是同意。</p><p style=\"box-sizing: border-box; margin-top: 1.6rem; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \"><br/></p><p style=\"box-sizing: border-box; margin-top: 1.6rem; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">因為 Helvetica 只有 Mac 上才有內建Windows 用戶除非花錢買,不然是沒有 Helvetica 能用,所以使用 Arial 的設計師往往被看成是不願意對 Typography 花錢,專業素養不到家的人。除了在確保網頁相容性等絕對必需的情況外,幾乎可以說是不應該使用的字體。</p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \"><br/></span></p><p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">在欧美的排版业界中,使用 Arial 的作品意即是「不使用 Helvetica 的作品」,会被认為是设计师对字体的使用没有概念或是太容易妥协,基本上我大致也是同意。</p><p style=\"box-sizing: border-box; margin-top: 1.6rem; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">因為 Helvetica 只有 Mac 上才有內建Windows 用戶除非花錢買,不然是沒有 Helvetica 能用,所以使用 Arial 的設計師往往被看成是不願意對 Typography 花錢,專業素養不到家的人。除了在確保網頁相容性等絕對必需的情況外,幾乎可以說是不應該使用的字體。</p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \"><br/></span></p><p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">在欧美的排版业界中,使用 Arial 的作品意即是「不使用 Helvetica 的作品」,会被认為是设计师对字体的使用没有概念或是太容易妥协,基本上我大致也是同意。</p><p style=\"box-sizing: border-box; margin-top: 1.6rem; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">因為 Helvetica 只有 Mac 上才有內建Windows 用戶除非花錢買,不然是沒有 Helvetica 能用,所以使用 Arial 的設計師往往被看成是不願意對 Typography 花錢,專業素養不到家的人。除了在確保網頁相容性等絕對必需的情況外,幾乎可以說是不應該使用的字體。</p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \"><br/></span></p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \"><br/></span></p><p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">在欧美的排版业界中,使用 Arial 的作品意即是「不使用 Helvetica 的作品」,会被认為是设计师对字体的使用没有概念或是太容易妥协,基本上我大致也是同意。</p><p style=\"box-sizing: border-box; margin-top: 1.6rem; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">因為 Helvetica 只有 Mac 上才有內建Windows 用戶除非花錢買,不然是沒有 Helvetica 能用,所以使用 Arial 的設計師往往被看成是不願意對 Typography 花錢專業素養不到家的人。除了在確保網頁相容<E79BB8><E5AEB9>
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_design
-- ----------------------------
DROP TABLE IF EXISTS `sxo_design`;
CREATE TABLE `sxo_design` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
2022-02-12 18:44:59 +08:00
`logo` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'logo',
2021-11-23 09:21:22 +08:00
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`config` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '页面配置信息',
`access_count` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '访问次数',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`is_header` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否含头部0否1是',
`is_footer` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否含尾部0否1是',
`seo_title` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'SEO标题',
`seo_keywords` char(130) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'SEO关键字',
`seo_desc` char(230) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'SEO描述',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `name`(`name`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE,
INDEX `is_header`(`is_header`) USING BTREE,
INDEX `is_footer`(`is_footer`) USING BTREE
2022-04-21 23:31:16 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 24 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '页面设计';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_design
-- ----------------------------
BEGIN;
2022-07-09 15:56:37 +08:00
INSERT INTO `sxo_design` VALUES (1, 'https://d1.shopxo.vip/static/upload/images/plugins_shop/user_shop/4148/2021/04/15/1618475981109734.jpg', '默认页面01182004', '[{\"value\":\"9:3\",\"status\":0,\"config\":{\"style_background_color\":\"\",\"style_border_color\":\"\",\"style_md_border_radius\":\"\",\"style_md_border_width_top\":\"\",\"style_md_border_width_right\":\"\",\"style_md_border_width_bottom\":\"\",\"style_md_border_width_left\":\"\",\"style_md_margin_top\":\"10\",\"style_md_margin_right\":\"\",\"style_md_margin_bottom\":\"\",\"style_md_margin_left\":\"\",\"style_md_padding_top\":\"\",\"style_md_padding_right\":\"\",\"style_md_padding_bottom\":\"\",\"style_md_padding_left\":\"\",\"style_sm_border_radius\":\"\",\"style_sm_border_width_top\":\"\",\"style_sm_border_width_right\":\"\",\"style_sm_border_width_bottom\":\"\",\"style_sm_border_width_left\":\"\",\"style_sm_margin_top\":\"\",\"style_sm_margin_right\":\"\",\"style_sm_margin_bottom\":\"\",\"style_sm_margin_left\":\"\",\"style_sm_padding_top\":\"\",\"style_sm_padding_right\":\"10\",\"style_sm_padding_bottom\":\"\",\"style_sm_padding_left\":\"10\",\"style_lg_border_radius\":\"\",\"style_lg_border_width_top\":\"\",\"style_lg_border_width_right\":\"\",\"style_lg_border_width_bottom\":\"\",\"style_lg_border_width_left\":\"\",\"style_lg_margin_top\":\"\",\"style_lg_margin_right\":\"\",\"style_lg_margin_bottom\":\"\",\"style_lg_margin_left\":\"\",\"style_lg_padding_top\":\"\",\"style_lg_padding_right\":\"\",\"style_lg_padding_bottom\":\"\",\"style_lg_padding_left\":\"\",\"style_md_border_style_top\":\"\",\"style_md_border_style_right\":\"\",\"style_md_border_style_bottom\":\"\",\"style_md_border_style_left\":\"\",\"style_sm_border_style_top\":\"\",\"style_sm_border_style_right\":\"\",\"style_sm_border_style_bottom\":\"\",\"style_sm_border_style_left\":\"\",\"style_lg_border_style_top\":\"\",\"style_lg_border_style_right\":\"\",\"style_lg_border_style_bottom\":\"\",\"style_lg_border_style_left\":\"\",\"frontend_config\":{\"style\":\"\",\"ent\":\"layout-sm-padding-right-10+layout-sm-padding-left-10+layout-md-margin-top-10+\"}},\"children\":[{\"config\":{\"style_background_color\":\"\",\"style_border_color\":\"\",\"style_md_border_radius\":\"\",\"style_md_border_width_top\":\"\",\"style_md_border_width_right\":\"\",\"style_md_border_width_bottom\":\"\",\"style_md_border_width_left\":\"\",\"style_md_margin_top\":\"\",\"style_md_margin_right\":\"5\",\"style_md_margin_bottom\":\"\",\"style_md_margin_left\":\"\",\"style_md_padding_top\":\"\",\"style_md_padding_right\":\"\",\"style_md_padding_bottom\":\"\",\"style_md_padding_left\":\"\",\"style_sm_border_radius\":\"\",\"style_sm_border_width_top\":\"\",\"style_sm_border_width_right\":\"\",\"style_sm_border_width_bottom\":\"\",\"style_sm_border_width_left\":\"\",\"style_sm_margin_top\":\"\",\"style_sm_margin_right\":\"\",\"style_sm_margin_bottom\":\"\",\"style_sm_margin_left\":\"\",\"style_sm_padding_top\":\"\",\"style_sm_padding_right\":\"\",\"style_sm_padding_bottom\":\"\",\"style_sm_padding_left\":\"\",\"style_lg_border_radius\":\"\",\"style_lg_border_width_top\":\"\",\"style_lg_border_width_right\":\"\",\"style_lg_border_width_bottom\":\"\",\"style_lg_border_width_left\":\"\",\"style_lg_margin_top\":\"\",\"style_lg_margin_right\":\"\",\"style_lg_margin_bottom\":\"\",\"style_lg_margin_left\":\"\",\"style_lg_padding_top\":\"\",\"style_lg_padding_right\":\"\",\"style_lg_padding_bottom\":\"\",\"style_lg_padding_left\":\"\",\"style_md_border_style_top\":\"\",\"style_md_border_style_right\":\"\",\"style_md_border_style_bottom\":\"\",\"style_md_border_style_left\":\"\",\"style_sm_border_style_top\":\"\",\"style_sm_border_style_right\":\"\",\"style_sm_border_style_bottom\":\"\",\"style_sm_border_style_left\":\"\",\"style_lg_border_style_top\":\"\",\"style_lg_border_style_right\":\"\",\"style_lg_border_style_bottom\":\"\",\"style_lg_border_style_left\":\"\",\"frontend_config\":{\"style\":\"\",\"ent\":\"layout-md-margin-right-5+\"}},\"children\":[{\"value\":\"many-images\",\"name\":\"多图\",\"config\":{\"view_list_show_sty
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_express
-- ----------------------------
DROP TABLE IF EXISTS `sxo_express`;
CREATE TABLE `sxo_express` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`pid` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '父id',
2022-02-12 18:44:59 +08:00
`icon` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'icon图标',
2021-11-23 09:21:22 +08:00
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`sort` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '顺序',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '快递公司';
-- ----------------------------
-- Records of sxo_express
-- ----------------------------
BEGIN;
INSERT INTO `sxo_express` VALUES (1, 0, '/static/upload/images/express/images/20180917104528_logo.png', '顺丰快递', 1, 0, 1526350443, 1613626001), (2, 0, '/static/upload/images/express/images/20180917104538_logo.png', '圆通快递', 1, 0, 1526350453, 1613626234), (3, 0, '/static/upload/images/express/images/20180917104550_logo.png', '申通快递', 1, 0, 1526350461, 1583070213), (4, 0, '/static/upload/images/express/images/20180917104559_logo.png', '中通快递', 1, 0, 1526350469, 1537152359), (5, 0, '/static/upload/images/express/images/20180917104839_logo.png', 'EMS速递', 1, 0, 1530429633, 1537152519), (6, 0, '/static/upload/images/express/images/20180917104631_logo.png', '韵达快递', 1, 0, 1530429687, 1537152391), (7, 0, '/static/upload/images/express/images/20180917104848_logo.png', '邮政包裹', 1, 0, 1530429743, 1537152528), (8, 0, '/static/upload/images/express/images/20180917104816_logo.png', '百世汇通', 1, 0, 1530429765, 1537152496), (9, 0, '/static/upload/images/express/images/20180917104616_logo.png', '国通快递', 1, 0, 1530429794, 1537152376), (10, 0, '/static/upload/images/express/images/20180917104650_logo.png', '天天快递', 1, 0, 1530429830, 1537152410), (11, 0, '/static/upload/images/express/images/20180917104707_logo.png', '优速快递', 1, 0, 1530429855, 1537152427), (12, 0, '/static/upload/images/express/images/20180917104722_logo.png', '全峰快递', 1, 0, 1530429873, 1537152442), (13, 0, '/static/upload/images/express/images/20180917104750_logo.png', '宅急送', 1, 0, 1530429907, 1537152470), (14, 0, '/static/upload/images/express/images/20180917104757_logo.png', '京东快递', 1, 0, 1530429926, 1605775704);
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_form_table_user_fields
-- ----------------------------
DROP TABLE IF EXISTS `sxo_form_table_user_fields`;
CREATE TABLE `sxo_form_table_user_fields` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '管理员id或用户id',
`user_type` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户类型0后台管理员, 1用户端',
`md5_key` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'form表格数据唯一key',
`fields` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '字段数据json格式存储',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE,
INDEX `user_type`(`user_type`) USING BTREE,
INDEX `md5_key`(`md5_key`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '动态表格用户自定义字段';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_form_table_user_fields
-- ----------------------------
BEGIN;
COMMIT;
2021-10-17 14:29:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_goods
-- ----------------------------
DROP TABLE IF EXISTS `sxo_goods`;
CREATE TABLE `sxo_goods` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`brand_id` int UNSIGNED NULL DEFAULT 0 COMMENT '品牌id',
`site_type` tinyint(1) NOT NULL DEFAULT -1 COMMENT '商品类型(跟随站点类型一致[0销售, 1展示, 2自提, 3虚拟销售, 4销售+自提]',
`title` char(160) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题',
`title_color` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题颜色',
`simple_desc` char(230) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '简述',
`model` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '型号',
`place_origin` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '产地地区省id',
`inventory` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '库存(所有规格库存总和)',
`inventory_unit` char(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '库存单位',
2022-02-12 18:44:59 +08:00
`images` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '封面图片',
2021-11-23 09:21:22 +08:00
`original_price` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '原价(单值:10, 区间:10.00-20.00)一般用于展示使用',
`min_original_price` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '最低原价',
`max_original_price` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '最大原价',
`price` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '销售价格(单值:10, 区间:10.00-20.00)一般用于展示使用',
`min_price` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '最低价格',
`max_price` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '最高价格',
`give_integral` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '购买赠送积分比例',
`buy_min_number` int UNSIGNED NOT NULL DEFAULT 1 COMMENT '最低起购数量 默认1',
`buy_max_number` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '最大购买数量(最大数值 100000000, 小于等于0或空则不限',
`is_deduction_inventory` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否扣减库存0否, 1是',
`is_shelves` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否上架(下架后用户不可见, 0否, 1是',
`content_web` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '电脑端详情内容',
`photo_count` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '相册图片数量',
`sales_count` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '销量',
`access_count` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '访问次数',
2022-02-12 18:44:59 +08:00
`video` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '短视频',
2021-11-23 09:21:22 +08:00
`is_exist_many_spec` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否存在多个规格0否, 1是',
`spec_base` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '规格基础数据',
`fictitious_goods_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '虚拟商品展示数据',
`seo_title` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'SEO标题',
`seo_keywords` char(130) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'SEO关键字',
`seo_desc` char(230) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'SEO描述',
`is_delete_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否已删除0 未删除, 大于0则是删除时间',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `title`(`title`) USING BTREE,
INDEX `access_count`(`access_count`) USING BTREE,
INDEX `photo_count`(`photo_count`) USING BTREE,
INDEX `is_shelves`(`is_shelves`) USING BTREE,
INDEX `brand_id`(`brand_id`) USING BTREE,
INDEX `sales_count`(`sales_count`) USING BTREE,
INDEX `is_delete_time`(`is_delete_time`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 52 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_goods
-- ----------------------------
BEGIN;
2022-07-09 15:56:37 +08:00
INSERT INTO `sxo_goods` VALUES (1, 1, -1, 'MIUI/小米 小米手机4 小米4代 MI4智能4G手机包邮 黑色 D-LTE4G/TD-SCD-1', '', '', '', 0, 1530, '', '/static/upload/images/goods/2019/01/14/1547450781101144.jpg', '9200.00', 9200.00, 9200.00, '2100.12', 2100.12, 2100.12, 10, 1, 6, 1, 1, '<p><img src=\"/static/upload/images/goods/2019/01/14/1547450880620837.png\" title=\"1547450880620837.png\"/></p><p><img src=\"/static/upload/images/goods/2019/01/14/1547450880750687.png\" title=\"1547450880750687.png\"/></p><p><img src=\"/static/upload/images/goods/2019/01/14/1547450880917418.png\" title=\"1547450880917418.png\"/></p><p><br/></p>', 2, 164, 5831, '', 0, '', '<p><a href=\"https://pan.baidu.com/s/18xyUNruvohr5JCdorvaz5w\" target=\"_blank\" style=\"box-sizing: border-box; background-color: rgb(255, 255, 255); color: rgb(0, 154, 97); text-decoration-line: none; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft Yahei&quot;, sans-serif; font-size: 14px; white-space: normal;\">https://pan.baidu.com/s/18xyUNruvohr5JCdorvaz5w</a><span style=\"box-sizing: border-box; color: rgb(51, 51, 51); font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft Yahei&quot;, sans-serif; font-size: 14px;\">&nbsp; &nbsp; &nbsp;提取码&nbsp;</span><span style=\"box-sizing: border-box; color: rgb(51, 51, 51); font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;WenQuanYi Micro Hei&quot;, &quot;Microsoft Yahei&quot;, sans-serif; font-size: 14px;\">v3y4-33</span></p>', '', '', '', 0, 1547450921, 1657352607), (2, 2, -1, '苹果AppleiPhone 6 Plus (A1524)移动联通电信4G手机 金色 16G', '', '', 'iPhone 6 Plus', 0, 7991, '', '/static/upload/images/goods/2019/01/14/1547451274847894.jpg', '6000.00-7600.00', 6000.00, 7600.00, '4500.00-6800.00', 4500.00, 6800.00, 30, 1, 0, 1, 1, '<p><img src=\"/static/upload/images/goods/2019/01/14/1547451595700972.jpg\" title=\"1547451595700972.jpg\"/></p><p><img src=\"/static/upload/images/goods/2019/01/14/1547451595528800.jpg\" title=\"1547451595528800.jpg\"/></p><p><img src=\"/static/upload/images/goods/2019/01/14/1547451595616298.jpg\" title=\"1547451595616298.jpg\"/></p><p><br/></p>', 2, 197, 9583, '/static/upload/video/goods/2019/01/14/1547458876723311.mp4', 1, '', '', '', '', '', 0, 1547451624, 1657352607), (3, 2, -1, 'Samsung/三星 SM-G8508S GALAXY Alpha四核智能手机 新品 闪耀白', '', '', '', 0, 0, '', '/static/upload/images/goods/2019/01/14/1547451909951171.jpg', '6866.00', 6866.00, 6866.00, '3888.00', 3888.00, 3888.00, 20, 1, 0, 1, 1, '<p><img src=\"/static/upload/images/goods/2019/01/14/1547451947383902.jpg\" title=\"1547451947383902.jpg\"/></p><p><img src=\"/static/upload/images/goods/2019/01/14/1547451947686990.jpg\" title=\"1547451947686990.jpg\"/></p><p><img src=\"/static/upload/images/goods/2019/01/14/1547451947676180.jpg\" title=\"1547451947676180.jpg\"/></p><p><img src=\"/static/upload/images/goods/2019/01/14/1547451947791154.jpg\" title=\"1547451947791154.jpg\"/></p><p><br/></p>', 2, 215, 10032, '', 0, '', '', '', '', '', 0, 1547452007, 1657352607), (4, 1, -1, 'Huawei/华为 H60-L01 荣耀6 移动4G版智能手机 安卓', '', '', '', 0, 883, '', '/static/upload/images/goods/2019/01/14/1547452474332334.jpg', '2300.00', 2300.00, 2300.00, '1999.00', 1999.00, 1999.00, 19, 1, 0, 1, 1, '<p><img src=\"/static/upload/images/goods/2019/01/14/1547452505568604.jpg\" title=\"1547452505568604.jpg\"/></p><p><img src=\"/static/upload/images/goods/2019/01/14/1547452505349986.jpg\" title=\"1547452505349986.jpg\"/></p><p><img src=\"/static/upload/images/goods/2019/01/14/1547452505184884.jpg\" title=\"1547452505184884.jpg\"/></p><p><br/></p>', 2, 52, 2376, '', 0, '', '', '', '', '', 0, 1547452553, 1657352607), (5, 2, -1, 'Meizu/魅族 MX4 Pro移动版 八核大屏智能手机 黑色 16G', '', '',
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-17 14:29:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_goods_browse
-- ----------------------------
DROP TABLE IF EXISTS `sxo_goods_browse`;
CREATE TABLE `sxo_goods_browse` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`goods_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 77 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户商品浏览';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_goods_browse
-- ----------------------------
BEGIN;
COMMIT;
2021-10-17 14:29:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_goods_category
-- ----------------------------
DROP TABLE IF EXISTS `sxo_goods_category`;
CREATE TABLE `sxo_goods_category` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`pid` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '父id',
2022-02-12 18:44:59 +08:00
`icon` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'icon图标',
2021-11-23 09:21:22 +08:00
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`vice_name` char(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '副标题',
2022-02-12 18:44:59 +08:00
`describe` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '描述',
2021-11-23 09:21:22 +08:00
`bg_color` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'css背景色值',
2022-02-12 18:44:59 +08:00
`big_images` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '大图片',
2021-11-23 09:21:22 +08:00
`is_home_recommended` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否首页推荐0否, 1是',
`sort` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`seo_title` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'SEO标题',
`seo_keywords` char(130) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'SEO关键字',
`seo_desc` char(230) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'SEO描述',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `pid`(`pid`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 895 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品分类';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_goods_category
-- ----------------------------
BEGIN;
INSERT INTO `sxo_goods_category` VALUES (1, 0, '/static/upload/images/goods_category/2018/08/20180814174251211789.png', '数码办公', '天天新品,科技带来快乐!', 'iphoneX新品发布了', '#23acff', '/static/upload/images/goods_category/2018/08/20180814180843848554.png', 1, 0, 1, '数码办公标题', '数码办公,笔记本,手机', '数码办公周边产品', 1529042764, 1613625376), (2, 0, '/static/upload/images/goods_category/2018/08/20180814174311166703.png', '服饰鞋包', '因为美丽、所以神秘!', '追求美、你值得拥有', '#9761f7', '/static/upload/images/goods_category/2018/08/20180815182045222850.png', 1, 0, 1, '', '', '', 1529042764, 1557131490), (3, 0, '/static/upload/images/goods_category/2018/08/20180814174638213368.png', '食品饮料', '每一道甜品都有一个故事', '美食天下之美', '#ff9229', '', 0, 0, 1, '', '', '', 1529042764, 1547456413), (7, 0, '/static/upload/images/goods_category/2018/08/20180814174649846358.png', '个护化妆', '', '', '', '', 0, 0, 1, '', '', '', 1529042764, 1534240009), (52, 0, '/static/upload/images/goods_category/2018/08/20180814174659916405.png', '珠宝手表', '', '', '', '', 0, 0, 1, '', '', '', 1529042764, 1606372820), (53, 0, '/static/upload/images/goods_category/2018/08/20180814174708327545.png', '运动健康', '', '户外装备,应有尽有', '#53c0f3', '', 0, 0, 1, '', '', '', 1529042764, 1547456464), (54, 0, '/static/upload/images/goods_category/2018/08/20180814174722490490.png', '汽车用品', '', '', '', '', 0, 0, 1, '', '', '', 1529042764, 1534240042), (55, 0, '/static/upload/images/goods_category/2018/08/20180814174732569726.png', '玩具乐器', '', '', '', '', 0, 0, 1, '', '', '', 1529042764, 1534240052), (56, 0, '/static/upload/images/goods_category/2018/08/20180814174748738821.png', '母婴用品', '', '', '', '', 0, 0, 1, '', '', '', 1529042764, 1566129608), (57, 0, '/static/upload/images/goods_category/2018/08/20180814174757134754.png', '生活服务', '', '', '', '', 0, 0, 1, '', '', '', 1529042764, 1534240077), (58, 1, '/static/upload/images/goods_category/2018/11/20/2018112015245128143.jpeg', '手机通讯', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 1605687744), (59, 1, '/static/upload/images/goods_category/2018/11/20/2018112015273175122.jpeg', '手机配件', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 1542698851), (60, 1, '/static/upload/images/goods_category/2018/11/20/2018112015252193663.jpeg', '摄影摄像', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 1542698721), (61, 1, '/static/upload/images/goods_category/2018/11/20/2018112015441996472.jpeg', '时尚影音', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 1542699859), (62, 1, '/static/upload/images/goods_category/2018/11/20/2018112015255390903.jpeg', '电脑整机', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 1542698753), (63, 1, '', '电脑配件', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 1534240077), (64, 1, '', '外设产品', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 1534240077), (65, 1, '', '网络产品', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 1534240077), (66, 1, '', '办公打印', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 1534240077), (67, 1, '', '办公文仪', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 1534240077), (68, 58, '/static/upload/images/goods_category/2018/11/20/2018112015245128143.jpeg', '手机', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 1596730214), (69, 58, '/static/upload/images/goods_category/2018/11/20/2018112015252193663.jpeg', '合约机', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 1596730232), (70, 58, '/static/upload/images/goods_category/2018/11/20/2018112015273175122.jpeg', '对讲机', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 1596730248), (71, 59, '', '手机电池', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (72, 59, '', '蓝牙耳机', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (73, 59, '', '充电器/数据线', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (74, 59, '', '手机耳机', '', '', '', '', 1, 0
INSERT INTO `sxo_goods_category` VALUES (825, 800, '', '新生儿', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (826, 800, '', 'S号', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (827, 800, '', 'M号', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (828, 800, '', 'L号', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (829, 800, '', 'XL/XXL号', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (830, 800, '', '裤型尿裤', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (831, 800, '', '湿巾', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (832, 800, '', '尿布/尿垫', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (833, 800, '', '成人尿裤', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (834, 801, '', '奶瓶', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (835, 801, '', '奶嘴', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (836, 801, '', '吸奶器', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (837, 801, '', '暖奶/消毒', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (838, 801, '', '餐具', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (839, 801, '', '水具', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (840, 801, '', '牙胶/安抚', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (841, 801, '', '辅助用品', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (842, 802, '', '宝宝护肤', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (843, 802, '', '洗浴用品', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (844, 802, '', '洗发沐浴', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (845, 802, '', '清洁用品', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (846, 802, '', '护理用品', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (847, 802, '', '妈妈护肤', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (848, 803, '', '婴儿推车', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (849, 803, '', '餐椅摇椅', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (850, 803, '', '婴儿床', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (851, 803, '', '学步车', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (852, 803, '', '三轮车', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (853, 803, '', '自行车', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (854, 803, '', '电动车', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (855, 803, '', '健身车', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (856, 803, '', '安全座椅', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (857, 804, '', '婴儿外出服', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (858, 804, '', '婴儿内衣', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (859, 804, '', '婴儿礼盒', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (860, 804, '', '婴儿鞋帽袜', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (861, 804, '', '安全防护', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (862, 804, '', '家居床品', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (863, 804, '', '其他', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (864, 805, '', '包/背婴带', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (865, 805, '', '妈妈护理', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (866, 805, '', '产后塑身', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (867, 805, '', '孕妇内衣', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (868, 805, '', '防辐射服', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (869, 805, '', '孕妇装', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (870, 805, '', '孕妇食品', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (871, 805, '', '妈妈美容', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (872, 57, '', '餐饮娱乐', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (873, 57, '', '婚纱旅游', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (874, 57, '', '便民
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_goods_category_join
-- ----------------------------
DROP TABLE IF EXISTS `sxo_goods_category_join`;
CREATE TABLE `sxo_goods_category_join` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`goods_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`category_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '分类id',
`add_time` int UNSIGNED NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `goods_id`(`goods_id`) USING BTREE,
INDEX `category_id`(`category_id`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 1588 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品分类关联';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_goods_category_join
-- ----------------------------
BEGIN;
2022-07-09 15:56:37 +08:00
INSERT INTO `sxo_goods_category_join` VALUES (582, 3, 68, 1600151429), (583, 3, 69, 1600151429), (584, 3, 305, 1600151429), (585, 4, 68, 1600151450), (586, 4, 69, 1600151450), (587, 4, 318, 1600151450), (889, 30, 68, 1611575535), (890, 30, 69, 1611575535), (891, 30, 70, 1611575535), (892, 30, 59, 1611575535), (893, 30, 74, 1611575535), (980, 17, 68, 1612336141), (1013, 20, 69, 1613830281), (1023, 18, 58, 1614961172), (1024, 18, 70, 1614961172), (1026, 19, 58, 1614961233), (1145, 5, 68, 1635564107), (1146, 5, 69, 1635564107), (1147, 2, 68, 1636214343), (1148, 2, 69, 1636214343), (1149, 2, 190, 1636214343), (1151, 7, 198, 1636214455), (1153, 10, 188, 1636253269), (1229, 8, 188, 1649248258), (1242, 12, 318, 1651585220), (1288, 14, 68, 1651822151), (1289, 14, 59, 1651822151), (1290, 14, 153, 1651822151), (1291, 15, 69, 1651831248), (1303, 6, 1, 1651974846), (1317, 11, 304, 1653388767), (1318, 11, 318, 1653388767), (1319, 26, 741, 1653405586), (1321, 13, 741, 1653443198), (1328, 31, 68, 1654407225), (1329, 31, 304, 1654407225), (1335, 34, 68, 1654408179), (1336, 34, 304, 1654408179), (1447, 35, 68, 1654443513), (1448, 35, 304, 1654443513), (1451, 36, 68, 1654443568), (1452, 36, 304, 1654443568), (1491, 45, 68, 1654444090), (1492, 45, 304, 1654444090), (1503, 46, 68, 1654444255), (1504, 46, 304, 1654444255), (1513, 1, 68, 1654478404), (1514, 1, 304, 1654478404), (1515, 32, 68, 1654478404), (1516, 32, 304, 1654478404), (1517, 47, 68, 1654481357), (1518, 47, 304, 1654481357), (1519, 48, 68, 1654482350), (1520, 48, 304, 1654482350), (1567, 50, 68, 1654498297), (1568, 50, 304, 1654498297), (1571, 49, 68, 1654941808), (1572, 49, 304, 1654941808), (1573, 51, 68, 1654941808), (1574, 51, 304, 1654941808), (1577, 25, 69, 1657025052), (1579, 9, 365, 1657025483), (1581, 16, 69, 1657025553), (1585, 33, 68, 1657177660), (1586, 33, 69, 1657177660), (1587, 33, 190, 1657177660);
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-17 14:29:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_goods_comments
-- ----------------------------
DROP TABLE IF EXISTS `sxo_goods_comments`;
CREATE TABLE `sxo_goods_comments` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`order_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '业务订单id',
`goods_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`business_type` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '业务类型名称(如订单 order',
2022-02-12 18:44:59 +08:00
`content` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '评价内容',
2021-11-23 09:21:22 +08:00
`images` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '图片数据一维数组json',
2022-02-12 18:44:59 +08:00
`reply` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '回复内容',
2021-11-23 09:21:22 +08:00
`rating` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '评价级别默认0 1~5',
`is_show` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否显示0否, 1是',
`is_anonymous` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否匿名0否1是',
`is_reply` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否回复0否1是',
`reply_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '回复时间',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE,
INDEX `order_id`(`order_id`) USING BTREE,
INDEX `goods_id`(`goods_id`) USING BTREE
2022-05-18 22:23:06 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品评论';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_goods_comments
-- ----------------------------
BEGIN;
COMMIT;
2021-10-17 14:29:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_goods_content_app
-- ----------------------------
DROP TABLE IF EXISTS `sxo_goods_content_app`;
CREATE TABLE `sxo_goods_content_app` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`goods_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
2022-02-12 18:44:59 +08:00
`images` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '图片',
2021-11-23 09:21:22 +08:00
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容',
`sort` tinyint UNSIGNED NULL DEFAULT 0 COMMENT '顺序',
`add_time` int UNSIGNED NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `goods_id`(`goods_id`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 1567 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品手机详情';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_goods_content_app
-- ----------------------------
BEGIN;
2022-07-09 15:56:37 +08:00
INSERT INTO `sxo_goods_content_app` VALUES (847, 3, '/static/upload/images/goods/2019/01/14/1547451947383902.jpg', '', 0, 1600151429), (848, 3, '/static/upload/images/goods/2019/01/14/1547451947686990.jpg', '', 1, 1600151429), (849, 3, '/static/upload/images/goods/2019/01/14/1547451947676180.jpg', '', 2, 1600151429), (850, 3, '/static/upload/images/goods/2019/01/14/1547451947791154.jpg', '', 3, 1600151429), (851, 4, '/static/upload/images/goods/2019/01/14/1547452505568604.jpg', '', 0, 1600151450), (852, 4, '/static/upload/images/goods/2019/01/14/1547452505349986.jpg', '', 1, 1600151450), (853, 4, '/static/upload/images/goods/2019/01/14/1547452505184884.jpg', '', 2, 1600151450), (1177, 5, '/static/upload/images/goods/2019/01/14/1547452760417982.jpg', '', 0, 1635564108), (1178, 5, '/static/upload/images/goods/2019/01/14/1547452760984656.jpg', '', 1, 1635564108), (1179, 5, '/static/upload/images/goods/2019/01/14/1547452760659259.jpg', '', 2, 1635564108), (1180, 2, '/static/upload/images/goods/2019/01/14/1547451595700972.jpg', '', 0, 1636214343), (1181, 2, '/static/upload/images/goods/2019/01/14/1547451595528800.jpg', '', 1, 1636214343), (1182, 2, '/static/upload/images/goods/2019/01/14/1547451595616298.jpg', '', 2, 1636214343), (1186, 7, '/static/upload/images/goods/2019/01/14/1547453910353340.jpg', '', 0, 1636214455), (1187, 7, '/static/upload/images/goods/2019/01/14/1547453910505349.jpg', '', 1, 1636214455), (1188, 7, '/static/upload/images/goods/2019/01/14/1547453910394886.jpg', '', 2, 1636214455), (1191, 10, '/static/upload/images/goods/2019/01/14/1547455266527628.jpg', '【品牌】欧单 学媛风 猫咪良品\n\n【吊牌】xueyuanfeng 猫咪良品\n\n【面料质地】涤棉拼接蕾丝 后中拉链 有内衬(非专业机构鉴定,介意请慎拍)\n\n好的衣服需要好好呵护务必请冷水手洗(切记别浸泡)拧干就晾晒或则干洗哦~\n\n【商品颜色】实物拍摄 蓝色 颜色很难拍有小色差属正常现象哦\n\n【商品尺寸】XS/S/M/L 小高腰设计 胸口纽扣是装饰的哦\n\n\nXS码尺寸: 悬挂衣长81CM.胸围80内合适.腰围63CM.臀围86CM\n\nS码尺寸: 悬挂衣长82CM.胸围84内合适.腰围67CM.臀围90CM\n\nM码尺寸: 悬挂衣长83CM.胸围88内合适.腰围71CM.臀围94CM\n\nL码尺寸: 悬挂衣长84CM.胸围92内合适.腰围75CM.臀围98CM\n\n\n测量单位是CM每个人的测量方式不一样测量的尺寸数据可能会有1~3厘米的差异请MM们谅解哦\n\n\nPS常规码数可按平时号选择哦。修身版型~如果上身偏大可以适当考虑大1号~下摆蕾丝拼接不会很平整的哦~\n\n蕾丝花是手工修剪出来的每件都有不同和不规则的哦有小线头和节点是正常现象哦~请亲们谅解哦~', 0, 1636253269), (1192, 10, '/static/upload/images/goods/2019/01/14/1547455266234658.jpg', '', 1, 1636253269), (1315, 8, '/static/upload/images/goods/2019/01/14/1547454192301566.jpg', '', 0, 1649248258), (1316, 8, '/static/upload/images/goods/2019/01/14/1547454192448116.jpg', '', 1, 1649248258), (1317, 8, '/static/upload/images/goods/2019/01/14/1547454192474638.jpg', '', 2, 1649248258), (1318, 12, '/static/upload/images/goods/2019/01/14/1547456214155362.jpg', '每个人都有一个死角, 自己走不出来,别人也闯不进去。\r\n我把最深沉的秘密放在那里。\r\n你不懂我我不怪你。\r\n每个人都有一道伤口 或深或浅,盖上布,以为不存在。', 0, 1651585220), (1319, 12, '/static/upload/images/goods/2019/01/14/1547455907486857.jpg', '', 1, 1651585220), (1320, 12, '/static/upload/images/goods/2019/01/14/1547455907256518.jpg', '', 2, 1651585220), (1321, 12, '/static/upload/images/goods/2019/01/14/1547456228913731.jpg', '', 3, 1651585220), (1326, 6, '/static/upload/images/goods/2019/01/14/1547453042405182.jpg', 'X5L/SL/V/M (5.0寸) X5max钢化膜(5.5寸) X5pro钢化膜(5.2寸)', 0, 1651974846), (1327, 6, '/static/upload/images/goods/2019/01/14/1547453042614480.jpg', '', 1, 1651974846), (1328, 6, '/static/upload/images/goods/2019/01/14/1547453042816509.
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_goods_favor
-- ----------------------------
DROP TABLE IF EXISTS `sxo_goods_favor`;
CREATE TABLE `sxo_goods_favor` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`goods_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户商品收藏';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_goods_favor
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2022-03-09 10:46:46 +08:00
-- ----------------------------
-- Table structure for sxo_goods_give_integral_log
-- ----------------------------
DROP TABLE IF EXISTS `sxo_goods_give_integral_log`;
CREATE TABLE `sxo_goods_give_integral_log` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单id',
`order_detail_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单详情id',
`goods_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品详情id',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`status` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态0待发放, 1已发放, 2已关闭',
`rate` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '赠送比例',
`integral` int NOT NULL DEFAULT 0 COMMENT '积分',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `order_id`(`order_id`) USING BTREE,
INDEX `order_detail_id`(`order_detail_id`) USING BTREE,
INDEX `goods_id`(`goods_id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE,
INDEX `status`(`status`) USING BTREE,
INDEX `rate`(`rate`) USING BTREE,
INDEX `integral`(`integral`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 69 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品积分赠送日志';
2022-03-09 10:46:46 +08:00
-- ----------------------------
-- Records of sxo_goods_give_integral_log
-- ----------------------------
BEGIN;
COMMIT;
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_goods_params
-- ----------------------------
DROP TABLE IF EXISTS `sxo_goods_params`;
CREATE TABLE `sxo_goods_params` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`goods_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`type` tinyint UNSIGNED NULL DEFAULT 1 COMMENT '展示范围0全部, 1详情, 2基础默认1详情',
`name` char(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '参数名称',
2022-07-09 15:56:37 +08:00
`value` char(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '参数值',
2021-11-23 09:21:22 +08:00
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `goods_id`(`goods_id`) USING BTREE,
INDEX `type`(`type`) USING BTREE,
INDEX `name`(`name`) USING BTREE,
INDEX `value`(`value`) USING BTREE
2022-05-18 22:23:06 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 1213 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品参数';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_goods_params
-- ----------------------------
BEGIN;
2022-05-18 22:23:06 +08:00
INSERT INTO `sxo_goods_params` VALUES (1043, 12, 0, '流行元素/工艺', '树脂固色', 1651585220), (1044, 12, 2, '款式', '长款连衣裙', 1651585220), (1045, 12, 2, '适用年龄', '30-34周岁', 1651585220), (1046, 12, 1, '图案', '纯色', 1651585220), (1047, 12, 1, '袖长', '短袖', 1651585220), (1048, 12, 1, '风格', '复古风', 1651585220), (1049, 12, 1, '衣门襟', '套头', 1651585220), (1050, 12, 1, '裙型', '大摆型', 1651585220), (1051, 12, 1, '组合形式', '单件', 1651585220), (1052, 12, 0, '款式类别', '图案花纹', 1651585220);
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_goods_params_template
-- ----------------------------
DROP TABLE IF EXISTS `sxo_goods_params_template`;
CREATE TABLE `sxo_goods_params_template` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`config_count` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '参数配置数量',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `name`(`name`) USING BTREE,
INDEX `config_count`(`config_count`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品参数模板';
-- ----------------------------
-- Records of sxo_goods_params_template
-- ----------------------------
BEGIN;
INSERT INTO `sxo_goods_params_template` VALUES (1, '测试一下', 1, 10, 1606554077, 1606569364);
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_goods_params_template_config
-- ----------------------------
DROP TABLE IF EXISTS `sxo_goods_params_template_config`;
CREATE TABLE `sxo_goods_params_template_config` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`template_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '模板id',
`type` tinyint UNSIGNED NULL DEFAULT 1 COMMENT '展示范围0全部, 1详情, 2基础默认1详情',
`name` char(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '参数名称',
`value` char(230) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '参数值',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `template_id`(`template_id`) USING BTREE,
INDEX `type`(`type`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 34 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品参数模板值';
-- ----------------------------
-- Records of sxo_goods_params_template_config
-- ----------------------------
BEGIN;
INSERT INTO `sxo_goods_params_template_config` VALUES (24, 1, 2, '款式', '长款连衣裙', 1606555034), (25, 1, 0, '流行元素/工艺', '树脂固色', 1606555034), (26, 1, 2, '适用年龄', '30-34周岁', 1606555034), (27, 1, 1, '图案', '纯色', 1606555034), (28, 1, 1, '袖长', '短袖', 1606555034), (29, 1, 1, '风格', '复古风', 1606555034), (30, 1, 1, '衣门襟', '套头', 1606555034), (31, 1, 1, '裙型', '大摆型', 1606555034), (32, 1, 1, '组合形式', '单件', 1606555034), (33, 1, 0, '款式类别', '图案花纹', 1606555034);
COMMIT;
2021-10-17 14:29:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_goods_photo
-- ----------------------------
DROP TABLE IF EXISTS `sxo_goods_photo`;
CREATE TABLE `sxo_goods_photo` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`goods_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
2022-02-12 18:44:59 +08:00
`images` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '图片',
2021-11-23 09:21:22 +08:00
`is_show` tinyint UNSIGNED NULL DEFAULT 1 COMMENT '是否显示0否, 1是',
`sort` tinyint UNSIGNED NULL DEFAULT 0 COMMENT '顺序',
`add_time` int UNSIGNED NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `goods_id`(`goods_id`) USING BTREE,
INDEX `is_show`(`is_show`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 1374 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品相册图片';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_goods_photo
-- ----------------------------
BEGIN;
2022-07-09 15:56:37 +08:00
INSERT INTO `sxo_goods_photo` VALUES (663, 3, '/static/upload/images/goods/2019/01/14/1547451909951171.jpg', 1, 0, 1600151429), (664, 3, '/static/upload/images/goods/2019/01/14/1547451936230948.jpg', 1, 1, 1600151429), (665, 4, '/static/upload/images/goods/2019/01/14/1547452474332334.jpg', 1, 0, 1600151450), (666, 4, '/static/upload/images/goods/2019/01/14/1547452496713777.jpg', 1, 1, 1600151450), (914, 5, '/static/upload/images/goods/2019/01/14/1547452714324599.jpg', 1, 0, 1635564108), (915, 5, '/static/upload/images/goods/2019/01/14/1547452752648264.jpg', 1, 1, 1635564108), (916, 2, '/static/upload/images/goods/2019/01/14/1547451274847894.jpg', 1, 0, 1636214343), (917, 2, '/static/upload/images/goods/2019/01/14/1547451576558478.jpg', 1, 1, 1636214343), (920, 7, '/static/upload/images/goods/2019/01/14/1547453895416529.jpg', 1, 0, 1636214455), (921, 7, '/static/upload/images/goods/2019/01/14/1547453895864876.jpg', 1, 1, 1636214455), (924, 10, '/static/upload/images/goods/2019/01/14/1547455240794230.jpg', 1, 0, 1636253269), (925, 10, '/static/upload/images/goods/2019/01/14/1547455240700820.jpg', 1, 1, 1636253269), (1025, 8, '/static/upload/images/goods/2019/01/14/1547454145355962.jpg', 1, 0, 1649248258), (1026, 8, '/static/upload/images/goods/2019/01/14/1547454172213779.jpg', 1, 1, 1649248258), (1029, 12, '/static/upload/images/goods/2019/01/14/1547455890402147.jpg', 1, 0, 1651585220), (1030, 12, '/static/upload/images/goods/2019/01/14/1547455907256518.jpg', 1, 1, 1651585220), (1031, 12, '/static/upload/images/goods/2019/01/14/1547455907486857.jpg', 1, 2, 1651585220), (1065, 6, '/static/upload/images/goods/2019/01/14/1547453000703308.jpg', 1, 0, 1651974846), (1066, 6, '/static/upload/images/goods/2019/01/14/1547453032949003.jpg', 1, 1, 1651974846), (1067, 6, '/static/upload/images/goods/2019/01/14/1547455907486857.jpg', 1, 2, 1651974846), (1068, 6, '/static/upload/images/goods/2019/01/14/1547455907256518.jpg', 1, 3, 1651974846), (1069, 6, '/static/upload/images/goods/2019/01/14/1547455601528614.jpg', 1, 4, 1651974846), (1070, 6, '/static/upload/images/goods/2019/01/14/1547455601898622.jpg', 1, 5, 1651974846), (1071, 6, '/static/upload/images/goods/2019/01/14/1547455890402147.jpg', 1, 6, 1651974846), (1072, 6, '/static/upload/images/goods/2019/01/14/1547455601314107.jpg', 1, 7, 1651974846), (1073, 6, '/static/upload/images/goods/2019/01/14/1547455601168384.jpg', 1, 8, 1651974846), (1074, 6, '/static/upload/images/goods/2019/01/14/1547455266234658.jpg', 1, 9, 1651974846), (1075, 6, '/static/upload/images/goods/2019/01/14/1547455266527628.jpg', 1, 10, 1651974846), (1076, 6, '/static/upload/images/goods/2019/01/14/1547455566118614.jpg', 1, 11, 1651974846), (1077, 6, '/static/upload/images/goods/2019/01/14/1547455240794230.jpg', 1, 12, 1651974846), (1078, 6, '/static/upload/images/goods/2019/01/14/1547455240700820.jpg', 1, 13, 1651974846), (1096, 11, '/static/upload/images/goods/2019/01/14/1547455601314107.jpg', 1, 0, 1653388767), (1097, 11, '/static/upload/images/goods/2019/01/14/1547455601168384.jpg', 1, 1, 1653388767), (1098, 11, '/static/upload/images/goods/2019/01/14/1547455601898622.jpg', 1, 2, 1653388767), (1099, 11, '/static/upload/images/goods/2019/01/14/1547455601528614.jpg', 1, 3, 1653388767), (1293, 1, '/static/upload/images/goods/2019/01/14/1547450781101144.jpg', 1, 0, 1654478404), (1294, 1, '/static/upload/images/goods/2019/01/14/1547450818141662.jpg', 1, 1, 1654478404), (1365, 9, '/static/upload/images/goods/2019/01/14/1547454702543219.jpg', 1, 0, 1657025483), (1366, 9, '/static/upload/images/goods/2019/01/14/1547454702272215.jpg', 1, 1, 1657025483), (1367, 9, '/static/upload/images/goods/2019/01/14/1547454702814719.jpg', 1, 2, 1657025483);
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-17 14:29:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_goods_spec_base
-- ----------------------------
DROP TABLE IF EXISTS `sxo_goods_spec_base`;
CREATE TABLE `sxo_goods_spec_base` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`goods_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`price` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '销售价格',
`inventory` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '库存',
`weight` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '重量kg ',
`coding` char(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '编码',
`barcode` char(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '条形码',
`original_price` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '原价',
`extends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '扩展数据(json格式存储)',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `goods_id`(`goods_id`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 2058 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品规格基础';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_goods_spec_base
-- ----------------------------
BEGIN;
2022-07-09 15:56:37 +08:00
INSERT INTO `sxo_goods_spec_base` VALUES (1081, 3, 3888.00, 0, 0.00, '', '', 6866.00, NULL, 1600151429), (1082, 4, 1999.00, 883, 0.00, '', '', 2300.00, NULL, 1600151450), (1551, 5, 2499.00, 883, 0.00, '', '', 0.00, NULL, 1635564107), (1552, 2, 6050.00, 888, 12.00, '', '', 6800.00, '{\"plugins_distribution_rules_1\":\"r|5\",\"plugins_distribution_down_rules_1\":\"\"}', 1636214343), (1553, 2, 6600.00, 887, 21.00, '', '', 7200.00, NULL, 1636214343), (1554, 2, 6800.00, 888, 22.00, '', '', 7600.00, NULL, 1636214343), (1555, 2, 6050.00, 888, 23.00, '', '', 6800.00, NULL, 1636214343), (1556, 2, 6600.00, 888, 12.00, '', '', 7200.00, NULL, 1636214343), (1557, 2, 6800.00, 888, 32.00, '', '', 7600.00, NULL, 1636214343), (1558, 2, 4500.00, 888, 23.00, '', '', 6800.00, NULL, 1636214343), (1559, 2, 4800.00, 888, 32.00, '', '', 6600.00, NULL, 1636214343), (1560, 2, 5500.00, 888, 11.00, '', '', 6000.00, NULL, 1636214343), (1562, 7, 130.00, 882, 0.00, '', '', 700.00, NULL, 1636214455), (1564, 10, 228.00, 888, 0.00, '', '', 568.00, NULL, 1636253269), (1679, 8, 268.00, 88, 0.00, '', '6907992507381', 299.00, NULL, 1649248258), (1680, 8, 356.00, 0, 0.00, '', '6907992507385', 428.00, NULL, 1649248258), (1821, 6, 2998.90, 884, 0.00, '', '', 3200.00, '{\"plugins_distribution_rules_1\":\"r|10\\nr|10\\nr|10\",\"plugins_distribution_down_rules_1\":\"\"}', 1651974846), (1867, 12, 0.01, 109, 0.00, '001', '6907992512761', 1.00, '{\"plugins_wholesale_alone_newbuy_rules\":\"10|r-0.92\\n20|r-0.8\\n30|s-10\\n40|1\",\"plugins_wholesale_newbuy_rules_10\":\"\",\"plugins_wholesale_newbuy_rules_20\":\"\",\"plugins_distribution_rules_1\":\"\",\"plugins_distribution_down_rules_1\":\"\",\"plugins_distribution_self_buy_rules_1\":\"\",\"plugins_distribution_force_current_user_rules_1\":\"\"}', 1653441363), (1868, 12, 0.00, 877, 0.00, '', '', 10.00, '{\"plugins_wholesale_alone_newbuy_rules\":\"\",\"plugins_wholesale_newbuy_rules_10\":\"\",\"plugins_wholesale_newbuy_rules_20\":\"\",\"plugins_distribution_rules_1\":\"\",\"plugins_distribution_down_rules_1\":\"\",\"plugins_distribution_self_buy_rules_1\":\"\",\"plugins_distribution_force_current_user_rules_1\":\"\"}', 1653441363), (1869, 12, 10.00, 898, 0.00, '', '', 30.00, '{\"plugins_wholesale_newbuy_rules_5\":\"9\",\"plugins_wholesale_newbuy_rules_10\":\"\",\"plugins_wholesale_newbuy_rules_20\":\"8\",\"plugins_wholesale_newbuy_rules_50\":\"7.8\",\"plugins_wholesale_newbuy_rules_100\":\"r|0.35\",\"plugins_wholesale_repurchase_rules_10_3000\":\"9\",\"plugins_wholesale_repurchase_rules_20_6000\":\"8\",\"plugins_wholesale_repurchase_rules_50_10000\":\"7\",\"plugins_wholesale_repurchase_rules_100_20000\":\"r|0.2\"}', 1653441363), (1870, 12, 200.00, 890, 0.00, '', '', 673.00, '{\"plugins_wholesale_alone_newbuy_rules\":\"\",\"plugins_wholesale_newbuy_rules_10\":\"s|160\",\"plugins_wholesale_newbuy_rules_20\":\"s|130\",\"plugins_distribution_rules_1\":\"\",\"plugins_distribution_down_rules_1\":\"\",\"plugins_distribution_self_buy_rules_1\":\"\",\"plugins_distribution_force_current_user_rules_1\":\"\"}', 1653441363), (1967, 1, 2100.12, 1530, 12.00, '12322', '498765456', 9200.00, NULL, 1654478404), (2016, 11, 258.00, 888, 0.00, '', '', 268.00, '{\"plugins_distribution_rules_1\":\"r|5\\nr|3\\ns|2\",\"plugins_distribution_down_rules_1\":\"r|10\"}', 1656599098), (2017, 11, 238.00, 875, 0.00, '', '', 0.00, '{\"plugins_distribution_rules_1\":\"r|5\\nr|3\\ns|2\",\"plugins_distribution_down_rules_1\":\"r|1\"}', 1656599098), (2018, 11, 160.00, 879, 0.00, '', '', 422.00, '{\"plugins_distribution_rules_20191202164330784159\":\"r|8\",\"plugins_distribution_rules_20191204113948916981\":\"\"}', 1656599098), (2029, 9, 120.00, 0, 17.00, '', '', 160.00, '{\"plugins_distribution_rules_1\":\"r|5\",\"plugins_distribution_down_rules_1\":\"\"}', 1657025483), (2030, 9, 120.00, 0, 17.00, '', '', 160.00, NULL, 1657025483), (2031, 9, 120.00, 0, 17.00, '', '', 160.00, NULL, 1657025483), (2032, 9, 120.00, 0, 17.00, '', '', 160.00, NULL, 1657025483), (2033, 9, 136.00, 0, 17.00, '', '', 188.00, NULL, 1657025483), (2034, 9, 136.00, 0, 17.00, '', '', 188
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-17 14:29:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_goods_spec_type
-- ----------------------------
DROP TABLE IF EXISTS `sxo_goods_spec_type`;
CREATE TABLE `sxo_goods_spec_type` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`goods_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '类型值json字符串存储',
2022-07-09 15:56:37 +08:00
`name` char(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '类型名称',
2021-11-23 09:21:22 +08:00
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `goods_id`(`goods_id`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 641 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品规格类型';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_goods_spec_type
-- ----------------------------
BEGIN;
2022-07-09 15:56:37 +08:00
INSERT INTO `sxo_goods_spec_type` VALUES (526, 2, '[{\"name\":\"套餐一\",\"images\":\"\"},{\"name\":\"套餐二\",\"images\":\"\"}]', '套餐', 1636214343), (527, 2, '[{\"name\":\"金色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547451274847894.jpg\"},{\"name\":\"银色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547451576558478.jpg\"}]', '颜色', 1636214343), (528, 2, '[{\"name\":\"32G\",\"images\":\"\"},{\"name\":\"64G\",\"images\":\"\"},{\"name\":\"128G\",\"images\":\"\"}]', '容量', 1636214343), (577, 8, '[{\"name\":\"红色\",\"images\":\"\"},{\"name\":\"蓝色\",\"images\":\"\"}]', '颜色', 1649248258), (621, 12, '[{\"name\":\"粉色\",\"images\":\"\"},{\"name\":\"白色\",\"images\":\"\"}]', '颜色', 1653441363), (622, 12, '[{\"name\":\"S+S\",\"images\":\"\"},{\"name\":\"M+M\",\"images\":\"\"}]', '尺码', 1653441363), (630, 11, '[{\"name\":\"M\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547455907486857.jpg\"},{\"name\":\"L\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547455907256518.jpg\"},{\"name\":\"XL\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547455601528614.jpg\"}]', '尺码', 1656599098), (633, 9, '[{\"name\":\"白色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547454702543219.jpg\"},{\"name\":\"粉色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547454702272215.jpg\"},{\"name\":\"黑色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547454702814719.jpg\"}]', '颜色', 1657025483), (634, 9, '[{\"name\":\"S\",\"images\":\"\"},{\"name\":\"M\",\"images\":\"\"},{\"name\":\"L\",\"images\":\"\"},{\"name\":\"XL\",\"images\":\"\"}]', '尺码', 1657025483);
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_goods_spec_value
-- ----------------------------
DROP TABLE IF EXISTS `sxo_goods_spec_value`;
CREATE TABLE `sxo_goods_spec_value` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`goods_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`goods_spec_base_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品规格基础id',
`value` char(230) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '规格值',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `goods_id`(`goods_id`) USING BTREE,
INDEX `goods_spec_base_id`(`goods_spec_base_id`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 3719 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品规格值';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_goods_spec_value
-- ----------------------------
BEGIN;
2022-07-09 15:56:37 +08:00
INSERT INTO `sxo_goods_spec_value` VALUES (3033, 2, 1552, '套餐一', 1636214343), (3034, 2, 1552, '金色', 1636214343), (3035, 2, 1552, '32G', 1636214343), (3036, 2, 1553, '套餐一', 1636214343), (3037, 2, 1553, '金色', 1636214343), (3038, 2, 1553, '64G', 1636214343), (3039, 2, 1554, '套餐一', 1636214343), (3040, 2, 1554, '金色', 1636214343), (3041, 2, 1554, '128G', 1636214343), (3042, 2, 1555, '套餐一', 1636214343), (3043, 2, 1555, '银色', 1636214343), (3044, 2, 1555, '32G', 1636214343), (3045, 2, 1556, '套餐一', 1636214343), (3046, 2, 1556, '银色', 1636214343), (3047, 2, 1556, '64G', 1636214343), (3048, 2, 1557, '套餐一', 1636214343), (3049, 2, 1557, '银色', 1636214343), (3050, 2, 1557, '128G', 1636214343), (3051, 2, 1558, '套餐二', 1636214343), (3052, 2, 1558, '金色', 1636214343), (3053, 2, 1558, '32G', 1636214343), (3054, 2, 1559, '套餐二', 1636214343), (3055, 2, 1559, '金色', 1636214343), (3056, 2, 1559, '128G', 1636214343), (3057, 2, 1560, '套餐二', 1636214343), (3058, 2, 1560, '银色', 1636214343), (3059, 2, 1560, '64G', 1636214343), (3248, 8, 1679, '红色', 1649248258), (3249, 8, 1680, '蓝色', 1649248258), (3555, 12, 1867, '粉色', 1653441363), (3556, 12, 1867, 'S+S', 1653441363), (3557, 12, 1868, '粉色', 1653441363), (3558, 12, 1868, 'M+M', 1653441363), (3559, 12, 1869, '白色', 1653441363), (3560, 12, 1869, 'S+S', 1653441363), (3561, 12, 1870, '白色', 1653441363), (3562, 12, 1870, 'M+M', 1653441363), (3626, 11, 2016, 'M', 1656599098), (3627, 11, 2017, 'L', 1656599098), (3628, 11, 2018, 'XL', 1656599098), (3647, 9, 2029, '白色', 1657025483), (3648, 9, 2029, 'S', 1657025483), (3649, 9, 2030, '白色', 1657025483), (3650, 9, 2030, 'M', 1657025483), (3651, 9, 2031, '白色', 1657025483), (3652, 9, 2031, 'L', 1657025483), (3653, 9, 2032, '白色', 1657025483), (3654, 9, 2032, 'XL', 1657025483), (3655, 9, 2033, '粉色', 1657025483), (3656, 9, 2033, 'S', 1657025483), (3657, 9, 2034, '粉色', 1657025483), (3658, 9, 2034, 'M', 1657025483), (3659, 9, 2035, '粉色', 1657025483), (3660, 9, 2035, 'L', 1657025483), (3661, 9, 2036, '黑色', 1657025483), (3662, 9, 2036, 'S', 1657025483), (3663, 9, 2037, '黑色', 1657025483), (3664, 9, 2037, 'XL', 1657025483);
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-17 14:29:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_layout
-- ----------------------------
DROP TABLE IF EXISTS `sxo_layout`;
CREATE TABLE `sxo_layout` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`type` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '类型',
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`config` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '配置信息',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `type`(`type`) USING BTREE,
INDEX `name`(`name`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE
2022-02-13 20:44:55 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '布局配置';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_layout
-- ----------------------------
BEGIN;
2022-04-21 23:31:16 +08:00
INSERT INTO `sxo_layout` VALUES (1, 'layout_index_home_data', '首页', '', 1, 1626773296, 1650354430);
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-17 14:29:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_link
-- ----------------------------
DROP TABLE IF EXISTS `sxo_link`;
CREATE TABLE `sxo_link` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
2021-12-26 13:16:01 +08:00
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '导航名称',
2022-02-12 18:44:59 +08:00
`url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'url地址',
2021-12-26 13:16:01 +08:00
`describe` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '描述',
2021-11-23 09:21:22 +08:00
`sort` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`is_new_window_open` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否新窗口打开0否1是',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '友情链接';
-- ----------------------------
-- Records of sxo_link
-- ----------------------------
BEGIN;
INSERT INTO `sxo_link` VALUES (1, 'uniapp主题', 'https://gitee.com/zongzhige/shopxo-uniapp', 'ShopXO主题uniapp端源码', 1, 1, 1, 1486292373, 1635056246), (12, 'AmazeUI', 'http://amazeui.shopxo.net/', 'AmazeUI国内首个HTML5框架', 4, 1, 1, 1486353476, 1563088005), (13, '龚哥哥的博客', 'http://gong.gg/', '龚哥哥的博客', 2, 1, 1, 1486353528, 1592320862), (14, 'ThinkPHP', 'http://www.thinkphp.cn/', 'ThinkPHP', 3, 1, 1, 1487919160, 0), (15, 'ShopXO', 'http://shopxo.net', 'ShopXO企业级B2C免费开源电商系统', 0, 1, 1, 1533711881, 1592320866), (16, 'Gitee', 'https://gitee.com/zongzhige/shopxo', '代码托管平台', 0, 1, 1, 1547450105, 1626528557), (17, 'GitHub', 'https://github.com/gongfuxiang/shopxo', '代码托管平台', 0, 1, 1, 1547450145, 1563088069), (18, 'ShopXO应用商店', 'http://store.shopxo.net/', 'ShopXO应用商店', 0, 1, 1, 1563088117, 1563088129), (20, '宝塔面板', 'https://www.bt.cn/?invite_code=MV9kZHh6b2Y=', '宝塔服务器控制面板', 5, 1, 1, 1566531114, 0), (21, '西部数码', 'https://www.west.cn/active/freetc/?ReferenceID=934057', '西部数码国内知名服务器提供商', 6, 1, 1, 1566531132, 0), (22, '纵之格科技', 'https://www.zongzhige.com/', '纵之格科技', 0, 1, 1, 1594273577, 0);
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_message
-- ----------------------------
DROP TABLE IF EXISTS `sxo_message`;
CREATE TABLE `sxo_message` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`title` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题',
2022-02-12 18:44:59 +08:00
`detail` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '详情',
2021-11-23 09:21:22 +08:00
`business_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '业务id',
`business_type` char(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '业务类型,字符串(如:订单、充值、提现、等...',
`type` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '消息类型0普通通知, ...',
`is_read` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否已读0否, 1是',
`is_delete_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否已删除0否, 大于0删除时间',
`user_is_delete_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户是否已删除0否, 大于0删除时间',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 1320 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '消息';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_message
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_navigation
-- ----------------------------
DROP TABLE IF EXISTS `sxo_navigation`;
CREATE TABLE `sxo_navigation` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`pid` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '父id',
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '导航名称',
2022-02-12 18:44:59 +08:00
`url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '自定义url地址',
2021-11-23 09:21:22 +08:00
`value` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '数据 id',
`data_type` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '数据类型custom:自定义导航, article_class:文章分类, customview:自定义页面)',
`nav_type` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '导航类型header:顶部导航, footer:底部导航)',
`sort` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`is_show` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否显示0否1是',
`is_new_window_open` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否新窗口打开0否1是',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `is_show`(`is_show`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE,
INDEX `nav_type`(`nav_type`) USING BTREE,
INDEX `pid`(`pid`) USING BTREE
2022-04-21 23:31:16 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 57 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '导航';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_navigation
-- ----------------------------
BEGIN;
INSERT INTO `sxo_navigation` VALUES (8, 0, '自定义页面test', '', 1, 'customview', 'header', 0, 0, 0, 1486352254, 1626336701), (17, 0, 'ShopXO', 'http://shopxo.net/', 0, 'custom', 'header', 10, 1, 1, 1487923617, 1627441399), (24, 54, '服饰鞋包', '', 2, 'goods_category', 'header', 0, 1, 0, 1539150026, 1627748423), (34, 0, '信息咨询', 'http://shopxo.net/', 0, 'custom', 'footer', 0, 1, 1, 1554795563, 1592232213), (35, 0, '客户服务', 'http://shopxo.net/', 0, 'custom', 'footer', 0, 1, 0, 1554795788, 0), (36, 0, '支付方式', 'http://shopxo.net/', 0, 'custom', 'footer', 0, 1, 0, 1554796068, 0), (37, 0, '会员中心', 'http://shopxo.net/', 0, 'custom', 'footer', 0, 1, 0, 1554796082, 0), (38, 34, '关于ShopXO', '', 29, 'article', 'footer', 0, 1, 0, 1554796171, 0), (39, 34, '联系我们', '', 28, 'article', 'footer', 0, 1, 0, 1554796188, 0), (40, 34, '招聘英才', '', 27, 'article', 'footer', 0, 1, 0, 1554796202, 0), (41, 34, '合作及洽谈', '', 26, 'article', 'footer', 0, 1, 0, 1554796211, 0), (42, 35, '如何注册成为会员', '', 1, 'article', 'footer', 0, 1, 0, 1554796239, 0), (43, 35, '积分细则', '', 3, 'article', 'footer', 0, 1, 0, 1554796245, 0), (44, 35, '如何搜索', '', 5, 'article', 'footer', 0, 1, 0, 1554796253, 0), (45, 36, '分期付款', '', 12, 'article', 'footer', 0, 1, 0, 1554796281, 0), (46, 36, '邮局汇款', '', 13, 'article', 'footer', 0, 1, 0, 1554796296, 0), (47, 36, '在线支付', '', 16, 'article', 'footer', 0, 1, 0, 1554796312, 0), (48, 36, '公司转账', '', 14, 'article', 'footer', 0, 1, 0, 1554796327, 0), (49, 36, '如何注册支付宝', '', 15, 'article', 'footer', 0, 1, 0, 1554796339, 0), (50, 37, '会员修改密码', '', 22, 'article', 'footer', 0, 1, 0, 1554796367, 0), (51, 37, '会员修改个人资料', '', 23, 'article', 'footer', 0, 1, 0, 1554796375, 0), (52, 37, '修改收货地址', '', 25, 'article', 'footer', 0, 1, 0, 1554796386, 0), (53, 37, '如何管理店铺', '', 7, 'article', 'footer', 0, 1, 0, 1554796399, 0), (54, 0, '商品分类', 'http://shopxo.net/', 0, 'custom', 'header', 0, 1, 0, 1556015784, 1626336700), (55, 0, '如何注册成为会员', '', 1, 'article', 'footer', 0, 1, 0, 1616685505, 0);
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_order
-- ----------------------------
DROP TABLE IF EXISTS `sxo_order`;
CREATE TABLE `sxo_order` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_no` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`warehouse_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '仓库id',
2022-02-12 18:44:59 +08:00
`user_note` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户备注',
2021-11-23 09:21:22 +08:00
`express_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '快递id',
`express_number` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '快递单号',
`payment_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付方式id',
`status` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单状态0待确认, 1已确认/待支付, 2已支付/待发货, 3已发货/待收货, 4已完成, 5已取消, 6已关闭',
`pay_status` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付状态0未支付, 1已支付, 2已退款, 3部分退款',
`extension_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '扩展展示数据',
`buy_number_count` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '购买商品总数量',
`increase_price` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '增加的金额',
`preferential_price` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '优惠金额',
`price` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '订单单价',
`total_price` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '订单总价(订单最终价格)',
`pay_price` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '已支付金额',
`refund_price` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '退款金额',
`returned_quantity` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '退货数量',
`client_type` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '客户端类型pc, h5, ios, android, alipay, weixin, baidu取APPLICATION_CLIENT_TYPE常量值',
`order_model` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单模式0销售型, 1展示型, 2自提点, 3虚拟销售',
`is_under_line` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否线下支付0否1是',
`pay_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付时间',
`confirm_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '确认时间',
`delivery_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '发货时间',
`cancel_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '取消时间',
`collect_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '收货时间',
`close_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '关闭时间',
`comments_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '评论时间',
`is_comments` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商家是否已评论0否, 大于0评论时间',
`user_is_comments` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户是否已评论0否, 大于0评论时间',
`is_delete_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商家是否已删除0否, 大于0删除时间',
`user_is_delete_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户是否已删除0否, 大于0删除时间',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `order_no`(`order_no`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE,
INDEX `status`(`status`) USING BTREE,
INDEX `pay_status`(`pay_status`) USING BTREE,
INDEX `warehouse_id`(`warehouse_id`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 568 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_order
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_order_address
-- ----------------------------
DROP TABLE IF EXISTS `sxo_order_address`;
CREATE TABLE `sxo_order_address` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单id',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`address_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '收件地址id',
`alias` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '别名',
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '收件人-姓名',
`tel` char(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '收件人-电话',
`province` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '收件人-省',
`city` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '收件人-市',
`county` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '收件人-县/区',
`address` char(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '收件人-详细地址',
`province_name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '收件人-省-名称',
`city_name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '收件人-市-名称',
`county_name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '收件人-县/区-名称',
`lng` decimal(13, 10) NOT NULL DEFAULT 0.0000000000 COMMENT '收货地址-经度',
`lat` decimal(13, 10) NOT NULL DEFAULT 0.0000000000 COMMENT '收货地址-纬度',
`idcard_name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '身份证姓名',
`idcard_number` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '身份证号码',
2022-02-12 18:44:59 +08:00
`idcard_front` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '身份证人像面图片',
`idcard_back` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '身份证国微面图片',
2021-11-23 09:21:22 +08:00
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `order_id`(`order_id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 275 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单地址';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_order_address
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_order_aftersale
-- ----------------------------
DROP TABLE IF EXISTS `sxo_order_aftersale`;
CREATE TABLE `sxo_order_aftersale` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_no` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单号',
`order_detail_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单详情id',
`order_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单id',
`goods_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`status` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态0待确认, 1待退货, 2待审核, 3已完成, 4已拒绝, 5已取消',
`type` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '业务类型0仅退款, 1退货退款',
`refundment` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '退款类型0原路退回, 1退至钱包, 2手动处理',
`reason` char(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '申请原因',
`number` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '退货数量',
`price` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '退款金额',
`msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '退款说明',
`images` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '凭证图片一维数组json存储',
`refuse_reason` char(230) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '拒绝原因',
`express_name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '快递名称',
`express_number` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '快递单号',
`apply_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '申请时间',
`confirm_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '确认时间',
`delivery_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '退货时间',
`audit_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '审核时间',
`cancel_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '取消时间',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `order_id`(`order_id`) USING BTREE,
INDEX `goods_id`(`goods_id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE,
INDEX `status`(`status`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 136 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单售后';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_order_aftersale
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_order_currency
-- ----------------------------
DROP TABLE IF EXISTS `sxo_order_currency`;
CREATE TABLE `sxo_order_currency` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单id',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`currency_name` char(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '货币名称',
`currency_code` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '货币代码',
`currency_symbol` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '货币符号',
`currency_rate` decimal(7, 6) UNSIGNED NOT NULL DEFAULT 0.000000 COMMENT '货币汇率',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `order_id`(`order_id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE,
INDEX `currency_name`(`currency_name`) USING BTREE,
INDEX `currency_code`(`currency_code`) USING BTREE,
INDEX `currency_rate`(`currency_rate`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 568 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单货币';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_order_currency
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_order_detail
-- ----------------------------
DROP TABLE IF EXISTS `sxo_order_detail`;
CREATE TABLE `sxo_order_detail` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`order_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单id',
`goods_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`title` char(160) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题',
2022-02-12 18:44:59 +08:00
`images` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '封面图片',
2021-11-23 09:21:22 +08:00
`original_price` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '原价',
`price` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '价格',
`total_price` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '当前总价(单价*数量)',
`spec` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '规格',
`buy_number` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '购买数量',
`model` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '型号',
`spec_weight` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '重量kg',
`spec_coding` char(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '编码',
`spec_barcode` char(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '条形码',
`refund_price` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '退款金额',
`returned_quantity` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '退货数量',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE,
INDEX `order_id`(`order_id`) USING BTREE,
INDEX `goods_id`(`goods_id`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 841 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单详情';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_order_detail
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_order_extraction_code
-- ----------------------------
DROP TABLE IF EXISTS `sxo_order_extraction_code`;
CREATE TABLE `sxo_order_extraction_code` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单id',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`code` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '取货码',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `order_id`(`order_id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 200 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单自提取货码关联';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_order_extraction_code
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_order_fictitious_value
-- ----------------------------
DROP TABLE IF EXISTS `sxo_order_fictitious_value`;
CREATE TABLE `sxo_order_fictitious_value` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单id',
`order_detail_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单详情id',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '虚拟商品展示数据',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `order_id`(`order_id`) USING BTREE,
INDEX `order_detail_id`(`order_detail_id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 144 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单虚拟销售数据关联';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_order_fictitious_value
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_order_goods_inventory_log
-- ----------------------------
DROP TABLE IF EXISTS `sxo_order_goods_inventory_log`;
CREATE TABLE `sxo_order_goods_inventory_log` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单id',
`order_detail_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单详情id',
`goods_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`order_status` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单状态0待确认, 1已确认/待支付, 2已支付/待发货, 3已发货/待收货, 4已完成, 5已取消, 6已关闭',
`original_inventory` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '原库存',
`new_inventory` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '最新库存',
`is_rollback` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否回滚0否, 1是',
`rollback_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '回滚时间',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `order_id`(`order_id`) USING BTREE,
INDEX `goods_id`(`goods_id`) USING BTREE,
INDEX `order_status`(`order_status`) USING BTREE,
INDEX `order_detail_id`(`order_detail_id`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 382 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单商品库存变更日志';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_order_goods_inventory_log
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_order_status_history
-- ----------------------------
DROP TABLE IF EXISTS `sxo_order_status_history`;
CREATE TABLE `sxo_order_status_history` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单id',
`original_status` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '原始状态',
`new_status` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '最新状态',
`msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '操作描述',
`creator` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建-用户id',
`creator_name` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '创建人-姓名',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `order_id`(`order_id`) USING BTREE,
INDEX `original_status`(`original_status`) USING BTREE,
INDEX `new_status`(`new_status`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 870 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单状态历史纪录';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_order_status_history
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_pay_log
-- ----------------------------
DROP TABLE IF EXISTS `sxo_pay_log`;
CREATE TABLE `sxo_pay_log` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '支付日志id',
`log_no` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付日志订单号',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`business_type` char(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '业务类型,字符串(如:订单、钱包充值、会员购买、等...',
`status` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态0待支付, 1已支付, 2已关闭正常30分钟内未支付将关闭',
`payment` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付方式标记',
`payment_name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付方式名称',
2022-02-12 18:44:59 +08:00
`subject` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单名称',
2021-11-23 09:21:22 +08:00
`total_price` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '业务订单金额',
`pay_price` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '支付金额',
`trade_no` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付平台交易号',
`buyer_user` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付平台用户帐号',
`pay_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付时间',
`close_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '关闭时间',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `payment`(`payment`) USING BTREE,
INDEX `status`(`status`) USING BTREE,
INDEX `business_type`(`business_type`) USING BTREE,
INDEX `total_price`(`total_price`) USING BTREE,
INDEX `pay_price`(`pay_price`) USING BTREE,
INDEX `add_time`(`add_time`) USING BTREE,
INDEX `pay_time`(`pay_time`) USING BTREE,
INDEX `close_time`(`close_time`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 1113 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付日志';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_pay_log
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_pay_log_value
-- ----------------------------
DROP TABLE IF EXISTS `sxo_pay_log_value`;
CREATE TABLE `sxo_pay_log_value` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`pay_log_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付日志id',
`business_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '业务订单id',
`business_no` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '业务订单号',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `pay_log_id`(`pay_log_id`) USING BTREE,
INDEX `business_id`(`business_id`) USING BTREE,
INDEX `add_time`(`add_time`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 1119 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付日志关联业务数据';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_pay_log_value
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_pay_request_log
-- ----------------------------
DROP TABLE IF EXISTS `sxo_pay_request_log`;
CREATE TABLE `sxo_pay_request_log` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`business_type` char(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '业务类型,字符串(如:订单、钱包充值、会员购买、等...',
`request_params` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '请求参数数组则json字符串存储',
`response_data` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '响应参数数组则json字符串存储',
`business_handle` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '业务处理结果数组则json字符串存储',
`request_url` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '请求url地址',
`server_port` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '端口号',
`server_ip` char(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '服务器ip',
`client_ip` char(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '客户端ip',
`os` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '操作系统',
`browser` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '浏览器',
`method` char(4) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '请求类型',
`scheme` char(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'http类型',
`version` char(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'http版本',
2022-02-12 18:44:59 +08:00
`client` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '客户端详情信息',
2021-11-23 09:21:22 +08:00
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `business_type`(`business_type`) USING BTREE,
INDEX `add_time`(`add_time`) USING BTREE
2022-05-18 22:23:06 +08:00
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付请求日志';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_pay_request_log
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_payment
-- ----------------------------
DROP TABLE IF EXISTS `sxo_payment`;
CREATE TABLE `sxo_payment` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
`payment` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '唯一标记',
2022-02-12 18:44:59 +08:00
`logo` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'logo',
`version` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '插件版本',
`apply_version` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '适用系统版本',
`desc` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '插件描述',
`author` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '作者',
`author_url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '作者主页',
2021-11-23 09:21:22 +08:00
`element` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '配置项规则',
`config` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '配置数据',
2022-02-12 18:44:59 +08:00
`apply_terminal` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '适用终端 php一维数组json字符串存储pc, h5, ios, android, alipay, weixin, baidu, toutiao, qq',
`apply_terminal_old` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '原始适用终端 php一维数组json字符串存储pc, h5, ios, android, alipay, weixin, baidu, toutiao, qq',
2021-11-23 09:21:22 +08:00
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`is_open_user` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否对用户开放',
`sort` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '顺序',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `payment`(`payment`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 21 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付方式';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_payment
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_plugins
-- ----------------------------
DROP TABLE IF EXISTS `sxo_plugins`;
CREATE TABLE `sxo_plugins` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '插件名称',
`plugins` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '唯一标记',
`data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '应用数据',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`sort` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `plugins`(`plugins`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 53 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '应用';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_plugins
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_power
-- ----------------------------
DROP TABLE IF EXISTS `sxo_power`;
CREATE TABLE `sxo_power` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '权限id',
`pid` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '权限父级id',
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '权限名称',
`control` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '控制器名称',
`action` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '方法名称',
2022-02-12 18:44:59 +08:00
`url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '自定义url地址',
2021-11-23 09:21:22 +08:00
`sort` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`is_show` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否显示0否1是',
`icon` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '图标class',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE
2022-04-21 23:31:16 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 487 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '权限';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_power
-- ----------------------------
BEGIN;
2022-07-09 15:56:37 +08:00
INSERT INTO `sxo_power` VALUES (1, 0, '权限控制', 'Power', 'Index', '', 3, 1, 'icon-quanxian', 1481612301), (4, 1, '角色管理', 'Role', 'Index', '', 20, 1, '', 1481639037), (13, 1, '权限分配', 'Power', 'Index', '', 30, 1, '', 1482156143), (15, 1, '权限添加/编辑', 'Power', 'Save', '', 31, 0, '', 1482243750), (16, 1, '权限删除', 'Power', 'Delete', '', 32, 0, '', 1482243797), (17, 1, '角色组添加/编辑页面', 'Role', 'SaveInfo', '', 21, 0, '', 1482243855), (18, 1, '角色组添加/编辑', 'Role', 'Save', '', 22, 0, '', 1482243888), (19, 1, '管理员添加/编辑页面', 'Admin', 'SaveInfo', '', 2, 0, '', 1482244637), (20, 1, '管理员添加/编辑', 'Admin', 'Save', '', 3, 0, '', 1482244666), (21, 1, '管理员删除', 'Admin', 'Delete', '', 4, 0, '', 1482244688), (22, 1, '管理员列表', 'Admin', 'Index', '', 1, 1, '', 1482568868), (23, 1, '角色删除', 'Role', 'Delete', '', 23, 0, '', 1482569155), (38, 0, '商品管理', 'Goods', 'Index', '', 5, 1, 'icon-shangpin', 1483283430), (39, 38, '商品管理', 'Goods', 'Index', '', 1, 1, '', 1483283546), (41, 0, '系统设置', 'Config', 'Index', '', 1, 1, 'icon-peizhi', 1483362358), (42, 41, '配置保存', 'Config', 'Save', '', 10, 0, '', 1483432335), (57, 38, '商品添加/编辑页面', 'Goods', 'SaveInfo', '', 2, 0, '', 1483616439), (58, 38, '商品添加/编辑', 'Goods', 'Save', '', 3, 0, '', 1483616492), (59, 38, '商品删除', 'Goods', 'Delete', '', 4, 0, '', 1483616569), (81, 0, '站点配置', 'Site', 'Index', '', 2, 1, 'icon-zhandianpeizhi', 1486182943), (103, 81, '站点设置', 'Site', 'Index', '', 0, 1, '', 1486561470), (104, 81, '短信设置', 'Sms', 'Index', '', 10, 1, '', 1486561615), (105, 81, '站点设置编辑', 'Site', 'Save', '', 1, 0, '', 1486561780), (107, 81, '短信设置编辑', 'Sms', 'Save', '', 11, 0, '', 1486562011), (118, 0, '工具', 'Tool', 'Index', '', 50, 1, 'icon-tools', 1488108044), (119, 118, '缓存管理', 'Cache', 'Index', '', 1, 1, '', 1488108107), (120, 118, '站点缓存更新', 'Cache', 'StatusUpdate', '', 2, 0, '', 1488108235), (121, 118, '模板缓存更新', 'Cache', 'TemplateUpdate', '', 2, 0, '', 1488108390), (122, 118, '模块缓存更新', 'Cache', 'ModuleUpdate', '', 3, 0, '', 1488108436), (126, 0, '用户管理', 'User', 'Index', '', 4, 1, 'icon-yonghuguanli', 1490794162), (127, 126, '用户列表', 'User', 'Index', '', 0, 1, '', 1490794316), (128, 126, '用户编辑/添加页面', 'User', 'SaveInfo', '', 1, 0, '', 1490794458), (129, 126, '用户添加/编辑', 'User', 'Save', '', 2, 0, '', 1490794510), (130, 126, '用户删除', 'User', 'Delete', '', 3, 0, '', 1490794585), (146, 126, 'Excel导出', 'User', 'ExcelExport', '', 6, 0, '', 1522223773), (153, 222, '地区管理', 'Region', 'Index', '', 60, 1, '', 1526304473), (154, 222, '地区添加/编辑', 'Region', 'Save', '', 61, 0, '', 1526304503), (155, 222, '地区删除', 'Region', 'Delete', '', 62, 0, '', 1526304531), (156, 222, '快递管理', 'Express', 'Index', '', 70, 1, '', 1526304473), (157, 222, '快递添加/编辑', 'Express', 'Save', '', 71, 0, '', 1526304473), (158, 222, '快递删除', 'Express', 'Delete', '', 72, 0, '', 1526304473), (172, 222, '首页轮播', 'Slide', 'Index', '', 40, 1, '', 1527149117), (173, 222, '轮播添加/编辑页面', 'Slide', 'SaveInfo', '', 41, 0, '', 1527149152), (174, 222, '轮播添加/编辑', 'Slide', 'Save', '', 42, 0, '', 1527149186), (175, 222, '轮播状态更新', 'Slide', 'StatusUpdate', '', 43, 0, '', 1527156980), (176, 222, '轮播删除', 'Slide', 'Delete', '', 44, 0, '', 1527157260), (177, 0, '订单管理', 'Order', 'Index', '', 6, 1, 'icon-dingdan', 1522229870), (178, 177, '订单管理', 'Order', 'Index', '', 1, 1, '', 1522317898), (179, 177, '订单删除', 'Order', 'Delete', '', 2, 0, '', 1522317917), (180, 177, '订单取消', 'Order', 'Cancel', '', 3, 0, '', 1527497803), (181, 38, '商品状态更新', 'Goods', 'StatusUpdate', '', 5, 0, '', 1528080200), (182, 0, '数据管理', 'Data', 'Index', '', 22, 1, 'icon-shuju', 1528096661), (183, 182, '消息管理', 'Message', '
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_quick_nav
-- ----------------------------
DROP TABLE IF EXISTS `sxo_quick_nav`;
CREATE TABLE `sxo_quick_nav` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`platform` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pc' COMMENT '所属平台pc PC网站, h5 H5手机网站, ios 苹果APP, android 安卓APP, alipay 支付宝小程序, weixin 微信小程序, baidu 百度小程序, toutiao 头条小程序, qq QQ小程序',
`event_type` tinyint NOT NULL DEFAULT -1 COMMENT '事件类型0 WEB页面, 1 内部页面(小程序或APP内部地址), 2 外部小程序(同一个主体下的小程序appid), 3 打开地图, 4 拨打电话)',
2022-02-12 18:44:59 +08:00
`event_value` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '事件值',
`images_url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '图片地址',
2021-11-23 09:21:22 +08:00
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`bg_color` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'css背景色值',
`sort` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `platform`(`platform`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 29 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '快捷导航';
-- ----------------------------
-- Records of sxo_quick_nav
-- ----------------------------
BEGIN;
2022-02-12 18:44:59 +08:00
INSERT INTO `sxo_quick_nav` VALUES (1, 'pc', 0, 'index.php?s=category/index.html', '/static/upload/images/quick_nav/2020/09/11/1599806728463641.png', '分类', 1, '#FF9933', 0, 1599806738, 1644162408), (2, 'pc', 4, '17688888888', '/static/upload/images/quick_nav/2020/09/17/1600322667732829.png', '电话', 1, '#FF00CC', 0, 1599807003, 1600322701), (3, 'pc', 0, 'index.php?s=order/index.html', '/static/upload/images/quick_nav/2020/09/11/1599808001838784.png', '订单', 1, '#996633', 0, 1599808005, 1644162397), (4, 'pc', 3, 'ShopXO|上海浦东新区张江高科技园区XXX号|121.633055|31.21412', '/static/upload/images/quick_nav/2020/09/17/1600321639662998.png', '地图', 0, '#0066FF', 0, 1599808052, 1627539990), (5, 'h5', 1, '/pages/goods-category/goods-category', '/static/upload/images/quick_nav/2020/09/11/1599806728463641.png', '分类', 1, '#FF9933', 0, 1599806738, 1639114465), (6, 'h5', 4, '17688888888', '/static/upload/images/quick_nav/2020/09/17/1600322667732829.png', '电话', 1, '#FF00CC', 0, 1599807003, 0), (7, 'h5', 1, '/pages/user-order/user-order', '/static/upload/images/quick_nav/2020/09/11/1599808001838784.png', '订单', 1, '#996633', 0, 1599808005, 1639114493), (8, 'h5', 3, 'ShopXO|上海浦东新区张江高科技园区XXX号|121.633055|31.21412', '/static/upload/images/quick_nav/2020/09/17/1600321639662998.png', '地图位置', 1, '#0066FF', 0, 1599808052, 1639114516), (9, 'weixin', 1, '/pages/goods-category/goods-category', '/static/upload/images/quick_nav/2020/09/11/1599806728463641.png', '分类', 1, '#FF9933', 0, 1599806738, 1599810379), (10, 'weixin', 4, '17688888888', '/static/upload/images/quick_nav/2020/09/17/1600322667732829.png', '电话', 1, '#FF00CC', 0, 1599807003, 1600076541), (11, 'weixin', 1, '/pages/user-order/user-order', '/static/upload/images/quick_nav/2020/09/11/1599808001838784.png', '订单', 1, '#996633', 0, 1599808005, 1599808064), (12, 'weixin', 3, 'ShopXO|上海浦东新区张江高科技园区XXX号|121.633055|31.21412', '/static/upload/images/quick_nav/2020/09/17/1600321639662998.png', '地图', 1, '#0066FF', 0, 1599808052, 1600321670), (13, 'alipay', 1, '/pages/goods-category/goods-category', '/static/upload/images/quick_nav/2020/09/11/1599806728463641.png', '分类', 1, '#FF9933', 0, 1599806738, 1599810379), (14, 'alipay', 4, '17688888888', '/static/upload/images/quick_nav/2020/09/17/1600322667732829.png', '电话', 1, '#FF00CC', 0, 1599807003, 1600076541), (15, 'alipay', 1, '/pages/user-order/user-order', '/static/upload/images/quick_nav/2020/09/11/1599808001838784.png', '订单', 1, '#996633', 0, 1599808005, 1599808064), (16, 'alipay', 3, 'ShopXO|上海浦东新区张江高科技园区XXX号|121.633055|31.21412', '/static/upload/images/quick_nav/2020/09/17/1600321639662998.png', '地图', 1, '#0066FF', 0, 1599808052, 1600321670), (17, 'baidu', 1, '/pages/goods-category/goods-category', '/static/upload/images/quick_nav/2020/09/11/1599806728463641.png', '分类', 1, '#FF9933', 0, 1599806738, 1599810379), (18, 'baidu', 4, '17688888888', '/static/upload/images/quick_nav/2020/09/17/1600322667732829.png', '电话', 1, '#FF00CC', 0, 1599807003, 1600323589), (19, 'baidu', 1, '/pages/user-order/user-order', '/static/upload/images/quick_nav/2020/09/11/1599808001838784.png', '订单', 1, '#996633', 0, 1599808005, 1599808064), (20, 'baidu', 3, 'ShopXO|上海浦东新区张江高科技园区XXX号|121.633055|31.21412', '/static/upload/images/quick_nav/2020/09/17/1600321639662998.png', '地图', 1, '#0066FF', 0, 1599808052, 1600321670), (21, 'qq', 1, '/pages/goods-category/goods-category', '/static/upload/images/quick_nav/2020/09/11/1599806728463641.png', '分类', 1, '#FF9933', 0, 1599806738, 1599810379), (22, 'qq', 4, '17688888888', '/static/upload/images/quick_nav/2020/09/17/1600322667732829.png', '电话', 1, '#FF00CC', 0, 1599807003, 1600076541), (23, 'qq', 1, '/pages/user-order/user-order', '/static/upload/images/quick_nav/2020/09/11/1599808001838784.png', '订单', 1, '#996633', 0, 1599808005, 1599808064), (24, 'qq', 3, 'ShopXO|上海浦东新区张江高科技园区XXX号|121.
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_refund_log
-- ----------------------------
DROP TABLE IF EXISTS `sxo_refund_log`;
CREATE TABLE `sxo_refund_log` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '退款日志id',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`business_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '业务订单id',
`business_type` char(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '业务类型,字符串(如:订单、钱包充值、会员购买、等...',
`trade_no` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付平台交易号',
`buyer_user` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付平台用户帐号',
`refund_price` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '退款金额',
`pay_price` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '订单实际支付金额',
`msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '描述',
`payment` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付方式标记',
`payment_name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付方式名称',
`refundment` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '退款类型0原路退回, 1退至钱包, 2手动处理',
`return_params` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '支付平台返回参数以json存储',
`add_time` int UNSIGNED NOT NULL COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `payment`(`payment`) USING BTREE,
INDEX `business_id`(`business_id`) USING BTREE,
INDEX `business_type`(`business_type`) USING BTREE
2022-04-21 23:31:16 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '退款日志';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_refund_log
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_region
-- ----------------------------
DROP TABLE IF EXISTS `sxo_region`;
CREATE TABLE `sxo_region` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`pid` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '父id',
2022-02-12 18:44:59 +08:00
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
2021-11-23 09:21:22 +08:00
`level` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '级别类型1:一级[所有省], 2二级[所有市], 3:三级[所有区县], 4:街道[所有街道]',
`letters` char(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '城市首字母',
`sort` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `pid`(`pid`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE,
2022-04-21 23:31:16 +08:00
INDEX `sort`(`sort`) USING BTREE,
INDEX `level`(`level`) USING BTREE,
INDEX `letters`(`letters`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = MyISAM AUTO_INCREMENT = 3450 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '地区';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_region
-- ----------------------------
BEGIN;
2022-04-21 23:31:16 +08:00
INSERT INTO `sxo_region` VALUES (1, 0, '北京市', 1, '', 0, 1, 1649559939, 0), (2, 0, '天津市', 1, '', 0, 1, 1649559939, 0), (3, 0, '河北省', 1, '', 0, 1, 1649559939, 0), (4, 0, '山西省', 1, '', 0, 1, 1649559939, 0), (5, 0, '内蒙古自治区', 1, '', 0, 1, 1649559939, 0), (6, 0, '辽宁省', 1, '', 0, 1, 1649559939, 0), (7, 0, '吉林省', 1, '', 0, 1, 1649559939, 0), (8, 0, '黑龙江省', 1, '', 0, 1, 1649559939, 0), (9, 0, '上海市', 1, '', 0, 1, 1649559939, 0), (10, 0, '江苏省', 1, '', 0, 1, 1649559939, 0), (11, 0, '浙江省', 1, '', 0, 1, 1649559939, 0), (12, 0, '安徽省', 1, '', 0, 1, 1649559939, 0), (13, 0, '福建省', 1, '', 0, 1, 1649559939, 0), (14, 0, '江西省', 1, '', 0, 1, 1649559939, 0), (15, 0, '山东省', 1, '', 0, 1, 1649559939, 0), (16, 0, '河南省', 1, '', 0, 1, 1649559939, 0), (17, 0, '湖北省', 1, '', 0, 1, 1649559939, 0), (18, 0, '湖南省', 1, '', 0, 1, 1649559939, 0), (19, 0, '广东省', 1, '', 0, 1, 1649559939, 0), (20, 0, '广西壮族自治区', 1, '', 0, 1, 1649559939, 0), (21, 0, '海南省', 1, '', 0, 1, 1649559939, 0), (22, 0, '重庆市', 1, '', 0, 1, 1649559939, 0), (23, 0, '四川省', 1, '', 0, 1, 1649559939, 0), (24, 0, '贵州省', 1, '', 0, 1, 1649559939, 0), (25, 0, '云南省', 1, '', 0, 1, 1649559939, 0), (26, 0, '西藏自治区', 1, '', 0, 1, 1649559939, 0), (27, 0, '陕西省', 1, '', 0, 1, 1649559939, 0), (28, 0, '甘肃省', 1, '', 0, 1, 1649559939, 0), (29, 0, '青海省', 1, '', 0, 1, 1649559939, 0), (30, 0, '宁夏回族自治区', 1, '', 0, 1, 1649559939, 0), (31, 0, '新疆维吾尔自治区', 1, '', 0, 1, 1649559939, 0), (32, 0, '台湾省', 1, '', 0, 1, 1649559939, 0), (33, 0, '香港特别行政区', 1, '', 0, 1, 1649559939, 0), (34, 0, '澳门特别行政区', 1, '', 0, 1, 1649559939, 0), (35, 0, '海外', 1, '', 0, 1, 1649559939, 0), (36, 1, '北京市', 2, '', 0, 1, 1649559939, 0), (37, 2, '天津市', 2, '', 0, 1, 1649559939, 0), (38, 3, '石家庄市', 2, '', 0, 1, 1649559939, 0), (39, 3, '唐山市', 2, '', 0, 1, 1649559939, 0), (40, 3, '秦皇岛市', 2, '', 0, 1, 1649559939, 0), (41, 3, '邯郸市', 2, '', 0, 1, 1649559939, 0), (42, 3, '邢台市', 2, '', 0, 1, 1649559939, 0), (43, 3, '保定市', 2, '', 0, 1, 1649559939, 0), (44, 3, '张家口市', 2, '', 0, 1, 1649559939, 0), (45, 3, '承德市', 2, '', 0, 1, 1649559939, 0), (46, 3, '沧州市', 2, '', 0, 1, 1649559939, 0), (47, 3, '廊坊市', 2, '', 0, 1, 1649559939, 0), (48, 3, '衡水市', 2, '', 0, 1, 1649559939, 0), (49, 4, '太原市', 2, '', 0, 1, 1649559939, 0), (50, 4, '大同市', 2, '', 0, 1, 1649559939, 0), (51, 4, '阳泉市', 2, '', 0, 1, 1649559939, 0), (52, 4, '长治市', 2, '', 0, 1, 1649559939, 0), (53, 4, '晋城市', 2, '', 0, 1, 1649559939, 0), (54, 4, '朔州市', 2, '', 0, 1, 1649559939, 0), (55, 4, '晋中市', 2, '', 0, 1, 1649559939, 0), (56, 4, '运城市', 2, '', 0, 1, 1649559939, 0), (57, 4, '忻州市', 2, '', 0, 1, 1649559939, 0), (58, 4, '临汾市', 2, '', 0, 1, 1649559939, 0), (59, 4, '吕梁市', 2, '', 0, 1, 1649559939, 0), (60, 5, '呼和浩特市', 2, '', 0, 1, 1649559939, 0), (61, 5, '包头市', 2, '', 0, 1, 1649559939, 0), (62, 5, '乌海市', 2, '', 0, 1, 1649559939, 0), (63, 5, '赤峰市', 2, '', 0, 1, 1649559939, 0), (64, 5, '通辽市', 2, '', 0, 1, 1649559939, 0), (65, 5, '鄂尔多斯市', 2, '', 0, 1, 1649559939, 0), (66, 5, '呼伦贝尔市', 2, '', 0, 1, 1649559939, 0), (67, 5, '巴彦淖尔市', 2, '', 0, 1, 1649559939, 0), (68, 5, '乌兰察布市', 2, '', 0, 1, 1649559939, 0), (69, 5, '兴安盟', 2, '', 0, 1, 1649559939, 0), (70, 5, '锡林郭勒盟', 2, '', 0, 1, 1649559939, 0), (71, 5, '阿拉善盟', 2, '', 0, 1, 1649559939, 0), (72, 6, '沈阳市', 2, '', 0, 1, 1649559939, 0), (73, 6, '大连市', 2, '', 0, 1, 1649559939, 0), (74, 6, '鞍山市', 2, '', 0, 1, 1649559939, 0), (75, 6, '抚顺市', 2, '', 0, 1, 1649559939, 0), (76, 6, '本溪市', 2, '', 0, 1, 1649559939, 0), (77, 6, '丹东市', 2, '', 0, 1, 1649559939, 0), (78, 6, '锦州市', 2, '', 0, 1, 1649559939, 0), (79, 6, '营口市', 2, '', 0, 1, 1649559939,
INSERT INTO `sxo_region` VALUES (1215, 108, '浦东新区', 3, '', 0, 1, 1649559940, 0), (1216, 108, '金山区', 3, '', 0, 1, 1649559940, 0), (1217, 108, '松江区', 3, '', 0, 1, 1649559940, 0), (1218, 108, '青浦区', 3, '', 0, 1, 1649559940, 0), (1219, 108, '奉贤区', 3, '', 0, 1, 1649559940, 0), (1220, 108, '崇明区', 3, '', 0, 1, 1649559940, 0), (1221, 109, '玄武区', 3, '', 0, 1, 1649559940, 0), (1222, 109, '秦淮区', 3, '', 0, 1, 1649559940, 0), (1223, 109, '建邺区', 3, '', 0, 1, 1649559940, 0), (1224, 109, '鼓楼区', 3, '', 0, 1, 1649559940, 0), (1225, 109, '浦口区', 3, '', 0, 1, 1649559940, 0), (1226, 109, '栖霞区', 3, '', 0, 1, 1649559940, 0), (1227, 109, '雨花台区', 3, '', 0, 1, 1649559940, 0), (1228, 109, '江宁区', 3, '', 0, 1, 1649559940, 0), (1229, 109, '六合区', 3, '', 0, 1, 1649559940, 0), (1230, 109, '溧水区', 3, '', 0, 1, 1649559940, 0), (1231, 109, '高淳区', 3, '', 0, 1, 1649559940, 0), (1232, 110, '锡山区', 3, '', 0, 1, 1649559940, 0), (1233, 110, '惠山区', 3, '', 0, 1, 1649559940, 0), (1234, 110, '滨湖区', 3, '', 0, 1, 1649559940, 0), (1235, 110, '梁溪区', 3, '', 0, 1, 1649559940, 0), (1236, 110, '新吴区', 3, '', 0, 1, 1649559940, 0), (1237, 110, '江阴市', 3, '', 0, 1, 1649559940, 0), (1238, 110, '宜兴市', 3, '', 0, 1, 1649559940, 0), (1239, 111, '鼓楼区', 3, '', 0, 1, 1649559940, 0), (1240, 111, '云龙区', 3, '', 0, 1, 1649559940, 0), (1241, 111, '贾汪区', 3, '', 0, 1, 1649559940, 0), (1242, 111, '泉山区', 3, '', 0, 1, 1649559940, 0), (1243, 111, '铜山区', 3, '', 0, 1, 1649559940, 0), (1244, 111, '丰县', 3, '', 0, 1, 1649559940, 0), (1245, 111, '沛县', 3, '', 0, 1, 1649559940, 0), (1246, 111, '睢宁县', 3, '', 0, 1, 1649559940, 0), (1247, 111, '徐州经济技术开发区', 3, '', 0, 1, 1649559940, 0), (1248, 111, '新沂市', 3, '', 0, 1, 1649559940, 0), (1249, 111, '邳州市', 3, '', 0, 1, 1649559940, 0), (1250, 112, '天宁区', 3, '', 0, 1, 1649559940, 0), (1251, 112, '钟楼区', 3, '', 0, 1, 1649559940, 0), (1252, 112, '新北区', 3, '', 0, 1, 1649559940, 0), (1253, 112, '武进区', 3, '', 0, 1, 1649559940, 0), (1254, 112, '金坛区', 3, '', 0, 1, 1649559940, 0), (1255, 112, '溧阳市', 3, '', 0, 1, 1649559940, 0), (1256, 113, '虎丘区', 3, '', 0, 1, 1649559940, 0), (1257, 113, '吴中区', 3, '', 0, 1, 1649559940, 0), (1258, 113, '相城区', 3, '', 0, 1, 1649559940, 0), (1259, 113, '姑苏区', 3, '', 0, 1, 1649559940, 0), (1260, 113, '吴江区', 3, '', 0, 1, 1649559940, 0), (1261, 113, '苏州工业园区', 3, '', 0, 1, 1649559940, 0), (1262, 113, '常熟市', 3, '', 0, 1, 1649559940, 0), (1263, 113, '张家港市', 3, '', 0, 1, 1649559940, 0), (1264, 113, '昆山市', 3, '', 0, 1, 1649559940, 0), (1265, 113, '太仓市', 3, '', 0, 1, 1649559940, 0), (1266, 114, '通州区', 3, '', 0, 1, 1649559940, 0), (1267, 114, '崇川区', 3, '', 0, 1, 1649559940, 0), (1268, 114, '海门区', 3, '', 0, 1, 1649559940, 0), (1269, 114, '如东县', 3, '', 0, 1, 1649559940, 0), (1270, 114, '南通经济技术开发区', 3, '', 0, 1, 1649559940, 0), (1271, 114, '启东市', 3, '', 0, 1, 1649559940, 0), (1272, 114, '如皋市', 3, '', 0, 1, 1649559940, 0), (1273, 114, '海安市', 3, '', 0, 1, 1649559940, 0), (1274, 115, '连云区', 3, '', 0, 1, 1649559940, 0), (1275, 115, '海州区', 3, '', 0, 1, 1649559940, 0), (1276, 115, '赣榆区', 3, '', 0, 1, 1649559940, 0), (1277, 115, '东海县', 3, '', 0, 1, 1649559940, 0), (1278, 115, '灌云县', 3, '', 0, 1, 1649559940, 0), (1279, 115, '灌南县', 3, '', 0, 1, 1649559940, 0), (1280, 115, '连云港经济技术开发区', 3, '', 0, 1, 1649559940, 0), (1281, 115, '连云港高新技术产业开发区', 3, '', 0, 1, 1649559940, 0), (1282, 116, '淮安区', 3, '', 0, 1, 1649559940, 0), (1283, 116, '淮阴区', 3, '', 0, 1, 1649559940, 0), (1284, 116, '清江浦区', 3, '', 0, 1, 1649559940, 0), (1285, 116, '洪泽区', 3, '', 0, 1, 1649559940, 0), (1286, 116, '涟水县', 3, '', 0, 1, 1649559940, 0), (1287, 116, '盱眙县', 3, '', 0, 1, 1649559940, 0), (1288, 116, '金湖县
INSERT INTO `sxo_region` VALUES (2395, 245, '阳东区', 3, '', 0, 1, 1649559941, 0), (2396, 245, '阳西县', 3, '', 0, 1, 1649559941, 0), (2397, 245, '阳春市', 3, '', 0, 1, 1649559941, 0), (2398, 246, '清城区', 3, '', 0, 1, 1649559941, 0), (2399, 246, '清新区', 3, '', 0, 1, 1649559941, 0), (2400, 246, '佛冈县', 3, '', 0, 1, 1649559941, 0), (2401, 246, '阳山县', 3, '', 0, 1, 1649559941, 0), (2402, 246, '连山壮族瑶族自治县', 3, '', 0, 1, 1649559941, 0), (2403, 246, '连南瑶族自治县', 3, '', 0, 1, 1649559941, 0), (2404, 246, '英德市', 3, '', 0, 1, 1649559941, 0), (2405, 246, '连州市', 3, '', 0, 1, 1649559941, 0), (2406, 247, '东莞市', 3, '', 0, 1, 1649559941, 0), (2407, 248, '中山市', 3, '', 0, 1, 1649559941, 0), (2408, 249, '湘桥区', 3, '', 0, 1, 1649559941, 0), (2409, 249, '潮安区', 3, '', 0, 1, 1649559941, 0), (2410, 249, '饶平县', 3, '', 0, 1, 1649559941, 0), (2411, 250, '榕城区', 3, '', 0, 1, 1649559941, 0), (2412, 250, '揭东区', 3, '', 0, 1, 1649559941, 0), (2413, 250, '揭西县', 3, '', 0, 1, 1649559941, 0), (2414, 250, '惠来县', 3, '', 0, 1, 1649559941, 0), (2415, 250, '普宁市', 3, '', 0, 1, 1649559941, 0), (2416, 251, '云城区', 3, '', 0, 1, 1649559941, 0), (2417, 251, '云安区', 3, '', 0, 1, 1649559941, 0), (2418, 251, '新兴县', 3, '', 0, 1, 1649559941, 0), (2419, 251, '郁南县', 3, '', 0, 1, 1649559941, 0), (2420, 251, '罗定市', 3, '', 0, 1, 1649559941, 0), (2421, 252, '兴宁区', 3, '', 0, 1, 1649559941, 0), (2422, 252, '青秀区', 3, '', 0, 1, 1649559941, 0), (2423, 252, '江南区', 3, '', 0, 1, 1649559941, 0), (2424, 252, '西乡塘区', 3, '', 0, 1, 1649559941, 0), (2425, 252, '良庆区', 3, '', 0, 1, 1649559941, 0), (2426, 252, '邕宁区', 3, '', 0, 1, 1649559941, 0), (2427, 252, '武鸣区', 3, '', 0, 1, 1649559941, 0), (2428, 252, '隆安县', 3, '', 0, 1, 1649559941, 0), (2429, 252, '马山县', 3, '', 0, 1, 1649559941, 0), (2430, 252, '上林县', 3, '', 0, 1, 1649559941, 0), (2431, 252, '宾阳县', 3, '', 0, 1, 1649559941, 0), (2432, 252, '横州市', 3, '', 0, 1, 1649559941, 0), (2433, 253, '城中区', 3, '', 0, 1, 1649559941, 0), (2434, 253, '鱼峰区', 3, '', 0, 1, 1649559941, 0), (2435, 253, '柳南区', 3, '', 0, 1, 1649559941, 0), (2436, 253, '柳北区', 3, '', 0, 1, 1649559941, 0), (2437, 253, '柳江区', 3, '', 0, 1, 1649559941, 0), (2438, 253, '柳城县', 3, '', 0, 1, 1649559941, 0), (2439, 253, '鹿寨县', 3, '', 0, 1, 1649559941, 0), (2440, 253, '融安县', 3, '', 0, 1, 1649559941, 0), (2441, 253, '融水苗族自治县', 3, '', 0, 1, 1649559941, 0), (2442, 253, '三江侗族自治县', 3, '', 0, 1, 1649559941, 0), (2443, 254, '秀峰区', 3, '', 0, 1, 1649559941, 0), (2444, 254, '叠彩区', 3, '', 0, 1, 1649559941, 0), (2445, 254, '象山区', 3, '', 0, 1, 1649559941, 0), (2446, 254, '七星区', 3, '', 0, 1, 1649559941, 0), (2447, 254, '雁山区', 3, '', 0, 1, 1649559941, 0), (2448, 254, '临桂区', 3, '', 0, 1, 1649559941, 0), (2449, 254, '阳朔县', 3, '', 0, 1, 1649559941, 0), (2450, 254, '灵川县', 3, '', 0, 1, 1649559941, 0), (2451, 254, '全州县', 3, '', 0, 1, 1649559941, 0), (2452, 254, '兴安县', 3, '', 0, 1, 1649559941, 0), (2453, 254, '永福县', 3, '', 0, 1, 1649559941, 0), (2454, 254, '灌阳县', 3, '', 0, 1, 1649559941, 0), (2455, 254, '龙胜各族自治县', 3, '', 0, 1, 1649559941, 0), (2456, 254, '资源县', 3, '', 0, 1, 1649559941, 0), (2457, 254, '平乐县', 3, '', 0, 1, 1649559941, 0), (2458, 254, '恭城瑶族自治县', 3, '', 0, 1, 1649559941, 0), (2459, 254, '荔浦市', 3, '', 0, 1, 1649559941, 0), (2460, 255, '万秀区', 3, '', 0, 1, 1649559941, 0), (2461, 255, '长洲区', 3, '', 0, 1, 1649559941, 0), (2462, 255, '龙圩区', 3, '', 0, 1, 1649559941, 0), (2463, 255, '苍梧县', 3, '', 0, 1, 1649559941, 0), (2464, 255, '藤县', 3, '', 0, 1, 1649559941, 0), (2465, 255, '蒙山县', 3, '', 0, 1, 1649559941, 0), (2466, 255, '岑溪市', 3, '', 0, 1, 1649559941, 0), (2467, 256, '海城区', 3, '', 0, 1, 1649559941, 0), (2468, 256, '银海区', 3, '', 0, 1, 16495
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_role
-- ----------------------------
DROP TABLE IF EXISTS `sxo_role`;
CREATE TABLE `sxo_role` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '角色组id',
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '角色名称',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色组';
-- ----------------------------
-- Records of sxo_role
-- ----------------------------
BEGIN;
2022-02-12 18:44:59 +08:00
INSERT INTO `sxo_role` VALUES (1, '超级管理员', 1, 1481350313, 0), (13, '管理员', 1, 1484402362, 1642933579);
COMMIT;
-- ----------------------------
-- Table structure for sxo_role_plugins
-- ----------------------------
DROP TABLE IF EXISTS `sxo_role_plugins`;
CREATE TABLE `sxo_role_plugins` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '关联id',
`role_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '角色id',
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '插件名称',
`plugins` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '唯一标记',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `role_id`(`role_id`) USING BTREE,
INDEX `name`(`name`) USING BTREE,
INDEX `plugins`(`plugins`) USING BTREE
2022-05-18 22:23:06 +08:00
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色与权限插件';
2022-02-12 18:44:59 +08:00
-- ----------------------------
-- Records of sxo_role_plugins
-- ----------------------------
BEGIN;
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_role_power
-- ----------------------------
DROP TABLE IF EXISTS `sxo_role_power`;
CREATE TABLE `sxo_role_power` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '关联id',
`role_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '角色id',
`power_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '权限id',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `role_id`(`role_id`) USING BTREE,
INDEX `power_id`(`power_id`) USING BTREE
2022-02-12 18:44:59 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 4955 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色与权限管理';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_role_power
-- ----------------------------
BEGIN;
2022-02-12 18:44:59 +08:00
INSERT INTO `sxo_role_power` VALUES (4871, 13, 41, 1642933579), (4872, 13, 339, 1642933579), (4873, 13, 354, 1642933579), (4874, 13, 482, 1642933579), (4875, 13, 483, 1642933579), (4876, 13, 81, 1642933579), (4877, 13, 103, 1642933579), (4878, 13, 104, 1642933579), (4879, 13, 219, 1642933579), (4880, 13, 199, 1642933579), (4881, 13, 362, 1642933579), (4882, 13, 1, 1642933579), (4883, 13, 22, 1642933579), (4884, 13, 4, 1642933579), (4885, 13, 406, 1642933579), (4886, 13, 13, 1642933579), (4887, 13, 126, 1642933579), (4888, 13, 127, 1642933579), (4889, 13, 451, 1642933579), (4890, 13, 38, 1642933579), (4891, 13, 39, 1642933579), (4892, 13, 201, 1642933579), (4893, 13, 462, 1642933579), (4894, 13, 356, 1642933579), (4895, 13, 418, 1642933579), (4896, 13, 421, 1642933579), (4897, 13, 177, 1642933579), (4898, 13, 178, 1642933579), (4899, 13, 180, 1642933579), (4900, 13, 267, 1642933579), (4901, 13, 268, 1642933579), (4902, 13, 269, 1642933579), (4903, 13, 310, 1642933579), (4904, 13, 364, 1642933579), (4905, 13, 222, 1642933579), (4906, 13, 223, 1642933579), (4907, 13, 234, 1642933579), (4908, 13, 236, 1642933579), (4909, 13, 238, 1642933579), (4910, 13, 239, 1642933579), (4911, 13, 241, 1642933579), (4912, 13, 244, 1642933579), (4913, 13, 172, 1642933579), (4914, 13, 175, 1642933579), (4915, 13, 193, 1642933579), (4916, 13, 153, 1642933579), (4917, 13, 156, 1642933579), (4918, 13, 259, 1642933579), (4919, 13, 261, 1642933579), (4920, 13, 443, 1642933579), (4921, 13, 477, 1642933579), (4922, 13, 252, 1642933579), (4923, 13, 249, 1642933579), (4924, 13, 253, 1642933579), (4925, 13, 438, 1642933579), (4926, 13, 425, 1642933579), (4927, 13, 431, 1642933579), (4928, 13, 319, 1642933579), (4929, 13, 326, 1642933579), (4930, 13, 314, 1642933579), (4931, 13, 376, 1642933579), (4932, 13, 332, 1642933579), (4933, 13, 336, 1642933579), (4934, 13, 333, 1642933579), (4935, 13, 204, 1642933579), (4936, 13, 205, 1642933579), (4937, 13, 210, 1642933579), (4938, 13, 182, 1642933579), (4939, 13, 214, 1642933579), (4940, 13, 183, 1642933579), (4941, 13, 185, 1642933579), (4942, 13, 449, 1642933579), (4943, 13, 372, 1642933579), (4944, 13, 186, 1642933579), (4945, 13, 340, 1642933579), (4946, 13, 341, 1642933579), (4947, 13, 343, 1642933579), (4948, 13, 373, 1642933579), (4949, 13, 118, 1642933579), (4950, 13, 119, 1642933579), (4951, 13, 120, 1642933579), (4952, 13, 121, 1642933579), (4953, 13, 122, 1642933579), (4954, 13, 331, 1642933579);
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_screening_price
-- ----------------------------
DROP TABLE IF EXISTS `sxo_screening_price`;
CREATE TABLE `sxo_screening_price` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '分类id',
`pid` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '父id',
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
`min_price` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '最小价格',
`max_price` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '最大价格',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`sort` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '顺序',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `pid`(`pid`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 32 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '筛选价格';
-- ----------------------------
-- Records of sxo_screening_price
-- ----------------------------
BEGIN;
INSERT INTO `sxo_screening_price` VALUES (7, 0, '100以下', 0, 100, 1, 0, 0, 1605776851), (10, 0, '100-300', 100, 300, 1, 0, 0, 1605776847), (16, 0, '300-600', 300, 600, 1, 0, 1482840545, 1536284623), (17, 0, '600-1000', 600, 1000, 1, 0, 1482840557, 1536284638), (18, 0, '1000-1500', 1000, 1500, 1, 0, 1482840577, 1536284653), (24, 0, '1500-2000', 1500, 2000, 1, 0, 1483951541, 1536284667), (25, 0, '2000-3000', 2000, 3000, 1, 0, 1535684676, 1536284683), (26, 0, '3000-5000', 3000, 5000, 1, 0, 1535684688, 1536284701), (27, 0, '5000-8000', 5000, 8000, 1, 0, 1535684701, 1536284736), (28, 0, '8000-12000', 8000, 12000, 1, 0, 1535684707, 1536284767), (29, 0, '12000-16000', 12000, 16000, 1, 0, 1535684729, 1536284787), (30, 0, '16000-20000', 16000, 20000, 1, 0, 1535684745, 1536284805), (31, 0, '20000以上', 20000, 0, 1, 0, 1535684797, 1536284828);
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_search_history
-- ----------------------------
DROP TABLE IF EXISTS `sxo_search_history`;
CREATE TABLE `sxo_search_history` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`brand_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '品牌idjson存储',
`category_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '商品分类idjson存储',
`keywords` char(230) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '搜索关键字',
`screening_price_values` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '价格区间json存储',
`goods_params_values` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '商品参数/属性json存储',
`goods_spec_values` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '商品规格json存储',
`order_by_field` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '排序类型(字段名称)',
`order_by_type` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '排序方式asc, desc',
2022-07-09 21:09:07 +08:00
`search_result` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '搜索结果json存储',
2021-11-23 09:21:22 +08:00
`ymd` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '日期 ymd',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 3732 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '搜索日志';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_search_history
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_slide
-- ----------------------------
DROP TABLE IF EXISTS `sxo_slide`;
CREATE TABLE `sxo_slide` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`platform` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pc' COMMENT '所属平台pc PC网站, h5 H5手机网站, ios 苹果APP, android 安卓APP, alipay 支付宝小程序, weixin 微信小程序, baidu 百度小程序, toutiao 头条小程序, qq QQ小程序',
`event_type` tinyint NOT NULL DEFAULT -1 COMMENT '事件类型0 WEB页面, 1 内部页面(小程序或APP内部地址), 2 外部小程序(同一个主体下的小程序appid), 3 打开地图, 4 拨打电话)',
2022-02-12 18:44:59 +08:00
`event_value` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '事件值',
`images_url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '图片地址',
2021-11-23 09:21:22 +08:00
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`bg_color` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'css背景色值',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`sort` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE,
INDEX `platform`(`platform`) USING BTREE
2022-05-18 22:23:06 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 21 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '轮播图片';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_slide
-- ----------------------------
BEGIN;
2022-07-09 15:56:37 +08:00
INSERT INTO `sxo_slide` VALUES (6, 'weixin', 1, '/pages/goods-search/goods-search?keywords=包', '/static/upload/images/slide/2021/11/22/1637564231868321.png', '轮播1', '', 1, 0, 1533865442, 1637564257), (7, 'weixin', 1, '/pages/goods-detail/goods-detail?goods_id=12', '/static/upload/images/slide/2021/11/22/1637564273444601.jpeg', '轮播2', '', 1, 0, 1533866350, 1637564304), (8, 'alipay', 1, '/pages/goods-search/goods-search?keywords=iphone', '/static/upload/images/slide/2018/08/20180810100811853567.jpeg', '大闸蟹', '#f2efe6', 1, 0, 1533866891, 1542618684), (9, 'alipay', 1, '/pages/goods-detail/goods-detail?goods_id=1', '/static/upload/images/slide/2018/08/20180810101045451156.jpeg', '情定七夕', '#7ddcf3', 1, 0, 1533867045, 1563361583), (10, 'pc', 0, 'https://shopxo.net/', '/static/upload/images/slide/2022/05/27/1653645476953808.jpg', '美酒', '#ffd891', 1, 0, 1533867066, 1653646839), (11, 'pc', 0, 'https://ask.shopxo.net/', '/static/upload/images/slide/2022/05/27/1653646660511503.jpg', '助力七夕', '#f17373', 1, 0, 1533867114, 1653646741), (12, 'h5', 0, 'https://shopxo.net', '/static/upload/images/slide/2018/08/20180810101224227323.jpeg', '爱在厨房', '#efc6c4', 1, 0, 1533867144, 1545290041), (13, 'baidu', 1, '/pages/goods-search/goods-search?keywords=iphone', '/static/upload/images/slide/2018/08/20180810101305611263.jpeg', '预享甜蜜', '#f6f6f4', 1, 0, 1533867185, 1545290030), (14, 'baidu', 1, '/pages/goods-detail/goods-detail?goods_id=12', '/static/upload/images/slide/2018/08/20180810095910423687.jpeg', '海洋的未来', '#016bcc', 1, 0, 1533866350, 1546281301), (15, 'toutiao', 1, '/pages/goods-search/goods-search?keywords=iphone', '/static/upload/images/slide/2018/08/20180810094402044087.jpeg', '浪漫七夕', '#080718', 1, 0, 1533865442, 1561912492), (16, 'toutiao', 1, '/pages/goods-detail/goods-detail?goods_id=12', '/static/upload/images/slide/2018/08/20180810095910423687.jpeg', '海洋的未来', '#016bcc', 1, 0, 1533866350, 1573648835), (17, 'qq', 1, '/pages/goods-search/goods-search?keywords=iphone', '/static/upload/images/slide/2018/08/20180810094402044087.jpeg', '浪漫七夕', '#080718', 1, 0, 1533865442, 1572867692), (18, 'qq', 1, '/pages/goods-detail/goods-detail?goods_id=12', '/static/upload/images/slide/2018/08/20180810095910423687.jpeg', '海洋的未来', '#016bcc', 1, 0, 1533866350, 1546281301), (19, 'kuaishou', 1, '/pages/goods-search/goods-search?keywords=包', '/static/upload/images/slide/2021/11/22/1637564231868321.png', '轮播1', '', 1, 0, 1533865442, 1637564257), (20, 'kuaishou', 1, '/pages/goods-detail/goods-detail?goods_id=12', '/static/upload/images/slide/2021/11/22/1637564273444601.jpeg', '轮播2', '', 1, 0, 1533866350, 1637564304);
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_user
-- ----------------------------
DROP TABLE IF EXISTS `sxo_user`;
CREATE TABLE `sxo_user` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
2022-04-21 23:31:16 +08:00
`system_type` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'default' COMMENT '系统类型(默认 default, 其他按照SYSTEM_TYPE常量类型',
2021-11-23 09:21:22 +08:00
`alipay_openid` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付宝openid',
`weixin_openid` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '微信openid',
`weixin_unionid` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '微信unionid',
`weixin_web_openid` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '微信web用户openid',
`baidu_openid` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '百度openid',
`toutiao_openid` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '百度openid',
`qq_openid` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'QQopenid',
`qq_unionid` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'QQunionid',
2022-05-18 22:23:06 +08:00
`kuaishou_openid` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '快手openid',
2021-11-23 09:21:22 +08:00
`status` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态0正常, 1禁止发言, 2禁止登录',
`salt` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '配合密码加密串',
`pwd` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '登录密码',
`token` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'token',
`username` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户名',
`nickname` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户昵称',
`mobile` char(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机号码',
`email` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '电子邮箱最大长度60个字符',
`gender` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '性别0保密1女2男',
2022-02-12 18:44:59 +08:00
`avatar` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户头像地址',
2021-11-23 09:21:22 +08:00
`province` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '所在省',
`city` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '所在市',
`birthday` int NOT NULL DEFAULT 0 COMMENT '生日',
`address` char(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '详细地址',
`integral` int NOT NULL DEFAULT 0 COMMENT '有效积分',
`locking_integral` int NOT NULL DEFAULT 0 COMMENT '锁定积分',
`referrer` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '推荐人用户id',
`is_delete_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否已删除0否, 大于0删除时间',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `alipay_openid`(`alipay_openid`) USING BTREE,
INDEX `weixin_openid`(`weixin_openid`) USING BTREE,
INDEX `mobile`(`mobile`) USING BTREE,
INDEX `username`(`username`) USING BTREE,
INDEX `token`(`token`) USING BTREE,
2022-04-21 23:31:16 +08:00
INDEX `baidu_openid`(`baidu_openid`) USING BTREE,
INDEX `system_type`(`system_type`) USING BTREE,
INDEX `status`(`status`) USING BTREE,
INDEX `weixin_unionid`(`weixin_unionid`) USING BTREE,
INDEX `weixin_web_openid`(`weixin_web_openid`) USING BTREE,
INDEX `is_delete_time`(`is_delete_time`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 406 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_user
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_user_address
-- ----------------------------
DROP TABLE IF EXISTS `sxo_user_address`;
CREATE TABLE `sxo_user_address` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '站点id',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`alias` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '别名',
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '姓名',
`tel` char(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '电话',
`province` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '所在省',
`city` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '所在市',
`county` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '所在县/区',
`address` char(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '详细地址',
`lng` decimal(13, 10) NOT NULL DEFAULT 0.0000000000 COMMENT '经度',
`lat` decimal(13, 10) NOT NULL DEFAULT 0.0000000000 COMMENT '纬度',
`idcard_name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '身份证姓名',
`idcard_number` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '身份证号码',
2022-02-12 18:44:59 +08:00
`idcard_front` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '身份证人像面图片',
`idcard_back` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '身份证国微面图片',
2021-11-23 09:21:22 +08:00
`is_default` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否默认地址0否, 1是',
`is_delete_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否删除0否1删除时间戳',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE,
INDEX `is_delete_time`(`is_delete_time`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 35 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户地址';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_user_address
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_user_integral_log
-- ----------------------------
DROP TABLE IF EXISTS `sxo_user_integral_log`;
CREATE TABLE `sxo_user_integral_log` (
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`user_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`type` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作类型0减少, 1增加',
`original_integral` int NOT NULL DEFAULT 0 COMMENT '原始积分',
`new_integral` int NOT NULL DEFAULT 0 COMMENT '最新积分',
`operation_integral` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作积分',
`msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '操作原因',
`operation_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作人员id',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 29 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户积分日志';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_user_integral_log
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_warehouse
-- ----------------------------
DROP TABLE IF EXISTS `sxo_warehouse`;
CREATE TABLE `sxo_warehouse` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`alias` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '别名',
`level` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '权重(数字越大权重越高)',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`contacts_name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '联系人姓名',
`contacts_tel` char(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '联系电话',
`province` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '所在省',
`city` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '所在市',
`county` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '所在县/区',
`address` char(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '详细地址',
`lng` decimal(13, 10) NOT NULL DEFAULT 0.0000000000 COMMENT '经度',
`lat` decimal(13, 10) NOT NULL DEFAULT 0.0000000000 COMMENT '纬度',
`is_default` tinyint UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否默认0否, 1是',
`is_delete_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否删除0否大于0删除时间戳',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `name`(`name`) USING BTREE,
INDEX `level`(`level`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE,
INDEX `is_default`(`is_default`) USING BTREE,
INDEX `is_delete_time`(`is_delete_time`) USING BTREE
2022-05-18 22:23:06 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '仓库';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_warehouse
-- ----------------------------
BEGIN;
2022-07-09 15:56:37 +08:00
INSERT INTO `sxo_warehouse` VALUES (1, '默认仓库', '上海仓', 1, 1, 'Devil', '17666666655', 9, 152, 1896, '浦江科技广场', 121.5140560000, 31.1023570000, 1, 0, 1594207406, 1657352607);
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_warehouse_goods
-- ----------------------------
DROP TABLE IF EXISTS `sxo_warehouse_goods`;
CREATE TABLE `sxo_warehouse_goods` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`warehouse_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '仓库id',
`goods_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`is_enable` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`inventory` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '总库存',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `warehouse_id`(`warehouse_id`) USING BTREE,
INDEX `goods_id`(`goods_id`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE,
INDEX `inventory`(`inventory`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 119 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '仓库商品';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_warehouse_goods
-- ----------------------------
BEGIN;
2022-07-09 15:56:37 +08:00
INSERT INTO `sxo_warehouse_goods` VALUES (2, 1, 11, 1, 2642, 1626018143, 1657352599), (3, 1, 10, 1, 888, 1626018144, 1657352598), (4, 1, 9, 1, 30, 1626018145, 1657352595), (5, 1, 8, 1, 88, 1626018145, 1657352594), (6, 1, 3, 1, 0, 1626018146, 1657352591), (7, 1, 4, 1, 883, 1626018147, 1657352593), (8, 1, 5, 1, 883, 1626018148, 1657352586), (9, 1, 6, 1, 884, 1626018148, 1657352584), (10, 1, 7, 1, 882, 1626018149, 1657352583), (11, 1, 2, 1, 7991, 1626018150, 1657352582), (12, 1, 1, 1, 1530, 1626018150, 1657352581);
2021-11-23 09:21:22 +08:00
COMMIT;
2021-10-24 16:47:57 +08:00
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Table structure for sxo_warehouse_goods_spec
-- ----------------------------
DROP TABLE IF EXISTS `sxo_warehouse_goods_spec`;
CREATE TABLE `sxo_warehouse_goods_spec` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`warehouse_goods_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '仓库商品id',
`warehouse_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '仓库id',
`goods_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`md5_key` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'md5key值',
`spec` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '规格值',
`inventory` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '库存',
`add_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `warehouse_goods_id`(`warehouse_goods_id`) USING BTREE,
INDEX `warehouse_id`(`warehouse_id`) USING BTREE,
INDEX `goods_id`(`goods_id`) USING BTREE,
INDEX `md5_key`(`md5_key`) USING BTREE,
INDEX `inventory`(`inventory`) USING BTREE
2022-07-09 15:56:37 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 1796 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '仓库商品规格';
2021-11-23 09:21:22 +08:00
-- ----------------------------
-- Records of sxo_warehouse_goods_spec
-- ----------------------------
BEGIN;
2022-07-09 15:56:37 +08:00
INSERT INTO `sxo_warehouse_goods_spec` VALUES (14, 7, 1, 4, 'c21f969b5f03d33d43e04f8f136e7682', 'default', 883, 1626018205), (90, 8, 1, 5, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 883, 1635564108), (101, 10, 1, 7, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 882, 1636214455), (103, 3, 1, 10, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 888, 1636253269), (149, 6, 1, 3, 'c21f969b5f03d33d43e04f8f136e7682', 'default', 0, 1643526917), (406, 35, 1, 12, '4f40eff650a2fc7768605aa9c16ef67d', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺码\",\"value\":\"S+S\"}]', 101, 1651585220), (407, 35, 1, 12, 'f5c75bc99305a664f1d92d572ee78289', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺码\",\"value\":\"M+M\"}]', 869, 1651585220), (408, 35, 1, 12, 'eda0100ccdfa2942729825effc96f571', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"S+S\"}]', 888, 1651585220), (409, 35, 1, 12, 'ec0bf37ae952cd7c60f2cdbb5153086a', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"M+M\"}]', 883, 1651585220), (972, 9, 1, 6, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 884, 1651974846), (973, 11, 1, 2, '674eee93efe8de506e9f7f776d09f1e5', '[{\"type\":\"套餐\",\"value\":\"套餐一\"},{\"type\":\"颜色\",\"value\":\"金色\"},{\"type\":\"容量\",\"value\":\"32G\"}]', 888, 1652257105), (974, 11, 1, 2, '40c2afb68f3cc84cc305bce8ab8d5f47', '[{\"type\":\"套餐\",\"value\":\"套餐一\"},{\"type\":\"颜色\",\"value\":\"金色\"},{\"type\":\"容量\",\"value\":\"64G\"}]', 887, 1652257105), (975, 11, 1, 2, '7ffbb29c5dfb16f6c6b32034d22e3fef', '[{\"type\":\"套餐\",\"value\":\"套餐一\"},{\"type\":\"颜色\",\"value\":\"金色\"},{\"type\":\"容量\",\"value\":\"128G\"}]', 888, 1652257105), (976, 11, 1, 2, 'ca455d91ca7da72892f87745a04500bc', '[{\"type\":\"套餐\",\"value\":\"套餐一\"},{\"type\":\"颜色\",\"value\":\"银色\"},{\"type\":\"容量\",\"value\":\"32G\"}]', 888, 1652257105), (977, 11, 1, 2, '107e3e2e6320d811564c2704b034d8fa', '[{\"type\":\"套餐\",\"value\":\"套餐一\"},{\"type\":\"颜色\",\"value\":\"银色\"},{\"type\":\"容量\",\"value\":\"64G\"}]', 888, 1652257105), (978, 11, 1, 2, 'a7cf0be020f452a8b7d8777e6bbfa041', '[{\"type\":\"套餐\",\"value\":\"套餐一\"},{\"type\":\"颜色\",\"value\":\"银色\"},{\"type\":\"容量\",\"value\":\"128G\"}]', 888, 1652257105), (979, 11, 1, 2, '224734fbe895debc3c7999a2f157f05d', '[{\"type\":\"套餐\",\"value\":\"套餐二\"},{\"type\":\"颜色\",\"value\":\"金色\"},{\"type\":\"容量\",\"value\":\"32G\"}]', 888, 1652257105), (980, 11, 1, 2, '35c55bca127aa2f3c77fecfdd802c18f', '[{\"type\":\"套餐\",\"value\":\"套餐二\"},{\"type\":\"颜色\",\"value\":\"金色\"},{\"type\":\"容量\",\"value\":\"128G\"}]', 888, 1652257105), (981, 11, 1, 2, '3d09a0554e685e5de759819564ca592b', '[{\"type\":\"套餐\",\"value\":\"套餐二\"},{\"type\":\"颜色\",\"value\":\"银色\"},{\"type\":\"容量\",\"value\":\"64G\"}]', 888, 1652257105), (1019, 2, 1, 11, '69691c7bdcc3ce6d5d8a1361f22d04ac', '[{\"type\":\"尺码\",\"value\":\"M\"}]', 888, 1653388767), (1020, 2, 1, 11, 'd20caec3b48a1eef164cb4ca81ba2587', '[{\"type\":\"尺码\",\"value\":\"L\"}]', 875, 1653388767), (1021, 2, 1, 11, 'a7a4ccc5e1a068d87f4965e014329201', '[{\"type\":\"尺码\",\"value\":\"XL\"}]', 879, 1653388767), (1305, 12, 1, 1, 'c21f969b5f03d33d43e04f8f136e7682', 'default', 1530, 1654478424), (1712, 5, 1, 8, '52636511861a0e08cbe6a0eb1c27d816', '[{\"type\":\"颜色\",\"value\":\"红色\"}]', 88, 1656583047), (1751, 4, 1, 9, 'd15560adc3d2ddf952ec40d874566fc0', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"S\"}]', 0, 1657025483), (1752, 4, 1, 9, '2767f06d6a715b3915ca3c5443efc170', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"M\"}]', 0, 1657025483), (1753, 4, 1, 9, 'd0d686188b3e2b0b7ae12040fd508f03', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"L\"}]', 0, 1657025483), (1754, 4, 1, 9, '910613b82f64796470c2243f8e306797', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"<22><>
2021-10-24 16:47:57 +08:00
COMMIT;
2021-10-17 14:29:57 +08:00
2021-11-23 09:21:22 +08:00
SET FOREIGN_KEY_CHECKS = 1;