· 4 years ago · Apr 13, 2021, 02:28 PM
1/*
2 Navicat Premium Data Transfer
3
4 Source Server : proxima
5 Source Server Type : MySQL
6 Source Server Version : 80022
7 Source Host : localhost:3306
8 Source Schema : anagrafica_curriculum
9
10 Target Server Type : MySQL
11 Target Server Version : 80022
12 File Encoding : 65001
13
14 Date: 13/04/2021 16:19:16
15*/
16
17SET NAMES utf8mb4;
18SET FOREIGN_KEY_CHECKS = 0;
19
20-- ----------------------------
21-- Table structure for Academy
22-- ----------------------------
23DROP TABLE IF EXISTS `Academy`;
24CREATE TABLE `Academy` (
25 `id` int NOT NULL AUTO_INCREMENT,
26 `nome` varchar(50) DEFAULT NULL,
27 `data_inizio` date DEFAULT NULL,
28 `data_fine` date DEFAULT NULL,
29 `sede` varchar(50) DEFAULT NULL,
30 `descrizione` mediumtext,
31 `tipo_academy` varchar(50) DEFAULT NULL,
32 PRIMARY KEY (`id`)
33) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
34
35-- ----------------------------
36-- Records of Academy
37-- ----------------------------
38BEGIN;
39COMMIT;
40
41-- ----------------------------
42-- Table structure for Anagrafica
43-- ----------------------------
44DROP TABLE IF EXISTS `Anagrafica`;
45CREATE TABLE `Anagrafica` (
46 `matricola` int NOT NULL AUTO_INCREMENT,
47 `cognome` varchar(50) DEFAULT NULL,
48 `nome` varchar(50) DEFAULT NULL,
49 `area_aziendale` varchar(50) DEFAULT NULL,
50 `community` varchar(50) DEFAULT NULL,
51 `community_coach` varchar(50) DEFAULT NULL,
52 `migliore` varchar(50) DEFAULT NULL,
53 `peggiore` varchar(50) DEFAULT NULL,
54 `principali_successi_professionali` varchar(500) DEFAULT NULL,
55 `altre_informazioni` varchar(50) DEFAULT NULL,
56 `mansione` varchar(50) DEFAULT NULL,
57 `figura_professionale` varchar(50) DEFAULT NULL,
58 `coach` varchar(50) DEFAULT NULL,
59 `community_riferimento` varchar(50) DEFAULT NULL,
60 `azienda` int DEFAULT NULL,
61 `sede` varchar(50) DEFAULT NULL,
62 `responsabile` varchar(50) DEFAULT NULL,
63 `aziendale_cell` varchar(50) DEFAULT NULL,
64 `aziendale_fisso` varchar(50) DEFAULT NULL,
65 `privato_cell` varchar(50) DEFAULT NULL,
66 `email` varchar(50) DEFAULT NULL,
67 `ral` float DEFAULT '0',
68 `email_aziendale` varchar(50) DEFAULT NULL,
69 `figura_professionale_atterraggio` varchar(50) DEFAULT NULL,
70 `talent_map_position` varchar(50) DEFAULT NULL,
71 `canale_assunzione` varchar(50) DEFAULT NULL,
72 `idoneo` varchar(50) DEFAULT NULL,
73 `ruolo_responsabile` enum('Y','N') DEFAULT NULL,
74 `ruolo_docente_interno` enum('Y','N') DEFAULT NULL,
75 `aggiornamento_cv` datetime DEFAULT NULL,
76 `cittadinanza` varchar(50) DEFAULT NULL,
77 `data_nascita` date DEFAULT NULL,
78 `residenza` varchar(50) DEFAULT NULL,
79 `data_assunzione` date DEFAULT NULL,
80 `data_cessazione` date DEFAULT NULL,
81 `academy` int DEFAULT NULL,
82 `note_passaggio_ruolo` text,
83 `admin` int NOT NULL,
84 PRIMARY KEY (`matricola`),
85 KEY `academy` (`academy`),
86 CONSTRAINT `Anagrafica_ibfk_1` FOREIGN KEY (`academy`) REFERENCES `Academy` (`id`)
87) ENGINE=InnoDB AUTO_INCREMENT=535 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
88
89-- ----------------------------
90-- Records of Anagrafica
91-- ----------------------------
92BEGIN;
93INSERT INTO `Anagrafica` VALUES (1, 'Fiorensi', 'Gianni', 'ORG', 'HR', '', '', '', '', '', NULL, 'HEAD OF HR', 'NO', '', 10, '', 'Alberto Tabellini', '', '', '', '', 0, '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1);
94INSERT INTO `Anagrafica` VALUES (2, 'Mele', 'Antonello', '', '', '', '', '', '', '', 'J2EE', 'JJD', 'NO', '', 10, 'MI', NULL, '3937320724', '3937320723', '3924618752', 'antonellomele94@gmail.com', 0, 'a.mele@proximanetwork.it', '', '', '', 'ND', 'N', 'N', NULL, 'Italia', '1994-11-05', 'Nuoro', '2020-01-01', '2021-01-01', NULL, NULL, 0);
95COMMIT;
96
97-- ----------------------------
98-- Table structure for anagrafica_skill
99-- ----------------------------
100DROP TABLE IF EXISTS `anagrafica_skill`;
101CREATE TABLE `anagrafica_skill` (
102 `id` int NOT NULL AUTO_INCREMENT,
103 `matricola` int DEFAULT NULL,
104 `skill` int DEFAULT NULL,
105 PRIMARY KEY (`id`),
106 KEY `FK__anagrafica3` (`matricola`),
107 KEY `FK__skill2` (`skill`),
108 CONSTRAINT `FK__anagrafica3` FOREIGN KEY (`matricola`) REFERENCES `Anagrafica` (`matricola`),
109 CONSTRAINT `FK__skill2` FOREIGN KEY (`skill`) REFERENCES `Skill` (`idSkill`)
110) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
111
112-- ----------------------------
113-- Records of anagrafica_skill
114-- ----------------------------
115BEGIN;
116COMMIT;
117
118-- ----------------------------
119-- Table structure for Area_aziendale
120-- ----------------------------
121DROP TABLE IF EXISTS `Area_aziendale`;
122CREATE TABLE `Area_aziendale` (
123 `id` int NOT NULL AUTO_INCREMENT,
124 `codice` varchar(50) DEFAULT NULL,
125 `descrizione` varchar(50) DEFAULT NULL,
126 PRIMARY KEY (`id`)
127) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
128
129-- ----------------------------
130-- Records of Area_aziendale
131-- ----------------------------
132BEGIN;
133COMMIT;
134
135-- ----------------------------
136-- Table structure for Azienda
137-- ----------------------------
138DROP TABLE IF EXISTS `Azienda`;
139CREATE TABLE `Azienda` (
140 `id` int NOT NULL AUTO_INCREMENT,
141 `nome` varchar(50) DEFAULT NULL,
142 PRIMARY KEY (`id`)
143) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
144
145-- ----------------------------
146-- Records of Azienda
147-- ----------------------------
148BEGIN;
149INSERT INTO `Azienda` VALUES (9, 'THINKKNOW');
150INSERT INTO `Azienda` VALUES (10, 'PROXIMA');
151INSERT INTO `Azienda` VALUES (11, 'TRT');
152INSERT INTO `Azienda` VALUES (12, 'NEXT4B');
153INSERT INTO `Azienda` VALUES (13, 'SDP SOLUTIONS');
154INSERT INTO `Azienda` VALUES (14, 'NEXUS CONSULTING');
155COMMIT;
156
157-- ----------------------------
158-- Table structure for Candidato
159-- ----------------------------
160DROP TABLE IF EXISTS `Candidato`;
161CREATE TABLE `Candidato` (
162 `id` int NOT NULL AUTO_INCREMENT,
163 `academy` int DEFAULT NULL,
164 `nome` varchar(50) DEFAULT NULL,
165 `cognome` varchar(50) DEFAULT NULL,
166 `data_nascita` date DEFAULT NULL,
167 `profilo_professionale` varchar(250) DEFAULT NULL,
168 `candidatura_figura_professionale` varchar(50) DEFAULT NULL,
169 `data_primo_contatto` date DEFAULT NULL,
170 `cv` varchar(50) DEFAULT NULL,
171 `assunto` varchar(50) DEFAULT NULL,
172 `email` varchar(50) DEFAULT NULL,
173 `stipendioAttuale` float DEFAULT NULL,
174 `stipendioAtteso` float DEFAULT NULL,
175 `telefono` varchar(50) DEFAULT NULL,
176 `benefitAttuali` varchar(50) DEFAULT NULL,
177 `benefitAmbiti` varchar(50) DEFAULT NULL,
178 `benefitProposti` varchar(50) DEFAULT NULL,
179 `stipendioProposto` float DEFAULT '0',
180 `seniority` varchar(50) DEFAULT NULL,
181 `contrattoRichiesto` varchar(50) DEFAULT NULL,
182 `canale` varchar(50) DEFAULT NULL,
183 `sedeCandidatura` varchar(50) DEFAULT NULL,
184 `costoAziendaleStimato` float DEFAULT '0',
185 `idoneo` varchar(50) DEFAULT NULL,
186 `tipo_academy` varchar(50) DEFAULT NULL,
187 `azienda` int NOT NULL,
188 PRIMARY KEY (`id`),
189 KEY `academy` (`academy`),
190 CONSTRAINT `academy` FOREIGN KEY (`academy`) REFERENCES `Academy` (`id`)
191) ENGINE=InnoDB AUTO_INCREMENT=2878 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
192
193-- ----------------------------
194-- Records of Candidato
195-- ----------------------------
196BEGIN;
197INSERT INTO `Candidato` VALUES (2876, NULL, 'Tom', 'Tommo', '1970-01-01', 'JAVA DEVELOPER', 'JJD', NULL, '', 'NO', 'tom.tommo@gmail.com', 20000, 30000, '3937320723', '', '', '', 25000, 'Junior', 'INDETERMINATO', 'Internet', 'RM', 12000, 'SI', '', 10);
198INSERT INTO `Candidato` VALUES (2877, NULL, 'Mario', 'Bianchi', '1970-01-01', 'disoccupato', 'JJD', NULL, '', 'NO', 'Mario.bianchi@gmail.com', 0, 25000, '3937320723', '', '', '', 15000, 'Junior', 'INDETERMINATO', 'Sito Aziendale', 'MI', 14000, 'SI', '', 9);
199COMMIT;
200
201-- ----------------------------
202-- Table structure for Cliente
203-- ----------------------------
204DROP TABLE IF EXISTS `Cliente`;
205CREATE TABLE `Cliente` (
206 `id` int NOT NULL AUTO_INCREMENT,
207 `nome` varchar(50) NOT NULL DEFAULT '',
208 `sede` varchar(50) DEFAULT NULL,
209 PRIMARY KEY (`id`)
210) ENGINE=InnoDB AUTO_INCREMENT=92 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
211
212-- ----------------------------
213-- Records of Cliente
214-- ----------------------------
215BEGIN;
216COMMIT;
217
218-- ----------------------------
219-- Table structure for Community
220-- ----------------------------
221DROP TABLE IF EXISTS `Community`;
222CREATE TABLE `Community` (
223 `id` int NOT NULL AUTO_INCREMENT,
224 `codice` varchar(50) DEFAULT NULL,
225 `descrizione` varchar(50) DEFAULT NULL,
226 PRIMARY KEY (`id`)
227) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
228
229-- ----------------------------
230-- Records of Community
231-- ----------------------------
232BEGIN;
233COMMIT;
234
235-- ----------------------------
236-- Table structure for Competenza
237-- ----------------------------
238DROP TABLE IF EXISTS `Competenza`;
239CREATE TABLE `Competenza` (
240 `id` int NOT NULL AUTO_INCREMENT,
241 `id_tipo` int DEFAULT NULL,
242 `codice` varchar(50) DEFAULT NULL,
243 `descrizione` varchar(100) DEFAULT NULL,
244 `dettaglio` text NOT NULL,
245 `descrizione_0` varchar(250) NOT NULL,
246 `descrizione_1` varchar(250) NOT NULL,
247 `descrizione_2` varchar(250) NOT NULL,
248 `descrizione_3` varchar(250) NOT NULL,
249 `descrizione_4` varchar(250) NOT NULL,
250 `descrizione_5` varchar(250) NOT NULL,
251 PRIMARY KEY (`id`) USING BTREE,
252 KEY `FK_competenza_tipo` (`id_tipo`),
253 CONSTRAINT `FK_competenza_tipo` FOREIGN KEY (`id_tipo`) REFERENCES `Tipo` (`id`)
254) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
255
256-- ----------------------------
257-- Records of Competenza
258-- ----------------------------
259BEGIN;
260COMMIT;
261
262-- ----------------------------
263-- Table structure for Contratto
264-- ----------------------------
265DROP TABLE IF EXISTS `Contratto`;
266CREATE TABLE `Contratto` (
267 `id` int NOT NULL AUTO_INCREMENT,
268 `tipo` varchar(50) DEFAULT NULL,
269 PRIMARY KEY (`id`)
270) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
271
272-- ----------------------------
273-- Records of Contratto
274-- ----------------------------
275BEGIN;
276COMMIT;
277
278-- ----------------------------
279-- Table structure for Corso
280-- ----------------------------
281DROP TABLE IF EXISTS `Corso`;
282CREATE TABLE `Corso` (
283 `id` int NOT NULL AUTO_INCREMENT,
284 `cod_fonarcom` varchar(50) DEFAULT NULL,
285 `descrizione` varchar(50) DEFAULT NULL,
286 `data_inizio` date DEFAULT NULL,
287 `data_fine` date DEFAULT NULL,
288 `tot_ore` int NOT NULL DEFAULT '0',
289 `stato` varchar(50) DEFAULT NULL,
290 `docente` int DEFAULT NULL,
291 `tutor_interno` int DEFAULT NULL,
292 `docente_esterno` varchar(50) DEFAULT NULL,
293 `proposto_da` varchar(50) DEFAULT NULL,
294 `data_proposta` date DEFAULT NULL,
295 `modalita` varchar(50) DEFAULT NULL,
296 PRIMARY KEY (`id`),
297 KEY `FK_corso_anagrafica` (`docente`),
298 KEY `FK_corso_anagrafica_2` (`tutor_interno`),
299 CONSTRAINT `FK_corso_anagrafica` FOREIGN KEY (`docente`) REFERENCES `Anagrafica` (`matricola`),
300 CONSTRAINT `FK_corso_anagrafica_2` FOREIGN KEY (`tutor_interno`) REFERENCES `Anagrafica` (`matricola`)
301) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;
302
303-- ----------------------------
304-- Records of Corso
305-- ----------------------------
306BEGIN;
307COMMIT;
308
309-- ----------------------------
310-- Table structure for corso_dipendente
311-- ----------------------------
312DROP TABLE IF EXISTS `corso_dipendente`;
313CREATE TABLE `corso_dipendente` (
314 `id` int NOT NULL AUTO_INCREMENT,
315 `id_corso` int DEFAULT NULL,
316 `id_dipendente` int DEFAULT NULL,
317 `tipo` varchar(50) DEFAULT NULL,
318 `data_abbinamento` date DEFAULT NULL,
319 `id_ut_abbinatore` int DEFAULT NULL,
320 `note_hr` text,
321 `valutazione_docente` int DEFAULT '0',
322 `note_docente` text,
323 `sodd_allievo` varchar(50) DEFAULT NULL,
324 `riallineamenti` int DEFAULT '0',
325 `aumenti` int DEFAULT '0',
326 `passaggi` int DEFAULT '0',
327 `completamento` int NOT NULL DEFAULT '0',
328 `data_dimissioni` date DEFAULT NULL,
329 PRIMARY KEY (`id`),
330 KEY `FK__corso` (`id_corso`),
331 KEY `FK__anagrafica` (`id_dipendente`),
332 KEY `FK__anagrafica_2` (`id_ut_abbinatore`),
333 CONSTRAINT `FK__anagrafica` FOREIGN KEY (`id_dipendente`) REFERENCES `Anagrafica` (`matricola`),
334 CONSTRAINT `FK__anagrafica_2` FOREIGN KEY (`id_ut_abbinatore`) REFERENCES `Anagrafica` (`matricola`),
335 CONSTRAINT `FK__corso` FOREIGN KEY (`id_corso`) REFERENCES `Corso` (`id`)
336) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=latin1;
337
338-- ----------------------------
339-- Records of corso_dipendente
340-- ----------------------------
341BEGIN;
342COMMIT;
343
344-- ----------------------------
345-- Table structure for dati_commerciali
346-- ----------------------------
347DROP TABLE IF EXISTS `dati_commerciali`;
348CREATE TABLE `dati_commerciali` (
349 `id` int NOT NULL AUTO_INCREMENT,
350 `matricola` int DEFAULT NULL,
351 `cliente` varchar(50) DEFAULT NULL,
352 `sede` varchar(50) DEFAULT NULL,
353 `contratto` varchar(50) DEFAULT NULL,
354 `data_inizio` date DEFAULT NULL,
355 `data_fine` date DEFAULT NULL,
356 `costo_aziendale` float DEFAULT NULL,
357 `tariffa_vendita` float DEFAULT NULL,
358 `diretti` varchar(50) DEFAULT NULL,
359 `stato` varchar(50) DEFAULT NULL,
360 `livello` varchar(50) DEFAULT NULL,
361 `mol` float DEFAULT NULL,
362 `note` varchar(50) DEFAULT NULL,
363 `clienteIntermedio` varchar(50) DEFAULT NULL,
364 `motivazione` varchar(50) DEFAULT NULL,
365 `benefit` text,
366 `part_time` enum('Y','N') NOT NULL,
367 `percentuale_part_time` tinyint NOT NULL DEFAULT '0',
368 `tipo_task` varchar(50) NOT NULL,
369 PRIMARY KEY (`id`),
370 KEY `FK_dati_commerciali_anagrafica` (`matricola`),
371 CONSTRAINT `FK_dati_commerciali_anagrafica` FOREIGN KEY (`matricola`) REFERENCES `Anagrafica` (`matricola`)
372) ENGINE=InnoDB AUTO_INCREMENT=537 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
373
374-- ----------------------------
375-- Records of dati_commerciali
376-- ----------------------------
377BEGIN;
378COMMIT;
379
380-- ----------------------------
381-- Table structure for descrizione_livelli
382-- ----------------------------
383DROP TABLE IF EXISTS `descrizione_livelli`;
384CREATE TABLE `descrizione_livelli` (
385 `id` int NOT NULL AUTO_INCREMENT,
386 `level` tinyint NOT NULL DEFAULT '0',
387 `description_title` varchar(50) DEFAULT NULL,
388 `description` text,
389 `typical_task` varchar(50) DEFAULT NULL,
390 `complexity` varchar(50) DEFAULT NULL,
391 `autonomy` text,
392 `behaviour` text,
393 PRIMARY KEY (`id`)
394) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
395
396-- ----------------------------
397-- Records of descrizione_livelli
398-- ----------------------------
399BEGIN;
400COMMIT;
401
402-- ----------------------------
403-- Table structure for domande
404-- ----------------------------
405DROP TABLE IF EXISTS `domande`;
406CREATE TABLE `domande` (
407 `id` int NOT NULL AUTO_INCREMENT,
408 `titolo` varchar(100) NOT NULL,
409 `descrizione` varchar(200) NOT NULL,
410 PRIMARY KEY (`id`)
411) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
412
413-- ----------------------------
414-- Records of domande
415-- ----------------------------
416BEGIN;
417COMMIT;
418
419-- ----------------------------
420-- Table structure for Esperienze_professionali
421-- ----------------------------
422DROP TABLE IF EXISTS `Esperienze_professionali`;
423CREATE TABLE `Esperienze_professionali` (
424 `id` int NOT NULL AUTO_INCREMENT,
425 `matricola` int DEFAULT NULL,
426 `azienda` varchar(50) DEFAULT NULL,
427 `descrizione_progetti` varchar(50) DEFAULT NULL,
428 `ruolo_ricoperto` varchar(50) DEFAULT NULL,
429 `dataInizio` date DEFAULT NULL,
430 `dataFine` date DEFAULT NULL,
431 PRIMARY KEY (`id`),
432 KEY `FK_esperienze_professionali_anagrafica` (`matricola`),
433 CONSTRAINT `FK_esperienze_professionali_anagrafica` FOREIGN KEY (`matricola`) REFERENCES `Anagrafica` (`matricola`)
434) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
435
436-- ----------------------------
437-- Records of Esperienze_professionali
438-- ----------------------------
439BEGIN;
440COMMIT;
441
442-- ----------------------------
443-- Table structure for figura_professionale
444-- ----------------------------
445DROP TABLE IF EXISTS `figura_professionale`;
446CREATE TABLE `figura_professionale` (
447 `id` int NOT NULL AUTO_INCREMENT,
448 `codice` varchar(50) DEFAULT NULL,
449 `descrizione` varchar(50) DEFAULT NULL,
450 `categoria` enum('T','S') DEFAULT NULL,
451 PRIMARY KEY (`id`)
452) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
453
454-- ----------------------------
455-- Records of figura_professionale
456-- ----------------------------
457BEGIN;
458INSERT INTO `figura_professionale` VALUES (29, 'JJD', 'Java Junior Developer', 'T');
459COMMIT;
460
461-- ----------------------------
462-- Table structure for Figura_professionale_competenza
463-- ----------------------------
464DROP TABLE IF EXISTS `Figura_professionale_competenza`;
465CREATE TABLE `Figura_professionale_competenza` (
466 `id` int NOT NULL AUTO_INCREMENT,
467 `id_figura_professionale` int DEFAULT NULL,
468 `id_competenza` int DEFAULT NULL,
469 `soglia_minima` int DEFAULT NULL,
470 PRIMARY KEY (`id`),
471 KEY `FK__figura_professionale` (`id_figura_professionale`),
472 KEY `FK__competenza` (`id_competenza`),
473 CONSTRAINT `FK__competenza` FOREIGN KEY (`id_competenza`) REFERENCES `Competenza` (`id`),
474 CONSTRAINT `FK__figura_professionale` FOREIGN KEY (`id_figura_professionale`) REFERENCES `figura_professionale` (`id`)
475) ENGINE=InnoDB AUTO_INCREMENT=227 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
476
477-- ----------------------------
478-- Records of Figura_professionale_competenza
479-- ----------------------------
480BEGIN;
481COMMIT;
482
483-- ----------------------------
484-- Table structure for Formazione_professionale
485-- ----------------------------
486DROP TABLE IF EXISTS `Formazione_professionale`;
487CREATE TABLE `Formazione_professionale` (
488 `id` int NOT NULL AUTO_INCREMENT,
489 `matricola` int DEFAULT NULL,
490 `nome` varchar(50) DEFAULT NULL,
491 `ente` varchar(50) DEFAULT NULL,
492 `dataInizio` date DEFAULT NULL,
493 `dataFine` date DEFAULT NULL,
494 PRIMARY KEY (`id`),
495 KEY `FK_formazione_professionale_anagrafica` (`matricola`),
496 CONSTRAINT `FK_formazione_professionale_anagrafica` FOREIGN KEY (`matricola`) REFERENCES `Anagrafica` (`matricola`)
497) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
498
499-- ----------------------------
500-- Records of Formazione_professionale
501-- ----------------------------
502BEGIN;
503COMMIT;
504
505-- ----------------------------
506-- Table structure for Intervallo_valutazione
507-- ----------------------------
508DROP TABLE IF EXISTS `Intervallo_valutazione`;
509CREATE TABLE `Intervallo_valutazione` (
510 `id` int NOT NULL AUTO_INCREMENT,
511 `data_inizio` date DEFAULT NULL,
512 `data_fine` date DEFAULT NULL,
513 PRIMARY KEY (`id`)
514) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
515
516-- ----------------------------
517-- Records of Intervallo_valutazione
518-- ----------------------------
519BEGIN;
520COMMIT;
521
522-- ----------------------------
523-- Table structure for lingua_straniera
524-- ----------------------------
525DROP TABLE IF EXISTS `lingua_straniera`;
526CREATE TABLE `lingua_straniera` (
527 `id` int NOT NULL AUTO_INCREMENT,
528 `matricola` int DEFAULT NULL,
529 `nome` varchar(50) DEFAULT NULL,
530 `lettura` varchar(50) DEFAULT NULL,
531 `scrittura` varchar(50) DEFAULT NULL,
532 `conversazione` varchar(50) DEFAULT NULL,
533 PRIMARY KEY (`id`)
534) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
535
536-- ----------------------------
537-- Records of lingua_straniera
538-- ----------------------------
539BEGIN;
540COMMIT;
541
542-- ----------------------------
543-- Table structure for Livello
544-- ----------------------------
545DROP TABLE IF EXISTS `Livello`;
546CREATE TABLE `Livello` (
547 `id` int NOT NULL AUTO_INCREMENT,
548 `nome` varchar(50) DEFAULT NULL,
549 `ccnl` varchar(50) DEFAULT NULL,
550 PRIMARY KEY (`id`)
551) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
552
553-- ----------------------------
554-- Records of Livello
555-- ----------------------------
556BEGIN;
557COMMIT;
558
559-- ----------------------------
560-- Table structure for Login
561-- ----------------------------
562DROP TABLE IF EXISTS `Login`;
563CREATE TABLE `Login` (
564 `id` int NOT NULL AUTO_INCREMENT,
565 `matricola` int DEFAULT '0',
566 `user_id` varchar(50) DEFAULT NULL,
567 `password` varchar(60) DEFAULT NULL,
568 `tipoUtente` varchar(50) DEFAULT NULL,
569 `azienda` int DEFAULT NULL,
570 PRIMARY KEY (`id`),
571 KEY `FK_login_anagrafica` (`matricola`),
572 CONSTRAINT `FK_login_anagrafica` FOREIGN KEY (`matricola`) REFERENCES `Anagrafica` (`matricola`)
573) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
574
575-- ----------------------------
576-- Records of Login
577-- ----------------------------
578BEGIN;
579INSERT INTO `Login` VALUES (1, 1, 'admin', '$2a$10$TuXOr0.AjtVHDsRIVoABz./lDNVBUPyXHn0X.HAjS.dgx.mHlC.sm', 'HR', 10);
580INSERT INTO `Login` VALUES (2, 1, 'admin2', '$2a$10$TuXOr0.AjtVHDsRIVoABz./lDNVBUPyXHn0X.HAjS.dgx.mHlC.sm', 'HR', 10);
581INSERT INTO `Login` VALUES (21, 2, 'a.mele@proximanetwork.it', '$2a$10$TuXOr0.AjtVHDsRIVoABz./lDNVBUPyXHn0X.HAjS.dgx.mHlC.sm', 'dipendente', 9);
582COMMIT;
583
584-- ----------------------------
585-- Table structure for Mansione
586-- ----------------------------
587DROP TABLE IF EXISTS `Mansione`;
588CREATE TABLE `Mansione` (
589 `id` int NOT NULL AUTO_INCREMENT,
590 `codice` varchar(50) DEFAULT NULL,
591 `descrizione` varchar(50) DEFAULT NULL,
592 PRIMARY KEY (`id`)
593) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
594
595-- ----------------------------
596-- Records of Mansione
597-- ----------------------------
598BEGIN;
599INSERT INTO `Mansione` VALUES (9, 'J2EE', 'Java Enterprise Edition');
600COMMIT;
601
602-- ----------------------------
603-- Table structure for Motivazione
604-- ----------------------------
605DROP TABLE IF EXISTS `Motivazione`;
606CREATE TABLE `Motivazione` (
607 `id` int NOT NULL AUTO_INCREMENT,
608 `stato` varchar(50) DEFAULT NULL,
609 `descrizione` varchar(50) DEFAULT NULL,
610 PRIMARY KEY (`id`)
611) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
612
613-- ----------------------------
614-- Records of Motivazione
615-- ----------------------------
616BEGIN;
617COMMIT;
618
619-- ----------------------------
620-- Table structure for questionario
621-- ----------------------------
622DROP TABLE IF EXISTS `questionario`;
623CREATE TABLE `questionario` (
624 `id` int NOT NULL AUTO_INCREMENT,
625 `titolo` varchar(100) NOT NULL,
626 PRIMARY KEY (`id`)
627) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
628
629-- ----------------------------
630-- Records of questionario
631-- ----------------------------
632BEGIN;
633COMMIT;
634
635-- ----------------------------
636-- Table structure for questionario_domande
637-- ----------------------------
638DROP TABLE IF EXISTS `questionario_domande`;
639CREATE TABLE `questionario_domande` (
640 `id` int NOT NULL AUTO_INCREMENT,
641 `id_questionario` int NOT NULL,
642 `id_domande` int NOT NULL,
643 PRIMARY KEY (`id`),
644 KEY `FK_questionario` (`id_questionario`),
645 KEY `FK_domande` (`id_domande`),
646 CONSTRAINT `FK_domande` FOREIGN KEY (`id_domande`) REFERENCES `domande` (`id`),
647 CONSTRAINT `FK_questionario` FOREIGN KEY (`id_questionario`) REFERENCES `questionario` (`id`)
648) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
649
650-- ----------------------------
651-- Records of questionario_domande
652-- ----------------------------
653BEGIN;
654COMMIT;
655
656-- ----------------------------
657-- Table structure for risposte
658-- ----------------------------
659DROP TABLE IF EXISTS `risposte`;
660CREATE TABLE `risposte` (
661 `id` int NOT NULL AUTO_INCREMENT,
662 `id_domande` int NOT NULL,
663 `descrizione` varchar(200) NOT NULL,
664 `corretta` int NOT NULL,
665 PRIMARY KEY (`id`),
666 KEY `FK1_domande` (`id_domande`),
667 CONSTRAINT `FK1_domande` FOREIGN KEY (`id_domande`) REFERENCES `domande` (`id`)
668) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
669
670-- ----------------------------
671-- Records of risposte
672-- ----------------------------
673BEGIN;
674COMMIT;
675
676-- ----------------------------
677-- Table structure for Skill
678-- ----------------------------
679DROP TABLE IF EXISTS `Skill`;
680CREATE TABLE `Skill` (
681 `idSkill` int NOT NULL AUTO_INCREMENT,
682 `sigla` varchar(50) DEFAULT NULL,
683 `descrizione` varchar(50) DEFAULT NULL,
684 PRIMARY KEY (`idSkill`)
685) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
686
687-- ----------------------------
688-- Records of Skill
689-- ----------------------------
690BEGIN;
691COMMIT;
692
693-- ----------------------------
694-- Table structure for Skill_esperienze_professionali
695-- ----------------------------
696DROP TABLE IF EXISTS `Skill_esperienze_professionali`;
697CREATE TABLE `Skill_esperienze_professionali` (
698 `id` int NOT NULL AUTO_INCREMENT,
699 `id_esperienza_professionale` int DEFAULT NULL,
700 `idSkill` int DEFAULT NULL,
701 PRIMARY KEY (`id`),
702 KEY `FK__esperienze_professionali` (`id_esperienza_professionale`),
703 KEY `FK__skill` (`idSkill`),
704 CONSTRAINT `FK__esperienze_professionali` FOREIGN KEY (`id_esperienza_professionale`) REFERENCES `Esperienze_professionali` (`id`),
705 CONSTRAINT `FK__skill` FOREIGN KEY (`idSkill`) REFERENCES `Skill` (`idSkill`)
706) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
707
708-- ----------------------------
709-- Records of Skill_esperienze_professionali
710-- ----------------------------
711BEGIN;
712COMMIT;
713
714-- ----------------------------
715-- Table structure for Tipo
716-- ----------------------------
717DROP TABLE IF EXISTS `Tipo`;
718CREATE TABLE `Tipo` (
719 `id` int NOT NULL AUTO_INCREMENT,
720 `codice` varchar(50) DEFAULT NULL,
721 `descrizione` varchar(50) DEFAULT NULL,
722 `spiegazione` text,
723 PRIMARY KEY (`id`) USING BTREE
724) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
725
726-- ----------------------------
727-- Records of Tipo
728-- ----------------------------
729BEGIN;
730COMMIT;
731
732-- ----------------------------
733-- Table structure for tipo_academy
734-- ----------------------------
735DROP TABLE IF EXISTS `tipo_academy`;
736CREATE TABLE `tipo_academy` (
737 `id` int NOT NULL AUTO_INCREMENT,
738 `sigla` varchar(50) DEFAULT NULL,
739 `descrizione` varchar(50) DEFAULT NULL,
740 PRIMARY KEY (`id`)
741) ENGINE=InnoDB DEFAULT CHARSET=latin1;
742
743-- ----------------------------
744-- Records of tipo_academy
745-- ----------------------------
746BEGIN;
747COMMIT;
748
749-- ----------------------------
750-- Table structure for tipo_descrizione_livelli
751-- ----------------------------
752DROP TABLE IF EXISTS `tipo_descrizione_livelli`;
753CREATE TABLE `tipo_descrizione_livelli` (
754 `id` int NOT NULL AUTO_INCREMENT,
755 `id_tipo` int DEFAULT NULL,
756 `id_descrizione_livelli` int DEFAULT NULL,
757 PRIMARY KEY (`id`),
758 KEY `FK__tipo` (`id_tipo`),
759 KEY `FK__descrizione_livelli` (`id_descrizione_livelli`),
760 CONSTRAINT `FK__descrizione_livelli` FOREIGN KEY (`id_descrizione_livelli`) REFERENCES `descrizione_livelli` (`id`),
761 CONSTRAINT `FK__tipo` FOREIGN KEY (`id_tipo`) REFERENCES `Tipo` (`id`)
762) ENGINE=InnoDB AUTO_INCREMENT=51 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
763
764-- ----------------------------
765-- Records of tipo_descrizione_livelli
766-- ----------------------------
767BEGIN;
768COMMIT;
769
770-- ----------------------------
771-- Table structure for Titolo_di_studio
772-- ----------------------------
773DROP TABLE IF EXISTS `Titolo_di_studio`;
774CREATE TABLE `Titolo_di_studio` (
775 `id` int NOT NULL AUTO_INCREMENT,
776 `matricola` int DEFAULT NULL,
777 `tipo` varchar(50) DEFAULT NULL,
778 `nome` varchar(50) DEFAULT NULL,
779 `ente` varchar(50) DEFAULT NULL,
780 `dataInizio` date DEFAULT NULL,
781 `dataFIne` date DEFAULT NULL,
782 PRIMARY KEY (`id`),
783 KEY `FK_titolo_di_studio_anagrafica` (`matricola`),
784 CONSTRAINT `FK_titolo_di_studio_anagrafica` FOREIGN KEY (`matricola`) REFERENCES `Anagrafica` (`matricola`)
785) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
786
787-- ----------------------------
788-- Records of Titolo_di_studio
789-- ----------------------------
790BEGIN;
791COMMIT;
792
793-- ----------------------------
794-- Table structure for Valutazione
795-- ----------------------------
796DROP TABLE IF EXISTS `Valutazione`;
797CREATE TABLE `Valutazione` (
798 `id` int NOT NULL AUTO_INCREMENT,
799 `matricola` int DEFAULT NULL,
800 `data_valutazione` datetime DEFAULT NULL,
801 `figura_professionale` int DEFAULT NULL,
802 `competenza` int DEFAULT NULL,
803 `valutatore` varchar(50) DEFAULT NULL,
804 `profilo_valutatore` varchar(50) DEFAULT NULL,
805 `punteggio` int NOT NULL,
806 `consolidata` varchar(50) NOT NULL,
807 `note` text,
808 PRIMARY KEY (`id`),
809 KEY `FK_valutazione_anagrafica` (`matricola`),
810 KEY `figura_professionale` (`figura_professionale`),
811 KEY `competenza` (`competenza`),
812 CONSTRAINT `FK_valutazione_anagrafica` FOREIGN KEY (`matricola`) REFERENCES `Anagrafica` (`matricola`),
813 CONSTRAINT `Valutazione_ibfk_1` FOREIGN KEY (`figura_professionale`) REFERENCES `figura_professionale` (`id`),
814 CONSTRAINT `Valutazione_ibfk_2` FOREIGN KEY (`competenza`) REFERENCES `Competenza` (`id`)
815) ENGINE=InnoDB AUTO_INCREMENT=7086 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
816
817-- ----------------------------
818-- Records of Valutazione
819-- ----------------------------
820BEGIN;
821COMMIT;
822
823-- ----------------------------
824-- Table structure for valutazione_candidato
825-- ----------------------------
826DROP TABLE IF EXISTS `valutazione_candidato`;
827CREATE TABLE `valutazione_candidato` (
828 `id` int NOT NULL AUTO_INCREMENT,
829 `id_candidato` int DEFAULT NULL,
830 `data_colloquio` date DEFAULT NULL,
831 `ora_colloquio` varchar(50) DEFAULT NULL,
832 `tipo_colloquio` varchar(50) DEFAULT NULL,
833 `valutatore` varchar(50) DEFAULT NULL,
834 `valutazione` varchar(50) DEFAULT NULL,
835 `note` text,
836 PRIMARY KEY (`id`),
837 KEY `FK__candidato` (`id_candidato`),
838 CONSTRAINT `FK__candidato` FOREIGN KEY (`id_candidato`) REFERENCES `Candidato` (`id`)
839) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
840
841-- ----------------------------
842-- Records of valutazione_candidato
843-- ----------------------------
844BEGIN;
845COMMIT;
846
847-- ----------------------------
848-- Table structure for valutazione_cliente
849-- ----------------------------
850DROP TABLE IF EXISTS `valutazione_cliente`;
851CREATE TABLE `valutazione_cliente` (
852 `id` int NOT NULL AUTO_INCREMENT,
853 `id_cliente` int DEFAULT NULL,
854 `matricola` int DEFAULT NULL,
855 `dataValutazione` datetime DEFAULT NULL,
856 `punteggio` int DEFAULT NULL,
857 `note` text,
858 PRIMARY KEY (`id`),
859 KEY `FK__cliente` (`id_cliente`),
860 KEY `FK_valutazione_cliente_anagrafica` (`matricola`)
861) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
862
863-- ----------------------------
864-- Records of valutazione_cliente
865-- ----------------------------
866BEGIN;
867COMMIT;
868
869-- ----------------------------
870-- Table structure for valutazione_coach
871-- ----------------------------
872DROP TABLE IF EXISTS `valutazione_coach`;
873CREATE TABLE `valutazione_coach` (
874 `id` int NOT NULL AUTO_INCREMENT,
875 `matricola_dipendente` int DEFAULT NULL,
876 `matricola_coach` int DEFAULT NULL,
877 `data_valutazione` datetime DEFAULT NULL,
878 `punteggio` int DEFAULT NULL,
879 `note` text,
880 PRIMARY KEY (`id`)
881) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
882
883-- ----------------------------
884-- Records of valutazione_coach
885-- ----------------------------
886BEGIN;
887COMMIT;
888
889-- ----------------------------
890-- Table structure for valutazione_tecnica
891-- ----------------------------
892DROP TABLE IF EXISTS `valutazione_tecnica`;
893CREATE TABLE `valutazione_tecnica` (
894 `id` int NOT NULL AUTO_INCREMENT,
895 `matricola` int DEFAULT NULL,
896 `id_skill` int DEFAULT NULL,
897 `data_valutazione` datetime DEFAULT NULL,
898 `valutatore` varchar(50) DEFAULT NULL,
899 `profilo_valutatore` varchar(50) DEFAULT NULL,
900 `punteggio` int DEFAULT NULL,
901 `consolidata` enum('Y','N') DEFAULT NULL,
902 `note` text,
903 PRIMARY KEY (`id`),
904 KEY `FK_valutazione_tecnica_anagrafica` (`matricola`),
905 KEY `FK_valutazione_tecnica_skill` (`id_skill`),
906 CONSTRAINT `FK_valutazione_tecnica_anagrafica` FOREIGN KEY (`matricola`) REFERENCES `Anagrafica` (`matricola`),
907 CONSTRAINT `FK_valutazione_tecnica_skill` FOREIGN KEY (`id_skill`) REFERENCES `Skill` (`idSkill`)
908) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
909
910-- ----------------------------
911-- Records of valutazione_tecnica
912-- ----------------------------
913BEGIN;
914COMMIT;
915
916SET FOREIGN_KEY_CHECKS = 1;
917