1 Star 0 Fork 0

ZM / shiro测试项目

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
adminsys.sql 4.18 KB
一键复制 编辑 原始数据 按行查看 历史
ZM 提交于 2023-08-17 09:33 . 更新 2023-08-17
/*
Navicat Premium Data Transfer
Source Server : mysqllink1
Source Server Type : MySQL
Source Server Version : 80025
Source Host : localhost:3306
Source Schema : adminsys
Target Server Type : MySQL
Target Server Version : 80025
File Encoding : 65001
Date: 19/03/2023 21:26:04
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for permission
-- ----------------------------
DROP TABLE IF EXISTS `permission`;
CREATE TABLE `permission` (
`per_id` bigint NOT NULL AUTO_INCREMENT,
`per_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0',
`per_status` int NULL DEFAULT 0,
PRIMARY KEY (`per_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of permission
-- ----------------------------
INSERT INTO `permission` VALUES (1, 'user:add', 1);
INSERT INTO `permission` VALUES (2, 'user:delete', 1);
INSERT INTO `permission` VALUES (3, 'user:update', 1);
INSERT INTO `permission` VALUES (4, 'user:delete', 1);
-- ----------------------------
-- Table structure for role
-- ----------------------------
DROP TABLE IF EXISTS `role`;
CREATE TABLE `role` (
`role_id` bigint NOT NULL AUTO_INCREMENT,
`role_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`user_status` bigint NULL DEFAULT 0,
PRIMARY KEY (`role_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of role
-- ----------------------------
INSERT INTO `role` VALUES (1, 'admin', 1);
INSERT INTO `role` VALUES (2, 'simple', 1);
-- ----------------------------
-- Table structure for role_per
-- ----------------------------
DROP TABLE IF EXISTS `role_per`;
CREATE TABLE `role_per` (
`id` bigint NOT NULL AUTO_INCREMENT,
`role_id` int NULL DEFAULT 0,
`per_id` int NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of role_per
-- ----------------------------
INSERT INTO `role_per` VALUES (1, 1, 1);
INSERT INTO `role_per` VALUES (2, 1, 2);
INSERT INTO `role_per` VALUES (3, 1, 3);
INSERT INTO `role_per` VALUES (4, 1, 4);
INSERT INTO `role_per` VALUES (5, 2, 4);
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`user_id` bigint NOT NULL AUTO_INCREMENT,
`user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`user_pwd` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`sex` int NULL DEFAULT 1,
`address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`join_date` datetime NULL DEFAULT NULL,
`deleted` int NULL DEFAULT 0,
PRIMARY KEY (`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES (1, 'admin', '123', 1, '西安', '2023-01-03 13:15:43', 0);
INSERT INTO `user` VALUES (2, 'zhangsan', '123', 1, '成都金牛区5555', '2023-01-03 13:15:48', 0);
INSERT INTO `user` VALUES (3, 'lisa', '123', 0, '重庆', '2023-01-03 13:15:51', 0);
-- ----------------------------
-- Table structure for user_role
-- ----------------------------
DROP TABLE IF EXISTS `user_role`;
CREATE TABLE `user_role` (
`id` bigint NOT NULL AUTO_INCREMENT,
`user_id` int NULL DEFAULT 0,
`role_id` int NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of user_role
-- ----------------------------
INSERT INTO `user_role` VALUES (1, 1, 1);
INSERT INTO `user_role` VALUES (2, 1, 2);
INSERT INTO `user_role` VALUES (3, 2, 2);
INSERT INTO `user_role` VALUES (4, 3, 2);
SET FOREIGN_KEY_CHECKS = 1;
Java
1
https://gitee.com/ZMXwan/shiro-testing-project.git
git@gitee.com:ZMXwan/shiro-testing-project.git
ZMXwan
shiro-testing-project
shiro测试项目
master

搜索帮助