代码拉取完成,页面将自动刷新
/*
Navicat Premium Data Transfer
Source Server : youdianlao
Source Server Type : MariaDB
Source Server Version : 100515
Source Host : localhost:3306
Source Schema : new_bee_admin
Target Server Type : MariaDB
Target Server Version : 100515
File Encoding : 65001
Date: 14/06/2022 19:56:08
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for nba_admin
-- ----------------------------
DROP TABLE IF EXISTS `nba_admin`;
CREATE TABLE `nba_admin` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名',
`password` char(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码(密文)',
`nickname` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '昵称',
`avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '头像URL',
`phone` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机号码',
`email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '电子邮箱',
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
`is_enable` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '是否启用,1=启用,0=未启用',
`last_login_ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '最后登录IP地址(冗余)',
`login_count` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '累计登录次数(冗余)',
`gmt_last_login` datetime(0) NULL DEFAULT NULL COMMENT '最后登录时间(冗余)',
`gmt_create` datetime(0) NULL DEFAULT NULL COMMENT '数据创建时间',
`gmt_modified` datetime(0) NULL DEFAULT NULL COMMENT '数据最后修改时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `username`(`username`) USING BTREE,
UNIQUE INDEX `phone`(`phone`) USING BTREE,
UNIQUE INDEX `email`(`email`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '管理员' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of nba_admin
-- ----------------------------
-- ----------------------------
-- Table structure for nba_admin_role
-- ----------------------------
DROP TABLE IF EXISTS `nba_admin_role`;
CREATE TABLE `nba_admin_role` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`admin_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '管理员id',
`role_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '角色id',
`gmt_create` datetime(0) NULL DEFAULT NULL COMMENT '数据创建时间',
`gmt_modified` datetime(0) NULL DEFAULT NULL COMMENT '数据最后修改时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '管理员角色关联' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of nba_admin_role
-- ----------------------------
-- ----------------------------
-- Table structure for nba_permission
-- ----------------------------
DROP TABLE IF EXISTS `nba_permission`;
CREATE TABLE `nba_permission` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`NAME` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称',
`VALUE` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '值',
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
`sort` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '自定义排序序号',
`gmt_create` datetime(0) NULL DEFAULT NULL COMMENT '数据创建时间',
`gmt_modified` datetime(0) NULL DEFAULT NULL COMMENT '数据最后修改时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '权限' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of nba_permission
-- ----------------------------
-- ----------------------------
-- Table structure for nba_role
-- ----------------------------
DROP TABLE IF EXISTS `nba_role`;
CREATE TABLE `nba_role` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`NAME` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称',
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
`sort` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '自定义排序序号',
`gmt_create` datetime(0) NULL DEFAULT NULL COMMENT '数据创建时间',
`gmt_modified` datetime(0) NULL DEFAULT NULL COMMENT '数据最后修改时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of nba_role
-- ----------------------------
INSERT INTO `nba_role` VALUES (1, '超级管理员', NULL, 0, NULL, NULL);
-- ----------------------------
-- Table structure for nba_role_permission
-- ----------------------------
DROP TABLE IF EXISTS `nba_role_permission`;
CREATE TABLE `nba_role_permission` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`role_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '角色id',
`permission_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '权限id',
`gmt_create` datetime(0) NULL DEFAULT NULL COMMENT '数据创建时间',
`gmt_modified` datetime(0) NULL DEFAULT NULL COMMENT '数据最后修改时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色权限关联' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of nba_role_permission
-- ----------------------------
SET FOREIGN_KEY_CHECKS = 1;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。