From 864390dd8393c3225077f3d2d1acb885f4606e28 Mon Sep 17 00:00:00 2001 From: liapples Date: Tue, 17 Aug 2021 09:29:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E7=AE=A1=E7=90=86=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E7=AD=89=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/admin_agent.sql | 217 ++++++++++++++++++++++++++++++++++++ database/admin_guide.sql | 217 ++++++++++++++++++++++++++++++++++++ database/admin_supplier.sql | 217 ++++++++++++++++++++++++++++++++++++ 3 files changed, 651 insertions(+) create mode 100644 database/admin_agent.sql create mode 100644 database/admin_guide.sql create mode 100644 database/admin_supplier.sql diff --git a/database/admin_agent.sql b/database/admin_agent.sql new file mode 100644 index 0000000..0298523 --- /dev/null +++ b/database/admin_agent.sql @@ -0,0 +1,217 @@ +/* + Navicat Premium Data Transfer + + Source Server : docker-localhost + Source Server Type : MySQL + Source Server Version : 80025 + Source Host : localhost:3306 + Source Schema : hainan + + Target Server Type : MySQL + Target Server Version : 80025 + File Encoding : 65001 + + Date: 16/08/2021 15:48:03 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for admin_agent_extension_histories +-- ---------------------------- +DROP TABLE IF EXISTS `admin_agent_extension_histories`; +CREATE TABLE `admin_agent_extension_histories` ( + `id` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT, + `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `type` tinyint(0) NOT NULL DEFAULT 1, + `version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0', + `detail` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE, + INDEX `admin_extension_histories_name_index`(`name`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_agent_extension_histories +-- ---------------------------- + +-- ---------------------------- +-- Table structure for admin_agent_extensions +-- ---------------------------- +DROP TABLE IF EXISTS `admin_agent_extensions`; +CREATE TABLE `admin_agent_extensions` ( + `id` int(0) UNSIGNED NOT NULL AUTO_INCREMENT, + `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `is_enabled` tinyint(0) NOT NULL DEFAULT 0, + `options` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `admin_extensions_name_unique`(`name`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_agent_extensions +-- ---------------------------- + +-- ---------------------------- +-- Table structure for admin_agent_menu +-- ---------------------------- +DROP TABLE IF EXISTS `admin_agent_menu`; +CREATE TABLE `admin_agent_menu` ( + `id` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT, + `parent_id` bigint(0) NOT NULL DEFAULT 0, + `order` int(0) NOT NULL DEFAULT 0, + `title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `icon` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, + `uri` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, + `extension` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `show` tinyint(0) NOT NULL DEFAULT 1, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_agent_menu +-- ---------------------------- +INSERT INTO `admin_agent_menu` VALUES (1, 0, 1, '主页', 'feather icon-bar-chart-2', '/', '', 1, '2021-07-20 01:44:48', '2021-08-11 16:14:47'); +INSERT INTO `admin_agent_menu` VALUES (2, 0, 2, '系统', 'feather icon-settings', NULL, '', 1, '2021-07-20 01:44:48', '2021-08-16 15:15:24'); +INSERT INTO `admin_agent_menu` VALUES (3, 2, 3, '管理员', NULL, 'auth/users', '', 1, '2021-07-20 01:44:48', '2021-08-16 15:15:24'); +INSERT INTO `admin_agent_menu` VALUES (4, 2, 4, '角色', NULL, 'auth/roles', '', 1, '2021-07-20 01:44:48', '2021-08-16 15:15:24'); +INSERT INTO `admin_agent_menu` VALUES (5, 2, 5, '权限', NULL, 'auth/permissions', '', 1, '2021-07-20 01:44:48', '2021-08-16 15:15:24'); +INSERT INTO `admin_agent_menu` VALUES (6, 2, 6, '菜单', NULL, 'auth/menu', '', 1, '2021-07-20 01:44:48', '2021-08-16 15:15:24'); +INSERT INTO `admin_agent_menu` VALUES (7, 2, 7, '扩展', NULL, 'auth/extensions', '', 1, '2021-07-20 01:44:48', '2021-08-16 15:15:24'); + +-- ---------------------------- +-- Table structure for admin_agent_permission_menu +-- ---------------------------- +DROP TABLE IF EXISTS `admin_agent_permission_menu`; +CREATE TABLE `admin_agent_permission_menu` ( + `permission_id` bigint(0) NOT NULL, + `menu_id` bigint(0) NOT NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + UNIQUE INDEX `admin_permission_menu_permission_id_menu_id_unique`(`permission_id`, `menu_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_agent_permission_menu +-- ---------------------------- + +-- ---------------------------- +-- Table structure for admin_agent_permissions +-- ---------------------------- +DROP TABLE IF EXISTS `admin_agent_permissions`; +CREATE TABLE `admin_agent_permissions` ( + `id` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT, + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `slug` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `http_method` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, + `http_path` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL, + `order` int(0) NOT NULL DEFAULT 0, + `parent_id` bigint(0) NOT NULL DEFAULT 0, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `admin_permissions_slug_unique`(`slug`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_agent_permissions +-- ---------------------------- +INSERT INTO `admin_agent_permissions` VALUES (1, '系统', 'auth-management', '', '', 1, 0, '2021-07-20 01:44:48', '2021-08-16 15:45:11'); +INSERT INTO `admin_agent_permissions` VALUES (2, '管理员', 'users', '', '/auth/users*', 2, 1, '2021-07-20 01:44:48', '2021-08-16 15:45:35'); +INSERT INTO `admin_agent_permissions` VALUES (3, '角色', 'roles', '', '/auth/roles*', 3, 1, '2021-07-20 01:44:48', '2021-08-16 15:45:41'); +INSERT INTO `admin_agent_permissions` VALUES (4, '权限', 'permissions', '', '/auth/permissions*', 4, 1, '2021-07-20 01:44:48', '2021-08-16 15:45:51'); +INSERT INTO `admin_agent_permissions` VALUES (5, '菜单', 'menu', '', '/auth/menu*', 5, 1, '2021-07-20 01:44:48', '2021-08-16 15:45:58'); +INSERT INTO `admin_agent_permissions` VALUES (6, '扩展', 'extension', '', '/auth/extensions*', 6, 1, '2021-07-20 01:44:48', '2021-08-16 15:46:06'); + +-- ---------------------------- +-- Table structure for admin_agent_role_menu +-- ---------------------------- +DROP TABLE IF EXISTS `admin_agent_role_menu`; +CREATE TABLE `admin_agent_role_menu` ( + `role_id` bigint(0) NOT NULL, + `menu_id` bigint(0) NOT NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + UNIQUE INDEX `admin_role_menu_role_id_menu_id_unique`(`role_id`, `menu_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_agent_role_menu +-- ---------------------------- + +-- ---------------------------- +-- Table structure for admin_agent_role_permissions +-- ---------------------------- +DROP TABLE IF EXISTS `admin_agent_role_permissions`; +CREATE TABLE `admin_agent_role_permissions` ( + `role_id` bigint(0) NOT NULL, + `permission_id` bigint(0) NOT NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + UNIQUE INDEX `admin_role_permissions_role_id_permission_id_unique`(`role_id`, `permission_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_agent_role_permissions +-- ---------------------------- + +-- ---------------------------- +-- Table structure for admin_agent_role_users +-- ---------------------------- +DROP TABLE IF EXISTS `admin_agent_role_users`; +CREATE TABLE `admin_agent_role_users` ( + `role_id` bigint(0) NOT NULL, + `user_id` bigint(0) NOT NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + UNIQUE INDEX `admin_role_users_role_id_user_id_unique`(`role_id`, `user_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_agent_role_users +-- ---------------------------- +INSERT INTO `admin_agent_role_users` VALUES (1, 1, '2021-07-20 01:44:48', '2021-07-20 01:44:48'); + +-- ---------------------------- +-- Table structure for admin_agent_roles +-- ---------------------------- +DROP TABLE IF EXISTS `admin_agent_roles`; +CREATE TABLE `admin_agent_roles` ( + `id` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT, + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `slug` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `admin_roles_slug_unique`(`slug`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_agent_roles +-- ---------------------------- +INSERT INTO `admin_agent_roles` VALUES (1, 'Administrator', 'administrator', '2021-07-20 01:44:48', '2021-07-20 01:44:48'); + +-- ---------------------------- +-- Table structure for admin_agent_settings +-- ---------------------------- +DROP TABLE IF EXISTS `admin_agent_settings`; +CREATE TABLE `admin_agent_settings` ( + `slug` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `value` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`slug`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_agent_settings +-- ---------------------------- + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/database/admin_guide.sql b/database/admin_guide.sql new file mode 100644 index 0000000..1f759e0 --- /dev/null +++ b/database/admin_guide.sql @@ -0,0 +1,217 @@ +/* + Navicat Premium Data Transfer + + Source Server : docker-localhost + Source Server Type : MySQL + Source Server Version : 80025 + Source Host : localhost:3306 + Source Schema : hainan + + Target Server Type : MySQL + Target Server Version : 80025 + File Encoding : 65001 + + Date: 16/08/2021 15:48:03 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for admin_guide_extension_histories +-- ---------------------------- +DROP TABLE IF EXISTS `admin_guide_extension_histories`; +CREATE TABLE `admin_guide_extension_histories` ( + `id` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT, + `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `type` tinyint(0) NOT NULL DEFAULT 1, + `version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0', + `detail` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE, + INDEX `admin_extension_histories_name_index`(`name`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_guide_extension_histories +-- ---------------------------- + +-- ---------------------------- +-- Table structure for admin_guide_extensions +-- ---------------------------- +DROP TABLE IF EXISTS `admin_guide_extensions`; +CREATE TABLE `admin_guide_extensions` ( + `id` int(0) UNSIGNED NOT NULL AUTO_INCREMENT, + `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `is_enabled` tinyint(0) NOT NULL DEFAULT 0, + `options` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `admin_extensions_name_unique`(`name`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_guide_extensions +-- ---------------------------- + +-- ---------------------------- +-- Table structure for admin_guide_menu +-- ---------------------------- +DROP TABLE IF EXISTS `admin_guide_menu`; +CREATE TABLE `admin_guide_menu` ( + `id` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT, + `parent_id` bigint(0) NOT NULL DEFAULT 0, + `order` int(0) NOT NULL DEFAULT 0, + `title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `icon` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, + `uri` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, + `extension` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `show` tinyint(0) NOT NULL DEFAULT 1, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_guide_menu +-- ---------------------------- +INSERT INTO `admin_guide_menu` VALUES (1, 0, 1, '主页', 'feather icon-bar-chart-2', '/', '', 1, '2021-07-20 01:44:48', '2021-08-11 16:14:47'); +INSERT INTO `admin_guide_menu` VALUES (2, 0, 2, '系统', 'feather icon-settings', NULL, '', 1, '2021-07-20 01:44:48', '2021-08-16 15:15:24'); +INSERT INTO `admin_guide_menu` VALUES (3, 2, 3, '管理员', NULL, 'auth/users', '', 1, '2021-07-20 01:44:48', '2021-08-16 15:15:24'); +INSERT INTO `admin_guide_menu` VALUES (4, 2, 4, '角色', NULL, 'auth/roles', '', 1, '2021-07-20 01:44:48', '2021-08-16 15:15:24'); +INSERT INTO `admin_guide_menu` VALUES (5, 2, 5, '权限', NULL, 'auth/permissions', '', 1, '2021-07-20 01:44:48', '2021-08-16 15:15:24'); +INSERT INTO `admin_guide_menu` VALUES (6, 2, 6, '菜单', NULL, 'auth/menu', '', 1, '2021-07-20 01:44:48', '2021-08-16 15:15:24'); +INSERT INTO `admin_guide_menu` VALUES (7, 2, 7, '扩展', NULL, 'auth/extensions', '', 1, '2021-07-20 01:44:48', '2021-08-16 15:15:24'); + +-- ---------------------------- +-- Table structure for admin_guide_permission_menu +-- ---------------------------- +DROP TABLE IF EXISTS `admin_guide_permission_menu`; +CREATE TABLE `admin_guide_permission_menu` ( + `permission_id` bigint(0) NOT NULL, + `menu_id` bigint(0) NOT NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + UNIQUE INDEX `admin_permission_menu_permission_id_menu_id_unique`(`permission_id`, `menu_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_guide_permission_menu +-- ---------------------------- + +-- ---------------------------- +-- Table structure for admin_guide_permissions +-- ---------------------------- +DROP TABLE IF EXISTS `admin_guide_permissions`; +CREATE TABLE `admin_guide_permissions` ( + `id` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT, + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `slug` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `http_method` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, + `http_path` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL, + `order` int(0) NOT NULL DEFAULT 0, + `parent_id` bigint(0) NOT NULL DEFAULT 0, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `admin_permissions_slug_unique`(`slug`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_guide_permissions +-- ---------------------------- +INSERT INTO `admin_guide_permissions` VALUES (1, '系统', 'auth-management', '', '', 1, 0, '2021-07-20 01:44:48', '2021-08-16 15:45:11'); +INSERT INTO `admin_guide_permissions` VALUES (2, '管理员', 'users', '', '/auth/users*', 2, 1, '2021-07-20 01:44:48', '2021-08-16 15:45:35'); +INSERT INTO `admin_guide_permissions` VALUES (3, '角色', 'roles', '', '/auth/roles*', 3, 1, '2021-07-20 01:44:48', '2021-08-16 15:45:41'); +INSERT INTO `admin_guide_permissions` VALUES (4, '权限', 'permissions', '', '/auth/permissions*', 4, 1, '2021-07-20 01:44:48', '2021-08-16 15:45:51'); +INSERT INTO `admin_guide_permissions` VALUES (5, '菜单', 'menu', '', '/auth/menu*', 5, 1, '2021-07-20 01:44:48', '2021-08-16 15:45:58'); +INSERT INTO `admin_guide_permissions` VALUES (6, '扩展', 'extension', '', '/auth/extensions*', 6, 1, '2021-07-20 01:44:48', '2021-08-16 15:46:06'); + +-- ---------------------------- +-- Table structure for admin_guide_role_menu +-- ---------------------------- +DROP TABLE IF EXISTS `admin_guide_role_menu`; +CREATE TABLE `admin_guide_role_menu` ( + `role_id` bigint(0) NOT NULL, + `menu_id` bigint(0) NOT NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + UNIQUE INDEX `admin_role_menu_role_id_menu_id_unique`(`role_id`, `menu_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_guide_role_menu +-- ---------------------------- + +-- ---------------------------- +-- Table structure for admin_guide_role_permissions +-- ---------------------------- +DROP TABLE IF EXISTS `admin_guide_role_permissions`; +CREATE TABLE `admin_guide_role_permissions` ( + `role_id` bigint(0) NOT NULL, + `permission_id` bigint(0) NOT NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + UNIQUE INDEX `admin_role_permissions_role_id_permission_id_unique`(`role_id`, `permission_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_guide_role_permissions +-- ---------------------------- + +-- ---------------------------- +-- Table structure for admin_guide_role_users +-- ---------------------------- +DROP TABLE IF EXISTS `admin_guide_role_users`; +CREATE TABLE `admin_guide_role_users` ( + `role_id` bigint(0) NOT NULL, + `user_id` bigint(0) NOT NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + UNIQUE INDEX `admin_role_users_role_id_user_id_unique`(`role_id`, `user_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_guide_role_users +-- ---------------------------- +INSERT INTO `admin_guide_role_users` VALUES (1, 1, '2021-07-20 01:44:48', '2021-07-20 01:44:48'); + +-- ---------------------------- +-- Table structure for admin_guide_roles +-- ---------------------------- +DROP TABLE IF EXISTS `admin_guide_roles`; +CREATE TABLE `admin_guide_roles` ( + `id` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT, + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `slug` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `admin_roles_slug_unique`(`slug`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_guide_roles +-- ---------------------------- +INSERT INTO `admin_guide_roles` VALUES (1, 'Administrator', 'administrator', '2021-07-20 01:44:48', '2021-07-20 01:44:48'); + +-- ---------------------------- +-- Table structure for admin_guide_settings +-- ---------------------------- +DROP TABLE IF EXISTS `admin_guide_settings`; +CREATE TABLE `admin_guide_settings` ( + `slug` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `value` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`slug`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_guide_settings +-- ---------------------------- + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/database/admin_supplier.sql b/database/admin_supplier.sql new file mode 100644 index 0000000..1c8cc83 --- /dev/null +++ b/database/admin_supplier.sql @@ -0,0 +1,217 @@ +/* + Navicat Premium Data Transfer + + Source Server : docker-localhost + Source Server Type : MySQL + Source Server Version : 80025 + Source Host : localhost:3306 + Source Schema : hainan + + Target Server Type : MySQL + Target Server Version : 80025 + File Encoding : 65001 + + Date: 16/08/2021 15:48:03 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for admin_supplier_extension_histories +-- ---------------------------- +DROP TABLE IF EXISTS `admin_supplier_extension_histories`; +CREATE TABLE `admin_supplier_extension_histories` ( + `id` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT, + `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `type` tinyint(0) NOT NULL DEFAULT 1, + `version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0', + `detail` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE, + INDEX `admin_extension_histories_name_index`(`name`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_supplier_extension_histories +-- ---------------------------- + +-- ---------------------------- +-- Table structure for admin_supplier_extensions +-- ---------------------------- +DROP TABLE IF EXISTS `admin_supplier_extensions`; +CREATE TABLE `admin_supplier_extensions` ( + `id` int(0) UNSIGNED NOT NULL AUTO_INCREMENT, + `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `is_enabled` tinyint(0) NOT NULL DEFAULT 0, + `options` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `admin_extensions_name_unique`(`name`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_supplier_extensions +-- ---------------------------- + +-- ---------------------------- +-- Table structure for admin_supplier_menu +-- ---------------------------- +DROP TABLE IF EXISTS `admin_supplier_menu`; +CREATE TABLE `admin_supplier_menu` ( + `id` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT, + `parent_id` bigint(0) NOT NULL DEFAULT 0, + `order` int(0) NOT NULL DEFAULT 0, + `title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `icon` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, + `uri` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, + `extension` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `show` tinyint(0) NOT NULL DEFAULT 1, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_supplier_menu +-- ---------------------------- +INSERT INTO `admin_supplier_menu` VALUES (1, 0, 1, '主页', 'feather icon-bar-chart-2', '/', '', 1, '2021-07-20 01:44:48', '2021-08-11 16:14:47'); +INSERT INTO `admin_supplier_menu` VALUES (2, 0, 2, '系统', 'feather icon-settings', NULL, '', 1, '2021-07-20 01:44:48', '2021-08-16 15:15:24'); +INSERT INTO `admin_supplier_menu` VALUES (3, 2, 3, '管理员', NULL, 'auth/users', '', 1, '2021-07-20 01:44:48', '2021-08-16 15:15:24'); +INSERT INTO `admin_supplier_menu` VALUES (4, 2, 4, '角色', NULL, 'auth/roles', '', 1, '2021-07-20 01:44:48', '2021-08-16 15:15:24'); +INSERT INTO `admin_supplier_menu` VALUES (5, 2, 5, '权限', NULL, 'auth/permissions', '', 1, '2021-07-20 01:44:48', '2021-08-16 15:15:24'); +INSERT INTO `admin_supplier_menu` VALUES (6, 2, 6, '菜单', NULL, 'auth/menu', '', 1, '2021-07-20 01:44:48', '2021-08-16 15:15:24'); +INSERT INTO `admin_supplier_menu` VALUES (7, 2, 7, '扩展', NULL, 'auth/extensions', '', 1, '2021-07-20 01:44:48', '2021-08-16 15:15:24'); + +-- ---------------------------- +-- Table structure for admin_supplier_permission_menu +-- ---------------------------- +DROP TABLE IF EXISTS `admin_supplier_permission_menu`; +CREATE TABLE `admin_supplier_permission_menu` ( + `permission_id` bigint(0) NOT NULL, + `menu_id` bigint(0) NOT NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + UNIQUE INDEX `admin_permission_menu_permission_id_menu_id_unique`(`permission_id`, `menu_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_supplier_permission_menu +-- ---------------------------- + +-- ---------------------------- +-- Table structure for admin_supplier_permissions +-- ---------------------------- +DROP TABLE IF EXISTS `admin_supplier_permissions`; +CREATE TABLE `admin_supplier_permissions` ( + `id` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT, + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `slug` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `http_method` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, + `http_path` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL, + `order` int(0) NOT NULL DEFAULT 0, + `parent_id` bigint(0) NOT NULL DEFAULT 0, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `admin_permissions_slug_unique`(`slug`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_supplier_permissions +-- ---------------------------- +INSERT INTO `admin_supplier_permissions` VALUES (1, '系统', 'auth-management', '', '', 1, 0, '2021-07-20 01:44:48', '2021-08-16 15:45:11'); +INSERT INTO `admin_supplier_permissions` VALUES (2, '管理员', 'users', '', '/auth/users*', 2, 1, '2021-07-20 01:44:48', '2021-08-16 15:45:35'); +INSERT INTO `admin_supplier_permissions` VALUES (3, '角色', 'roles', '', '/auth/roles*', 3, 1, '2021-07-20 01:44:48', '2021-08-16 15:45:41'); +INSERT INTO `admin_supplier_permissions` VALUES (4, '权限', 'permissions', '', '/auth/permissions*', 4, 1, '2021-07-20 01:44:48', '2021-08-16 15:45:51'); +INSERT INTO `admin_supplier_permissions` VALUES (5, '菜单', 'menu', '', '/auth/menu*', 5, 1, '2021-07-20 01:44:48', '2021-08-16 15:45:58'); +INSERT INTO `admin_supplier_permissions` VALUES (6, '扩展', 'extension', '', '/auth/extensions*', 6, 1, '2021-07-20 01:44:48', '2021-08-16 15:46:06'); + +-- ---------------------------- +-- Table structure for admin_supplier_role_menu +-- ---------------------------- +DROP TABLE IF EXISTS `admin_supplier_role_menu`; +CREATE TABLE `admin_supplier_role_menu` ( + `role_id` bigint(0) NOT NULL, + `menu_id` bigint(0) NOT NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + UNIQUE INDEX `admin_role_menu_role_id_menu_id_unique`(`role_id`, `menu_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_supplier_role_menu +-- ---------------------------- + +-- ---------------------------- +-- Table structure for admin_supplier_role_permissions +-- ---------------------------- +DROP TABLE IF EXISTS `admin_supplier_role_permissions`; +CREATE TABLE `admin_supplier_role_permissions` ( + `role_id` bigint(0) NOT NULL, + `permission_id` bigint(0) NOT NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + UNIQUE INDEX `admin_role_permissions_role_id_permission_id_unique`(`role_id`, `permission_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_supplier_role_permissions +-- ---------------------------- + +-- ---------------------------- +-- Table structure for admin_supplier_role_users +-- ---------------------------- +DROP TABLE IF EXISTS `admin_supplier_role_users`; +CREATE TABLE `admin_supplier_role_users` ( + `role_id` bigint(0) NOT NULL, + `user_id` bigint(0) NOT NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + UNIQUE INDEX `admin_role_users_role_id_user_id_unique`(`role_id`, `user_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_supplier_role_users +-- ---------------------------- +INSERT INTO `admin_supplier_role_users` VALUES (1, 1, '2021-07-20 01:44:48', '2021-07-20 01:44:48'); + +-- ---------------------------- +-- Table structure for admin_supplier_roles +-- ---------------------------- +DROP TABLE IF EXISTS `admin_supplier_roles`; +CREATE TABLE `admin_supplier_roles` ( + `id` bigint(0) UNSIGNED NOT NULL AUTO_INCREMENT, + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `slug` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `admin_roles_slug_unique`(`slug`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_supplier_roles +-- ---------------------------- +INSERT INTO `admin_supplier_roles` VALUES (1, 'Administrator', 'administrator', '2021-07-20 01:44:48', '2021-07-20 01:44:48'); + +-- ---------------------------- +-- Table structure for admin_supplier_settings +-- ---------------------------- +DROP TABLE IF EXISTS `admin_supplier_settings`; +CREATE TABLE `admin_supplier_settings` ( + `slug` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `value` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp(0) NULL DEFAULT NULL, + `updated_at` timestamp(0) NULL DEFAULT NULL, + PRIMARY KEY (`slug`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of admin_supplier_settings +-- ---------------------------- + +SET FOREIGN_KEY_CHECKS = 1;