-
Notifications
You must be signed in to change notification settings - Fork 81
/
EV_EnglishValidationDB.sql
203 lines (176 loc) · 8.41 KB
/
EV_EnglishValidationDB.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
-- MySQL dump 10.13 Distrib 8.0.13, for Win64 (x86_64)
--
-- Host: localhost Database: englishvalidation
-- ------------------------------------------------------
-- Server version 8.0.13
/*!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 */;
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 `attached`
--
DROP TABLE IF EXISTS `attached`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `attached` (
`ID_ATTACHED` int(20) NOT NULL AUTO_INCREMENT,
`FILENAME` varchar(50) NOT NULL,
`FK_REQUEST` int(20) NOT NULL,
`FK_USER` varchar(50) NOT NULL,
PRIMARY KEY (`ID_ATTACHED`),
KEY `FK_REQUEST` (`FK_REQUEST`),
KEY `FK_USER` (`FK_USER`),
CONSTRAINT `attached_ibfk_1` FOREIGN KEY (`FK_REQUEST`) REFERENCES `request` (`id_request`),
CONSTRAINT `attached_ibfk_2` FOREIGN KEY (`FK_USER`) REFERENCES `user` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=108 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `attached`
--
LOCK TABLES `attached` WRITE;
/*!40000 ALTER TABLE `attached` DISABLE KEYS */;
INSERT INTO `attached` VALUES (1,'certificato.pdf',1,'[email protected]');
/*!40000 ALTER TABLE `attached` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ente`
--
DROP TABLE IF EXISTS `ente`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `ente` (
`ID_ENTE` int(20) NOT NULL AUTO_INCREMENT,
`EMAIL` varchar(50) NOT NULL,
`NAME` varchar(100) NOT NULL,
`SITE` varchar(50) NOT NULL,
`STATO` tinyint(4) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID_ENTE`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ente`
--
LOCK TABLES `ente` WRITE;
/*!40000 ALTER TABLE `ente` DISABLE KEYS */;
INSERT INTO `ente` VALUES (1,'','Cambridge Assessment English','',1),(2,'','City and Guilds (Pitman)','',1),(3,'','Edexcel /Pearson Ltd','',1),(4,'','Educational Testing Service (ETS)','',1),(5,'','English Speaking Board (ESB)','',1),(6,'','International English Language Testing System (IELTS)','',1),(7,'[email protected]','Pearson - LCCI','',1),(8,'','Pearson - EDI','www.google.it',1),(9,'','Trinity College London (TCL)','',1),(10,'','Department of English, Faculty of Arts - University of Malta','',1),(11,'','NQAI - ACELS','',1),(12,'','Ascentis','',1),(13,'','AIM Awards','',1),(14,'','Learning Resource Network (LRN)','',1),(15,'','British Institutes','',1),(16,'','Gatehouse Awards Ltd','',1),(17,'','LanguageCert','',1);
/*!40000 ALTER TABLE `ente` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `request`
--
DROP TABLE IF EXISTS `request`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `request` (
`ID_REQUEST` int(20) NOT NULL AUTO_INCREMENT,
`CERTIFICATE_SERIAL` varchar(50) NOT NULL,
`LEVEL` varchar(7) NOT NULL,
`RELEASE_DATE` date NOT NULL,
`EXPIRY_DATE` date NOT NULL,
`YEAR` year(4) NOT NULL,
`REQUESTED_CFU` tinyint(2) NOT NULL,
`SERIAL` int(10) NOT NULL,
`VALIDATED_CFU` tinyint(2) NOT NULL,
`FK_USER` varchar(50) NOT NULL,
`FK_CERTIFIER` int(20) NOT NULL,
`FK_STATE` int(20) NOT NULL,
PRIMARY KEY (`ID_REQUEST`),
KEY `FK_USER` (`FK_USER`),
KEY `FK_STATE` (`FK_STATE`),
KEY `FK_CERTIFIER` (`FK_CERTIFIER`),
CONSTRAINT `request_ibfk_1` FOREIGN KEY (`FK_USER`) REFERENCES `user` (`email`),
CONSTRAINT `request_ibfk_2` FOREIGN KEY (`FK_STATE`) REFERENCES `state` (`id_state`),
CONSTRAINT `request_ibfk_3` FOREIGN KEY (`FK_CERTIFIER`) REFERENCES `ente` (`id_ente`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `request`
--
LOCK TABLES `request` WRITE;
/*!40000 ALTER TABLE `request` DISABLE KEYS */;
INSERT INTO `request` VALUES (1,'B.6.56546','A1','2017-05-25','2018-05-25',2018,3,512103579,6,'[email protected]',7,3);
/*!40000 ALTER TABLE `request` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `state`
--
DROP TABLE IF EXISTS `state`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `state` (
`ID_STATE` int(20) NOT NULL AUTO_INCREMENT,
`DESCRIPTION` varchar(100) NOT NULL,
PRIMARY KEY (`ID_STATE`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `state`
--
LOCK TABLES `state` WRITE;
/*!40000 ALTER TABLE `state` DISABLE KEYS */;
INSERT INTO `state` VALUES (1,'Parzialmente Completata'),(2,'In elaborazione dalla Segreteria'),(3,'In elaborazione dall" Amministratore'),(4,'Accettata e In elaborazione dal Consiglio Didattico'),(5,'Rifiutata e In elaborazione dal Consiglio Didattico'),(6,'Conclusa e Accettata'),(7,'Conclusa e Rifiutata');
/*!40000 ALTER TABLE `state` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `system_attribute`
--
DROP TABLE IF EXISTS `system_attribute`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `system_attribute` (
`SLUG` varchar(50) NOT NULL,
`VALUE` varchar(100) NOT NULL,
`FK_USER` varchar(50) NOT NULL,
PRIMARY KEY (`SLUG`),
KEY `FK_USER` (`FK_USER`),
CONSTRAINT `system_attribute_ibfk_1` FOREIGN KEY (`FK_USER`) REFERENCES `user` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `system_attribute`
--
LOCK TABLES `system_attribute` WRITE;
/*!40000 ALTER TABLE `system_attribute` DISABLE KEYS */;
INSERT INTO `system_attribute` VALUES ('request-accepted','6','[email protected]'),('request-allowed-extension-upload','.pdf','[email protected]'),('request-matriculation-year-range','5','[email protected]'),('request-max-cfu','12','[email protected]'),('request-min-cfu','1','[email protected]'),('request-number-max-upload','2','[email protected]'),('request-partially-completed','1','[email protected]'),('request-refused','7','[email protected]'),('request-upload-path','//home//vale//newWorkspace//EV_EnglishValidation//uploads','[email protected]'),('request-working-admin','3','[email protected]'),('request-working-educational-advice-1','4','[email protected]'),('request-working-educational-advice-2','5','[email protected]'),('request-working-secretary','2','[email protected]');
/*!40000 ALTER TABLE `system_attribute` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user`
--
DROP TABLE IF EXISTS `user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `user` (
`EMAIL` varchar(50) NOT NULL,
`NAME` varchar(50) NOT NULL,
`SURNAME` varchar(50) NOT NULL,
`SEX` char(1) NOT NULL,
`PASSWORD` varchar(50) NOT NULL,
`USER_TYPE` tinyint(1) NOT NULL,
PRIMARY KEY (`EMAIL`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user`
--
LOCK TABLES `user` WRITE;
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
INSERT INTO `user` VALUES ('[email protected]','Giuseppe','Cirino','M','4bb47fd2a6c598d2a52ef7de3473fd3ea8401a9b',0),('[email protected]','Luigia','Melchionno','M','4bb47fd2a6c598d2a52ef7de3473fd3ea8401a9b',2),('[email protected]','Segreteria','Studenti','M','4bb47fd2a6c598d2a52ef7de3473fd3ea8401a9b',1);
/*!40000 ALTER TABLE `user` 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 2019-01-22 11:29:19