shopxo/config/shopxo.sql

2278 lines
764 KiB
MySQL
Raw Permalink Normal View History

2023-08-27 18:24:09 +08:00
/*
Navicat Premium Data Transfer
2021-11-23 09:21:22 +08:00
2023-08-27 18:24:09 +08:00
Source Server :
Source Server Type : MySQL
Source Server Version : 50731
Source Host : localhost:3306
Source Schema : shopxo_online
2023-04-07 10:43:59 +08:00
2023-08-27 18:24:09 +08:00
Target Server Type : MySQL
Target Server Version : 50731
File Encoding : 65001
2023-04-07 10:43:59 +08:00
2024-10-23 19:02:36 +08:00
Date: 23/10/2024 19:00:55
2023-08-27 18:24:09 +08:00
*/
2023-04-07 10:43:59 +08:00
2023-08-27 18:24:09 +08:00
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
2021-11-23 09:21:22 +08:00
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Table structure for sxo_admin
-- ----------------------------
DROP TABLE IF EXISTS `sxo_admin`;
CREATE TABLE `sxo_admin` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '管理员id',
2024-10-21 10:51:14 +08:00
`token` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'token',
2023-08-27 18:24:09 +08:00
`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(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '性别0保密1女2男',
`status` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态0正常, 1无效',
`login_total` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '登录次数',
`login_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最后登录时间',
`role_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '所属角色组',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(11) NOT NULL DEFAULT 0 COMMENT '更新时间',
2024-10-21 10:51:14 +08:00
PRIMARY KEY (`id`) USING BTREE,
INDEX `token`(`token`) USING BTREE
2023-09-11 22:14:55 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '管理员';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_admin
-- ----------------------------
BEGIN;
2024-10-21 10:51:14 +08:00
INSERT INTO `sxo_admin` (`id`, `token`, `username`, `login_pwd`, `login_salt`, `mobile`, `email`, `gender`, `status`, `login_total`, `login_time`, `role_id`, `add_time`, `upd_time`) VALUES (1, 'e142cc2db6e0be132780f31ce281ea37', 'admin', '29c8971cbafccb9d1f0046e1b69b7944', '415394', '', 'xxx@email.com', 0, 0, 1888, 1729478782, 1, 1481350313, 1659361312);
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_app_center_nav
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_app_center_nav`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_app_center_nav` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
2024-04-25 14:47:59 +08:00
`platform` char(255) 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小程序, kuaishou 快手小程序)',
2023-08-27 18:24:09 +08:00
`event_type` tinyint(4) NOT NULL DEFAULT -1 COMMENT '事件类型0 WEB页面, 1 内部页面(小程序或APP内部地址), 2 外部小程序(同一个主体下的小程序appid), 3 打开地图, 4 拨打电话)',
`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 '图片地址',
`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(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`is_need_login` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否需要登录0否1是',
`sort` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `is_enable`(`is_enable`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE
2024-07-03 22:46:04 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 48 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '手机 - 用户中心导航';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_app_center_nav
-- ----------------------------
BEGIN;
2024-04-25 14:47:59 +08:00
INSERT INTO `sxo_app_center_nav` (`id`, `platform`, `event_type`, `event_value`, `images_url`, `name`, `desc`, `is_enable`, `is_need_login`, `sort`, `add_time`, `upd_time`) VALUES (1, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/user-order/user-order?id=100', '/static/upload/images/app_center_nav/2019/11/05/1572932149956815.png', '我的订单', '', 1, 0, 0, 1562159178, 1690035019), (2, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/user-favor/user-favor', '/static/upload/images/app_center_nav/2019/07/03/1562157390405145.png', '我的收藏', '', 1, 1, 0, 1562155833, 1562157399), (3, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/user-address/user-address', '/static/upload/images/app_center_nav/2019/07/03/1562157391533252.png', '我的地址', '', 1, 1, 0, 1562155871, 1562157408), (4, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/distribution/user/user', '/static/upload/images/app_center_nav/2019/07/03/1562157391517979.png', '我的分销', '分享赚取佣金', 1, 1, 0, 1562155901, 1678933092), (5, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/membershiplevelvip/user/user', '/static/upload/images/app_center_nav/2020/02/01/1580558516351420.png', '我的会员', '', 1, 1, 0, 1562159178, 1592661221), (6, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/wallet/user/user', '/static/upload/images/app_center_nav/2020/02/01/1580558490671574.png', '我的钱包', '', 1, 1, 0, 1562159178, 1580558500), (7, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/coupon/user/user', '/static/upload/images/app_center_nav/2019/10/16/1571231187362091.png', '我的卡券', '', 1, 1, 0, 1562159178, 1562157435), (8, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/ask/user-list/user-list', '/static/upload/images/app_center_nav/2019/07/03/1562157391428293.png', '我的留言', '', 1, 1, 0, 1562156178, 1562157435), (41, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/excellentbuyreturntocash/profit/profit', '/static/upload/images/app_center_nav/2020/02/01/1580558490671574.png', '优购返现', '', 1, 0, 0, 1583745264, 0), (42, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/invoice/invoice/invoice', '/static/upload/images/app_center_nav/2020/12/08/1607398361522502.png', '我的发票', '', 1, 0, 0, 1607398368, 0), (47, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/signin/user/user', '/static/upload/images/app_center_nav/2020/12/22/1608608498784252.png', '我的签到', '', 1, 0, 0, 1607398368, 1608608501);
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_app_home_nav
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_app_home_nav`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_app_home_nav` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
2024-04-25 14:47:59 +08:00
`platform` char(255) 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小程序, kuaishou 快手小程序)',
2023-08-27 18:24:09 +08:00
`event_type` tinyint(4) NOT NULL DEFAULT -1 COMMENT '事件类型0 WEB页面, 1 内部页面(小程序或APP内部地址), 2 外部小程序(同一个主体下的小程序appid), 3 打开地图, 4 拨打电话)',
`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 '图片地址',
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`is_need_login` tinyint(3) 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(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `is_enable`(`is_enable`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE
2024-07-03 22:46:04 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '手机 - 首页导航';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_app_home_nav
-- ----------------------------
BEGIN;
2024-04-25 14:47:59 +08:00
INSERT INTO `sxo_app_home_nav` (`id`, `platform`, `event_type`, `event_value`, `images_url`, `name`, `is_enable`, `is_need_login`, `bg_color`, `sort`, `add_time`, `upd_time`) VALUES (1, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/activity/index/index', '/static/upload/images/app_nav/2023/11/08/1699444440845257.png', '活动', 1, 0, '', 0, 1542563498, 1699444475), (2, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/coupon/index/index', '/static/upload/images/app_nav/2023/11/08/1699444440307617.png', '优惠券', 1, 0, '', 0, 1542613659, 1699444488), (3, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/blog/index/index', '/static/upload/images/app_nav/2023/11/08/1699444440587695.png', '博文', 1, 0, '', 0, 1542613706, 1699444513), (4, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/weixinliveplayer/index/index', '/static/upload/images/app_nav/2023/11/08/1699444441652354.png', '直播', 1, 0, '', 0, 1542613752, 1699444526), (5, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/seckill/index/index', '/static/upload/images/app_nav/2023/11/08/1699444440276337.png', '秒杀', 1, 0, '', 0, 1635418404, 1699444537), (6, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/signin/detail/detail?id=1', '/static/upload/images/app_nav/2023/11/08/1699444440767151.png', '签到', 1, 0, '', 0, 1678930855, 1699444549), (7, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/membershiplevelvip/index/index', '/static/upload/images/app_nav/2023/11/08/1699444440657693.png', '会员', 1, 0, '', 0, 1693301691, 1699444560), (8, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/ask/index/index', '/static/upload/images/app_nav/2023/11/08/1699444440189681.png', '问答', 1, 0, '', 0, 1693301721, 1699444583), (9, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/points/index/index', '/static/upload/images/app_nav/2023/11/08/1699444440178265.png', '积分', 1, 0, '', 0, 1693301785, 1699444597), (10, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/brand/index/index', '/static/upload/images/app_nav/2023/11/08/1699444440389285.png', '品牌', 1, 0, '', 0, 1693301825, 1699444634), (11, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/shop/index/index', '/static/upload/images/app_nav/2023/11/08/1699444440279257.png', '店铺', 1, 0, '', 0, 1693301855, 1699445033), (12, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/realstore/index/index', '/static/upload/images/app_nav/2023/11/08/1699444440279257.png', '门店', 1, 0, '', 0, 1693301883, 1699444653), (13, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/plugins/binding/index/index', '/static/upload/images/app_nav/2023/11/08/1699444441697516.png', '组合', 1, 0, '', 0, 1693301911, 1699445004);
2023-08-27 18:24:09 +08:00
COMMIT;
2024-10-21 10:51:14 +08:00
-- ----------------------------
-- Table structure for sxo_app_tabbar
-- ----------------------------
DROP TABLE IF EXISTS `sxo_app_tabbar`;
CREATE TABLE `sxo_app_tabbar` (
`id` int(10) 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(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) 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
2024-10-23 19:02:36 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '手机底部菜单';
2024-10-21 10:51:14 +08:00
-- ----------------------------
-- Records of sxo_app_tabbar
-- ----------------------------
BEGIN;
2024-10-23 19:02:36 +08:00
INSERT INTO `sxo_app_tabbar` (`id`, `type`, `name`, `config`, `is_enable`, `add_time`, `upd_time`) VALUES (1, 'app_tabbar_index_home_data', '首页', '{\"content\":{\"nav_style\":\"0\",\"nav_type\":\"0\",\"nav_content\":[{\"id\":\"1\",\"name\":\"首页\",\"img\":[{\"id\":\"1\",\"url\":\"\\/static\\/app\\/tabbar\\/home.png\",\"original\":\"\",\"title\":\"\",\"ext\":\".png\",\"type\":\"img\"}],\"img_checked\":[{\"id\":\"2\",\"url\":\"\\/static\\/app\\/tabbar\\/active\\/home.png\",\"original\":\"\",\"title\":\"\",\"ext\":\".png\",\"type\":\"img\"}],\"link\":{\"name\":\"商城首页\",\"page\":\"\\/pages\\/index\\/index\"}},{\"id\":\"2\",\"name\":\"分类\",\"img\":[{\"id\":\"3\",\"url\":\"\\/static\\/app\\/tabbar\\/category.png\",\"original\":\"\",\"title\":\"\",\"ext\":\".png\",\"type\":\"img\"}],\"img_checked\":[{\"id\":\"4\",\"url\":\"\\/static\\/app\\/tabbar\\/active\\/category.png\",\"original\":\"\",\"title\":\"\",\"ext\":\".png\",\"type\":\"img\"}],\"link\":{\"name\":\"商品分类\",\"page\":\"\\/pages\\/goods-category\\/goods-category\"}},{\"id\":\"3\",\"name\":\"购物车\",\"img\":[{\"id\":\"5\",\"url\":\"\\/static\\/app\\/tabbar\\/cart.png\",\"original\":\"\",\"title\":\"\",\"ext\":\".png\",\"type\":\"img\"}],\"img_checked\":[{\"id\":\"6\",\"url\":\"\\/static\\/app\\/tabbar\\/active\\/cart.png\",\"original\":\"\",\"title\":\"\",\"ext\":\".png\",\"type\":\"img\"}],\"link\":{\"name\":\"购物车\",\"page\":\"\\/pages\\/cart\\/cart\"}},{\"id\":\"4\",\"name\":\"我的\",\"img\":[{\"id\":\"7\",\"url\":\"\\/static\\/app\\/tabbar\\/user.png\",\"original\":\"\",\"title\":\"\",\"ext\":\".png\",\"type\":\"img\"}],\"img_checked\":[{\"id\":\"8\",\"url\":\"\\/static\\/app\\/tabbar\\/active\\/user.png\",\"original\":\"\",\"title\":\"\",\"ext\":\".png\",\"type\":\"img\"}],\"link\":{\"name\":\"我的\",\"page\":\"\\/pages\\/user\\/user\"}}]},\"style\":{\"text_color_checked\":\"rgba(255, 0, 0, 1)\",\"default_text_color\":\"rgba(0, 0, 0, 1)\",\"common_style\":{\"direction\":\"90deg\",\"color_list\":[{\"color\":\"rgba(255,255,255,1)\"}],\"background_img_style\":\"0\",\"floating_up\":\"0\",\"padding_top_safe_value\":\"0\",\"padding\":\"0\",\"padding_top\":\"0\",\"padding_bottom\":\"0\",\"padding_left\":\"0\",\"padding_right\":\"0\",\"margin\":\"0\",\"margin_top\":\"0\",\"margin_bottom\":\"0\",\"margin_left\":\"0\",\"margin_right\":\"0\",\"radius\":\"0\",\"radius_top_left\":\"0\",\"radius_top_right\":\"0\",\"radius_bottom_left\":\"0\",\"radius_bottom_right\":\"0\",\"box_shadow_color\":\"\",\"box_shadow_x\":\"0\",\"box_shadow_y\":\"0\",\"box_shadow_blur\":\"0\",\"box_shadow_spread\":\"0\",\"background_img\":[]}}}', 1, 1727084059, 1729679670);
2024-10-21 10:51:14 +08:00
COMMIT;
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Table structure for sxo_article
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_article`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_article` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`title` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题',
2024-04-15 10:25:01 +08:00
`describe` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '描述',
2023-08-27 18:24:09 +08:00
`article_category_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '文章分类',
2024-01-19 15:40:47 +08:00
`title_color` char(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题颜色',
2023-08-27 18:24:09 +08:00
`jump_url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '跳转url地址',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容',
2024-04-15 10:25:01 +08:00
`cover` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '封面图片',
2023-08-27 18:24:09 +08:00
`images` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '图片数据一维数组json',
`images_count` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '图片数量',
`access_count` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '访问次数',
`is_home_recommended` tinyint(3) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
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;
2024-10-21 10:51:14 +08:00
INSERT INTO `sxo_article` (`id`, `title`, `describe`, `article_category_id`, `title_color`, `jump_url`, `is_enable`, `content`, `cover`, `images`, `images_count`, `access_count`, `is_home_recommended`, `seo_title`, `seo_keywords`, `seo_desc`, `add_time`, `upd_time`) VALUES (1, '如何注册成为会员', '', 7, '', '', 1, '<p>如何注册成为会员</p><p>如何注册成为会员</p><p>如何注册成为会员</p><p>如何注册成为会员</p>', '', '[]', 0, 267, 1, '', '', '', 1484965691, 1534228456), (3, '积分细则', '', 7, '#FF0000', '', 1, '<p>积分细则</p><p>积分细则</p><p>积分细则</p><p>积分细则</p><p>积分细则</p><p>积分细则</p><p>积分细则</p>', '', '[]', 0, 111, 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, 86, 1, '', '', '', 1487819252, 1534228589), (8, '查看售出商品', '', 10, '', '', 1, '<p>查看售出商品</p><p>查看售出商品</p><p>查看售出商品</p><p>查看售出商品</p><p>查看售出商品</p>', '', '[]', 0, 64, 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, 48, 1, '', '', '', 1534228694, 1534228694), (13, '邮局汇款', '', 16, '', '', 1, '<p>邮局汇款</p><p>邮局汇款</p><p>邮局汇款</p><p>邮局汇款</p><p>邮局汇款</p>', '', '[]', 0, 46, 1, '', '', '', 1534228710, 1534228710), (14, '公司转账', '', 16, '', '', 1, '<p>公司转账</p><p>公司转账</p><p>公司转账</p><p>公司转账</p><p>公司转账</p>', '', '[]', 0, 48, 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, 41, 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>退<><E98080>
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_article_category
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_article_category`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_article_category` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '分类id',
`pid` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '父id',
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`sort` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '顺序',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
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` (`id`, `pid`, `name`, `is_enable`, `sort`, `add_time`, `upd_time`) 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, 1690035171), (24, 0, '关于我们', 1, 0, 1483951541, 1690020232);
COMMIT;
-- ----------------------------
-- Table structure for sxo_attachment
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_attachment`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_attachment` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
2024-10-21 10:51:14 +08:00
`category_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '附件分类id',
2023-08-27 18:24:09 +08:00
`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 '原始名称',
`size` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '大小单位b',
`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远程抓取文件',
`url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'url路径',
`hash` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'hash值',
2024-10-21 10:51:14 +08:00
`add_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `type`(`type`) USING BTREE
2024-01-19 15:40:47 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 2549 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '附件';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_attachment
-- ----------------------------
BEGIN;
2024-10-21 10:51:14 +08:00
INSERT INTO `sxo_attachment` (`id`, `category_id`, `title`, `original`, `size`, `ext`, `type`, `url`, `hash`, `add_time`) VALUES (6, 3, '1551064260180298.jpeg', '1551064260180298.jpeg', 2393, '.jpeg', 'image', '/static/upload/images/brand/2019/02/25/1551064260180298.jpeg', '858f2f5aa01d2cecdc907b93a99765b8dccc6a8d1015a0ab048ad2a46c96e65e', 1561538565), (7, 3, '1551064277207182.jpeg', '1551064277207182.jpeg', 3063, '.jpeg', 'image', '/static/upload/images/brand/2019/02/25/1551064277207182.jpeg', 'b1a4f186af72f1a2bb6cb425c5eff59c10fe11289a91944f016b0156021e55e6', 1561538565), (8, 5, '1547448705165706.png', '1547448705165706.png', 8725, '.png', 'image', '/static/upload/images/common/2019/01/14/1547448705165706.png', '3e4a6cf6ea3ed26836a59275cdbe58d441109717dd9b961bd912cbc5f336c556', 1561538565), (9, 5, '1547448728921121.jpg', '1547448728921121.jpg', 43556, '.jpg', 'image', '/static/upload/images/common/2019/01/14/1547448728921121.jpg', '829a7f9988db882fbd643ffdbd9a646e169b31f89641b3d4904338758016c2b4', 1561538565), (10, 5, '1547448748316693.png', '1547448748316693.png', 21102, '.png', 'image', '/static/upload/images/common/2019/01/14/1547448748316693.png', '2db8ea9424e63d4a2affcd0ac52f8f0e89c417f5725833a97d5afd534809d9b4', 1561538565), (11, 5, '1554805439263794.jpeg', '1554805439263794.jpeg', 19885, '.jpeg', 'image', '/static/upload/images/common/2019/04/09/1554805439263794.jpeg', 'f4b731035bac0627508caa101e1f537d25592c5201455647d2f1d1c5b7c3e3c4', 1561538565), (12, 5, '1558025141249118.png', '1558025141249118.png', 146965, '.png', 'image', '/static/upload/images/common/2019/05/17/1558025141249118.png', '316b56dec84b3c8dcc01b7672c6dad6eff88a518495f6cf81ccf45e58306bf58', 1561538565), (13, 5, '1558062481107570.jpg', '1558062481107570.jpg', 67729, '.jpg', 'image', '/static/upload/images/common/2019/05/17/1558062481107570.jpg', '66feea05a2fb10cb5983f4df2deeec6a35b5453876c14b7fabe62dbb3528d93c', 1561538565), (14, 5, '1558072588843696.jpg', '1558072588843696.jpg', 61648, '.jpg', 'image', '/static/upload/images/common/2019/05/17/1558072588843696.jpg', '18739da62d47b0062eef55bff5464809ac18bbcf500c18e5e130661ff40ad223', 1561538565), (15, 5, '1558073623385520.jpg', '1558073623385520.jpg', 83272, '.jpg', 'image', '/static/upload/images/common/2019/05/17/1558073623385520.jpg', '49acf5646f5ea6d7daf439fbea4cc9421d2d40f5979203a554e36a1da462ce7f', 1561538565), (16, 5, '1558073623641199.jpg', '1558073623641199.jpg', 76591, '.jpg', 'image', '/static/upload/images/common/2019/05/17/1558073623641199.jpg', 'ffdf93c767c65745d2e0cd1694548f689f6f0b9108c5b6d19f499f2bbe7e6417', 1561538565), (17, 6, '1533779966550231.jpeg', '1533779966550231.jpeg', 23584, '.jpeg', 'image', '/static/upload/images/customview/image/2018/08/09/1533779966550231.jpeg', '2aa35a2f5037edba292bee25bc693c30422e969a13ce9d2228224efa7cfc9175', 1561538565), (18, 7, '20180917104528_logo.png', '20180917104528_logo.png', 1769, '.png', 'image', '/static/upload/images/express/images/20180917104528_logo.png', 'c3d6d1a36d5f330f94c6135621ccb6d6f9b88ccb5f051aa3b6afc8142e3675b2', 1561538565), (19, 7, '20180917104538_logo.png', '20180917104538_logo.png', 2169, '.png', 'image', '/static/upload/images/express/images/20180917104538_logo.png', 'e4ec0945e81303dd2a4da37c355e27d93bd3f1d182f3aedb8fcd806072b2351c', 1561538565), (20, 7, '20180917104550_logo.png', '20180917104550_logo.png', 3658, '.png', 'image', '/static/upload/images/express/images/20180917104550_logo.png', '6fa6d28c69cf0a9c6d9c1534746927b2e0d9e474bdcf3f3c1abca90e3cb36972', 1561538565), (21, 7, '20180917104559_logo.png', '20180917104559_logo.png', 2250, '.png', 'image', '/static/upload/images/express/images/20180917104559_logo.png', 'd3c077bfe057759182dc820f537a1e119141de61eaf8d2f3caa3830d18868278', 1561538565), (22, 7, '20180917104616_logo.png', '20180917104616_logo.png', 2880, '.png', 'image', '/static/upload/images/express/images/20180917104616_logo.png', 'cfa30c53c4f756c48867c0259832ac614aa2f7185c222c4aafc30501c3e6fd1c', 1561538565), (23, 7, '20180917104631_logo.png', '20180917104631_logo.png', 2570, '.png', 'image', '/static/uplo
INSERT INTO `sxo_attachment` (`id`, `category_id`, `title`, `original`, `size`, `ext`, `type`, `url`, `hash`, `add_time`) VALUES (2454, 9, '1692083394485796.png', '新娘化妆.png', 3727, '.png', 'image', '/static/upload/images/goods_category/2023/08/15/1692083394485796.png', '8e24d091b36e7509e642fd4487118a98039cb2b9a2234096baa44c342e372691', 1692083394), (2455, 9, '1692083405644267.png', '新娘化妆 (1).png', 4040, '.png', 'image', '/static/upload/images/goods_category/2023/08/15/1692083405644267.png', '6a6ac1e8189a613c14486d5b5fafc1086da13b8092ce1ded18a62f108a3e2707', 1692083405), (2456, 9, '1692083430922728.png', 'zhubaoshoubiao (1).png', 3746, '.png', 'image', '/static/upload/images/goods_category/2023/08/15/1692083430922728.png', 'a5e685047b73b002c14b3e5ec47243ae558399ab73c8c81c3a5ce19dd000a0fe', 1692083430), (2457, 9, '1692083442155794.png', 'zhubaoshoubiao .png', 4045, '.png', 'image', '/static/upload/images/goods_category/2023/08/15/1692083442155794.png', '38451594c70f7723761700ba168393ced153cbd8e2b334095f4369f2cea3c47d', 1692083442), (2458, 9, '1692083465166195.png', '健身.png', 4030, '.png', 'image', '/static/upload/images/goods_category/2023/08/15/1692083465166195.png', 'a2acb8390782ea4814e340efaa4f37886be256879a20c0f52b415e1e1461d5ae', 1692083465), (2459, 9, '1692083473937545.png', '健身 (1).png', 4358, '.png', 'image', '/static/upload/images/goods_category/2023/08/15/1692083473937545.png', '0074ea7e581367ed9f163333cb5db1cc887f4befc9744e66004b15427bca84d6', 1692083473), (2460, 9, '1692083492952738.png', 'qiche (1).png', 3602, '.png', 'image', '/static/upload/images/goods_category/2023/08/15/1692083492952738.png', 'a0833106095ec0b1e2a3c4b5e105d8c945888b40a4d559eab4adebfacc2ce7f5', 1692083492), (2461, 9, '1692083505296275.png', 'qiche.png', 3878, '.png', 'image', '/static/upload/images/goods_category/2023/08/15/1692083505296275.png', 'b44e5a097a27eb44a08324d4bf54371cd1e049b0708c74588509ee01bfeea106', 1692083505), (2462, 9, '1692083524902686.png', '玩具 (1).png', 4308, '.png', 'image', '/static/upload/images/goods_category/2023/08/15/1692083524902686.png', '125bd2ef65eb6ab0205be31855ab9aa4358d51fb215c13e4fc0224efb4c37b7b', 1692083524), (2463, 9, '1692083536757100.png', '玩具.png', 4611, '.png', 'image', '/static/upload/images/goods_category/2023/08/15/1692083536757100.png', '563318d8fcd008c39c7490ed4d332b3b332944fea9e4f3eea9a78323597901ec', 1692083536), (2464, 9, '1692083555223187.png', '母婴 (1).png', 4893, '.png', 'image', '/static/upload/images/goods_category/2023/08/15/1692083555223187.png', 'bef484535fe85e7bad861b02a19056a9b0fbbf8698ecefc0206670e42c8b606e', 1692083555), (2465, 9, '1692083563885614.png', '母婴.png', 5288, '.png', 'image', '/static/upload/images/goods_category/2023/08/15/1692083563885614.png', 'f706bc5543b0efce608677b6cf62a4d9cdb9f9fabcf0491d49e9e5472367f4ed', 1692083563), (2466, 9, '1692083590253616.png', '缴费管理-01 (1).png', 3426, '.png', 'image', '/static/upload/images/goods_category/2023/08/15/1692083590253616.png', '7bb3c874ae9f6db1aa832ce2e01cd829a7b7898d60dffc8112d396875d83ad62', 1692083590), (2467, 9, '1692083600747987.png', '缴费管理-01.png', 3708, '.png', 'image', '/static/upload/images/goods_category/2023/08/15/1692083600747987.png', 'dbdf452c9a89a0e03ceb5447b9f23afcaa7fa7434fec4d86d61543ae36b379b0', 1692083600), (2470, 9, '1692085007595445.png', '时尚服饰1.png', 3057, '.png', 'image', '/static/upload/images/goods_category/2023/08/15/1692085007595445.png', 'ce4b5ecc9e779aa83a0d9721a48c30c5ad8c5e357f6b111a4b9fc1fa020bebeb', 1692085007), (2471, 9, '1692085019787788.png', '时尚服饰1a.png', 3381, '.png', 'image', '/static/upload/images/goods_category/2023/08/15/1692085019787788.png', '311f779acfb884e41c4848afa73f8bd7c5bfa03c27e9a5402e00aafa5db52d78', 1692085019), (2513, 4, '1692179763831840.jpg', '个护化妆.jpg', 38683, '.jpg', 'image', '/static/upload/images/brand_category/2023/08/16/1692179763831840.jpg', '377d85320f5799a9c4734d030a5923fa50836adffdc48adeeeaef009285185a9', 1692179763), (2514, 4, '1692179764824230.jpg', '名品潮包.jpg', 58839, '
COMMIT;
-- ----------------------------
-- Table structure for sxo_attachment_category
-- ----------------------------
DROP TABLE IF EXISTS `sxo_attachment_category`;
CREATE TABLE `sxo_attachment_category` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`pid` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '父id',
`icon` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'icon图标',
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`path` char(230) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '路径值',
`sort` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`is_enable` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否启用0否1是',
`add_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `pid`(`pid`) USING BTREE,
INDEX `name`(`name`) USING BTREE,
INDEX `path`(`path`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '附件分类';
-- ----------------------------
-- Records of sxo_attachment_category
-- ----------------------------
BEGIN;
INSERT INTO `sxo_attachment_category` (`id`, `pid`, `icon`, `name`, `path`, `sort`, `is_enable`, `add_time`, `upd_time`) VALUES (1, 0, '', '用户中心菜单', 'app_center_nav', 0, 1, 0, 0), (2, 0, '', '首页导航', 'app_nav', 0, 1, 0, 0), (3, 0, '', '品牌', 'brand', 0, 1, 0, 0), (4, 0, '', '品牌分类', 'brand_category', 0, 1, 0, 0), (5, 0, '', '公共', 'common', 0, 1, 0, 0), (6, 0, '', '自定义页面', 'customview', 0, 1, 0, 0), (7, 0, '', '快递', 'express', 0, 1, 0, 0), (8, 0, '', '商品', 'goods', 0, 1, 0, 0), (9, 0, '', '商品分类', 'goods_category', 0, 1, 0, 0), (10, 0, '', '快捷导航', 'quick_nav', 0, 1, 0, 0), (11, 0, '', '轮播', 'slide', 0, 1, 0, 0), (16, 0, '', '用户', 'user', 0, 1, 1729478832, 0), (17, 16, '', 'user-1', 'user-1', 0, 1, 1729478832, 0), (18, 0, '', 'public', 'public', 0, 1, 1729478840, 0);
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_brand
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_brand`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_brand` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`logo` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'logo图标',
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
`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 '官网地址',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`sort` tinyint(3) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `is_enable`(`is_enable`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 32 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '品牌';
-- ----------------------------
-- Records of sxo_brand
-- ----------------------------
BEGIN;
INSERT INTO `sxo_brand` (`id`, `logo`, `name`, `describe`, `website_url`, `is_enable`, `sort`, `seo_title`, `seo_keywords`, `seo_desc`, `add_time`, `upd_time`) VALUES (1, '/static/upload/images/brand/2019/02/25/1551064260180298.jpeg', '强生', '强生公司一直注重在中国的发展,强生(中国)有限公司1992年1月在上海闵行经济技术开发区注册成立,注册资本超过一亿美元,是强生公司在中国大陆设立的首家独资企业。', 'https://www.johnsonsbaby.com.cn/', 1, 0, '', '', '', 1551064263, 1690034759), (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), (8, '/static/upload/images/brand/2023/08/12/1691823127165367.png', '华为', '', '', 1, 0, '', '', '', 1691823135, 0), (9, '/static/upload/images/brand/2023/08/12/1691823902414748.png', '苹果', '', '', 1, 0, '', '', '', 1691823909, 0), (10, '/static/upload/images/brand/2023/08/12/1691824615829604.png', 'ViVo', '', '', 1, 0, '', '', '', 1691824649, 0), (11, '/static/upload/images/brand/2023/08/12/1691828238575330.png', '惠普', '', '', 1, 0, '', '', '', 1691828270, 0), (12, '/static/upload/images/brand/2023/08/12/1691831848237506.png', '联想', '', '', 1, 0, '', '', '', 1691831867, 0), (13, '/static/upload/images/brand/2023/08/12/1691832967621264.png', '花花公子', '', '', 1, 0, '', '', '', 1691833083, 0), (14, '/static/upload/images/brand/2023/08/12/1691835126265383.png', '南极人', '', '', 1, 0, '', '', '', 1691835147, 0), (15, '/static/upload/images/brand/2023/08/12/1691835977239809.png', '斐乐', '', '', 1, 0, '', '', '', 1691835998, 0), (16, '/static/upload/images/brand/2023/08/14/1691977709405973.png', 'MZOMXO', '', '', 1, 0, '', '', '', 1691977742, 0), (17, '/static/upload/images/brand/2023/08/14/1691979547580992.png', 'SHIROMA', '', '', 1, 0, '', '', '', 1691979564, 0), (18, '/static/upload/images/brand/2023/08/14/1691981092702792.png', '皮尔卡丹', '', '', 1, 0, '', '', '', 1691981114, 0), (19, '/static/upload/images/brand/2023/08/14/1691982245246201.png', '科罗蒙凯', '', '', 1, 0, '', '', '', 1691982275, 0), (20, '/static/upload/images/brand/2023/08/14/1691982936761169.png', '古驰', '', '', 1, 0, '', '', '', 1691982949, 0), (21, '/static/upload/images/brand/2023/08/14/1691994279806663.png', '海蓝之家', '', '', 1, 0, '', '', '', 1691994296, 0), (22, '/static/upload/images/brand/2023/08/14/1691995321426107.png', '森马', '', '', 1, 0, '', '', '', 1691995356, 0), (23, '/static/upload/images/brand/2023/08/14/1691996707185755.png', '蔻驰', '', '', 1, 0, '', '', '', 1691996725, 0), (24, '/static/upload/images/brand/2023/08/14/1691997896419442.png', '新秀丽', '', '', 1, 0, '', '', '', 1691997915, 0), (25, '/static/upload/images/brand/2023/08/14/1691999031675571.png', 'viney', '女包潮牌', '', 1, 0, '', '', '', 1691999101, 0), (26, '/static/upload/images/brand/2023/08/14/1692001814915676.png', '圣罗兰', '', '', 1, 0, '', '', '', 1692000843, 1692001820), (27, '/static/upload/images/brand/2023/08/14/1692002225149281.png', '纪诗哲', '', '', 1, 0, '', '', '', 1692002232, 0), (28, '/static/upload/images/brand/2023/08/15/1692072099338167.png', '珑骧', '', '', 1, 0, '', '', '', 1692072103, 0), (29, '/static/upload/images/brand/2023/08/15/1692075641858267.png', 'PRADA', '', '', 1, 0, '', '', '', 1692075664, 0), (30, '/static/upload/images/brand/2023/08/15/1692079093135992.png', '七匹狼', '', '', 1, 0, '', '', '', 1692079111, 0), (31, '/static/upload/images/brand/2023/08/15/1692079903152230.png', '鳄鱼', '', '', 1, 0, '',
COMMIT;
-- ----------------------------
-- Table structure for sxo_brand_category
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_brand_category`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_brand_category` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '分类id',
`icon` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'icon图标',
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`sort` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '顺序',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `is_enable`(`is_enable`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 33 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '品牌分类';
-- ----------------------------
-- Records of sxo_brand_category
-- ----------------------------
BEGIN;
INSERT INTO `sxo_brand_category` (`id`, `icon`, `name`, `is_enable`, `sort`, `add_time`, `upd_time`) VALUES (7, '/static/upload/images/brand_category/2023/08/16/1692179764610132.jpg', '母婴用品', 1, 0, 0, 1692179827), (10, '/static/upload/images/brand_category/2023/08/16/1692179764393600.jpg', '运动健康', 1, 0, 0, 1692179778), (17, '/static/upload/images/brand_category/2023/08/16/1692179764441916.jpg', '珠宝手表', 1, 0, 1482840557, 1692179803), (18, '/static/upload/images/brand_category/2023/08/16/1692179763831840.jpg', '个护化妆', 1, 0, 1482840577, 1692179813), (25, '/static/upload/images/brand_category/2023/08/16/1692179764545573.jpg', '数码办公', 1, 0, 1535684676, 1692179839), (26, '/static/upload/images/brand_category/2023/08/16/1692179764631397.jpg', '时尚服饰', 1, 0, 1535684688, 1692179847), (27, '/static/upload/images/brand_category/2023/08/16/1692179764550883.jpg', '家居生活', 1, 0, 1535684701, 1692179908), (28, '/static/upload/images/brand_category/2023/08/16/1692179764975951.jpg', '玩具乐器', 1, 0, 1535684707, 1692179949), (29, '/static/upload/images/brand_category/2023/08/16/1692179764925617.jpg', '汽车用品', 1, 0, 1535684729, 1692179856), (32, '/static/upload/images/brand_category/2023/08/16/1692179764824230.jpg', '名品潮包', 1, 0, 1692072013, 1692179885);
COMMIT;
-- ----------------------------
-- Table structure for sxo_brand_category_join
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_brand_category_join`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_brand_category_join` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`brand_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '品牌id',
`brand_category_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '分类id',
`add_time` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `brand_id`(`brand_id`) USING BTREE,
INDEX `brand_category_id`(`brand_category_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 86 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '品牌分类关联';
-- ----------------------------
-- Records of sxo_brand_category_join
-- ----------------------------
BEGIN;
INSERT INTO `sxo_brand_category_join` (`id`, `brand_id`, `brand_category_id`, `add_time`) VALUES (29, 5, 10, 1598276166), (51, 2, 18, 1610346851), (55, 3, 10, 1610351690), (56, 4, 16, 1690020306), (57, 1, 7, 1690034759), (58, 1, 18, 1690034759), (59, 1, 27, 1690034759), (60, 8, 25, 1691823135), (61, 9, 25, 1691823909), (62, 10, 25, 1691824649), (63, 11, 25, 1691828270), (64, 12, 25, 1691831867), (65, 13, 26, 1691833083), (66, 14, 26, 1691835147), (67, 15, 26, 1691835998), (68, 16, 26, 1691977742), (69, 17, 26, 1691979564), (70, 18, 26, 1691981114), (71, 19, 26, 1691982275), (72, 20, 26, 1691982949), (73, 21, 26, 1691994296), (74, 22, 26, 1691995356), (75, 23, 26, 1691996725), (76, 24, 26, 1691997915), (77, 25, 26, 1691999101), (80, 26, 26, 1692001820), (81, 27, 26, 1692002232), (82, 28, 32, 1692072103), (83, 29, 32, 1692075664), (84, 30, 26, 1692079111), (85, 31, 26, 1692079921);
COMMIT;
-- ----------------------------
-- Table structure for sxo_cart
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_cart`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_cart` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`user_id` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '用户id',
`goods_id` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '商品id',
`title` char(160) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题',
`images` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '封面图片',
`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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '购买数量',
`spec` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '规格',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `user_id`(`user_id`) USING BTREE,
INDEX `goods_id`(`goods_id`) USING BTREE,
INDEX `title`(`title`) USING BTREE,
INDEX `stock`(`stock`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '购物车';
-- ----------------------------
-- Records of sxo_cart
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_config
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_config`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_config` (
`id` int(10) 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 '名称',
`describe` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '描述',
`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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
UNIQUE INDEX `only_tag`(`only_tag`) USING BTREE
2024-10-21 10:51:14 +08:00
) ENGINE = MyISAM AUTO_INCREMENT = 311 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '基本配置参数';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_config
-- ----------------------------
BEGIN;
2024-10-22 11:35:25 +08:00
INSERT INTO `sxo_config` (`id`, `value`, `name`, `describe`, `error_tips`, `type`, `only_tag`, `upd_time`) VALUES (15, '20', '分页数量', '分页显示数量', '分页不能超过3位数', 'admin', 'common_page_size', 1723627959), (59, '1', '订单商品扣减库存规则', '需扣减库存开启方可有效,默认订单支付成功', '', 'common', 'common_deduction_inventory_rules', 1693127007), (60, '1', '是否扣减库存', '建议不要随意修改,以免造成库存数据错乱,关闭不影响库存回滚', '', 'common', 'common_is_deduction_inventory', 1693127007), (11, '0', 'Excel编码', 'excel模块编码选择', '请选择编码', 'admin', 'admin_excel_charset', 1723627959), (16, '网站名称 - SEO标题', '站点标题', '浏览器标题一般不超过80个字符', '站点标题不能为空', 'home', 'home_seo_site_title', 1721897796), (17, 'SEO站点关键字', '站点关键字', '一般不超过100个字符多个关键字以半圆角逗号 [ , ] 隔开', '站点关键字不能为空', 'home', 'home_seo_site_keywords', 1721897796), (18, 'SEO站点描述', '站点描述', '站点描述一般不超过200个字符', '站点描述不能为空', 'home', 'home_seo_site_description', 1721897796), (19, '京ICP备xxx号', 'ICP证书号', '沪ICP备xxx号', '', 'home', 'home_site_icp', 1721903617), (20, '', '底部统计代码', '支持html可用于添加流量统计代码', '', 'home', 'home_statistics_code', 0), (21, '1', 'web端站点状态', '可暂时将站点关闭,其他人无法访问,但不影响管理员访问后台', '请选择web端站点状态', 'home', 'home_site_web_state', 1721903617), (22, '升级中...', '关闭原因', '支持html当网站处于关闭状态时关闭原因将显示在前台', '', 'home', 'home_site_close_reason', 1721903617), (23, 'Asia/Shanghai', '默认时区', '默认 亚洲/上海 [标准时+8]', '请选择默认时区', 'common', 'common_timezone', 1721903617), (24, '', '底部代码', '支持html可用于添加流量统计代码', '', 'home', 'home_footer_info', 1721903617), (28, '网站名称', '站点名称', '', '站点名称不能为空', 'home', 'home_site_name', 1721903617), (29, '0', '链接模式', '非兼容模式请确保配置好伪静态规则', '请选择url模式', 'home', 'home_seo_url_model', 1721897796), (25, '204800000000', '图片最大限制', '单位B [上传图片还受到服务器空间PHP配置最大上传 20M 限制]', '请填写图片上传最大限制', 'home', 'home_max_limit_image', 1692097063), (26, '512000000000', '文件最大限制', '单位B [上传文件还受到服务器空间PHP配置最大上传 20M 限制]', '请填写文件上传最大限制', 'home', 'home_max_limit_file', 1692097063), (27, '1024000000000', '视频最大限制', '单位B [上传视频还受到服务器空间PHP配置最大上传 20M 限制]', '请填写视频上传最大限制', 'home', 'home_max_limit_video', 1692097063), (30, 'html', '伪静态后缀', '链接后面的后缀别名,默认 [ html ]', '小写字母不能超过8个字符', 'home', 'home_seo_url_html_suffix', 1721897796), (31, '0', '用户注册开启审核', '默认关闭,开启后用户注册需要审核通过方可登录', '请选择用户注册开启审核', 'common', 'common_register_is_enable_audit', 1688461894), (32, '/static/upload/images/common/2019/01/14/1547448748316693.png', '手机端logo', '支持 [jpg, png, gif]建议220x66px', '请上传手机端网站logo', 'home', 'home_site_logo_wap', 1721903617), (33, '/static/upload/images/common/2019/01/14/1547448705165706.png', '电脑端logo', '支持 [jpg, png, gif]建议220x60px', '请上传电脑端网站logo', 'home', 'home_site_logo', 1721903617), (34, '1200', '页面最大宽度', '页面最大宽度单位px0则100%', '请填写页面宽度值', 'home', 'home_content_max_width', 1600008688), (35, '/static/upload/images/common/2019/01/14/1547448728921121.jpg', '正方形logo', '建议使用png格式建议300x300px', '请上传正方形logo', 'common', 'home_site_logo_square', 172190
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_custom_view
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_custom_view`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_custom_view` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`logo` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'logo',
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`html_content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'html代码',
`css_content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'css样式',
`js_content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'js代码',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`is_header` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否包含头部0否, 1是',
`is_footer` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否包含尾部0否, 1是',
`is_full_screen` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否满屏0否, 1是',
`access_count` int(10) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `title`(`name`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE,
INDEX `access_count`(`access_count`) USING BTREE
2023-09-11 22:14:55 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '自定义页面';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_custom_view
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_design
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_design`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_design` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`logo` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'logo',
`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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '访问次数',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`is_header` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否含头部0否1是',
`is_footer` tinyint(3) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
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
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '页面设计';
-- ----------------------------
-- Records of sxo_design
-- ----------------------------
BEGIN;
COMMIT;
2024-10-21 10:51:14 +08:00
-- ----------------------------
-- Table structure for sxo_diy
-- ----------------------------
DROP TABLE IF EXISTS `sxo_diy`;
CREATE TABLE `sxo_diy` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`md5_key` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '唯一标识',
`logo` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'logo',
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`describe` char(230) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '访问次数',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `md5_key`(`md5_key`) USING BTREE,
INDEX `name`(`name`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'DIY装修';
-- ----------------------------
-- Records of sxo_diy
-- ----------------------------
BEGIN;
COMMIT;
2024-01-19 15:40:47 +08:00
-- ----------------------------
-- Table structure for sxo_email_log
-- ----------------------------
DROP TABLE IF EXISTS `sxo_email_log`;
CREATE TABLE `sxo_email_log` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`smtp_host` char(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'SMTP服务器',
`smtp_port` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'SMTP端口',
`smtp_name` char(160) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '邮箱用户名',
`smtp_account` char(160) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '发信人邮件',
`smtp_send_name` char(160) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '发件人姓名',
`status` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态0未发送1已发送2已失败',
`email` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '收件邮箱',
`title` char(160) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '邮件标题',
`template_value` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '邮件内容',
`template_var` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '邮件变量数组则json字符串存储',
`reason` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '失败原因',
`tsc` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '耗时时间(单位秒)',
`add_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `smtp_host`(`smtp_host`) USING BTREE,
INDEX `smtp_name`(`smtp_name`) USING BTREE,
INDEX `smtp_account`(`smtp_account`) USING BTREE,
INDEX `status`(`status`) USING BTREE,
INDEX `email`(`email`) USING BTREE,
INDEX `tsc`(`tsc`) USING BTREE,
INDEX `add_time`(`add_time`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '邮件日志';
-- ----------------------------
-- Records of sxo_email_log
-- ----------------------------
BEGIN;
COMMIT;
2024-10-21 10:51:14 +08:00
-- ----------------------------
-- Table structure for sxo_error_log
-- ----------------------------
DROP TABLE IF EXISTS `sxo_error_log`;
CREATE TABLE `sxo_error_log` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`message` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '错误信息',
`file` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '错误文件路径',
`line` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '错误文件行号',
`code` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '错误编码',
`ip` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '请求ip',
`uri` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'uri地址段',
`request_params` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '请求参数数组则json字符串存储',
`memory_use` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '使用内存',
`tsc` decimal(10, 6) UNSIGNED NOT NULL DEFAULT 0.000000 COMMENT '耗时时间(单位秒)',
`add_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `code`(`code`) USING BTREE,
INDEX `ip`(`ip`) USING BTREE,
INDEX `tsc`(`tsc`) USING BTREE,
INDEX `add_time`(`add_time`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '错误日志';
-- ----------------------------
-- Records of sxo_error_log
-- ----------------------------
BEGIN;
INSERT INTO `sxo_error_log` (`id`, `message`, `file`, `line`, `code`, `ip`, `uri`, `request_params`, `memory_use`, `tsc`, `add_time`) VALUES (1, 'SQLSTATE[42S02]: Base table or view not found: 1146 Table \'shopxo_online.sxo_plugins_erp_merchant\' doesn\'t exist', '/Applications/EServer/www/project/shopxo-dev/vendor/topthink/think-orm/src/db/PDOConnection.php', 836, '10501', '127.0.0.1', '/admin.php?s=index/index.html', '', '7.62MB', 0.061994, 1729478467), (2, 'SQLSTATE[42S02]: Base table or view not found: 1146 Table \'shopxo_online.sxo_plugins_erp_merchant\' doesn\'t exist', '/Applications/EServer/www/project/shopxo-dev/vendor/topthink/think-orm/src/db/PDOConnection.php', 836, '10501', '127.0.0.1', '/admin.php?s=index/index.html', '', '7.62MB', 0.051816, 1729478468), (3, 'SQLSTATE[42S02]: Base table or view not found: 1146 Table \'shopxo_online.sxo_plugins_erp_merchant\' doesn\'t exist', '/Applications/EServer/www/project/shopxo-dev/vendor/topthink/think-orm/src/db/PDOConnection.php', 836, '10501', '127.0.0.1', '/admin.php?s=index/index.html', '', '7.62MB', 0.053741, 1729478469), (4, 'SQLSTATE[42S02]: Base table or view not found: 1146 Table \'shopxo_online.sxo_plugins_erp_merchant\' doesn\'t exist', '/Applications/EServer/www/project/shopxo-dev/vendor/topthink/think-orm/src/db/PDOConnection.php', 836, '10501', '127.0.0.1', '/admin.php?s=index/index.html', '', '7.62MB', 0.050285, 1729478469);
COMMIT;
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Table structure for sxo_express
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_express`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_express` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`pid` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '父id',
`icon` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'icon图标',
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
`website_url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '官网地址',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`sort` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '顺序',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
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` (`id`, `pid`, `icon`, `name`, `website_url`, `is_enable`, `sort`, `add_time`, `upd_time`) VALUES (1, 0, '/static/upload/images/express/images/20180917104528_logo.png', '顺丰快递', 'https://www.sf-express.com/', 1, 0, 1526350443, 1673094014), (2, 0, '/static/upload/images/express/images/20180917104538_logo.png', '圆通快递', 'https://www.yto.net.cn/', 1, 0, 1526350453, 1673244554), (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, 1690020683), (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;
-- ----------------------------
-- Table structure for sxo_form_table_user_fields
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_form_table_user_fields`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_form_table_user_fields` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`user_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '管理员id或用户id',
`user_type` tinyint(3) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `user_id`(`user_id`) USING BTREE,
INDEX `user_type`(`user_type`) USING BTREE,
INDEX `md5_key`(`md5_key`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '动态表格用户自定义字段';
-- ----------------------------
-- Records of sxo_form_table_user_fields
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_goods
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_goods`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_goods` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`brand_id` int(10) 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 '标题',
2024-01-19 15:40:47 +08:00
`title_color` char(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题颜色',
2023-08-27 18:24:09 +08:00
`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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '产地地区省id',
`inventory` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '库存(所有规格库存总和)',
`inventory_unit` char(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '库存单位',
`images` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '封面图片',
`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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '购买赠送积分比例',
`buy_min_number` int(10) UNSIGNED NOT NULL DEFAULT 1 COMMENT '最低起购数量 默认1',
`buy_max_number` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最大购买数量(最大数值 100000000, 小于等于0或空则不限',
`is_deduction_inventory` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否扣减库存0否, 1是',
`is_shelves` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否上架(下架后用户不可见, 0否, 1是',
`content_web` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '电脑端详情内容',
`photo_count` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '相册图片数量',
`sales_count` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '销量',
`access_count` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '访问次数',
`video` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '短视频',
`is_exist_many_spec` tinyint(3) 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 '虚拟商品展示数据',
2024-07-03 22:46:04 +08:00
`sort_level` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序值(数值越大排在前面)',
2023-08-27 18:24:09 +08:00
`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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否已删除0 未删除, 大于0则是删除时间',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
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,
2024-07-03 22:46:04 +08:00
INDEX `is_delete_time`(`is_delete_time`) USING BTREE,
2024-10-21 10:51:14 +08:00
INDEX `sort_level`(`sort_level`) USING BTREE,
INDEX `access_sales_id_desc`(`access_count`, `sales_count`, `id`) USING BTREE,
INDEX `sort_level_id_desc`(`sort_level`, `id`) USING BTREE
2023-08-27 18:24:09 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 111 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品';
-- ----------------------------
-- Records of sxo_goods
-- ----------------------------
BEGIN;
2024-10-21 10:51:14 +08:00
INSERT INTO `sxo_goods` (`id`, `brand_id`, `site_type`, `title`, `title_color`, `simple_desc`, `model`, `place_origin`, `inventory`, `inventory_unit`, `images`, `original_price`, `min_original_price`, `max_original_price`, `price`, `min_price`, `max_price`, `give_integral`, `buy_min_number`, `buy_max_number`, `is_deduction_inventory`, `is_shelves`, `content_web`, `photo_count`, `sales_count`, `access_count`, `video`, `is_exist_many_spec`, `spec_base`, `fictitious_goods_value`, `sort_level`, `seo_title`, `seo_keywords`, `seo_desc`, `is_delete_time`, `add_time`, `upd_time`) VALUES (1, 12, -1, '联想笔记本电脑小新16轻薄本 英特尔酷睿i5 16英寸超薄本(13代标压i5-13500H 16G 512G)灰 商务办公学生', '', '联想笔记本电脑小新16轻薄本 英特尔酷睿i5 16英寸超薄本(13代标压i5-13500H 16G 512G)灰 商务办公学生', '联想笔记本电脑小新16轻薄本', 1, 1517, '', '/static/upload/images/goods/2023/08/12/1691832443984882.png', '9200.00', 9200.00, 9200.00, '2100.12', 2100.12, 2100.12, 10, 1, 0, 1, 1, '<p><img src=\"/static/upload/images/goods/2023/08/12/1691832377600902.png\" title=\"1691832377600902.png\" alt=\"截屏2023-08-12 17.23.05.png\"/></p><p><img src=\"/static/upload/images/goods/2023/08/12/1691832382882584.png\" title=\"1691832382882584.png\" alt=\"截屏2023-08-12 17.23.34.png\"/></p><p><img src=\"/static/upload/images/goods/2023/08/12/1691832386387138.png\" title=\"1691832386387138.png\" alt=\"截屏2023-08-12 17.23.48.png\"/></p><p><img src=\"/static/upload/images/goods/2023/08/12/1691832391391925.png\" title=\"1691832391391925.png\" alt=\"截屏2023-08-12 17.24.06.png\"/></p><p><img src=\"/static/upload/images/goods/2023/08/12/1691832395282530.png\" title=\"1691832395282530.png\" alt=\"截屏2023-08-12 17.24.19.png\"/></p><p><br/></p><p><br/></p>', 1, 171, 6165, '', 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: \">https://pan.baidu.com/s/18xyUNruvohr5JCdorvaz5w</a><span style=\"box-sizing: border-box; color: rgb(51, 51, 51); font-family: \">&nbsp; &nbsp; &nbsp;提取码&nbsp;</span><span style=\"box-sizing: border-box; color: rgb(51, 51, 51); font-family: \">v3y4-33</span></p>', 0, '', '', '', 0, 1547450921, 1693126392), (2, 8, -1, '华为笔记本电脑MateBook 14 2023 13代酷睿版 i5 16G 1T 14英寸轻薄办公本/2K触控全面屏/手机互联 深空灰', '', '华为笔记本电脑MateBook 14 2023 13代酷睿版 i5 16G 1T 14英寸轻薄办公本/2K触控全面屏/手机互联 深空灰', '华为笔记本电脑MateBook 14', 19, 266664, '', '/static/upload/images/goods/2023/08/12/1691830293182918.png', '6000.00-6800.00', 6000.00, 6800.00, '4500.00-5500.00', 4500.00, 5500.00, 30, 1, 0, 1, 1, '<p><img src=\"/static/upload/images/goods/2023/08/12/1691829803316804.png\" title=\"1691829803316804.png\" alt=\"截屏2023-08-12 16.40.01.png\"/></p><p><img src=\"/static/upload/images/goods/2023/08/12/1691829808460903.png\" title=\"1691829808460903.png\" alt=\"截屏2023-08-12 16.40.09.png\"/></p><p><img src=\"/static/upload/images/goods/2023/08/12/1691829813811407.png\" title=\"1691829813811407.png\" alt=\"截屏2023-08-12 16.40.19.png\"/></p><p><img src=\"/static/upload/images/goods/2023/08/12/1691829818501892.png\" title=\"1691829818501892.png\" alt=\"截屏2023-08-12 16.41.13.png\"/></p><p><br/></p><p><br/></p><p><br/></p>', 1, 199, 10126, '', 1, '', '', 0, '', '', '', 0, 1547451624, 1693284683), (3, 9, -1, 'Apple MacBook Pro 14英寸 M1 Pro芯片(8核中央处理器 14核图形处理器) 16G 512G 深空灰 笔记本 MKGP3CH/A', '', 'Apple MacBook Pro 14英寸 M1 Pro芯片(8核中央处理器 14核图形处理器) 16G 512G 深空灰 笔记本 MKGP3CH/A', 'Apple MacBook Pro 14英寸', 35, 888888, '', '/static/upload/images/goods/2023/08/12/1691830511475725.png', '19000.00', 19000.00, 19000.00, '15900.00', 15900.00, 15900.00, 20, 1, 4, 1, 1, '<p><img src=\"/static/upload/images/goods/2023
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_goods_browse
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_goods_browse`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_goods_browse` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`goods_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`user_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE
2023-08-27 18:24:09 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户商品浏览';
2021-11-23 09:21:22 +08:00
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_goods_browse
-- ----------------------------
BEGIN;
COMMIT;
2021-10-17 14:29:57 +08:00
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Table structure for sxo_goods_category
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_goods_category`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_goods_category` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`pid` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '父id',
`icon` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'icon图标',
`icon_active` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '选中图标',
`realistic_images` char(255) 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 '名称',
`vice_name` char(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '副标题',
`describe` char(255) 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背景色值',
`big_images` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '大图片',
`is_home_recommended` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否首页推荐0否, 1是',
`sort` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`is_enable` tinyint(3) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `pid`(`pid`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 911 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品分类';
-- ----------------------------
-- Records of sxo_goods_category
-- ----------------------------
BEGIN;
2023-11-08 23:45:00 +08:00
INSERT INTO `sxo_goods_category` (`id`, `pid`, `icon`, `icon_active`, `realistic_images`, `name`, `vice_name`, `describe`, `bg_color`, `big_images`, `is_home_recommended`, `sort`, `is_enable`, `seo_title`, `seo_keywords`, `seo_desc`, `add_time`, `upd_time`) VALUES (1, 0, '/static/upload/images/goods_category/2023/08/15/1692083230862352.png', '/static/upload/images/goods_category/2023/08/15/1692083246780484.png', '/static/upload/images/goods_category/2023/11/08/1699457036808561.png', '数码办公', '天天新品,科技带来快乐!', 'iphoneX新品发布了', '', '/static/upload/images/goods_category/2023/08/12/1691819575986269.png', 1, 0, 1, '数码办公标题', '数码办公,笔记本,手机', '数码办公周边产品', 1529042764, 1699457045), (2, 0, '/static/upload/images/goods_category/2023/08/15/1692085007595445.png', '/static/upload/images/goods_category/2023/08/15/1692085019787788.png', '/static/upload/images/goods_category/2023/11/08/1699457036977194.png', '时尚服饰', '因为美丽、所以神秘!', '追求美、你值得拥有', '', '/static/upload/images/goods_category/2023/08/15/1692078936329508.png', 1, 0, 1, '', '连衣裙,裙子', '', 1529042764, 1699457059), (3, 0, '/static/upload/images/goods_category/2023/08/15/1692083365962236.png', '/static/upload/images/goods_category/2023/08/15/1692083374446120.png', '/static/upload/images/goods_category/2023/11/08/1699457036877667.png', '名品潮包', '时尚,是一种生活态度!', '美食天下之美', '#ff9229', '/static/upload/images/goods_category/2023/08/15/1692070178969916.png', 1, 0, 1, '', '', '', 1529042764, 1699457071), (7, 0, '/static/upload/images/goods_category/2023/08/15/1692083394485796.png', '/static/upload/images/goods_category/2023/08/15/1692083405644267.png', '/static/upload/images/goods_category/2023/11/08/1699457036179125.png', '个护化妆', '', '', '', '', 0, 0, 1, '', '', '', 1529042764, 1699457084), (52, 0, '/static/upload/images/goods_category/2023/08/15/1692083430922728.png', '/static/upload/images/goods_category/2023/08/15/1692083442155794.png', '/static/upload/images/goods_category/2023/11/08/1699457036435422.png', '珠宝手表', '', '', '', '', 0, 0, 1, '', '', '', 1529042764, 1699457097), (53, 0, '/static/upload/images/goods_category/2023/08/15/1692083465166195.png', '/static/upload/images/goods_category/2023/08/15/1692083473937545.png', '/static/upload/images/goods_category/2023/11/08/1699457036206296.png', '运动健康', '', '户外装备,应有尽有', '#53c0f3', '', 0, 0, 1, '', '', '', 1529042764, 1699457124), (54, 0, '/static/upload/images/goods_category/2023/08/15/1692083492952738.png', '/static/upload/images/goods_category/2023/08/15/1692083505296275.png', '/static/upload/images/goods_category/2023/11/08/1699457036100017.png', '汽车用品', '', '', '', '', 0, 0, 1, '', '', '', 1529042764, 1699457138), (55, 0, '/static/upload/images/goods_category/2023/08/15/1692083524902686.png', '/static/upload/images/goods_category/2023/08/15/1692083536757100.png', '/static/upload/images/goods_category/2023/11/08/1699457036304450.png', '玩具乐器', '', '', '', '', 0, 0, 1, '', '', '', 1529042764, 1699457158), (56, 0, '/static/upload/images/goods_category/2023/08/15/1692083555223187.png', '/static/upload/images/goods_category/2023/08/15/1692083563885614.png', '/static/upload/images/goods_category/2023/11/08/1699457036853449.png', '母婴用品', '', '', '', '', 0, 0, 1, '', '', '', 1529042764, 1699457165), (57, 0, '/static/upload/images/goods_category/2023/08/15/1692083590253616.png', '/static/upload/images/goods_category/2023/08/15/1692083600747987.png', '/static/upload/images/goods_category/2023/11/08/1699457036375930.png', '生活服务', '', '', '', '', 0, 0, 1, '', '', '', 1529042764, 1699457174), (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, '', '', '', 1
2023-08-27 18:24:09 +08:00
INSERT INTO `sxo_goods_category` (`id`, `pid`, `icon`, `icon_active`, `realistic_images`, `name`, `vice_name`, `describe`, `bg_color`, `big_images`, `is_home_recommended`, `sort`, `is_enable`, `seo_title`, `seo_keywords`, `seo_desc`, `add_time`, `upd_time`) VALUES (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, '', '', '', '便民充值', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (875, 57, '', '', '', '游戏充值', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (876, 57, '', '', '', '票务服务', '', '', '', '', 1, 0, 1, '', '', '', 1529042764, 0), (877, 872,
COMMIT;
-- ----------------------------
-- Table structure for sxo_goods_category_join
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_goods_category_join`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_goods_category_join` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`goods_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`category_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '分类id',
`add_time` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `goods_id`(`goods_id`) USING BTREE,
INDEX `category_id`(`category_id`) USING BTREE
2023-08-29 13:13:32 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 1913 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品分类关联';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_goods_category_join
-- ----------------------------
BEGIN;
2023-08-29 13:13:32 +08:00
INSERT INTO `sxo_goods_category_join` (`id`, `goods_id`, `category_id`, `add_time`) VALUES (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), (1291, 15, 69, 1651831248), (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), (1517, 47, 68, 1654481357), (1518, 47, 304, 1654481357), (1519, 48, 68, 1654482350), (1520, 48, 304, 1654482350), (1567, 50, 68, 1654498297), (1568, 50, 304, 1654498297), (1590, 53, 68, 1657863488), (1591, 53, 304, 1657863488), (1592, 54, 68, 1657863560), (1593, 54, 304, 1657863560), (1708, 57, 68, 1667140265), (1709, 57, 70, 1667140265), (1710, 57, 574, 1667140265), (1844, 1, 68, 1691832446), (1852, 8, 318, 1691981714), (1885, 7, 197, 1693234922), (1886, 110, 2, 1693234972), (1887, 109, 2, 1693235270), (1888, 98, 3, 1693235317), (1889, 108, 3, 1693235460), (1890, 107, 3, 1693235615), (1891, 102, 3, 1693235663), (1893, 105, 3, 1693235790), (1894, 101, 3, 1693235925), (1895, 106, 3, 1693235979), (1896, 104, 3, 1693236042), (1897, 103, 3, 1693236446), (1898, 100, 2, 1693236598), (1899, 99, 2, 1693236668), (1900, 9, 318, 1693237071), (1901, 25, 69, 1693237146), (1902, 32, 68, 1693237177), (1903, 5, 68, 1693237221), (1904, 4, 116, 1693237649), (1906, 11, 318, 1693237903), (1907, 12, 352, 1693237967), (1908, 10, 318, 1693238016), (1909, 74, 338, 1693238627), (1910, 2, 116, 1693284683), (1911, 3, 116, 1693284931), (1912, 6, 68, 1693285023);
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_goods_comments
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_goods_comments`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_goods_comments` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`user_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`order_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '业务订单id',
`goods_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`business_type` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '业务类型名称(如订单 order',
`content` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '评价内容',
`images` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '图片数据一维数组json',
`reply` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '回复内容',
`rating` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '评价级别默认0 1~5',
`is_show` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否显示0否, 1是',
`is_anonymous` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否匿名0否1是',
`is_reply` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否回复0否1是',
`reply_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '回复时间',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `user_id`(`user_id`) USING BTREE,
INDEX `order_id`(`order_id`) USING BTREE,
INDEX `goods_id`(`goods_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品评论';
-- ----------------------------
-- Records of sxo_goods_comments
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_goods_content_app
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_goods_content_app`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_goods_content_app` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`goods_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`images` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '图片',
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容',
`sort` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '顺序',
`add_time` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `goods_id`(`goods_id`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE
2023-08-28 23:56:43 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品手机详情';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_goods_content_app
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_goods_favor
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_goods_favor`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_goods_favor` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`goods_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`user_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE
2023-08-27 18:24:09 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户商品收藏';
2021-11-23 09:21:22 +08:00
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_goods_favor
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Table structure for sxo_goods_give_integral_log
-- ----------------------------
2022-03-09 10:46:46 +08:00
DROP TABLE IF EXISTS `sxo_goods_give_integral_log`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_goods_give_integral_log` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单id',
`order_detail_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单详情id',
`goods_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品详情id',
`user_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`status` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态0待发放, 1已发放, 2已关闭',
`rate` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '赠送比例',
`integral` int(11) NOT NULL DEFAULT 0 COMMENT '积分',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2022-03-09 10:46:46 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
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
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品积分赠送日志';
-- ----------------------------
-- Records of sxo_goods_give_integral_log
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_goods_params
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_goods_params`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_goods_params` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`goods_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`type` tinyint(3) 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(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '参数值',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `goods_id`(`goods_id`) USING BTREE,
INDEX `type`(`type`) USING BTREE,
INDEX `name`(`name`) USING BTREE,
INDEX `value`(`value`) USING BTREE
2023-08-29 00:05:15 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 1536 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品参数';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_goods_params
-- ----------------------------
BEGIN;
2023-08-29 00:05:15 +08:00
INSERT INTO `sxo_goods_params` (`id`, `goods_id`, `type`, `name`, `value`, `add_time`) VALUES (1495, 9, 2, '款式', '长款连衣裙', 1693237071), (1496, 9, 0, '流行元素/工艺', '树脂固色', 1693237071), (1497, 9, 2, '适用年龄', '30-34周岁', 1693237071), (1498, 9, 1, '图案', '纯色', 1693237071), (1499, 9, 1, '袖长', '短袖', 1693237071), (1500, 9, 1, '风格', '复古风', 1693237071), (1501, 9, 1, '衣门襟', '套头', 1693237071), (1502, 9, 1, '裙型', '大摆型', 1693237071), (1503, 9, 1, '组合形式', '单件', 1693237071), (1504, 9, 0, '款式类别', '图案花纹', 1693237071), (1505, 25, 1, 'CPU型号', 'A16', 1693237146), (1516, 12, 0, '流行元素/工艺', '树脂固色', 1693237967), (1517, 12, 2, '款式', '长款连衣裙', 1693237967), (1518, 12, 2, '适用年龄', '30-34周岁', 1693237967), (1519, 12, 1, '图案', '纯色', 1693237967), (1520, 12, 1, '袖长', '短袖', 1693237967), (1521, 12, 1, '风格', '复古风', 1693237967), (1522, 12, 1, '衣门襟', '套头', 1693237967), (1523, 12, 1, '裙型', '大摆型', 1693237967), (1524, 12, 1, '组合形式', '单件', 1693237967), (1525, 12, 0, '款式类别', '图案花纹', 1693237967), (1526, 74, 2, '款式', '长款连衣裙', 1693238627), (1527, 74, 0, '流行元素/工艺', '树脂固色', 1693238627), (1528, 74, 2, '适用年龄', '30-34周岁', 1693238627), (1529, 74, 1, '图案', '纯色', 1693238627), (1530, 74, 1, '袖长', '短袖', 1693238627), (1531, 74, 1, '风格', '复古风', 1693238627), (1532, 74, 1, '衣门襟', '套头', 1693238627), (1533, 74, 1, '裙型', '大摆型', 1693238627), (1534, 74, 1, '组合形式', '单件', 1693238627), (1535, 74, 0, '款式类别', '图案花纹', 1693238627);
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_goods_params_template
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_goods_params_template`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_goods_params_template` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`category_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品分类id含子级',
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否启用0否1是',
`config_count` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '参数配置数量',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `name`(`name`) USING BTREE,
INDEX `config_count`(`config_count`) USING BTREE,
INDEX `category_id`(`category_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品参数模板';
-- ----------------------------
-- Records of sxo_goods_params_template
-- ----------------------------
BEGIN;
INSERT INTO `sxo_goods_params_template` (`id`, `category_id`, `name`, `is_enable`, `config_count`, `add_time`, `upd_time`) VALUES (1, 2, '服饰鞋包连衣裙', 1, 10, 1606554077, 1690026407), (2, 2, '裤子', 1, 1, 1675757615, 1690032205), (3, 2, '鞋子', 1, 1, 1675757640, 1690026374);
COMMIT;
-- ----------------------------
-- Table structure for sxo_goods_params_template_config
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_goods_params_template_config`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_goods_params_template_config` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`template_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '模板id',
`type` tinyint(3) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `template_id`(`template_id`) USING BTREE,
INDEX `type`(`type`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 83 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品参数模板值';
-- ----------------------------
-- Records of sxo_goods_params_template_config
-- ----------------------------
BEGIN;
INSERT INTO `sxo_goods_params_template_config` (`id`, `template_id`, `type`, `name`, `value`, `add_time`) VALUES (71, 3, 1, '款式', '常规', 1690026374), (72, 1, 2, '款式', '长款连衣裙', 1690026407), (73, 1, 0, '流行元素/工艺', '树脂固色', 1690026407), (74, 1, 2, '适用年龄', '30-34周岁', 1690026407), (75, 1, 1, '图案', '纯色', 1690026407), (76, 1, 1, '袖长', '短袖', 1690026407), (77, 1, 1, '风格', '复古风', 1690026407), (78, 1, 1, '衣门襟', '套头', 1690026407), (79, 1, 1, '裙型', '大摆型', 1690026407), (80, 1, 1, '组合形式', '单件', 1690026407), (81, 1, 0, '款式类别', '图案花纹', 1690026407), (82, 2, 0, '长度', '中款', 1690032205);
COMMIT;
-- ----------------------------
-- Table structure for sxo_goods_photo
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_goods_photo`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_goods_photo` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`goods_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`images` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '图片',
`is_show` tinyint(3) UNSIGNED NULL DEFAULT 1 COMMENT '是否显示0否, 1是',
`sort` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '顺序',
`add_time` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `goods_id`(`goods_id`) USING BTREE,
INDEX `is_show`(`is_show`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE
2023-08-29 13:13:32 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 2240 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品相册图片';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_goods_photo
-- ----------------------------
BEGIN;
2023-08-29 13:13:32 +08:00
INSERT INTO `sxo_goods_photo` (`id`, `goods_id`, `images`, `is_show`, `sort`, `add_time`) VALUES (2167, 1, '/static/upload/images/goods/2023/08/12/1691832026565424.png', 1, 0, 1691832446), (2177, 8, '/static/upload/images/goods/2023/08/14/1691981231897653.png', 1, 0, 1691981714), (2210, 7, '/static/upload/images/goods/2023/08/15/1692080737909286.png', 1, 0, 1693234922), (2211, 110, '/static/upload/images/goods/2023/08/15/1692079963737575.png', 1, 0, 1693234972), (2212, 109, '/static/upload/images/goods/2023/08/15/1692079154656558.png', 1, 0, 1693235270), (2213, 98, '/static/upload/images/goods/2023/08/15/1692078380856633.png', 1, 0, 1693235317), (2214, 108, '/static/upload/images/goods/2023/08/15/1692075761195908.png', 1, 0, 1693235460), (2215, 107, '/static/upload/images/goods/2023/08/15/1692072217123569.png', 1, 0, 1693235615), (2216, 102, '/static/upload/images/goods/2023/08/15/1692070668885949.png', 1, 0, 1693235663), (2218, 105, '/static/upload/images/goods/2023/08/14/1692002344829640.png', 1, 0, 1693235790), (2219, 101, '/static/upload/images/goods/2023/08/14/1691996824307963.png', 1, 0, 1693235925), (2220, 106, '/static/upload/images/goods/2023/08/14/1692002974459810.png', 1, 0, 1693235979), (2221, 104, '/static/upload/images/goods/2023/08/14/1692000963306994.png', 1, 0, 1693236042), (2222, 103, '/static/upload/images/goods/2023/08/14/1691999334494128.png', 1, 0, 1693236446), (2223, 100, '/static/upload/images/goods/2023/08/14/1691995464796317.png', 1, 0, 1693236598), (2224, 99, '/static/upload/images/goods/2023/08/14/1691994396257476.png', 1, 0, 1693236668), (2225, 9, '/static/upload/images/goods/2023/08/14/1691980079575635.png', 1, 0, 1693237071), (2226, 25, '/static/upload/images/goods/2023/08/12/1691824121231788.png', 1, 0, 1693237146), (2227, 32, '/static/upload/images/goods/2023/08/12/1691823431903231.png', 1, 0, 1693237177), (2228, 5, '/static/upload/images/goods/2023/08/12/1691826776365755.png', 1, 0, 1693237221), (2229, 4, '/static/upload/images/goods/2023/08/12/1691831046790794.png', 1, 0, 1693237649), (2230, 4, '/static/upload/images/goods/2023/08/12/1691828468899201.png', 1, 1, 1693237649), (2232, 11, '/static/upload/images/goods/2023/08/12/1691836236770925.png', 1, 0, 1693237903), (2233, 12, '/static/upload/images/goods/2023/08/12/1691835373537126.png', 1, 0, 1693237967), (2234, 10, '/static/upload/images/goods/2023/08/14/1691977878897545.png', 1, 0, 1693238016), (2235, 74, '/static/upload/images/goods/2023/08/12/1691834999411165.png', 1, 0, 1693238627), (2236, 2, '/static/upload/images/goods/2023/08/12/1691830293182918.png', 1, 0, 1693284683), (2237, 3, '/static/upload/images/goods/2023/08/12/1691830511475725.png', 1, 0, 1693284931), (2238, 3, '/static/upload/images/goods/2023/08/12/1691829141472866.png', 1, 1, 1693284931), (2239, 6, '/static/upload/images/goods/2023/08/12/1691824925751938.png', 1, 0, 1693285023);
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_goods_spec_base
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_goods_spec_base`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_goods_spec_base` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`goods_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`price` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '销售价',
`original_price` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '原价',
`inventory` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '库存',
`buy_min_number` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '起购数',
`buy_max_number` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '限购数',
`weight` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '重量kg',
`volume` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '体积',
`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 '条形码',
`extends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '扩展数据(json格式存储)',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `goods_id`(`goods_id`) USING BTREE
2023-08-29 13:13:32 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 6481 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品规格基础';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_goods_spec_base
-- ----------------------------
BEGIN;
2023-08-29 13:13:32 +08:00
INSERT INTO `sxo_goods_spec_base` (`id`, `goods_id`, `price`, `original_price`, `inventory`, `buy_min_number`, `buy_max_number`, `weight`, `volume`, `coding`, `barcode`, `extends`, `add_time`) VALUES (5321, 63, 23.00, 0.00, 0, 0, 0, 0.00, 0.00, 'bm209q9EmG2-6', '', NULL, 1677405612), (5736, 80, 0.00, 0.00, 0, 0, 0, 0.00, 0.00, 'bm237dK0wTV-1', '', NULL, 1686624667), (5737, 80, 0.00, 0.00, 0, 0, 0, 0.00, 0.00, 'bm238Q2fNrb-1', '', NULL, 1686624667), (5738, 80, 0.00, 0.00, 0, 0, 0, 0.00, 0.00, 'bm239pXbLje-1', '', NULL, 1686624667), (5739, 80, 0.00, 0.00, 0, 0, 0, 0.00, 0.00, 'bm240XI0A0q-1', '', NULL, 1686624667), (5740, 80, 0.00, 0.00, 0, 0, 0, 0.00, 0.00, 'bm2419CpCUI-1', '', NULL, 1686624667), (6331, 1, 2100.12, 9200.00, 1517, 0, 0, 12.31, 32.00, 'bbbbmmmm', '991498765456', NULL, 1691832446), (6361, 8, 268.00, 299.00, 4, 0, 0, 0.00, 0.00, '', '6901236345686', NULL, 1691981714), (6362, 8, 356.00, 428.00, 71, 0, 0, 0.00, 0.00, '', '6901236345687', NULL, 1691981714), (6431, 7, 130.00, 700.00, 877, 0, 0, 0.00, 0.00, '', '6901236345684', NULL, 1693234922), (6432, 110, 489.00, 671.00, 88888, 0, 0, 0.00, 0.00, '', '', NULL, 1693234972), (6433, 109, 200.00, 800.00, 88888, 0, 0, 0.00, 0.00, '', '', NULL, 1693235270), (6434, 98, 26900.00, 28000.00, 88888, 1, 5, 1.00, 0.00, '', '', NULL, 1693235317), (6435, 108, 56390.00, 69870.00, 88888, 0, 0, 0.00, 0.00, '', '', NULL, 1693235460), (6436, 107, 800.00, 1200.00, 88888, 0, 0, 0.00, 0.00, '', '', NULL, 1693235615), (6437, 102, 680.00, 900.00, 88888, 0, 0, 0.00, 0.00, '', '', NULL, 1693235663), (6439, 105, 5000.00, 6600.00, 88888, 0, 0, 0.00, 0.00, '', '', NULL, 1693235790), (6440, 101, 13997.00, 16890.00, 88888, 0, 0, 0.00, 0.00, '', '', NULL, 1693235925), (6441, 106, 5000.00, 19000.00, 88888, 0, 0, 0.00, 0.00, '', '', NULL, 1693235979), (6442, 104, 9800.00, 13000.00, 88888, 0, 0, 0.00, 0.00, '', '', NULL, 1693236042), (6443, 103, 489.00, 670.00, 88888, 0, 0, 0.00, 0.00, '', '', NULL, 1693236446), (6444, 100, 160.00, 200.00, 88888, 0, 0, 0.00, 0.00, '', '', NULL, 1693236598), (6445, 99, 88.00, 120.00, 88888, 0, 0, 0.00, 0.00, '', '', NULL, 1693236668), (6446, 9, 120.00, 160.00, 888888, 0, 0, 17.00, 0.00, '', '', NULL, 1693237071), (6447, 9, 120.00, 160.00, 888888, 0, 0, 17.00, 0.00, '', '', NULL, 1693237071), (6448, 9, 120.00, 160.00, 888888, 0, 0, 17.00, 0.00, '', '', NULL, 1693237071), (6449, 9, 120.00, 160.00, 888888, 0, 0, 17.00, 0.00, '', '', NULL, 1693237071), (6450, 9, 120.00, 160.00, 888888, 0, 0, 17.00, 0.00, '', '', NULL, 1693237071), (6451, 9, 120.00, 160.00, 888888, 0, 0, 17.00, 0.00, '', '', NULL, 1693237071), (6452, 9, 120.00, 160.00, 888888, 0, 0, 17.00, 0.00, '', '', NULL, 1693237071), (6453, 9, 120.00, 160.00, 888888, 0, 0, 17.00, 0.00, '', '', NULL, 1693237071), (6454, 9, 120.00, 160.00, 888888, 0, 0, 17.00, 0.00, '', '', NULL, 1693237071), (6455, 9, 120.00, 160.00, 888888, 0, 0, 17.00, 0.00, '', '', NULL, 1693237071), (6456, 9, 120.00, 160.00, 888888, 0, 0, 17.00, 0.00, '', '', NULL, 1693237071), (6457, 9, 120.00, 160.00, 888888, 0, 0, 17.00, 0.00, '', '', NULL, 1693237071), (6458, 25, 3400.00, 9800.00, 888888, 2, 4, 0.00, 0.00, '', '', NULL, 1693237146), (6459, 32, 2600.00, 3200.00, 1517, 0, 0, 12.00, 0.00, '12322', '6901236345698', NULL, 1693237177), (6460, 5, 5000.00, 6800.00, 877, 0, 0, 0.00, 0.00, '', '6901236345674', NULL, 1693237221), (6461, 4, 1999.00, 2300.00, 878, 0, 0, 0.00, 0.00, '', '6901236345673', NULL, 1693237649), (6465, 11, 258.00, 268.00, 888888, 0, 0, 0.00, 0.00, 'bm82VKULTv-1', '6901236345700', '{\"plugins_distribution_rules_1\":\"r|5\\nr|3\\ns|2\",\"plugins_distribution_down_rules_1\":\"r|10\"}', 1693237903), (6466, 11, 238.00, 0.00, 888888, 0, 0, 0.00, 0.00, 'bm83UTmxgp-1', '6901236345710', '{\"plugins_distribution_rules_1\":\"r|5\\nr|3\\ns|2\",\"plugins_distribution_down_rules_1\":\"r|1\"}', 1693237903), (6467, 11, 160.00, 422.00, 888888, 0, 0, 0.00, 0.00, 'bm84zr0fK4-1', '6901236345720', '{\"plugins_distribution_rules_20191202164330784159\":\"r|8\",\"plugins_distribution_rules_20191204113948916981\":\"\"}', 1693237903), (6468, 12, 10.00,
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_goods_spec_template
-- ----------------------------
2022-10-22 21:38:57 +08:00
DROP TABLE IF EXISTS `sxo_goods_spec_template`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_goods_spec_template` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`category_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品分类id含子级',
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否启用0否1是',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2022-10-22 21:38:57 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `category_id`(`category_id`) USING BTREE,
INDEX `name`(`name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品规格模板';
-- ----------------------------
-- Records of sxo_goods_spec_template
-- ----------------------------
BEGIN;
INSERT INTO `sxo_goods_spec_template` (`id`, `category_id`, `name`, `content`, `is_enable`, `add_time`, `upd_time`) VALUES (2, 2, '颜色', '白色,黑色,蓝色,咖啡色,浅蓝色,深灰色,灰色,紫色,浅灰色,黄色,红色', 1, 1661352726, 1661352759), (3, 2, '尺码', 'S,M,L,XL,XXL,XXXL', 1, 1661415839, 1693117708);
COMMIT;
-- ----------------------------
-- Table structure for sxo_goods_spec_type
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_goods_spec_type`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_goods_spec_type` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`goods_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '类型值json字符串存储',
`name` char(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '类型名称',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `goods_id`(`goods_id`) USING BTREE
2023-08-29 13:13:32 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 1942 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品规格类型';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_goods_spec_type
-- ----------------------------
BEGIN;
2023-08-29 13:13:32 +08:00
INSERT INTO `sxo_goods_spec_type` (`id`, `goods_id`, `value`, `name`, `add_time`) VALUES (1669, 63, '[{\"name\":\"23233\",\"images\":\"\"}]', '规格1', 1677405612), (1793, 80, '[{\"name\":\"Naranja\",\"images\":\"\"},{\"name\":\"Rojo\",\"images\":\"\"},{\"name\":\"Verde\",\"images\":\"\"},{\"name\":\"Azul\",\"images\":\"\"},{\"name\":\"Negro\",\"images\":\"\"}]', '规格1', 1686624667), (1924, 8, '[{\"name\":\"红色\",\"images\":\"\"},{\"name\":\"蓝色\",\"images\":\"\"}]', '颜色', 1691981714), (1932, 9, '[{\"name\":\"白色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2023\\/08\\/14\\/1691980696623584.jpeg\"},{\"name\":\"粉色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2023\\/08\\/14\\/1691980688105551.jpeg\"},{\"name\":\"黑色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2023\\/08\\/14\\/1691980683406570.jpeg\"}]', '颜色', 1693237071), (1933, 9, '[{\"name\":\"S\",\"images\":\"\"},{\"name\":\"M\",\"images\":\"\"},{\"name\":\"L\",\"images\":\"\"},{\"name\":\"XL\",\"images\":\"\"}]', '尺码', 1693237071), (1935, 11, '[{\"name\":\"M\",\"images\":\"\"},{\"name\":\"L\",\"images\":\"\"},{\"name\":\"XL\",\"images\":\"\"}]', '尺码', 1693237903), (1936, 12, '[{\"name\":\"粉色\",\"images\":\"\"},{\"name\":\"白色\",\"images\":\"\"}]', '颜色', 1693237967), (1937, 12, '[{\"name\":\"S+S\",\"images\":\"\"},{\"name\":\"M+M\",\"images\":\"\"}]', '尺码', 1693237967), (1938, 74, '[{\"name\":\"白色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2023\\/08\\/12\\/1691834878159970.png\"},{\"name\":\"粉色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2023\\/08\\/14\\/1691994898577354.png\"},{\"name\":\"黑色\",\"images\":\"\\/static\\/upload\\/images\\/goods\\/2023\\/08\\/15\\/1692080277838680.png\"}]', '颜色', 1693238627), (1939, 2, '[{\"name\":\"套餐二\",\"images\":\"\"}]', '套餐', 1693284683), (1940, 2, '[{\"name\":\"金色\",\"images\":\"\"},{\"name\":\"银色\",\"images\":\"\"}]', '颜色', 1693284683), (1941, 2, '[{\"name\":\"32G\",\"images\":\"\"},{\"name\":\"128G\",\"images\":\"\"},{\"name\":\"64G\",\"images\":\"\"}]', '容量', 1693284683);
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_goods_spec_value
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_goods_spec_value`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_goods_spec_value` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`goods_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`goods_spec_base_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品规格基础id',
`value` char(230) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '规格值',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `goods_id`(`goods_id`) USING BTREE,
INDEX `goods_spec_base_id`(`goods_spec_base_id`) USING BTREE
2023-08-29 13:13:32 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 9385 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '商品规格值';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_goods_spec_value
-- ----------------------------
BEGIN;
2023-08-29 13:13:32 +08:00
INSERT INTO `sxo_goods_spec_value` (`id`, `goods_id`, `goods_spec_base_id`, `value`, `add_time`) VALUES (4996, 0, 0, '', 0), (7927, 63, 5321, '23233', 1677405612), (8624, 80, 5736, 'Naranja', 1686624667), (8625, 80, 5737, 'Rojo', 1686624667), (8626, 80, 5738, 'Verde', 1686624667), (8627, 80, 5739, 'Azul', 1686624667), (8628, 80, 5740, 'Negro', 1686624667), (9258, 8, 6361, '红色', 1691981714), (9259, 8, 6362, '蓝色', 1691981714), (9335, 9, 6446, '白色', 1693237071), (9336, 9, 6446, 'S', 1693237071), (9337, 9, 6447, '白色', 1693237071), (9338, 9, 6447, 'M', 1693237071), (9339, 9, 6448, '白色', 1693237071), (9340, 9, 6448, 'L', 1693237071), (9341, 9, 6449, '白色', 1693237071), (9342, 9, 6449, 'XL', 1693237071), (9343, 9, 6450, '粉色', 1693237071), (9344, 9, 6450, 'S', 1693237071), (9345, 9, 6451, '粉色', 1693237071), (9346, 9, 6451, 'M', 1693237071), (9347, 9, 6452, '粉色', 1693237071), (9348, 9, 6452, 'L', 1693237071), (9349, 9, 6453, '粉色', 1693237071), (9350, 9, 6453, 'XL', 1693237071), (9351, 9, 6454, '黑色', 1693237071), (9352, 9, 6454, 'S', 1693237071), (9353, 9, 6455, '黑色', 1693237071), (9354, 9, 6455, 'M', 1693237071), (9355, 9, 6456, '黑色', 1693237071), (9356, 9, 6456, 'L', 1693237071), (9357, 9, 6457, '黑色', 1693237071), (9358, 9, 6457, 'XL', 1693237071), (9362, 11, 6465, 'M', 1693237903), (9363, 11, 6466, 'L', 1693237903), (9364, 11, 6467, 'XL', 1693237903), (9365, 12, 6468, '粉色', 1693237967), (9366, 12, 6468, 'S+S', 1693237967), (9367, 12, 6469, '粉色', 1693237967), (9368, 12, 6469, 'M+M', 1693237967), (9369, 12, 6470, '白色', 1693237967), (9370, 12, 6470, 'S+S', 1693237967), (9371, 12, 6471, '白色', 1693237967), (9372, 12, 6471, 'M+M', 1693237967), (9373, 74, 6473, '白色', 1693238627), (9374, 74, 6474, '粉色', 1693238627), (9375, 74, 6475, '黑色', 1693238627), (9376, 2, 6476, '套餐二', 1693284683), (9377, 2, 6476, '金色', 1693284683), (9378, 2, 6476, '32G', 1693284683), (9379, 2, 6477, '套餐二', 1693284683), (9380, 2, 6477, '金色', 1693284683), (9381, 2, 6477, '128G', 1693284683), (9382, 2, 6478, '套餐二', 1693284683), (9383, 2, 6478, '银色', 1693284683), (9384, 2, 6478, '64G', 1693284683);
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_layout
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_layout`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_layout` (
`id` int(10) 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(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `type`(`type`) USING BTREE,
INDEX `name`(`name`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '布局配置';
-- ----------------------------
-- Records of sxo_layout
-- ----------------------------
BEGIN;
INSERT INTO `sxo_layout` (`id`, `type`, `name`, `config`, `is_enable`, `add_time`, `upd_time`) VALUES (1, 'layout_index_home_data', '首页', '[{\"value\":\"100\",\"status\":1,\"config\":[],\"children\":[{\"config\":[],\"children\":[{\"value\":\"many-images\",\"name\":\"多图\",\"config\":{\"view_list_show_style\":\"routine\",\"view_list_show_style_value\":\"\",\"style_background_color\":\"\",\"style_border_radius\":\"\",\"style_border_width_top\":\"\",\"style_border_width_right\":\"\",\"style_border_width_bottom\":\"\",\"style_border_width_left\":\"\",\"style_border_color\":\"\",\"style_margin_top\":\"\",\"style_margin_right\":\"\",\"style_margin_bottom\":\"\",\"style_margin_left\":\"\",\"style_padding_top\":\"\",\"style_padding_right\":\"\",\"style_padding_bottom\":\"\",\"style_padding_left\":\"\",\"style_media_fixed_width\":\"\",\"style_media_fixed_height\":\"800\",\"style_media_fixed_border_radius\":\"\",\"style_border_style_top\":\"\",\"style_border_style_right\":\"\",\"style_border_style_bottom\":\"\",\"style_border_style_left\":\"\",\"style_media_fixed_is_width\":\"1\",\"style_media_fixed_is_height\":\"1\",\"style_media_fixed_is_auto\":\"1\",\"style_media_fixed_is_cover\":\"1\",\"style_mouse_hover_images_amplify_value\":\"1\",\"frontend_config\":{\"style\":\"\",\"nav_dot_ent\":\"\",\"list_ent\":\"\",\"media_fixed\":{\"media_container_ent\":\"module-fixed-doc \",\"media_container_style\":\"height:800px;\",\"media_ent\":\"module-fixed-doc-ent-width module-fixed-doc-ent-height module-fixed-doc-ent-auto module-fixed-doc-ent-cover module-mouse-hover-images-amplify \"}},\"data_list\":[{\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547454702543219.jpg\",\"type\":\"\",\"name\":\"\",\"value\":\"\"},{\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547454702543219.jpg\",\"type\":\"\",\"name\":\"\",\"value\":\"\"},{\"images\":\"\\/static\\/upload\\/images\\/goods\\/2019\\/01\\/14\\/1547454702814719.jpg\",\"type\":\"\",\"name\":\"\",\"value\":\"\"}]}}]}]}]', 1, 1626773296, 1682585770);
COMMIT;
-- ----------------------------
-- Table structure for sxo_link
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_link`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_link` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '导航名称',
`url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'url地址',
`describe` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '描述',
`sort` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`is_new_window_open` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否新窗口打开0否1是',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
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` (`id`, `name`, `url`, `describe`, `sort`, `is_enable`, `is_new_window_open`, `add_time`, `upd_time`) 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, 1690027445);
COMMIT;
-- ----------------------------
-- Table structure for sxo_message
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_message`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_message` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`user_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`system_type` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'default' COMMENT '系统类型(默认 default, 其他按照SYSTEM_TYPE常量类型',
`title` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题',
`detail` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '详情',
`business_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '业务id',
`business_type` char(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '业务类型,字符串(如:订单、充值、提现、等...',
`type` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '消息类型0普通通知, ...',
`is_read` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否已读0否, 1是',
`is_delete_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否已删除0否, 大于0删除时间',
`user_is_delete_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户是否已删除0否, 大于0删除时间',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `user_id`(`user_id`) USING BTREE,
INDEX `system_type`(`system_type`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '消息';
-- ----------------------------
-- Records of sxo_message
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_navigation
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_navigation`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_navigation` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`pid` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '父id',
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '导航名称',
`url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '自定义url地址',
2024-07-03 22:46:04 +08:00
`value` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '数据值',
2023-08-27 18:24:09 +08:00
`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(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`is_show` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否显示0否1是',
`is_new_window_open` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否新窗口打开0否1是',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `is_show`(`is_show`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE,
INDEX `nav_type`(`nav_type`) USING BTREE,
INDEX `pid`(`pid`) USING BTREE
2024-10-21 10:51:14 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 62 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '导航';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_navigation
-- ----------------------------
BEGIN;
2024-10-21 10:51:14 +08:00
INSERT INTO `sxo_navigation` (`id`, `pid`, `name`, `url`, `value`, `data_type`, `nav_type`, `sort`, `is_show`, `is_new_window_open`, `add_time`, `upd_time`) VALUES (24, 54, '服饰鞋包', '', '2', 'goods_category', 'header', 0, 1, 0, 1539150026, 1690027506), (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, '关于我们', '', '29', 'article', 'footer', 0, 1, 0, 1554796171, 1721902364), (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/', '', 'custom', 'header', 2, 1, 0, 1556015784, 1721898105), (55, 0, '如何注册成为会员', '', '1', 'article', 'footer', 0, 1, 0, 1616685505, 0), (60, 0, '运动健康', '', '53', 'goods_category', 'header', 0, 1, 0, 1721898069, 0), (61, 0, '汽车用品', '', '54', 'goods_category', 'header', 1, 1, 0, 1721898098, 0);
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_order
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_order`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_order` (
`id` int(10) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`warehouse_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '仓库id',
`payment_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付方式id',
`system_type` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'default' COMMENT '系统类型(默认 default, 其他按照SYSTEM_TYPE常量类型',
`status` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单状态0待确认, 1已确认/待支付, 2已支付/待发货, 3已发货/待收货, 4已完成, 5已取消, 6已关闭',
`pay_status` tinyint(3) 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(10) 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(10) 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(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单模式0销售型, 1展示型, 2自提点, 3虚拟销售',
`is_under_line` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否线下支付0否1是',
`user_note` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户备注',
`pay_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付时间',
`confirm_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '确认时间',
`delivery_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '发货时间',
`cancel_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '取消时间',
`collect_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '收货时间',
`close_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '关闭时间',
`comments_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '评论时间',
`is_comments` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否已评论0否, 大于0评论时间',
`user_is_comments` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户是否已评论0否, 大于0评论时间',
`is_delete_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否已删除0否, 大于0删除时间',
`user_is_delete_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户是否已删除0否, 大于0删除时间',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
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,
INDEX `system_type`(`system_type`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单';
-- ----------------------------
-- Records of sxo_order
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_order_address
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_order_address`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_order_address` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单id',
`user_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`address_id` int(10) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '收件人-省',
`city` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '收件人-市',
`county` int(10) 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 '身份证号码',
`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 '身份证国微面图片',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `order_id`(`order_id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单地址';
-- ----------------------------
-- Records of sxo_order_address
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_order_aftersale
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_order_aftersale`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_order_aftersale` (
`id` int(10) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单详情id',
`order_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单id',
`goods_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`user_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`system_type` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'default' COMMENT '系统类型(默认 default, 其他按照SYSTEM_TYPE常量类型',
`status` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态0待确认, 1待退货, 2待审核, 3已完成, 4已拒绝, 5已取消',
`type` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '业务类型0仅退款, 1退货退款',
`refundment` tinyint(3) 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(10) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '申请时间',
`confirm_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '确认时间',
`delivery_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '退货时间',
`audit_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '审核时间',
`cancel_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '取消时间',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
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,
INDEX `system_type`(`system_type`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单售后';
-- ----------------------------
-- Records of sxo_order_aftersale
-- ----------------------------
BEGIN;
COMMIT;
2024-04-15 10:25:01 +08:00
-- ----------------------------
-- Table structure for sxo_order_aftersale_status_history
-- ----------------------------
DROP TABLE IF EXISTS `sxo_order_aftersale_status_history`;
CREATE TABLE `sxo_order_aftersale_status_history` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_aftersale_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单售后id',
`original_status` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '原始状态',
`new_status` char(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(11) 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(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `order_aftersale_id`(`order_aftersale_id`) USING BTREE,
INDEX `original_status`(`original_status`) USING BTREE,
INDEX `new_status`(`new_status`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单售后状态历史纪录';
-- ----------------------------
-- Records of sxo_order_aftersale_status_history
-- ----------------------------
BEGIN;
COMMIT;
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Table structure for sxo_order_currency
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_order_currency`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_order_currency` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单id',
`user_id` int(10) 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 '货币符号',
2024-07-03 22:46:04 +08:00
`currency_rate` decimal(12, 6) UNSIGNED NOT NULL DEFAULT 0.000000 COMMENT '货币汇率',
2023-08-27 18:24:09 +08:00
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
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
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单货币';
-- ----------------------------
-- Records of sxo_order_currency
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_order_detail
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_order_detail`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_order_detail` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`user_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`order_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单id',
`goods_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`title` char(160) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题',
`images` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '封面图片',
`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(10) 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_volume` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '体积',
`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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '退货数量',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `user_id`(`user_id`) USING BTREE,
INDEX `order_id`(`order_id`) USING BTREE,
INDEX `goods_id`(`goods_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单详情';
-- ----------------------------
-- Records of sxo_order_detail
-- ----------------------------
BEGIN;
COMMIT;
2024-04-15 10:25:01 +08:00
-- ----------------------------
-- Table structure for sxo_order_express
-- ----------------------------
DROP TABLE IF EXISTS `sxo_order_express`;
CREATE TABLE `sxo_order_express` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单id',
`user_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`express_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '快递id',
`express_number` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '快递单号',
`note` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '备注',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) 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 `add_time`(`add_time`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单快递';
-- ----------------------------
-- Records of sxo_order_express
-- ----------------------------
BEGIN;
COMMIT;
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Table structure for sxo_order_extraction_code
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_order_extraction_code`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_order_extraction_code` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单id',
`user_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`code` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '取货码',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `order_id`(`order_id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单自提取货码关联';
-- ----------------------------
-- Records of sxo_order_extraction_code
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_order_fictitious_value
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_order_fictitious_value`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_order_fictitious_value` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单id',
`order_detail_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单详情id',
`user_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '虚拟商品展示数据',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `order_id`(`order_id`) USING BTREE,
INDEX `order_detail_id`(`order_detail_id`) USING BTREE,
INDEX `user_id`(`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单虚拟销售数据关联';
-- ----------------------------
-- Records of sxo_order_fictitious_value
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_order_goods_inventory_log
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_order_goods_inventory_log`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_order_goods_inventory_log` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单id',
`order_detail_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单详情id',
`goods_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`order_status` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单状态0待确认, 1已确认/待支付, 2已支付/待发货, 3已发货/待收货, 4已完成, 5已取消, 6已关闭',
`original_inventory` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '原库存',
`new_inventory` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最新库存',
`is_rollback` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否回滚0否, 1是',
`rollback_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '回滚时间',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
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
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单商品库存变更日志';
-- ----------------------------
-- Records of sxo_order_goods_inventory_log
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_order_status_history
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_order_status_history`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_order_status_history` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` int(10) 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(10) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `order_id`(`order_id`) USING BTREE,
INDEX `original_status`(`original_status`) USING BTREE,
INDEX `new_status`(`new_status`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '订单状态历史纪录';
-- ----------------------------
-- Records of sxo_order_status_history
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_pay_log
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_pay_log`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_pay_log` (
`id` bigint(20) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`business_type` char(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '业务类型,字符串(如:订单 order、钱包充值 wallet、会员购买 member、等…',
`status` tinyint(3) 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 '支付方式名称',
`subject` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '订单名称',
`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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付时间',
`close_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '关闭时间',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
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
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付日志';
-- ----------------------------
-- Records of sxo_pay_log
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_pay_log_value
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_pay_log_value`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_pay_log_value` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`pay_log_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付日志id',
`business_id` int(10) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `pay_log_id`(`pay_log_id`) USING BTREE,
INDEX `business_id`(`business_id`) USING BTREE,
INDEX `add_time`(`add_time`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付日志关联业务数据';
-- ----------------------------
-- Records of sxo_pay_log_value
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_pay_request_log
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_pay_request_log`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_pay_request_log` (
`id` bigint(20) 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版本',
`client` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '客户端详情信息',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `business_type`(`business_type`) USING BTREE,
INDEX `add_time`(`add_time`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付请求日志';
-- ----------------------------
-- Records of sxo_pay_request_log
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_payment
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_payment`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_payment` (
`id` int(10) 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 '唯一标记',
`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 '作者主页',
`element` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '配置项规则',
`config` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '配置数据',
`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',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`is_open_user` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否对用户开放',
`sort` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '顺序',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
UNIQUE INDEX `payment`(`payment`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付方式';
-- ----------------------------
-- Records of sxo_payment
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_plugins
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_plugins`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_plugins` (
`id` int(10) 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 '唯一标记',
`plugins_category_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '插件分类',
`plugins_menu_control` char(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '插件所属左侧菜单',
2024-07-03 22:46:04 +08:00
`plugins_is_second_domain` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否二级域名0否, 1是',
2023-08-27 18:24:09 +08:00
`data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '应用数据',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`sort` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
UNIQUE INDEX `plugins`(`plugins`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '应用';
-- ----------------------------
-- Records of sxo_plugins
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_plugins_category
-- ----------------------------
DROP TABLE IF EXISTS `sxo_plugins_category`;
CREATE TABLE `sxo_plugins_category` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`sort` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '顺序',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) 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 = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '应用分类';
-- ----------------------------
-- Records of sxo_plugins_category
-- ----------------------------
BEGIN;
INSERT INTO `sxo_plugins_category` (`id`, `name`, `is_enable`, `sort`, `add_time`, `upd_time`) VALUES (1, '管理增强', 1, 0, 1685093165, 0), (2, '营销活动', 1, 0, 1685093255, 1690030522), (3, '其他工具', 1, 0, 1685093289, 1690035229), (4, '扩展模块', 1, 0, 1685093456, 1690030515);
COMMIT;
2024-10-21 10:51:14 +08:00
-- ----------------------------
-- Table structure for sxo_plugins_data_config
-- ----------------------------
DROP TABLE IF EXISTS `sxo_plugins_data_config`;
CREATE TABLE `sxo_plugins_data_config` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`plugins` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '插件标识',
`only_tag` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '唯一的标记',
`value` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '数据值',
`add_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `plugins`(`plugins`) USING BTREE,
INDEX `only_tag`(`only_tag`) USING BTREE,
INDEX `add_time`(`add_time`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '插件数据配置';
-- ----------------------------
-- Records of sxo_plugins_data_config
-- ----------------------------
BEGIN;
COMMIT;
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Table structure for sxo_power
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_power`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_power` (
2024-04-15 10:25:01 +08:00
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '权限id',
`pid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '权限父级id',
2023-08-27 18:24:09 +08:00
`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 '方法名称',
`url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '自定义url地址',
`sort` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
2024-04-15 10:25:01 +08:00
`is_show` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否显示0否1是',
2023-08-27 18:24:09 +08:00
`icon` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '图标class',
2024-04-15 10:25:01 +08:00
`add_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
2024-01-19 15:40:47 +08:00
`upd_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE
2024-10-21 10:51:14 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 597 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '权限';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_power
-- ----------------------------
BEGIN;
2024-10-22 20:51:49 +08:00
INSERT INTO `sxo_power` (`id`, `pid`, `name`, `control`, `action`, `url`, `sort`, `is_show`, `icon`, `add_time`, `upd_time`) VALUES (1, 0, '权限', 'Power', 'Index', '', 3, 1, 'icon-admin-auth', 1481612301, 0), (4, 1, '角色管理', 'Role', 'Index', '', 20, 1, '', 1481639037, 0), (13, 1, '权限分配', 'Power', 'Index', '', 30, 1, '', 1482156143, 0), (15, 13, '权限添加/编辑', 'Power', 'Save', '', 31, 0, '', 1482243750, 0), (16, 13, '权限删除', 'Power', 'Delete', '', 33, 0, '', 1482243797, 1704334289), (17, 4, '角色组添加/编辑页面', 'Role', 'SaveInfo', '', 21, 0, '', 1482243855, 0), (18, 4, '角色组添加/编辑', 'Role', 'Save', '', 22, 0, '', 1482243888, 0), (19, 22, '管理员添加/编辑页面', 'Admin', 'SaveInfo', '', 2, 0, '', 1482244637, 0), (20, 22, '管理员添加/编辑', 'Admin', 'Save', '', 3, 0, '', 1482244666, 0), (21, 22, '管理员删除', 'Admin', 'Delete', '', 4, 0, '', 1482244688, 0), (22, 1, '管理员列表', 'Admin', 'Index', '', 1, 1, '', 1482568868, 0), (23, 4, '角色删除', 'Role', 'Delete', '', 23, 0, '', 1482569155, 0), (38, 0, '商品', 'Goods', 'Index', '', 5, 1, 'icon-admin-goods', 1483283430, 0), (39, 38, '商品管理', 'Goods', 'Index', '', 1, 1, '', 1483283546, 0), (41, 0, '系统', 'Config', 'Index', '', 1, 1, 'icon-admin-system', 1483362358, 1704280861), (42, 41, '配置保存', 'Config', 'Save', '', 10, 0, '', 1483432335, 0), (57, 39, '商品添加/编辑页面', 'Goods', 'SaveInfo', '', 2, 0, '', 1483616439, 0), (58, 39, '商品添加/编辑', 'Goods', 'Save', '', 3, 0, '', 1483616492, 0), (59, 39, '商品删除', 'Goods', 'Delete', '', 4, 0, '', 1483616569, 0), (81, 0, '站点', 'Site', 'Index', '', 2, 1, 'icon-admin-site-config', 1486182943, 0), (103, 81, '站点设置', 'Site', 'Index', '', 0, 1, '', 1486561470, 0), (104, 81, '短信设置', 'Sms', 'Index', '', 10, 1, '', 1486561615, 0), (105, 103, '站点设置编辑', 'Site', 'Save', '', 1, 0, '', 1486561780, 0), (107, 104, '短信设置编辑', 'Sms', 'Save', '', 11, 0, '', 1486562011, 0), (118, 0, '工具', 'Tool', 'Index', '', 50, 1, 'icon-admin-tools', 1488108044, 0), (119, 118, '缓存管理', 'Cache', 'Index', '', 1, 1, '', 1488108107, 0), (120, 119, '站点缓存更新', 'Cache', 'StatusUpdate', '', 2, 0, '', 1488108235, 0), (121, 119, '模板缓存更新', 'Cache', 'TemplateUpdate', '', 2, 0, '', 1488108390, 0), (122, 119, '模块缓存更新', 'Cache', 'ModuleUpdate', '', 3, 0, '', 1488108436, 0), (126, 0, '用户', 'User', 'Index', '', 4, 1, 'icon-admin-user', 1490794162, 0), (127, 126, '用户列表', 'User', 'Index', '', 0, 1, '', 1490794316, 0), (128, 127, '用户编辑/添加页面', 'User', 'SaveInfo', '', 1, 0, '', 1490794458, 0), (129, 127, '用户添加/编辑', 'User', 'Save', '', 2, 0, '', 1490794510, 0), (130, 127, '用户删除', 'User', 'Delete', '', 3, 0, '', 1490794585, 0), (153, 222, '地区管理', 'Region', 'Index', '', 7, 1, '', 1526304473, 0), (154, 153, '地区添加/编辑', 'Region', 'Save', '', 0, 0, '', 1526304503, 0), (155, 153, '地区删除', 'Region', 'Delete', '', 2, 0, '', 1526304531, 1704335398), (156, 222, '快递管理', 'Express', 'Index', '', 8, 1, '', 1526304473, 0), (157, 156, '快递添加/编辑', 'Express', 'Save', '', 0, 0, '', 1526304473, 0), (158, 156, '快递删除', 'Express', 'Delete', '', 1, 0, '', 1526304473, 0), (172, 222, '首页轮播', 'Slide', 'Index', '', 6, 1, '', 1527149117, 0), (173, 172, '轮播添加/编辑页面', 'Slide', 'SaveInfo', '', 0, 0, '', 1527149152, 0), (174, 172, '轮播添加/编辑', 'Slide', 'Save', '', 1, 0, '', 1527149186, 0), (175, 172, '轮播状态更新', 'Slide', 'StatusUpdate', '', 2, 0, '', 1527156980, 0), (176, 172, '轮播删除', 'Slide', 'Delete', '', 3, 0, '', 1527157260, 0), (177, 0, '订单', 'Order', 'Index', '', 6, 1, 'icon-admin-order', 1522229870, 0), (178, 177, '订单管理', 'Order', 'Index', '', 1, 1, '', 1522317898, 0), (179, 178, '订单删除', 'Order', 'Delete', '', 2, 0, '', 1522317917, 0), (180, 178, '订单取消', 'Order', 'Cancel', '', 3, 0, '', 1527497803, 0), (181, 39, '商品状<EFBFBD><EFBFBD>
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_quick_nav
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_quick_nav`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_quick_nav` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
2024-04-25 14:47:59 +08:00
`platform` char(255) 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小程序, kuaishou 快手小程序)',
2023-08-27 18:24:09 +08:00
`event_type` tinyint(4) NOT NULL DEFAULT -1 COMMENT '事件类型0 WEB页面, 1 内部页面(小程序或APP内部地址), 2 外部小程序(同一个主体下的小程序appid), 3 打开地图, 4 拨打电话)',
`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 '图片地址',
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`is_enable` tinyint(3) 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(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `is_enable`(`is_enable`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE
2024-07-03 22:46:04 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '快捷导航';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_quick_nav
-- ----------------------------
BEGIN;
2024-04-25 14:47:59 +08:00
INSERT INTO `sxo_quick_nav` (`id`, `platform`, `event_type`, `event_value`, `images_url`, `name`, `is_enable`, `bg_color`, `sort`, `add_time`, `upd_time`) VALUES (1, '[\"pc\"]', 0, 'index.php?s=category/index.html', '/static/upload/images/quick_nav/2020/09/11/1599806728463641.png', '分类', 1, '#FF9933', 0, 1599806738, 1690030856), (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), (9, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/goods-category/goods-category', '/static/upload/images/quick_nav/2020/09/11/1599806728463641.png', '分类', 1, '#FF9933', 0, 1599806738, 1599810379), (10, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 4, '17688888888', '/static/upload/images/quick_nav/2020/09/17/1600322667732829.png', '电话', 1, '#FF00CC', 0, 1599807003, 1600076541), (11, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/user-order/user-order', '/static/upload/images/quick_nav/2020/09/11/1599808001838784.png', '订单', 1, '#996633', 0, 1599808005, 1599808064), (12, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 3, 'ShopXO|上海浦东新区张江高科技园区XXX号|121.633055|31.21412', '/static/upload/images/quick_nav/2020/09/17/1600321639662998.png', '地图', 1, '#0066FF', 0, 1599808052, 1600321670);
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_refund_log
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_refund_log`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_refund_log` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '退款日志id',
`pay_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付id',
`user_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`business_id` int(10) 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(3) 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(10) UNSIGNED NOT NULL COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `payment`(`payment`) USING BTREE,
INDEX `business_id`(`business_id`) USING BTREE,
INDEX `business_type`(`business_type`) USING BTREE,
INDEX `pay_id`(`pay_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '退款日志';
-- ----------------------------
-- Records of sxo_refund_log
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_region
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_region`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_region` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`pid` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '父id',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`level` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '级别类型1:一级[所有省], 2二级[所有市], 3:三级[所有区县], 4:街道[所有街道]',
`letters` char(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '城市首字母',
`code` 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 '纬度',
`sort` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `pid`(`pid`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE,
INDEX `level`(`level`) USING BTREE,
INDEX `letters`(`letters`) USING BTREE,
INDEX `code`(`code`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 3457 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '地区';
-- ----------------------------
-- Records of sxo_region
-- ----------------------------
BEGIN;
INSERT INTO `sxo_region` (`id`, `pid`, `name`, `level`, `letters`, `code`, `lng`, `lat`, `sort`, `is_enable`, `add_time`, `upd_time`) VALUES (1, 0, '北京市', 1, '', '001', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 1678676868), (2, 0, '天津市', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 1690031025), (3, 0, '河北省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (4, 0, '山西省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (5, 0, '内蒙古自治区', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (6, 0, '辽宁省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (7, 0, '吉林省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (8, 0, '黑龙江省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (9, 0, '上海市', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (10, 0, '江苏省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (11, 0, '浙江省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (12, 0, '安徽省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (13, 0, '福建省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (14, 0, '江西省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (15, 0, '山东省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (16, 0, '河南省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (17, 0, '湖北省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (18, 0, '湖南省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (19, 0, '广东省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (20, 0, '广西壮族自治区', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (21, 0, '海南省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (22, 0, '重庆市', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (23, 0, '四川省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (24, 0, '贵州省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (25, 0, '云南省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (26, 0, '西藏自治区', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (27, 0, '陕西省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (28, 0, '甘肃省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (29, 0, '青海省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (30, 0, '宁夏回族自治区', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (31, 0, '新疆维吾尔自治区', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (32, 0, '台湾省', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (33, 0, '香港特别行政区', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (34, 0, '澳门特别行政区', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (35, 0, '海外', 1, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (36, 1, '北京市', 2, '', '002', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 1678676893), (37, 2, '天津市', 2, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (38, 3, '石家庄市', 2, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (39, 3, '唐山市', 2, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (40, 3, '秦皇岛市', 2, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (41, 3, '邯郸市', 2, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (42, 3, '邢台市', 2, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (43, 3, '保定市', 2, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (44, 3, '张家口市', 2, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (45, 3, '承德市', 2, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (46, 3, '沧州市', 2, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559939, 0), (47, 3, '廊坊市', 2, '', '', 0.0000000000, 0.0000000000, 0, 1, 16495
INSERT INTO `sxo_region` (`id`, `pid`, `name`, `level`, `letters`, `code`, `lng`, `lat`, `sort`, `is_enable`, `add_time`, `upd_time`) VALUES (768, 57, '偏关县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (769, 57, '五台山风景名胜区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (770, 57, '原平市', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (771, 58, '尧都区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (772, 58, '曲沃县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (773, 58, '翼城县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (774, 58, '襄汾县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (775, 58, '洪洞县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (776, 58, '古县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (777, 58, '安泽县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (778, 58, '浮山县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (779, 58, '吉县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (780, 58, '乡宁县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (781, 58, '大宁县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (782, 58, '隰县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (783, 58, '永和县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (784, 58, '蒲县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (785, 58, '汾西县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (786, 58, '侯马市', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (787, 58, '霍州市', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (788, 59, '离石区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (789, 59, '文水县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (790, 59, '交城县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (791, 59, '兴县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (792, 59, '临县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (793, 59, '柳林县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (794, 59, '石楼县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (795, 59, '岚县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (796, 59, '方山县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (797, 59, '中阳县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (798, 59, '交口县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (799, 59, '孝义市', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (800, 59, '汾阳市', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (801, 60, '新城区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (802, 60, '回民区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (803, 60, '玉泉区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (804, 60, '赛罕区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (805, 60, '土默特左旗', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (806, 60, '托克托县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (807, 60, '和林格尔县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (808, 60, '清水河县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (809, 60, '武川县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (810, 60, '呼和浩特经济技术开发区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (811, 61, '东河区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (812, 61, '昆都仑区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (813, 61, '青山区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (814, 61, '石拐区', 3, '', '', 0.0000000000, 0.0
INSERT INTO `sxo_region` (`id`, `pid`, `name`, `level`, `letters`, `code`, `lng`, `lat`, `sort`, `is_enable`, `add_time`, `upd_time`) VALUES (1519, 145, '金寨县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559940, 0), (1520, 145, '霍山县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1521, 146, '谯城区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1522, 146, '涡阳县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1523, 146, '蒙城县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1524, 146, '利辛县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1525, 147, '贵池区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1526, 147, '东至县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1527, 147, '石台县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1528, 147, '青阳县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1529, 148, '宣州区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1530, 148, '郎溪县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1531, 148, '泾县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1532, 148, '绩溪县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1533, 148, '旌德县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1534, 148, '宣城市经济开发区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1535, 148, '宁国市', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1536, 148, '广德市', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1537, 149, '鼓楼区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1538, 149, '台江区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1539, 149, '仓山区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1540, 149, '马尾区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1541, 149, '晋安区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1542, 149, '长乐区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1543, 149, '闽侯县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1544, 149, '连江县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1545, 149, '罗源县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1546, 149, '闽清县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1547, 149, '永泰县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1548, 149, '平潭县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1549, 149, '福清市', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1550, 150, '思明区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1551, 150, '海沧区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1552, 150, '湖里区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1553, 150, '集美区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1554, 150, '同安区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1555, 150, '翔安区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1556, 151, '城厢区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1557, 151, '涵江区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1558, 151, '荔城区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1559, 151, '秀屿区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1560, 151, '仙游县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1561, 152, '三元区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1562, 152, '沙县区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1563, 152, '明溪县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (1564, 152, '清流县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 16
INSERT INTO `sxo_region` (`id`, `pid`, `name`, `level`, `letters`, `code`, `lng`, `lat`, `sort`, `is_enable`, `add_time`, `upd_time`) VALUES (2268, 227, '永州市回龙圩管理区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2269, 227, '祁阳市', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2270, 228, '鹤城区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2271, 228, '中方县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2272, 228, '沅陵县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2273, 228, '辰溪县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2274, 228, '溆浦县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2275, 228, '会同县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2276, 228, '麻阳苗族自治县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2277, 228, '新晃侗族自治县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2278, 228, '芷江侗族自治县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2279, 228, '靖州苗族侗族自治县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2280, 228, '通道侗族自治县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2281, 228, '怀化市洪江管理区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2282, 228, '洪江市', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2283, 229, '娄星区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2284, 229, '双峰县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2285, 229, '新化县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2286, 229, '冷水江市', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2287, 229, '涟源市', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2288, 230, '吉首市', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2289, 230, '泸溪县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2290, 230, '凤凰县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2291, 230, '花垣县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2292, 230, '保靖县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2293, 230, '古丈县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2294, 230, '永顺县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2295, 230, '龙山县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2296, 231, '荔湾区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2297, 231, '越秀区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2298, 231, '海珠区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2299, 231, '天河区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2300, 231, '白云区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2301, 231, '黄埔区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2302, 231, '番禺区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2303, 231, '花都区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2304, 231, '南沙区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2305, 231, '从化区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2306, 231, '增城区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2307, 232, '武江区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2308, 232, '浈江区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2309, 232, '曲江区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2310, 232, '始兴县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2311, 232, '仁化县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559941, 0), (2312, 232, '翁源县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1
INSERT INTO `sxo_region` (`id`, `pid`, `name`, `level`, `letters`, `code`, `lng`, `lat`, `sort`, `is_enable`, `add_time`, `upd_time`) VALUES (3014, 320, '江孜县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3015, 320, '定日县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3016, 320, '萨迦县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3017, 320, '拉孜县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3018, 320, '昂仁县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3019, 320, '谢通门县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3020, 320, '白朗县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3021, 320, '仁布县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3022, 320, '康马县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3023, 320, '定结县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3024, 320, '仲巴县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3025, 320, '亚东县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3026, 320, '吉隆县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3027, 320, '聂拉木县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3028, 320, '萨嘎县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3029, 320, '岗巴县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3030, 321, '卡若区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3031, 321, '江达县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3032, 321, '贡觉县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3033, 321, '类乌齐县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3034, 321, '丁青县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3035, 321, '察雅县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3036, 321, '八宿县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3037, 321, '左贡县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3038, 321, '芒康县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3039, 321, '洛隆县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3040, 321, '边坝县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3041, 322, '巴宜区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3042, 322, '工布江达县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3043, 322, '米林县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3044, 322, '墨脱县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3045, 322, '波密县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3046, 322, '察隅县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3047, 322, '朗县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3048, 323, '乃东区', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3049, 323, '扎囊县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3050, 323, '贡嘎县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3051, 323, '桑日县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3052, 323, '琼结县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3053, 323, '曲松县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3054, 323, '措美县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3055, 323, '洛扎县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3056, 323, '加查县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3057, 323, '隆子县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3058, 323, '错那县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1, 1649559942, 0), (3059, 323, '浪卡子县', 3, '', '', 0.0000000000, 0.0000000000, 0, 1,
COMMIT;
-- ----------------------------
-- Table structure for sxo_role
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_role`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_role` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '角色组id',
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '角色名称',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE
2023-08-27 18:24:09 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色组';
-- ----------------------------
-- Records of sxo_role
-- ----------------------------
BEGIN;
2024-01-19 15:40:47 +08:00
INSERT INTO `sxo_role` (`id`, `name`, `is_enable`, `add_time`, `upd_time`) VALUES (1, '超级管理员', 1, 1481350313, 0), (13, '管理员', 1, 1484402362, 1705636415);
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_role_plugins
-- ----------------------------
2022-02-12 18:44:59 +08:00
DROP TABLE IF EXISTS `sxo_role_plugins`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_role_plugins` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '关联id',
`role_id` int(10) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
2022-02-12 18:44:59 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `role_id`(`role_id`) USING BTREE,
INDEX `name`(`name`) USING BTREE,
INDEX `plugins`(`plugins`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色与权限插件';
-- ----------------------------
-- Records of sxo_role_plugins
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_role_power
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_role_power`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_role_power` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '关联id',
`role_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '角色id',
`power_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '权限id',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `role_id`(`role_id`) USING BTREE,
INDEX `power_id`(`power_id`) USING BTREE
2024-01-19 15:40:47 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 5313 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色与权限管理';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_role_power
-- ----------------------------
BEGIN;
2024-01-19 15:40:47 +08:00
INSERT INTO `sxo_role_power` (`id`, `role_id`, `power_id`, `add_time`) VALUES (5207, 13, 41, 1705636415), (5208, 13, 339, 1705636415), (5209, 13, 354, 1705636415), (5210, 13, 482, 1705636415), (5211, 13, 483, 1705636415), (5212, 13, 81, 1705636415), (5213, 13, 103, 1705636415), (5214, 13, 104, 1705636415), (5215, 13, 219, 1705636415), (5216, 13, 199, 1705636415), (5217, 13, 362, 1705636415), (5218, 13, 1, 1705636415), (5219, 13, 22, 1705636415), (5220, 13, 405, 1705636415), (5221, 13, 4, 1705636415), (5222, 13, 406, 1705636415), (5223, 13, 13, 1705636415), (5224, 13, 126, 1705636415), (5225, 13, 127, 1705636415), (5226, 13, 404, 1705636415), (5227, 13, 451, 1705636415), (5228, 13, 455, 1705636415), (5229, 13, 38, 1705636415), (5230, 13, 39, 1705636415), (5231, 13, 402, 1705636415), (5232, 13, 201, 1705636415), (5233, 13, 462, 1705636415), (5234, 13, 467, 1705636415), (5235, 13, 495, 1705636415), (5236, 13, 356, 1705636415), (5237, 13, 403, 1705636415), (5238, 13, 418, 1705636415), (5239, 13, 420, 1705636415), (5240, 13, 421, 1705636415), (5241, 13, 423, 1705636415), (5242, 13, 489, 1705636415), (5243, 13, 177, 1705636415), (5244, 13, 178, 1705636415), (5245, 13, 180, 1705636415), (5246, 13, 267, 1705636415), (5247, 13, 268, 1705636415), (5248, 13, 269, 1705636415), (5249, 13, 310, 1705636415), (5250, 13, 400, 1705636415), (5251, 13, 364, 1705636415), (5252, 13, 401, 1705636415), (5253, 13, 222, 1705636415), (5254, 13, 223, 1705636415), (5255, 13, 234, 1705636415), (5256, 13, 238, 1705636415), (5257, 13, 407, 1705636415), (5258, 13, 239, 1705636415), (5259, 13, 414, 1705636415), (5260, 13, 244, 1705636415), (5261, 13, 172, 1705636415), (5262, 13, 175, 1705636415), (5263, 13, 408, 1705636415), (5264, 13, 193, 1705636415), (5265, 13, 153, 1705636415), (5266, 13, 156, 1705636415), (5267, 13, 259, 1705636415), (5268, 13, 443, 1705636415), (5269, 13, 448, 1705636415), (5270, 13, 477, 1705636415), (5271, 13, 252, 1705636415), (5272, 13, 249, 1705636415), (5273, 13, 409, 1705636415), (5274, 13, 253, 1705636415), (5275, 13, 438, 1705636415), (5276, 13, 425, 1705636415), (5277, 13, 430, 1705636415), (5278, 13, 431, 1705636415), (5279, 13, 436, 1705636415), (5280, 13, 319, 1705636415), (5281, 13, 326, 1705636415), (5282, 13, 314, 1705636415), (5283, 13, 410, 1705636415), (5284, 13, 376, 1705636415), (5285, 13, 411, 1705636415), (5286, 13, 333, 1705636415), (5287, 13, 204, 1705636415), (5288, 13, 205, 1705636415), (5289, 13, 248, 1705636415), (5290, 13, 210, 1705636415), (5291, 13, 182, 1705636415), (5292, 13, 183, 1705636415), (5293, 13, 413, 1705636415), (5294, 13, 185, 1705636415), (5295, 13, 415, 1705636415), (5296, 13, 449, 1705636415), (5297, 13, 450, 1705636415), (5298, 13, 372, 1705636415), (5299, 13, 416, 1705636415), (5300, 13, 186, 1705636415), (5301, 13, 417, 1705636415), (5302, 13, 340, 1705636415), (5303, 13, 341, 1705636415), (5304, 13, 343, 1705636415), (5305, 13, 373, 1705636415), (5306, 13, 498, 1705636415), (5307, 13, 118, 1705636415), (5308, 13, 119, 1705636415), (5309, 13, 120, 1705636415), (5310, 13, 121, 1705636415), (5311, 13, 122, 1705636415), (5312, 13, 331, 1705636415);
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_screening_price
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_screening_price`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_screening_price` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '分类id',
`pid` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '父id',
`name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
`min_price` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最小价格',
`max_price` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '最大价格',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`sort` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '顺序',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
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` (`id`, `pid`, `name`, `min_price`, `max_price`, `is_enable`, `sort`, `add_time`, `upd_time`) 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, 1690034274), (18, 0, '1000-1500', 1000, 1500, 1, 0, 1482840577, 1690031032), (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;
-- ----------------------------
-- Table structure for sxo_search_history
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_search_history`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_search_history` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`user_id` int(10) 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',
`search_result` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '搜索结果json存储',
`ymd` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '日期 ymd',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE
2023-08-27 18:24:09 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '搜索日志';
2021-11-23 09:21:22 +08:00
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_search_history
-- ----------------------------
BEGIN;
COMMIT;
2021-10-24 16:47:57 +08:00
2024-01-19 15:40:47 +08:00
-- ----------------------------
-- Table structure for sxo_shortcut_menu
-- ----------------------------
DROP TABLE IF EXISTS `sxo_shortcut_menu`;
CREATE TABLE `sxo_shortcut_menu` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`icon` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'icon图标',
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`menu` char(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '权限菜单',
`url` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '链接地址',
`sort` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
`add_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `name`(`name`) USING BTREE,
INDEX `sort`(`sort`) USING BTREE,
INDEX `add_time`(`add_time`) USING BTREE,
INDEX `menu`(`menu`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '常用功能菜单';
-- ----------------------------
-- Records of sxo_shortcut_menu
-- ----------------------------
BEGIN;
INSERT INTO `sxo_shortcut_menu` (`id`, `icon`, `name`, `menu`, `url`, `sort`, `add_time`, `upd_time`) VALUES (1, '/static/upload/images/shortcutmenu/2024/01/19/1705643171275170.png', '网站设置', '103siteset', '', 0, 1705643147, 1705643172), (2, '/static/upload/images/shortcutmenu/2024/01/19/1705643189818756.png', '商品管理', '39', '', 0, 1705643190, 0), (3, '/static/upload/images/shortcutmenu/2024/01/19/1705643202921226.png', '订单管理', '178', '', 0, 1705643204, 0), (4, '/static/upload/images/shortcutmenu/2024/01/19/1705643229569522.png', '订单售后', '364', '', 0, 1705643230, 0), (5, '/static/upload/images/shortcutmenu/2024/01/19/1705643248100080.png', '商品管理', '39', '', 0, 1705643249, 0), (6, '/static/upload/images/shortcutmenu/2024/01/19/1705643266349927.png', '应用管理', '341', '', 0, 1705643268, 0), (7, '/static/upload/images/shortcutmenu/2024/01/19/1705643291349422.png', '分销', '', '/admin.php?s=plugins/index/pluginsname/distribution/pluginscontrol/admin/pluginsaction/index.html', 0, 1705643292, 0), (8, '/static/upload/images/shortcutmenu/2024/01/19/1705643307781359.png', '优惠券', '', '/admin.php?s=plugins/index/pluginsname/coupon/pluginscontrol/admin/pluginsaction/index.html', 0, 1705643308, 0), (9, '/static/upload/images/shortcutmenu/2024/01/19/1705643321962121.png', '限时秒杀', '', '/admin.php?s=plugins/index/pluginsname/seckill/pluginscontrol/admin/pluginsaction/index.html', 0, 1705643321, 1705643343);
COMMIT;
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Table structure for sxo_slide
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_slide`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_slide` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
2024-04-25 14:47:59 +08:00
`platform` char(255) 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小程序, kuaishou 快手小程序)',
2023-08-27 18:24:09 +08:00
`event_type` tinyint(4) NOT NULL DEFAULT -1 COMMENT '事件类型0 WEB页面, 1 内部页面(小程序或APP内部地址), 2 外部小程序(同一个主体下的小程序appid), 3 打开地图, 4 拨打电话)',
`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 '图片地址',
`name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
2023-09-17 22:54:33 +08:00
`describe` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '描述',
2023-08-27 18:24:09 +08:00
`bg_color` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'css背景色值',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`sort` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序',
2023-09-17 22:54:33 +08:00
`start_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '开始时间',
`end_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '结束时间',
2023-08-27 18:24:09 +08:00
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `is_enable`(`is_enable`) USING BTREE,
2024-04-25 14:47:59 +08:00
INDEX `sort`(`sort`) USING BTREE
2024-07-03 22:46:04 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 25 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '轮播图片';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_slide
-- ----------------------------
BEGIN;
2024-04-25 14:47:59 +08:00
INSERT INTO `sxo_slide` (`id`, `platform`, `event_type`, `event_value`, `images_url`, `name`, `describe`, `bg_color`, `is_enable`, `sort`, `start_time`, `end_time`, `add_time`, `upd_time`) VALUES (10, '[\"pc\"]', 0, 'https://shopxo.net/', '/static/upload/images/slide/2022/05/27/1653645476953808.jpg', '美酒', '', '#fbe7cf', 1, 0, 0, 0, 1533867066, 1686132962), (11, '[\"pc\"]', 0, 'https://ask.shopxo.net/', '/static/upload/images/slide/2022/05/27/1653646660511503.jpg', '助力七夕', '', '#bbb7e9', 1, 0, 0, 0, 1533867114, 1686132980), (22, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/goods-search/goods-search?keywords=包', '/static/upload/images/slide/2021/11/22/1637564231868321.png', '红色1', '', '#FDBAD0', 1, 0, 0, 0, 1533865442, 1690034269), (23, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/goods-detail/goods-detail?goods_id=12', '/static/upload/images/slide/2021/11/22/1637564273444601.png', '绿色2', '', '#73F7C8', 1, 0, 0, 0, 1533866350, 1669303910), (24, '[\"ios\",\"android\",\"h5\",\"weixin\",\"alipay\",\"baidu\",\"toutiao\",\"qq\",\"kuaishou\"]', 1, '/pages/goods-search/goods-search?keywords=iphone', '/static/upload/images/slide/2023/11/08/1699440411819595.png', '蓝色3', '', '#BBD8FC', 1, 0, 0, 0, 1533866891, 1699440418);
2023-08-27 18:24:09 +08:00
COMMIT;
2024-01-19 15:40:47 +08:00
-- ----------------------------
-- Table structure for sxo_sms_log
-- ----------------------------
DROP TABLE IF EXISTS `sxo_sms_log`;
CREATE TABLE `sxo_sms_log` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`platform` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '短信平台aliyun 阿里云、等等...',
`status` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态0未发送1已发送2已失败',
2024-07-03 22:46:04 +08:00
`mobile` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机号码',
2024-01-19 15:40:47 +08:00
`sign_name` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '短信签名',
`template_value` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '短信模板',
`template_var` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '短信模板变量数组则json字符串存储',
`request_url` char(255) 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字符串存储',
`reason` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '失败原因',
`tsc` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '耗时时间(单位秒)',
`add_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `platform`(`platform`) USING BTREE,
INDEX `status`(`status`) USING BTREE,
INDEX `mobile`(`mobile`) USING BTREE,
INDEX `tsc`(`tsc`) USING BTREE,
INDEX `add_time`(`add_time`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '短信日志';
-- ----------------------------
-- Records of sxo_sms_log
-- ----------------------------
BEGIN;
COMMIT;
2024-04-15 10:25:01 +08:00
-- ----------------------------
-- Table structure for sxo_theme_data
-- ----------------------------
DROP TABLE IF EXISTS `sxo_theme_data`;
CREATE TABLE `sxo_theme_data` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`unique` char(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '唯一标识',
`theme` char(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '主题',
`view` tinyint(3) NOT NULL DEFAULT -1 COMMENT '页面0首页、1商品搜索、2商品分类、3商品详情、4文章分类、5文章详情、6确认订单、7用户登录、8用户注册、9用户密码找回、10用户中心',
`name` char(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`type` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '数据类型0单图文、1多图文、2视频、3商品、4文章、5商品组、6文章组',
`data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '数据内容',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `unique`(`unique`) USING BTREE,
INDEX `theme`(`theme`) USING BTREE,
INDEX `view`(`view`) USING BTREE,
INDEX `type`(`type`) USING BTREE,
INDEX `is_enable`(`is_enable`) USING BTREE,
INDEX `add_time`(`add_time`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '主题数据';
-- ----------------------------
-- Records of sxo_theme_data
-- ----------------------------
BEGIN;
COMMIT;
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Table structure for sxo_user
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_user`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_user` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
2024-04-15 10:25:01 +08:00
`number_code` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '会员码',
2023-08-27 18:24:09 +08:00
`status` tinyint(3) 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 '登录密码',
`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 '用户昵称',
2023-09-17 22:54:33 +08:00
`mobile` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '手机号码',
2023-08-27 18:24:09 +08:00
`email` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '电子邮箱最大长度60个字符',
`gender` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '性别0保密1女2男',
`avatar` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户头像地址',
`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 '所在市',
`county` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '所在市',
`birthday` int(11) NOT NULL DEFAULT 0 COMMENT '生日',
`address` char(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '详细地址',
`integral` int(11) NOT NULL DEFAULT 0 COMMENT '有效积分',
`locking_integral` int(11) NOT NULL DEFAULT 0 COMMENT '锁定积分',
`referrer` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '推荐人用户id',
`is_delete_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否已删除0否, 大于0删除时间',
`is_logout_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否已注销0否, 大于0删除时间',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `mobile`(`mobile`) USING BTREE,
INDEX `username`(`username`) USING BTREE,
INDEX `status`(`status`) USING BTREE,
INDEX `is_delete_time`(`is_delete_time`) USING BTREE,
INDEX `is_logout_time`(`is_logout_time`) USING BTREE,
INDEX `email`(`email`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户';
-- ----------------------------
-- Records of sxo_user
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_user_address
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_user_address`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_user_address` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '站点id',
`user_id` int(10) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '所在省',
`city` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '所在市',
`county` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '所在县/区',
`address` char(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '详细地址',
2024-07-03 22:46:04 +08:00
`address_last_code` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '地址最后一级编码',
2023-08-27 18:24:09 +08:00
`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 '身份证号码',
`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 '身份证国微面图片',
`is_default` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否默认地址0否, 1是',
`is_delete_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否删除0否1删除时间戳',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `user_id`(`user_id`) USING BTREE,
INDEX `is_delete_time`(`is_delete_time`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户地址';
-- ----------------------------
-- Records of sxo_user_address
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_user_integral_log
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_user_integral_log`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_user_integral_log` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`user_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`type` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作类型0减少, 1增加',
`original_integral` int(11) NOT NULL DEFAULT 0 COMMENT '原始积分',
`new_integral` int(11) NOT NULL DEFAULT 0 COMMENT '最新积分',
`operation_integral` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作积分',
`msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '操作原因',
`operation_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '操作人员id',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `user_id`(`user_id`) USING BTREE,
INDEX `type`(`type`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户积分日志';
-- ----------------------------
-- Records of sxo_user_integral_log
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for sxo_user_platform
-- ----------------------------
2023-04-07 10:43:59 +08:00
DROP TABLE IF EXISTS `sxo_user_platform`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_user_platform` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`user_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户id',
`system_type` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'default' COMMENT '系统类型(默认 default, 其他按照SYSTEM_TYPE常量类型',
`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小程序, kuaishou 快手小程序)',
`token` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'token',
`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',
`toutiao_unionid` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '头条unionid',
`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',
`kuaishou_openid` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '快手openid',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2023-04-07 10:43:59 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
INDEX `user_id`(`user_id`) USING BTREE,
INDEX `system_type`(`system_type`) USING BTREE,
INDEX `platform`(`platform`) USING BTREE,
INDEX `token`(`token`) USING BTREE,
INDEX `alipay_openid`(`alipay_openid`) USING BTREE,
INDEX `weixin_openid`(`weixin_openid`) USING BTREE,
INDEX `weixin_unionid`(`weixin_unionid`) USING BTREE,
INDEX `weixin_web_openid`(`weixin_web_openid`) USING BTREE,
INDEX `baidu_openid`(`baidu_openid`) USING BTREE,
INDEX `toutiao_openid`(`toutiao_openid`) USING BTREE,
INDEX `toutiao_unionid`(`toutiao_unionid`) USING BTREE,
INDEX `qq_openid`(`qq_openid`) USING BTREE,
INDEX `qq_unionid`(`qq_unionid`) USING BTREE,
INDEX `kuaishou_openid`(`kuaishou_openid`) USING BTREE
2023-11-08 23:45:00 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户平台';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_user_platform
-- ----------------------------
BEGIN;
2023-11-08 23:45:00 +08:00
INSERT INTO `sxo_user_platform` (`id`, `user_id`, `system_type`, `platform`, `token`, `alipay_openid`, `weixin_openid`, `weixin_unionid`, `weixin_web_openid`, `baidu_openid`, `toutiao_openid`, `toutiao_unionid`, `qq_openid`, `qq_unionid`, `kuaishou_openid`, `add_time`, `upd_time`) VALUES (1, 1, 'default', 'weixin', '4e09b76066ca530b167ed32f55a763a3', '', 'oB6US5SNOngn196qzb3lagEBTh6w', 'o1Ang5xo5tiJD-l7Y1kY7-hT6emk', '', '', '', '', '', '', '', 1699451379, 1699456405);
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_warehouse
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_warehouse`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_warehouse` (
`id` int(10) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '权重(数字越大权重越高)',
`is_enable` tinyint(3) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '所在省',
`city` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '所在市',
`county` int(10) 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(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否默认0否, 1是',
`is_delete_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否删除0否大于0删除时间戳',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
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
2023-09-11 22:14:55 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '仓库';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_warehouse
-- ----------------------------
BEGIN;
INSERT INTO `sxo_warehouse` (`id`, `name`, `alias`, `level`, `is_enable`, `contacts_name`, `contacts_tel`, `province`, `city`, `county`, `address`, `lng`, `lat`, `is_default`, `is_delete_time`, `add_time`, `upd_time`) VALUES (1, '默认仓库', '上海仓', 1, 1, 'Devil', '17666666655', 9, 152, 1896, '浦江科技广场', 121.5140560000, 31.1023570000, 1, 0, 1594207406, 1693126392);
COMMIT;
-- ----------------------------
-- Table structure for sxo_warehouse_goods
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_warehouse_goods`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_warehouse_goods` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`warehouse_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '仓库id',
`goods_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品id',
`is_enable` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否启用0否1是',
`inventory` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '总库存',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
`upd_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
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
) ENGINE = InnoDB AUTO_INCREMENT = 174 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '仓库商品';
-- ----------------------------
-- Records of sxo_warehouse_goods
-- ----------------------------
BEGIN;
2023-08-29 13:13:32 +08:00
INSERT INTO `sxo_warehouse_goods` (`id`, `warehouse_id`, `goods_id`, `is_enable`, `inventory`, `add_time`, `upd_time`) VALUES (4, 1, 9, 1, 10666656, 1626018145, 1693237071), (5, 1, 8, 1, 75, 1626018145, 1693126336), (6, 1, 3, 1, 888888, 1626018146, 1693284931), (7, 1, 4, 1, 878, 1626018147, 1693237649), (8, 1, 5, 1, 877, 1626018148, 1693237221), (9, 1, 6, 1, 877, 1626018148, 1693285023), (10, 1, 7, 1, 877, 1626018149, 1693234922), (11, 1, 2, 1, 266664, 1626018150, 1693284683), (12, 1, 1, 1, 1517, 1626018150, 1691832446), (35, 1, 12, 1, 2000, 1650639953, 1693237967), (70, 1, 32, 1, 1517, 1654478441, 1693237177), (142, 1, 74, 1, 60, 1680668622, 1693238627), (158, 1, 110, 1, 88888, 1693124711, 1693234972), (159, 1, 109, 1, 88888, 1693124728, 1693235270), (160, 1, 108, 1, 88888, 1693124737, 1693235460), (161, 1, 107, 1, 88888, 1693124747, 1693235615), (162, 1, 106, 1, 88888, 1693124753, 1693235979), (163, 1, 105, 1, 88888, 1693124762, 1693235790), (164, 1, 104, 1, 88888, 1693124768, 1693236042), (165, 1, 103, 1, 88888, 1693124774, 1693236446), (166, 1, 102, 1, 88888, 1693124781, 1693235663), (167, 1, 101, 1, 88888, 1693124787, 1693235925), (168, 1, 100, 1, 88888, 1693124792, 1693236598), (169, 1, 99, 1, 88888, 1693124799, 1693236668), (170, 1, 98, 1, 88888, 1693124806, 1693235317), (171, 1, 10, 1, 88888, 1693124811, 1693238016), (172, 1, 11, 1, 2666664, 1693126267, 1693237903), (173, 1, 25, 1, 888888, 1693126268, 1693237146);
2023-08-27 18:24:09 +08:00
COMMIT;
-- ----------------------------
-- Table structure for sxo_warehouse_goods_spec
-- ----------------------------
2021-11-23 09:21:22 +08:00
DROP TABLE IF EXISTS `sxo_warehouse_goods_spec`;
2023-08-27 18:24:09 +08:00
CREATE TABLE `sxo_warehouse_goods_spec` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自增id',
`warehouse_goods_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '仓库商品id',
`warehouse_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '仓库id',
`goods_id` int(10) 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(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '库存',
`add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间',
2021-11-23 09:21:22 +08:00
PRIMARY KEY (`id`) USING BTREE,
2023-08-27 18:24:09 +08:00
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
2023-08-29 13:13:32 +08:00
) ENGINE = InnoDB AUTO_INCREMENT = 3031 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '仓库商品规格';
2023-08-27 18:24:09 +08:00
-- ----------------------------
-- Records of sxo_warehouse_goods_spec
-- ----------------------------
BEGIN;
2023-08-29 13:13:32 +08:00
INSERT INTO `sxo_warehouse_goods_spec` (`id`, `warehouse_goods_id`, `warehouse_id`, `goods_id`, `md5_key`, `spec`, `inventory`, `add_time`) VALUES (2813, 12, 1, 1, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 1517, 1691832446), (2952, 5, 1, 8, '52636511861a0e08cbe6a0eb1c27d816', '[{\"type\":\"颜色\",\"value\":\"红色\"}]', 4, 1693126336), (2953, 5, 1, 8, '9c9aabab3f7627ff4bb224b2738b26ea', '[{\"type\":\"颜色\",\"value\":\"蓝色\"}]', 71, 1693126336), (2981, 10, 1, 7, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 877, 1693234922), (2982, 158, 1, 110, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 88888, 1693234972), (2983, 159, 1, 109, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 88888, 1693235270), (2984, 170, 1, 98, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 88888, 1693235317), (2985, 160, 1, 108, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 88888, 1693235460), (2986, 161, 1, 107, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 88888, 1693235615), (2987, 166, 1, 102, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 88888, 1693235663), (2989, 163, 1, 105, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 88888, 1693235790), (2990, 167, 1, 101, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 88888, 1693235925), (2991, 162, 1, 106, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 88888, 1693235979), (2992, 164, 1, 104, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 88888, 1693236042), (2993, 165, 1, 103, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 88888, 1693236446), (2994, 168, 1, 100, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 88888, 1693236598), (2995, 169, 1, 99, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 88888, 1693236668), (2996, 4, 1, 9, 'd15560adc3d2ddf952ec40d874566fc0', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"S\"}]', 888888, 1693237071), (2997, 4, 1, 9, '2767f06d6a715b3915ca3c5443efc170', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"M\"}]', 888888, 1693237071), (2998, 4, 1, 9, 'd0d686188b3e2b0b7ae12040fd508f03', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"L\"}]', 888888, 1693237071), (2999, 4, 1, 9, '910613b82f64796470c2243f8e306797', '[{\"type\":\"颜色\",\"value\":\"白色\"},{\"type\":\"尺码\",\"value\":\"XL\"}]', 888888, 1693237071), (3000, 4, 1, 9, '4acc2580a89270113477b4b8466ecef9', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺码\",\"value\":\"S\"}]', 888888, 1693237071), (3001, 4, 1, 9, 'b0935dae40102d2bcbd588fc50a6a118', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺码\",\"value\":\"M\"}]', 888888, 1693237071), (3002, 4, 1, 9, '5b51b52dde87b3608c97ff80a2215275', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺码\",\"value\":\"L\"}]', 888888, 1693237071), (3003, 4, 1, 9, 'f3ad50abb66b28899bf085da136c1e5a', '[{\"type\":\"颜色\",\"value\":\"粉色\"},{\"type\":\"尺码\",\"value\":\"XL\"}]', 888888, 1693237071), (3004, 4, 1, 9, '2f3924a3bf7c8491af2dad598b54764f', '[{\"type\":\"颜色\",\"value\":\"黑色\"},{\"type\":\"尺码\",\"value\":\"S\"}]', 888888, 1693237071), (3005, 4, 1, 9, '0b21a799bb1659287fd9cd49ee7f6e5c', '[{\"type\":\"颜色\",\"value\":\"黑色\"},{\"type\":\"尺码\",\"value\":\"M\"}]', 888888, 1693237071), (3006, 4, 1, 9, '237d77a5504afa496f192524501af2cc', '[{\"type\":\"颜色\",\"value\":\"黑色\"},{\"type\":\"尺码\",\"value\":\"L\"}]', 888888, 1693237071), (3007, 4, 1, 9, '5f077e081d727adcb617a413f038d043', '[{\"type\":\"颜色\",\"value\":\"黑色\"},{\"type\":\"尺码\",\"value\":\"XL\"}]', 888888, 1693237071), (3008, 173, 1, 25, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 888888, 1693237146), (3009, 70, 1, 32, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 1517, 1693237177), (3010, 8, 1, 5, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 877, 1693237221), (3011, 7, 1, 4, 'c21f969b5f03d33d43e04f8f136e7682', '[]', 878, 1693237649), (3015, 172, 1, 11, '69691c7bdcc3ce6d5d8a1361f22d04ac', '[{\"type\":\"尺码\",\"value\":\"M\"}]', 888888, 1693237903), (3016, 172, 1, 11, 'd20caec3b48a1eef164cb4ca81ba2587', '[{\"type\":\"尺码\",\"value\":\"L\"}]', 888888, 1693237903), (3017, 172, 1, 11, 'a7a4ccc5e1a068
2023-08-27 18:24:09 +08:00
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;