-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatabase_creation.sql
477 lines (423 loc) · 18.2 KB
/
database_creation.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
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
--
-- Table structure for table `Classrooms`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Classrooms` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Contacts`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Contacts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
`email` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
`mobile_phone` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
`job` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
`student1` int(11) DEFAULT NULL,
`student2` int(11) DEFAULT NULL,
`student3` int(11) DEFAULT NULL,
`student4` int(11) DEFAULT NULL,
`student5` int(11) DEFAULT NULL,
`notes` longtext COLLATE utf8_spanish_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_Contacts_1_idx` (`student1`),
KEY `fk_Contacts_2_idx` (`student2`),
KEY `fk_Contacts_3_idx` (`student3`),
KEY `fk_Contacts_4_idx` (`student4`),
CONSTRAINT `fk_Contacts_1` FOREIGN KEY (`student1`) REFERENCES `Students` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_Contacts_2` FOREIGN KEY (`student2`) REFERENCES `Students` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_Contacts_3` FOREIGN KEY (`student3`) REFERENCES `Students` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_Contacts_4` FOREIGN KEY (`student4`) REFERENCES `Students` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=253 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `DeletedEvents`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `DeletedEvents` (
`id` int(11) NOT NULL,
`oldid` int(11) DEFAULT NULL,
`deletiondate` date DEFAULT NULL,
`date` date DEFAULT NULL,
`student` int(11) DEFAULT NULL,
`event_type` int(11) DEFAULT NULL,
`event_id` int(11) DEFAULT NULL,
`event_sub` int(11) DEFAULT NULL,
`notes` longtext COLLATE utf8_spanish_ci DEFAULT NULL,
`teacher` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `DriveFolderKeys`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `DriveFolderKeys` (
`folder` varchar(45) COLLATE utf8_spanish_ci NOT NULL,
`secret` varchar(45) COLLATE utf8_spanish_ci NOT NULL,
PRIMARY KEY (`folder`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Events`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Events` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` date DEFAULT NULL,
`student` int(11) DEFAULT NULL,
`event_type` int(11) DEFAULT NULL,
`event_id` int(11) DEFAULT NULL,
`event_sub` int(11) DEFAULT NULL,
`notes` longtext COLLATE utf8_spanish_ci DEFAULT NULL,
`teacher` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_Event_1_idx` (`student`),
KEY `fk_Event_2_idx` (`event_type`),
KEY `fk_Events_1_idx` (`teacher`),
CONSTRAINT `fk_Event_1` FOREIGN KEY (`student`) REFERENCES `Students` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_Event_2` FOREIGN KEY (`event_type`) REFERENCES `Events_type` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_Events_1` FOREIGN KEY (`teacher`) REFERENCES `Teachers` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=164639 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `EventsEoYReport`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `EventsEoYReport` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
`student` int(11) DEFAULT NULL,
`event_id` int(11) DEFAULT NULL,
`notes` longtext COLLATE utf8_spanish_ci DEFAULT NULL,
`teacher` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9788 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `EventsYet`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `EventsYet` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` date NOT NULL,
`student` int(11) NOT NULL,
`event_id` int(11) NOT NULL,
`notes` longtext COLLATE utf8_spanish_ci DEFAULT NULL,
`teacher` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2678 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Events_type`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Events_type` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Global_vars`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Global_vars` (
`year` int(11) NOT NULL,
`name` varchar(16) COLLATE utf8_spanish_ci NOT NULL,
`value` varchar(32) COLLATE utf8_spanish_ci NOT NULL,
PRIMARY KEY (`year`,`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Links`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Links` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`presentation` int(11) NOT NULL,
`presentation_sub` int(11) DEFAULT NULL,
`Outcomes` int(11) DEFAULT NULL,
`Targets` int(11) DEFAULT NULL,
`Comment` longtext COLLATE utf8_spanish_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=403 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Media`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Media` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` date DEFAULT NULL,
`student` int(11) DEFAULT NULL,
`presentation` int(11) DEFAULT NULL,
`presentation_sub` int(11) DEFAULT NULL,
`comment` mediumtext COLLATE utf8_spanish_ci DEFAULT NULL,
`fileId` varchar(120) COLLATE utf8_spanish_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=797 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `NC_areas`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `NC_areas` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
`nombre` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `NC_subareas`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `NC_subareas` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(120) COLLATE utf8_spanish_ci DEFAULT NULL,
`nombre` varchar(120) COLLATE utf8_spanish_ci DEFAULT NULL,
`area` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_NC_subareas_1_idx` (`area`),
CONSTRAINT `fk_NC_subareas_1` FOREIGN KEY (`area`) REFERENCES `NC_areas` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=164 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Observations`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Observations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Outcomes`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Outcomes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(256) COLLATE utf8_spanish_ci DEFAULT NULL,
`nombre` varchar(256) COLLATE utf8_spanish_ci DEFAULT NULL,
`subarea` int(11) DEFAULT NULL,
`start_month` int(11) DEFAULT NULL,
`end_month` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_Outcomes_1_idx` (`subarea`)
) ENGINE=MyISAM AUTO_INCREMENT=435 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Presentations`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Presentations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(120) COLLATE utf8_spanish_ci DEFAULT NULL,
`subarea` int(11) DEFAULT NULL,
`year` double DEFAULT NULL,
`year_end` double DEFAULT NULL,
`priority` int(11) DEFAULT NULL,
`nombre` varchar(120) CHARACTER SET utf8 DEFAULT NULL,
`description` longtext CHARACTER SET utf8 DEFAULT NULL,
`nc1` int(11) DEFAULT NULL,
`nc2` int(11) DEFAULT NULL,
`nc3` int(11) DEFAULT NULL,
`nc4` int(11) DEFAULT NULL,
`nc5` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_Presentations_1_idx` (`subarea`),
CONSTRAINT `fk_Presentations_1` FOREIGN KEY (`subarea`) REFERENCES `Presentations_subareas` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=2381 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Presentations_areas`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Presentations_areas` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
`nombre` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Presentations_indirect_targets`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Presentations_indirect_targets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`presentation` int(11) DEFAULT NULL,
`targets` varchar(60) COLLATE utf8_spanish_ci DEFAULT NULL,
`outcomes` varchar(60) COLLATE utf8_spanish_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_Presentations_Direct_Targets_1_idx` (`presentation`),
KEY `fk_Presentations_Direct_Targets_2_idx` (`targets`),
CONSTRAINT `fk_Presentations_Direct_Targets_1` FOREIGN KEY (`presentation`) REFERENCES `Presentations` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Presentations_sub`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Presentations_sub` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` longtext COLLATE utf8_spanish_ci DEFAULT NULL,
`nombre` longtext COLLATE utf8_spanish_ci DEFAULT NULL,
`presentation` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_Presentations_sub_1_idx` (`presentation`),
CONSTRAINT `fk_Presentations_sub_1` FOREIGN KEY (`presentation`) REFERENCES `Presentations` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=1655 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Presentations_subareas`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Presentations_subareas` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(90) COLLATE utf8_spanish_ci DEFAULT NULL,
`area` int(11) DEFAULT NULL,
`nombre` varchar(90) COLLATE utf8_spanish_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_Subarea_1_idx` (`area`),
CONSTRAINT `fk_Subarea_1` FOREIGN KEY (`area`) REFERENCES `Presentations_areas` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=137 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Students`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Students` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
`birth_date` date DEFAULT NULL,
`classroom` int(11) DEFAULT NULL,
`address` varchar(200) COLLATE utf8_spanish_ci DEFAULT NULL,
`chronic diseases` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
`medical treatment` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
`allergies or dietary restrictions` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
`special needs` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
`taking medications` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
`firstday_snails` date DEFAULT NULL,
`firstday_cdb` date DEFAULT NULL,
`firstday_primary` date DEFAULT NULL,
`exit_date` date DEFAULT NULL,
`notes` longtext COLLATE utf8_spanish_ci DEFAULT NULL,
`drive_main` varchar(64) COLLATE utf8_spanish_ci DEFAULT NULL,
`drive_documents` varchar(64) COLLATE utf8_spanish_ci DEFAULT NULL,
`drive_photos` varchar(64) COLLATE utf8_spanish_ci DEFAULT NULL,
`drive_reports` varchar(64) COLLATE utf8_spanish_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_Students_1_idx` (`classroom`),
CONSTRAINT `fk_Students_1` FOREIGN KEY (`classroom`) REFERENCES `Classrooms` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=169 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Targets`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Targets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(512) COLLATE utf8_spanish_ci DEFAULT NULL,
`nombre` varchar(512) COLLATE utf8_spanish_ci DEFAULT NULL,
`NC` tinyint(1) DEFAULT NULL,
`subarea` int(11) DEFAULT NULL,
`year` double DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_Targets_1_idx` (`subarea`),
CONSTRAINT `fk_Targets_1` FOREIGN KEY (`subarea`) REFERENCES `NC_subareas` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=1323 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Targets_Montessori`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Targets_Montessori` (
`id` int(11) NOT NULL,
`name` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
`age` smallint(6) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Teachers`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Teachers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
`nick` varchar(45) COLLATE utf8_spanish_ci DEFAULT NULL,
`classroom` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_Teachers_1_idx` (`classroom`),
CONSTRAINT `fk_Teachers_1` FOREIGN KEY (`classroom`) REFERENCES `Classrooms` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `tempEvents`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tempEvents` (
`event_id` int(11) NOT NULL,
`event_sub` int(11) NOT NULL,
`event_type` int(11) DEFAULT NULL,
`student` int(11) NOT NULL,
`teacher` int(11) DEFAULT NULL,
PRIMARY KEY (`event_id`,`event_sub`,`student`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `tempIds`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tempIds` (
`ids` int(11) NOT NULL,
`teacher` int(11) DEFAULT NULL,
PRIMARY KEY (`ids`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping routines for database 'zgbpq88q_montessano'
--
/*!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 2020-12-29 1:33:57