7 Star 0 Fork 0

VodkaSoda/new_bee_db

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
new_bee_admin.sql 6.03 KB
一键复制 编辑 原始数据 按行查看 历史
VodkaSoda 提交于 2022-06-14 12:04 . 初始上传
/*
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;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/vodkasoda/new_bee_db.git
git@gitee.com:vodkasoda/new_bee_db.git
vodkasoda
new_bee_db
new_bee_db
master

搜索帮助