You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
2.3 KiB
57 lines
2.3 KiB
5 years ago
|
-- --------------------------------------------------------
|
||
|
-- 主机: 127.0.0.1
|
||
|
-- 服务器版本: 8.0.18 - MySQL Community Server - GPL
|
||
|
-- 服务器OS: Win64
|
||
|
-- HeidiSQL 版本: 10.2.0.5599
|
||
|
-- --------------------------------------------------------
|
||
|
|
||
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||
|
/*!40101 SET NAMES utf8 */;
|
||
|
/*!50503 SET NAMES utf8mb4 */;
|
||
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
||
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
||
|
|
||
|
|
||
|
-- Dumping database structure for master
|
||
|
CREATE DATABASE IF NOT EXISTS `master` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
|
||
|
USE `master`;
|
||
|
|
||
|
-- Dumping structure for table master.user
|
||
|
CREATE TABLE IF NOT EXISTS `user` (
|
||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||
|
`username` varchar(50) NOT NULL COMMENT '用户名',
|
||
|
`password` varchar(100) DEFAULT NULL COMMENT '密码',
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='用户';
|
||
|
|
||
|
-- Dumping data for table master.user: ~0 rows (大约)
|
||
|
DELETE FROM `user`;
|
||
|
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
|
||
|
INSERT INTO `user` (`id`, `username`, `password`) VALUES
|
||
|
(1, 'admin', '123456');
|
||
|
/*!40000 ALTER TABLE `user` ENABLE KEYS */;
|
||
|
|
||
|
|
||
|
-- Dumping database structure for slave
|
||
|
CREATE DATABASE IF NOT EXISTS `slave` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
|
||
|
USE `slave`;
|
||
|
|
||
|
-- Dumping structure for table slave.menu
|
||
|
CREATE TABLE IF NOT EXISTS `menu` (
|
||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||
|
`name` varchar(50) DEFAULT NULL COMMENT '菜单名称',
|
||
|
`url` varchar(200) DEFAULT NULL COMMENT '菜单URL',
|
||
|
PRIMARY KEY (`id`)
|
||
|
) ENGINE=InnoDB AUTO_INCREMENT=311 DEFAULT CHARSET=utf8 COMMENT='菜单';
|
||
|
|
||
|
-- Dumping data for table slave.menu: ~0 rows (大约)
|
||
|
DELETE FROM `menu`;
|
||
|
/*!40000 ALTER TABLE `menu` DISABLE KEYS */;
|
||
|
INSERT INTO `menu` (`id`, `name`, `url`) VALUES
|
||
|
(1, '系统管理', 'index.html');
|
||
|
/*!40000 ALTER TABLE `menu` ENABLE KEYS */;
|
||
|
|
||
|
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
|
||
|
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
|
||
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|