-
Notifications
You must be signed in to change notification settings - Fork 4
/
mysql-initdb.yml
262 lines (262 loc) · 21.6 KB
/
mysql-initdb.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
apiVersion: v1
kind: ConfigMap
metadata:
name: mysql-initdb
namespace: default
data:
AspNetCoreWebApi.sql: "-- MySQL dump 10.13 Distrib 8.0.16, for Linux
(x86_64)\n--\n-- Host: localhost Database: AspNetCoreWebApi\n-- ------------------------------------------------------\n--
Server version\t8.0.16\n\n/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT
*/;\n/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;\n/*!40101
SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;\n SET NAMES utf8mb4 ;\n/*!40103
SET @OLD_TIME_ZONE=@@TIME_ZONE */;\n/*!40103 SET TIME_ZONE='+00:00' */;\n/*!40014
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;\n/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS,
FOREIGN_KEY_CHECKS=0 */;\n/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO'
*/;\n/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;\n\n--\n-- Table
structure for table `AspNetRoleClaims`\n--\n\nDROP TABLE IF EXISTS `AspNetRoleClaims`;\n/*!40101
SET @saved_cs_client = @@character_set_client */;\n SET character_set_client
= utf8mb4 ;\nCREATE TABLE `AspNetRoleClaims` (\n `Id` int(11) NOT NULL AUTO_INCREMENT,\n
\ `RoleId` varchar(85) NOT NULL,\n `ClaimType` text,\n `ClaimValue` text,\n
\ PRIMARY KEY (`Id`),\n KEY `IX_AspNetRoleClaims_RoleId` (`RoleId`),\n CONSTRAINT
`FK_AspNetRoleClaims_AspNetRoles_RoleId` FOREIGN KEY (`RoleId`) REFERENCES `AspNetRoles`
(`Id`) ON DELETE CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n/*!40101
SET character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for
table `AspNetRoles`\n--\n\nDROP TABLE IF EXISTS `AspNetRoles`;\n/*!40101 SET @saved_cs_client
\ = @@character_set_client */;\n SET character_set_client = utf8mb4 ;\nCREATE
TABLE `AspNetRoles` (\n `Id` varchar(85) NOT NULL,\n `Name` varchar(256) DEFAULT
NULL,\n `NormalizedName` varchar(85) DEFAULT NULL,\n `ConcurrencyStamp` text,\n
\ PRIMARY KEY (`Id`),\n UNIQUE KEY `RoleNameIndex` (`NormalizedName`)\n) ENGINE=InnoDB
DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n/*!40101 SET character_set_client
= @saved_cs_client */;\n\n--\n-- Table structure for table `AspNetUserClaims`\n--\n\nDROP
TABLE IF EXISTS `AspNetUserClaims`;\n/*!40101 SET @saved_cs_client = @@character_set_client
*/;\n SET character_set_client = utf8mb4 ;\nCREATE TABLE `AspNetUserClaims` (\n
\ `Id` int(11) NOT NULL AUTO_INCREMENT,\n `UserId` varchar(85) NOT NULL,\n `ClaimType`
text,\n `ClaimValue` text,\n PRIMARY KEY (`Id`),\n KEY `IX_AspNetUserClaims_UserId`
(`UserId`),\n CONSTRAINT `FK_AspNetUserClaims_AspNetUsers_UserId` FOREIGN KEY
(`UserId`) REFERENCES `AspNetUsers` (`Id`) ON DELETE CASCADE\n) ENGINE=InnoDB
AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n/*!40101
SET character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for
table `AspNetUserLogins`\n--\n\nDROP TABLE IF EXISTS `AspNetUserLogins`;\n/*!40101
SET @saved_cs_client = @@character_set_client */;\n SET character_set_client
= utf8mb4 ;\nCREATE TABLE `AspNetUserLogins` (\n `LoginProvider` varchar(85)
NOT NULL,\n `ProviderKey` varchar(85) NOT NULL,\n `ProviderDisplayName` text,\n
\ `UserId` varchar(85) NOT NULL,\n PRIMARY KEY (`LoginProvider`,`ProviderKey`),\n
\ KEY `IX_AspNetUserLogins_UserId` (`UserId`),\n CONSTRAINT `FK_AspNetUserLogins_AspNetUsers_UserId`
FOREIGN KEY (`UserId`) REFERENCES `AspNetUsers` (`Id`) ON DELETE CASCADE\n) ENGINE=InnoDB
DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n/*!40101 SET character_set_client
= @saved_cs_client */;\n\n--\n-- Table structure for table `AspNetUserRoles`\n--\n\nDROP
TABLE IF EXISTS `AspNetUserRoles`;\n/*!40101 SET @saved_cs_client = @@character_set_client
*/;\n SET character_set_client = utf8mb4 ;\nCREATE TABLE `AspNetUserRoles` (\n
\ `UserId` varchar(85) NOT NULL,\n `RoleId` varchar(85) NOT NULL,\n PRIMARY
KEY (`UserId`,`RoleId`),\n KEY `IX_AspNetUserRoles_RoleId` (`RoleId`),\n CONSTRAINT
`FK_AspNetUserRoles_AspNetRoles_RoleId` FOREIGN KEY (`RoleId`) REFERENCES `AspNetRoles`
(`Id`) ON DELETE CASCADE,\n CONSTRAINT `FK_AspNetUserRoles_AspNetUsers_UserId`
FOREIGN KEY (`UserId`) REFERENCES `AspNetUsers` (`Id`) ON DELETE CASCADE\n) ENGINE=InnoDB
DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n/*!40101 SET character_set_client
= @saved_cs_client */;\n\n--\n-- Table structure for table `AspNetUserTokens`\n--\n\nDROP
TABLE IF EXISTS `AspNetUserTokens`;\n/*!40101 SET @saved_cs_client = @@character_set_client
*/;\n SET character_set_client = utf8mb4 ;\nCREATE TABLE `AspNetUserTokens` (\n
\ `UserId` varchar(85) NOT NULL,\n `LoginProvider` varchar(85) NOT NULL,\n `Name`
varchar(85) NOT NULL,\n `Value` text,\n PRIMARY KEY (`UserId`,`LoginProvider`,`Name`),\n
\ CONSTRAINT `FK_AspNetUserTokens_AspNetUsers_UserId` FOREIGN KEY (`UserId`) REFERENCES
`AspNetUsers` (`Id`) ON DELETE CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_0900_ai_ci;\n/*!40101 SET character_set_client = @saved_cs_client
*/;\n\n--\n-- Table structure for table `AspNetUsers`\n--\n\nDROP TABLE IF EXISTS
`AspNetUsers`;\n/*!40101 SET @saved_cs_client = @@character_set_client */;\n
SET character_set_client = utf8mb4 ;\nCREATE TABLE `AspNetUsers` (\n `Id` varchar(85)
NOT NULL,\n `UserName` varchar(256) DEFAULT NULL,\n `NormalizedUserName` varchar(256)
DEFAULT NULL,\n `Email` varchar(256) DEFAULT NULL,\n `NormalizedEmail` varchar(256)
DEFAULT NULL,\n `EmailConfirmed` smallint(6) NOT NULL,\n `PasswordHash` text,\n
\ `SecurityStamp` text,\n `ConcurrencyStamp` text,\n `PhoneNumber` text,\n `PhoneNumberConfirmed`
smallint(6) NOT NULL,\n `TwoFactorEnabled` smallint(6) NOT NULL,\n `LockoutEnd`
timestamp NULL DEFAULT NULL,\n `LockoutEnabled` smallint(6) NOT NULL,\n `AccessFailedCount`
int(11) NOT NULL,\n `FirstName` text,\n `LastName` text,\n PRIMARY KEY (`Id`),\n
\ UNIQUE KEY `UserNameIndex` (`NormalizedUserName`),\n KEY `EmailIndex` (`NormalizedEmail`)\n)
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n/*!40101 SET
character_set_client = @saved_cs_client */;\n\n--\n-- Table structure for table
`IdentityUser`\n--\n\nDROP TABLE IF EXISTS `IdentityUser`;\n/*!40101 SET @saved_cs_client
\ = @@character_set_client */;\n SET character_set_client = utf8mb4 ;\nCREATE
TABLE `IdentityUser` (\n `Id` varchar(85) NOT NULL,\n `UserName` text,\n `NormalizedUserName`
varchar(85) DEFAULT NULL,\n `Email` text,\n `NormalizedEmail` varchar(85) DEFAULT
NULL,\n `EmailConfirmed` smallint(6) NOT NULL,\n `PasswordHash` text,\n `SecurityStamp`
text,\n `ConcurrencyStamp` text,\n `PhoneNumber` text,\n `PhoneNumberConfirmed`
smallint(6) NOT NULL,\n `TwoFactorEnabled` smallint(6) NOT NULL,\n `LockoutEnd`
timestamp NULL DEFAULT NULL,\n `LockoutEnabled` smallint(6) NOT NULL,\n `AccessFailedCount`
int(11) NOT NULL,\n PRIMARY KEY (`Id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_0900_ai_ci;\n/*!40101 SET character_set_client = @saved_cs_client
*/;\n\n--\n-- Table structure for table `RefreshTokens`\n--\n\nDROP TABLE IF EXISTS
`RefreshTokens`;\n/*!40101 SET @saved_cs_client = @@character_set_client */;\n
SET character_set_client = utf8mb4 ;\nCREATE TABLE `RefreshTokens` (\n `Id` int(11)
NOT NULL AUTO_INCREMENT,\n `Created` timestamp NOT NULL,\n `Modified` timestamp
NOT NULL,\n `Token` text,\n `Expires` timestamp NOT NULL,\n `UserId` int(11)
NOT NULL,\n `RemoteIpAddress` text,\n PRIMARY KEY (`Id`),\n KEY `IX_RefreshTokens_UserId`
(`UserId`),\n CONSTRAINT `FK_RefreshTokens_Users_UserId` FOREIGN KEY (`UserId`)
REFERENCES `Users` (`Id`) ON DELETE CASCADE\n) ENGINE=InnoDB AUTO_INCREMENT=36
DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n/*!40101 SET character_set_client
= @saved_cs_client */;\n\n--\n-- Table structure for table `Users`\n--\n\nDROP
TABLE IF EXISTS `Users`;\n/*!40101 SET @saved_cs_client = @@character_set_client
*/;\n SET character_set_client = utf8mb4 ;\nCREATE TABLE `Users` (\n `Id` int(11)
NOT NULL AUTO_INCREMENT,\n `Created` timestamp NOT NULL,\n `Modified` timestamp
NOT NULL,\n `FirstName` text,\n `LastName` text,\n `IdentityId` text,\n `UserName`
text,\n PRIMARY KEY (`Id`)\n) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_0900_ai_ci;\n/*!40101 SET character_set_client = @saved_cs_client
*/;\n\n--\n-- Table structure for table `__EFMigrationsHistory`\n--\n\nDROP TABLE
IF EXISTS `__EFMigrationsHistory`;\n/*!40101 SET @saved_cs_client = @@character_set_client
*/;\n SET character_set_client = utf8mb4 ;\nCREATE TABLE `__EFMigrationsHistory`
(\n `MigrationId` varchar(150) NOT NULL,\n `ProductVersion` varchar(32) NOT
NULL,\n PRIMARY KEY (`MigrationId`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_0900_ai_ci;\n/*!40101 SET character_set_client = @saved_cs_client
*/;\n/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;\n\n/*!40101 SET SQL_MODE=@OLD_SQL_MODE
*/;\n/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;\n/*!40014 SET
UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;\n/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT
*/;\n/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;\n/*!40101
SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;\n/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES
*/;\n\n-- Dump completed on 2019-06-16 19:30:27\n"
library.sql: "-- MySQL dump 10.13 Distrib 8.0.26, for Linux (x86_64)\n--\n-- Host:
localhost Database: library\n-- ------------------------------------------------------\n--
Server version\t8.0.26\n\n/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT
*/;\n/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;\n/*!40101
SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;\n/*!50503 SET NAMES utf8mb4
*/;\n/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;\n/*!40103 SET TIME_ZONE='+00:00'
*/;\n/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;\n/*!40014
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;\n/*!40101
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;\n/*!40111 SET
@OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;\n\n--\n-- Table structure for table
`alembic_version`\n--\n\nDROP TABLE IF EXISTS `alembic_version`;\n/*!40101 SET
@saved_cs_client = @@character_set_client */;\n/*!50503 SET character_set_client
= utf8mb4 */;\nCREATE TABLE `alembic_version` (\n `version_num` varchar(32) NOT
NULL,\n PRIMARY KEY (`version_num`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_0900_ai_ci;\n/*!40101 SET character_set_client = @saved_cs_client
*/;\n\n--\n-- Dumping data for table `alembic_version`\n--\n\nLOCK TABLES `alembic_version`
WRITE;\n/*!40000 ALTER TABLE `alembic_version` DISABLE KEYS */;\nINSERT INTO `alembic_version`
VALUES ('c8fac49602e6');\n/*!40000 ALTER TABLE `alembic_version` ENABLE KEYS */;\nUNLOCK
TABLES;\n\n--\n-- Table structure for table `authors`\n--\n\nDROP TABLE IF EXISTS
`authors`;\n/*!40101 SET @saved_cs_client = @@character_set_client */;\n/*!50503
SET character_set_client = utf8mb4 */;\nCREATE TABLE `authors` (\n `id` int NOT
NULL AUTO_INCREMENT,\n `firstname` varchar(128) NOT NULL,\n `lastname` varchar(128)
NOT NULL,\n `email` varchar(255) NOT NULL,\n `phone` varchar(15) DEFAULT NULL,\n
\ `created_at` datetime DEFAULT NULL,\n `modified_at` datetime DEFAULT NULL,\n
\ PRIMARY KEY (`id`),\n UNIQUE KEY `ix_authors_email` (`email`),\n UNIQUE KEY
`ix_authors_phone` (`phone`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n/*!40101
SET character_set_client = @saved_cs_client */;\n\n--\n-- Dumping data for table
`authors`\n--\n\nLOCK TABLES `authors` WRITE;\n/*!40000 ALTER TABLE `authors`
DISABLE KEYS */;\n/*!40000 ALTER TABLE `authors` ENABLE KEYS */;\nUNLOCK TABLES;\n\n--\n--
Table structure for table `books`\n--\n\nDROP TABLE IF EXISTS `books`;\n/*!40101
SET @saved_cs_client = @@character_set_client */;\n/*!50503 SET character_set_client
= utf8mb4 */;\nCREATE TABLE `books` (\n `id` int NOT NULL AUTO_INCREMENT,\n `title`
varchar(128) NOT NULL,\n `isbn` varchar(255) NOT NULL,\n `page_count` int NOT
NULL,\n `created_at` datetime DEFAULT NULL,\n `modified_at` datetime DEFAULT
NULL,\n `author_id` int NOT NULL,\n PRIMARY KEY (`id`),\n KEY `author_id` (`author_id`),\n
\ CONSTRAINT `books_ibfk_1` FOREIGN KEY (`author_id`) REFERENCES `authors` (`id`)\n)
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n/*!40101 SET
character_set_client = @saved_cs_client */;\n\n--\n-- Dumping data for table `books`\n--\n\nLOCK
TABLES `books` WRITE;\n/*!40000 ALTER TABLE `books` DISABLE KEYS */;\n/*!40000
ALTER TABLE `books` ENABLE KEYS */;\nUNLOCK TABLES;\n\n--\n-- Table structure
for table `users`\n--\n\nDROP TABLE IF EXISTS `users`;\n/*!40101 SET @saved_cs_client
\ = @@character_set_client */;\n/*!50503 SET character_set_client = utf8mb4
*/;\nCREATE TABLE `users` (\n `id` int NOT NULL AUTO_INCREMENT,\n `firstname`
varchar(128) NOT NULL,\n `lastname` varchar(128) NOT NULL,\n `email` varchar(255)
NOT NULL,\n `phone` varchar(15) DEFAULT NULL,\n `password` varchar(128) DEFAULT
NULL,\n `created_at` datetime DEFAULT NULL,\n `modified_at` datetime DEFAULT
NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `ix_users_email` (`email`),\n UNIQUE
KEY `ix_users_phone` (`phone`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n/*!40101
SET character_set_client = @saved_cs_client */;\n\n--\n-- Dumping data for table
`users`\n--\n\nLOCK TABLES `users` WRITE;\n/*!40000 ALTER TABLE `users` DISABLE
KEYS */;\n/*!40000 ALTER TABLE `users` ENABLE KEYS */;\nUNLOCK TABLES;\n/*!40103
SET TIME_ZONE=@OLD_TIME_ZONE */;\n\n/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;\n/*!40014
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;\n/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS
*/;\n/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;\n/*!40101
SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;\n/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION
*/;\n/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;\n\n-- Dump completed on 2021-09-27
10:45:57\n"
library.sql: "-- MySQL dump 10.13 Distrib 8.0.26, for Linux (x86_64)\n--\n-- Host:
localhost Database: library\n-- ------------------------------------------------------\n--
Server version\t8.0.26\n\n/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT
*/;\n/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;\n/*!40101
SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;\n/*!50503 SET NAMES utf8mb4
*/;\n/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;\n/*!40103 SET TIME_ZONE='+00:00'
*/;\n/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;\n/*!40014
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;\n/*!40101
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;\n/*!40111 SET
@OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;\n\n--\n-- Table structure for table
`alembic_version`\n--\n\nDROP TABLE IF EXISTS `alembic_version`;\n/*!40101 SET
@saved_cs_client = @@character_set_client */;\n/*!50503 SET character_set_client
= utf8mb4 */;\nCREATE TABLE `alembic_version` (\n `version_num` varchar(32) NOT
NULL,\n PRIMARY KEY (`version_num`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_0900_ai_ci;\n/*!40101 SET character_set_client = @saved_cs_client
*/;\n\n--\n-- Dumping data for table `alembic_version`\n--\n\nLOCK TABLES `alembic_version`
WRITE;\n/*!40000 ALTER TABLE `alembic_version` DISABLE KEYS */;\nINSERT INTO `alembic_version`
VALUES ('f5dadd6b2c17');\n/*!40000 ALTER TABLE `alembic_version` ENABLE KEYS */;\nUNLOCK
TABLES;\n\n--\n-- Table structure for table `authors`\n--\n\nDROP TABLE IF EXISTS
`authors`;\n/*!40101 SET @saved_cs_client = @@character_set_client */;\n/*!50503
SET character_set_client = utf8mb4 */;\nCREATE TABLE `authors` (\n `id` int NOT
NULL AUTO_INCREMENT,\n `firstname` varchar(128) NOT NULL,\n `lastname` varchar(128)
NOT NULL,\n `email` varchar(255) NOT NULL,\n `phone` varchar(15) DEFAULT NULL,\n
\ `created_at` datetime DEFAULT NULL,\n `modified_at` datetime DEFAULT NULL,\n
\ PRIMARY KEY (`id`),\n UNIQUE KEY `ix_authors_email` (`email`),\n UNIQUE KEY
`ix_authors_phone` (`phone`)\n) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_0900_ai_ci;\n/*!40101 SET character_set_client = @saved_cs_client
*/;\n\n--\n-- Dumping data for table `authors`\n--\n\nLOCK TABLES `authors` WRITE;\n/*!40000
ALTER TABLE `authors` DISABLE KEYS */;\nINSERT INTO `authors` VALUES (1,'JK','Rowing','[email protected]','+49123456789','2021-09-28
05:31:56','2021-09-28 05:31:56'),(2,'Nick','Bostrom','[email protected]','+49987654321','2021-09-29
02:48:54','2021-09-29 02:48:54'),(3,'Chade Meng','Tan','[email protected]','+123456789','2021-09-29
03:45:09','2021-09-29 03:45:09');\n/*!40000 ALTER TABLE `authors` ENABLE KEYS
*/;\nUNLOCK TABLES;\n\n--\n-- Table structure for table `books`\n--\n\nDROP TABLE
IF EXISTS `books`;\n/*!40101 SET @saved_cs_client = @@character_set_client
*/;\n/*!50503 SET character_set_client = utf8mb4 */;\nCREATE TABLE `books` (\n
\ `id` int NOT NULL AUTO_INCREMENT,\n `title` varchar(128) NOT NULL,\n `isbn`
varchar(255) NOT NULL,\n `page_count` int NOT NULL,\n `created_at` datetime
DEFAULT NULL,\n `modified_at` datetime DEFAULT NULL,\n `author_id` int NOT NULL,\n
\ PRIMARY KEY (`id`),\n KEY `author_id` (`author_id`),\n CONSTRAINT `books_ibfk_1`
FOREIGN KEY (`author_id`) REFERENCES `authors` (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=4
DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n/*!40101 SET character_set_client
= @saved_cs_client */;\n\n--\n-- Dumping data for table `books`\n--\n\nLOCK TABLES
`books` WRITE;\n/*!40000 ALTER TABLE `books` DISABLE KEYS */;\nINSERT INTO `books`
VALUES (1,'Harry Porter','978-0-596-52068-7',123,'2021-09-28 05:32:12','2021-09-28
05:32:12',1),(2,'Superintelligence','978-1-501-22774-5',350,'2021-09-29 02:56:57','2021-09-29
02:56:57',2),(3,'Search Inside Yourself','0062116932',350,'2021-09-29 03:45:48','2021-09-29
03:45:48',3);\n/*!40000 ALTER TABLE `books` ENABLE KEYS */;\nUNLOCK TABLES;\n\n--\n--
Table structure for table `users`\n--\n\nDROP TABLE IF EXISTS `users`;\n/*!40101
SET @saved_cs_client = @@character_set_client */;\n/*!50503 SET character_set_client
= utf8mb4 */;\nCREATE TABLE `users` (\n `id` int NOT NULL AUTO_INCREMENT,\n `firstname`
varchar(128) NOT NULL,\n `lastname` varchar(128) NOT NULL,\n `email` varchar(255)
NOT NULL,\n `phone` varchar(15) DEFAULT NULL,\n `password` varchar(128) DEFAULT
NULL,\n `created_at` datetime DEFAULT NULL,\n `modified_at` datetime DEFAULT
NULL,\n `lastlogin` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY
`ix_users_email` (`email`),\n UNIQUE KEY `ix_users_phone` (`phone`)\n) ENGINE=InnoDB
AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n/*!40101
SET character_set_client = @saved_cs_client */;\n\n--\n-- Dumping data for table
`users`\n--\n\nLOCK TABLES `users` WRITE;\n/*!40000 ALTER TABLE `users` DISABLE
KEYS */;\nINSERT INTO `users` VALUES (4,'Kok How','Teh','[email protected]',NULL,'$2b$10$Elwn.qDv5W7v0SI98n8IZev.B0xEO0pX/WJbecKDyMMYdS3Z3Gt.W','2021-09-28
05:31:03','2021-09-29 04:08:52','2021-09-29 04:08:53'),(5,'Mickey','Mouse','[email protected]',NULL,'$2b$10$Pd6DOA8S03P8Su6PhrzbY.ImbV1zFMNQjBJqRxWmHTz6xm84dqhuq','2021-09-28
05:31:37','2021-09-28 05:31:37',NULL);\n/*!40000 ALTER TABLE `users` ENABLE KEYS
*/;\nUNLOCK TABLES;\n/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;\n\n/*!40101 SET
SQL_MODE=@OLD_SQL_MODE */;\n/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS
*/;\n/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;\n/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT
*/;\n/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;\n/*!40101
SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;\n/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES
*/;\n\n-- Dump completed on 2021-09-29 4:11:46\n"
school.sql: "CREATE TABLE `teachers` (\n
`id` int(11) NOT NULL AUTO_INCREMENT,\n
`email` varchar(320) NOT NULL,\n
PRIMARY KEY (`id`),\n
UNIQUE KEY `id_UNIQUE` (`id`),\n
KEY `Non-Clustered` (`email`)\n
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n
CREATE TABLE `students` (\n
`id` int(11) NOT NULL AUTO_INCREMENT,\n
`email` varchar(320) NOT NULL,\n
`isSuspended` tinyint(4) NOT NULL DEFAULT '0',\n
UNIQUE KEY `id_UNIQUE` (`id`),\n
KEY `Non-Clustered` (`email`)\n
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;\n
CREATE TABLE `teacher_student` (\n
`id` int(11) NOT NULL AUTO_INCREMENT,\n
`teacherid` int(11) NOT NULL,\n
`studentid` int(11) NOT NULL,\n
PRIMARY KEY (`id`),\n
KEY `teacherid_idx` (`teacherid`),\n
KEY `studentid_idx` (`studentid`),\n
CONSTRAINT `studentid` FOREIGN KEY (`studentid`) REFERENCES `students` (`id`),\n
CONSTRAINT `teacherid` FOREIGN KEY (`teacherid`) REFERENCES `teachers` (`id`)\n
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;"