-
Notifications
You must be signed in to change notification settings - Fork 0
/
db.sql
360 lines (305 loc) · 12.7 KB
/
db.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
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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
-- MySQL dump 10.13 Distrib 5.5.38, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: disaggregator
-- ------------------------------------------------------
-- Server version 5.5.38-0ubuntu0.14.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!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' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `author`
--
DROP TABLE IF EXISTS `author`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `author` (
`AuthorID` int(11) NOT NULL AUTO_INCREMENT,
`Name` varchar(100) NOT NULL,
`UserID` int(11) NOT NULL,
PRIMARY KEY (`AuthorID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `author`
--
LOCK TABLES `author` WRITE;
/*!40000 ALTER TABLE `author` DISABLE KEYS */;
INSERT INTO `author` VALUES (1,'Will Fyson',1);
/*!40000 ALTER TABLE `author` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `compound`
--
DROP TABLE IF EXISTS `compound`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `compound` (
`CompoundID` int(11) NOT NULL AUTO_INCREMENT,
`Name` varchar(255) NOT NULL,
`Description` varchar(100) NOT NULL,
`MolFile` varchar(255) NOT NULL,
PRIMARY KEY (`CompoundID`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `compound`
--
LOCK TABLES `compound` WRITE;
/*!40000 ALTER TABLE `compound` DISABLE KEYS */;
INSERT INTO `compound` VALUES (2,'N-(Dec-9-en-3-yn-1-yl)-N-(hex-1-yn-1-yl)-4-methylbenzenesulfonamide','Compound 131b in A.Henderson\'s thesis','Structure_131b.mol'),(3,'N-(Hex-1-yn-1-yl)-N-(2-(hex-1-yn-1-yl)phenyl)-4-methylbenzenesulfonamide','Compound 110b in A.Henderson\'s thesis','Structure_110b.mol');
/*!40000 ALTER TABLE `compound` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `compound_reference`
--
DROP TABLE IF EXISTS `compound_reference`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `compound_reference` (
`CompoundReferenceID` int(11) NOT NULL AUTO_INCREMENT,
`CompoundID` int(11) NOT NULL,
`ReferenceID` int(11) NOT NULL,
PRIMARY KEY (`CompoundReferenceID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `compound_reference`
--
LOCK TABLES `compound_reference` WRITE;
/*!40000 ALTER TABLE `compound_reference` DISABLE KEYS */;
INSERT INTO `compound_reference` VALUES (1,2,1);
/*!40000 ALTER TABLE `compound_reference` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `compound_spectra`
--
DROP TABLE IF EXISTS `compound_spectra`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `compound_spectra` (
`CompoundSpectraID` int(11) NOT NULL AUTO_INCREMENT,
`CompoundID` int(11) NOT NULL,
`SpectraID` int(11) NOT NULL,
PRIMARY KEY (`CompoundSpectraID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `compound_spectra`
--
LOCK TABLES `compound_spectra` WRITE;
/*!40000 ALTER TABLE `compound_spectra` DISABLE KEYS */;
INSERT INTO `compound_spectra` VALUES (1,2,1);
/*!40000 ALTER TABLE `compound_spectra` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `compound_tag`
--
DROP TABLE IF EXISTS `compound_tag`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `compound_tag` (
`CompoundTagID` int(11) NOT NULL AUTO_INCREMENT,
`CompoundID` int(11) NOT NULL,
`TagID` int(11) NOT NULL,
PRIMARY KEY (`CompoundTagID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `compound_tag`
--
LOCK TABLES `compound_tag` WRITE;
/*!40000 ALTER TABLE `compound_tag` DISABLE KEYS */;
INSERT INTO `compound_tag` VALUES (1,2,1);
/*!40000 ALTER TABLE `compound_tag` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `reaction`
--
DROP TABLE IF EXISTS `reaction`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reaction` (
`ReactionID` int(11) NOT NULL AUTO_INCREMENT,
`Transformation` varchar(255) NOT NULL,
`Result` int(11) NOT NULL,
`Procedure` mediumtext NOT NULL,
PRIMARY KEY (`ReactionID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `reaction`
--
LOCK TABLES `reaction` WRITE;
/*!40000 ALTER TABLE `reaction` DISABLE KEYS */;
INSERT INTO `reaction` VALUES (1,'Zirconocene mediated cocyclisations of ynamides',2,'General procedure A (see below) with N-(Dec-9-en-3-yn-1-yl)-4-methylbenzenesulfonamide (706 mg, 2.3 mmol) and 1-Bromohex-1-yne (403 mg, 2.5 mmol). Purification by column chromatography (SiO2, hexane/Et2O 9:1) gave the title compound as a yellow oil (628 mg, 71%).\r\n\r\n \r\n\r\n \r\n\r\nGeneral Procedure A:\r\n\r\nA solution of the appropriate sulfonamide (1 eq.) and the appropriate bromide (1.1 eq.) in DMF (35 mL) was added to K2CO3 (2 eq.), CuSO4.5H2O (0.1 eq.) and 1,10-phenanthroline (0.2 eq.). The reaction mixture was stirred at 65 °C for 16 h. The reaction mixture was poured into water (200 mL) and extracted with ether (3 × 50 mL). The organic extracts were combined, washed with water (2 × 100 mL), dried (MgSO4), filtered and the solvent removed in vacuo to give the crude product, which was purified as described.');
/*!40000 ALTER TABLE `reaction` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `reaction_author`
--
DROP TABLE IF EXISTS `reaction_author`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reaction_author` (
`ReactionAuthorID` int(11) NOT NULL AUTO_INCREMENT,
`ReactionID` int(11) NOT NULL,
`AuthorID` int(11) NOT NULL,
`Role` varchar(45) NOT NULL,
`Comment` varchar(255) NOT NULL,
PRIMARY KEY (`ReactionAuthorID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `reaction_author`
--
LOCK TABLES `reaction_author` WRITE;
/*!40000 ALTER TABLE `reaction_author` DISABLE KEYS */;
INSERT INTO `reaction_author` VALUES (1,1,1,'Doer','This was great fun!');
/*!40000 ALTER TABLE `reaction_author` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `reaction_reference`
--
DROP TABLE IF EXISTS `reaction_reference`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reaction_reference` (
`ReactionReferenceID` int(11) NOT NULL AUTO_INCREMENT,
`ReactionID` int(11) NOT NULL,
`ReferenceID` int(11) NOT NULL,
PRIMARY KEY (`ReactionReferenceID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `reaction_reference`
--
LOCK TABLES `reaction_reference` WRITE;
/*!40000 ALTER TABLE `reaction_reference` DISABLE KEYS */;
INSERT INTO `reaction_reference` VALUES (1,1,1);
/*!40000 ALTER TABLE `reaction_reference` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `reaction_tag`
--
DROP TABLE IF EXISTS `reaction_tag`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reaction_tag` (
`ReactionTagID` int(11) NOT NULL AUTO_INCREMENT,
`ReactionID` int(11) NOT NULL,
`TagID` int(11) NOT NULL,
PRIMARY KEY (`ReactionTagID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `reaction_tag`
--
LOCK TABLES `reaction_tag` WRITE;
/*!40000 ALTER TABLE `reaction_tag` DISABLE KEYS */;
INSERT INTO `reaction_tag` VALUES (1,1,2);
/*!40000 ALTER TABLE `reaction_tag` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `reference`
--
DROP TABLE IF EXISTS `reference`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reference` (
`ReferenceID` int(11) NOT NULL AUTO_INCREMENT,
`RefFile` varchar(255) NOT NULL,
`UploaderID` int(11) DEFAULT NULL,
PRIMARY KEY (`ReferenceID`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `reference`
--
LOCK TABLES `reference` WRITE;
/*!40000 ALTER TABLE `reference` DISABLE KEYS */;
INSERT INTO `reference` VALUES (17,'disaggregator_test.docx',1),(18,'transfer4.docx',1);
/*!40000 ALTER TABLE `reference` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `spectra`
--
DROP TABLE IF EXISTS `spectra`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `spectra` (
`SpectraID` int(11) NOT NULL AUTO_INCREMENT,
`Type` varchar(100) NOT NULL,
`Comment` varchar(255) NOT NULL,
`JCAMPFile` varchar(255) NOT NULL,
`Image` varchar(255) NOT NULL,
PRIMARY KEY (`SpectraID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `spectra`
--
LOCK TABLES `spectra` WRITE;
/*!40000 ALTER TABLE `spectra` DISABLE KEYS */;
INSERT INTO `spectra` VALUES (1,'HNMR','1H NMR: dH (300 MHz, CDCl3) 7.71 (2H, d, J 8.1 Hz, H-18), 7.25 (2H, d, J 8.1 Hz, H?19), 5.72 (1H, ddt, J 17.0, 10.3, 6.6 Hz, H-15), 5.03–4.74 (2H, m, H-16), 3.33 (2H, t, J 8.1 Hz, H-7), 2.46–2.29 (2H, m, H-8), 2.37 (3H, s, H-21), 2.17 (2H, t, J 7.0 Hz, H-','HNMR_131b.jdx','HNMR_131b.pdf');
/*!40000 ALTER TABLE `spectra` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tag`
--
DROP TABLE IF EXISTS `tag`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tag` (
`TagID` int(11) NOT NULL AUTO_INCREMENT,
`Keyword` varchar(45) NOT NULL,
PRIMARY KEY (`TagID`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tag`
--
LOCK TABLES `tag` WRITE;
/*!40000 ALTER TABLE `tag` DISABLE KEYS */;
INSERT INTO `tag` VALUES (1,'acid'),(2,'oxidation');
/*!40000 ALTER TABLE `tag` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
`user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'auto incrementing user_id of each user, unique index',
`user_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL COMMENT 'user''s name, unique',
`user_password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'user''s password in salted and hashed format',
`user_email` varchar(64) COLLATE utf8_unicode_ci NOT NULL COMMENT 'user''s email, unique',
PRIMARY KEY (`user_id`),
UNIQUE KEY `user_name` (`user_name`),
UNIQUE KEY `user_email` (`user_email`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='user data';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `users`
--
LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,'rwf1v07','$2y$10$nfB3KXYZSFtrlXZ.N6TsV./AY76ZHk8l3ZixG175EMWgg.7iQu/Te','[email protected]'),(2,'test','$2y$10$riFqQ0/UzvLbTLWghGtIaeDqd6onxoY5x6XFCSBP7SK/3qdMNNL36','[email protected]');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2014-07-24 15:19:19