-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinitial_account_ms.sql
40 lines (35 loc) · 1.82 KB
/
initial_account_ms.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
-- --------------------------------------------------------
-- 主機: 127.0.0.1
-- 服務器版本: 5.6.28-log - MySQL Community Server (GPL)
-- 服務器操作系統: Win64
-- HeidiSQL 版本: 9.3.0.4984
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 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' */;
-- 導出 account_ms 的資料庫結構
DROP DATABASE IF EXISTS `account_ms`;
CREATE DATABASE IF NOT EXISTS `account_ms` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `account_ms`;
-- 導出 表 account_ms.user 結構
DROP TABLE IF EXISTS `user`;
CREATE TABLE IF NOT EXISTS `user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`email` varchar(255) DEFAULT NULL,
`enabled` bit(1) NOT NULL,
`password` varchar(255) DEFAULT NULL,
`systemrole` bit(1) NOT NULL,
`username` varchar(255) NOT NULL,
`nickname` varchar(255) NOT NULL DEFAULT 'username',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- 正在導出表 account_ms.user 的資料:~0 rows (大約)
DELETE FROM `user`;
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
INSERT INTO `user` (`id`, `email`, `enabled`, `password`, `systemrole`, `username`, `nickname`) VALUES
(1, '[email protected]', b'1', '$2a$10$0DRUh2uIJZu6gqfwLFch2OgU0yrKeSymMP9mbOumxSgdlj/zdAMlG', b'1', 'admin', 'admin');
/*!40000 ALTER TABLE `user` 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 */;