/*
 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;
