SETSQL_MODE="NO_AUTO_VALUE_ON_ZERO";SETtime_zone="+00:00";SETforeign_key_checks=0;--
-- Autismo Jaen
--
INSERT INTO `office` (`name`, `address`, `country`, `contact_person`, `email`, `phone1`, `lang`) VALUES
('Asociación Provincial de Autismo de Jaén',
'Avd. de Andalucía, 92 - bajo, 23006 Jaén',
'ES',
'Belén Pérez Vílchez',
'belen.perez@autismojaen.es',
'+34 953 236 158',
'es-es');
--
-- Terapeutas
--
INSERT INTO `supervisor` (`name`, `surname`, `gender`, `address`,
`email`, `phone`, `lang`, `password`, `active`, `id_off`)
(SELECT 'Belén','Pérez Vílchez', 'F', NULL, 'belen.perez@autismojaen.es', NULL,
'es-es', '$2a$10$asX8K7IXtyuafDCMekElo.VpsoLVtL9ODhbrmrcr8yKamfrafNd0e', true, id
from office
where name='Asociación Provincial de Autismo de Jaén');
UPDATE supervisor SET pic='/upload/supervisors/belen.jpg' WHERE name='Belén' AND surname='Pérez Vílchez';
INSERT INTO `supervisor` (`name`, `surname`, `gender`, `address`, `email`, `phone`, `lang`, `password`, `active`, `id_off`)
(SELECT 'Maria José','López LLavero', 'F', NULL, 'mariajose.lopez@autismojaen.es', NULL,
'es-es', '$2a$04$4q7oBkVSYBvk7ivBOyv47.plV7/HNlJGwq7Kbi4PQYr4Fac5ZHhP6', true, id from office where name='Asociación Provincial de Autismo de Jaén');
INSERT INTO `supervisor` (`name`, `surname`, `gender`, `address`, `email`, `phone`, `lang`, `password`, `active`, `id_off`)
(SELECT 'Elvira','Delgado', 'F', NULL, 'elvira.delgado@autismojaen.es', NULL,
'es-es', '$2a$04$akHdB39le32.wAZtIgcUqOIXzUeW3dobieSD3GlMvHKoZ0U/l9XZy', true, id from office where name='Asociación Provincial de Autismo de Jaén');
INSERT INTO `supervisor` (`name`, `surname`, `gender`, `address`, `email`, `phone`, `lang`, `password`, `active`, `id_off`)
(SELECT 'Juana','Martos', 'F', NULL, 'juana.martos@autismojaen.es', NULL,
'es-es', '$2a$04$tzPDIHXRaQZF16GsTy4sH.WH2BXcIvZGSaci/48yJmPYRI/WvUdXa', true, id from office where name='Asociación Provincial de Autismo de Jaén');
--
-- Tutores
--
INSERT INTO `supervisor` (`name`, `surname`, `gender`, `address`, `email`, `phone`, `lang`, `password`, `active`)
(SELECT 'Manuel','Colmenero', 'M', NULL, 'manuel.colmenero@autismojaen.es', NULL,
'es-es', '$2a$04$.yPeszNrugNdvpc4cQ.WJubMlfYxUIs1Xt3PU3W4STl5Lq.eWk.ay', true);
INSERT INTO `supervisor` (`name`, `surname`, `gender`, `address`, `email`, `phone`, `lang`, `password`, `active`)
(SELECT 'Yolanda','Oya', 'F', NULL, 'yolanda.oya@autismojaen.es', NULL,
'es-es', '$2a$04$EtbNfY5FVxdoGmOCj2FKF.JWhkCkeejPMJQvh/gw051Dwx87jFAIO', true);
INSERT INTO `supervisor` (`name`, `surname`, `gender`, `address`, `email`, `phone`, `lang`, `password`, `active`)
(SELECT 'Montserrat','Yera', 'F', NULL, 'motserrat.yera@autismojaen.es', NULL,
'es-es', '$2a$04$Bla8ZZdVDRJ70jWSgg6KFu/XDj9EEhgQiOFm/5t3N8wMXZWIUcOzy', true);
--
-- Admin
--
UPDATE office SET admin=(SELECT id FROM supervisor where name='Belén' and surname='Pérez Vílchez') WHERE name='Asociación Provincial de Autismo de Jaén';
--
-- Alumnos
--
INSERT INTO `student` (`name`, `surname`, `birthdate`, `gender`, `country`, `pic`, `notes`, `lang`, `attributes`) VALUES
('Manuel', 'Colmenero Hernández','2015-01-01','M','ES',NULL,NULL,'es-es', '{"stu-att" : [{ "categories" : "on", "input feedback" : [ "vibration", "tts" ], "input selection" : "click", "pictogram size" : "medium"}]}');
INSERT INTO `student` (`name`, `surname`, `birthdate`, `gender`, `country`, `pic`, `notes`, `lang`, `attributes`) VALUES
('José', 'Guzmán Oya','2015-01-01','M','ES',NULL,NULL,'es-es', '{"stu-att" : [{ "categories" : "on", "input feedback" : [ "vibration", "tts" ], "input selection" : "click", "pictogram size" : "medium"}]}');
INSERT INTO `student` (`name`, `surname`, `birthdate`, `gender`, `country`, `pic`, `notes`, `lang`, `attributes`) VALUES
('Carmen', 'García Yera','2015-01-01','F','ES',NULL,NULL,'es-es', '{"stu-att" : [{ "categories" : "on", "input feedback" : [ "vibration", "tts" ], "input selection" : "click", "pictogram size" : "medium"}]}');
--
-- Alumnos y Supervisores
--
insert into stu_sup(id_stu,id_sup) values (
(select id from student where name='Manuel' and surname='Colmenero Hernández'),
(select id from supervisor where name='Maria José' and surname='López LLavero'));
insert into stu_sup(id_stu,id_sup) values (
(select id from student where name='José' and surname='Guzmán Oya'),
(select id from supervisor where name='Elvira' and surname='Delgado'));
insert into stu_sup(id_stu,id_sup) values (
(select id from student where name='Carmen' and surname='García Yera'),
(select id from supervisor where name='Juana' and surname='Martos'));
insert into stu_sup(id_stu,id_sup) values (
(select id from student where name='Manuel' and surname='Colmenero Hernández'),
(select id from supervisor where name='Manuel' and surname='Colmenero'));
insert into stu_sup(id_stu,id_sup) values (
(select id from student where name='José' and surname='Guzmán Oya'),
(select id from supervisor where name='Yolanda' and surname='Oya'));
insert into stu_sup(id_stu,id_sup) values (
(select id from student where name='Carmen' and surname='García Yera'),
(select id from supervisor where name='Montserrat' and surname='Yera'));
--
-- Gabinete
--
UPDATE student SET id_off=(SELECT id from office where name='Asociación Provincial de Autismo de Jaén')
WHERE student.name='Manuel' and surname='Colmenero Hernández';
UPDATE student SET id_off=(SELECT id from office where name='Asociación Provincial de Autismo de Jaén')
WHERE student.name='José' and surname='Guzmán Oya';
UPDATE student SET id_off=(SELECT id from office where name='Asociación Provincial de Autismo de Jaén')
WHERE student.name='Carmen' and surname='García Yera';
INSERT INTO stu_picto(id_stu,id_pic,attributes)
SELECT S.id,P.id_pic, concat('{"id_cat":', if (id_cat_pic is null, 'null',id_cat_pic),
',"coord_x":',coord_x,
',"coord_y":',coord_y,
',"status":"invisible"',
',"highlight":false',
',"color":', if (color is null, 'null',concat('"',color,'"')),
'}') as attributes
FROM student S, picto_core_cat P
WHERE S.id_off = ('Asociación Provincial de Autismo de Jaén');
SET foreign_key_checks=1;
SETSQL_MODE="NO_AUTO_VALUE_ON_ZERO";
\ No newline at end of file
SETtime_zone="+00:00";
SETforeign_key_checks=0;
--
-- Oficina Autismo Jaen
--
INSERTINTO`office`(
`name`,
`address`,
`country`,
`contact_person`,
`email`,
`phone1`,
`lang`
)VALUES(
'Asociación Provincial de Autismo de Jaén',
'Avd. de Andalucía, 92 - bajo, 23006 Jaén',
'ES',
'Belén Pérez Vílchez',
'belen.perez@autismojaen.es',
'+34 953 236 158',
'es-es'
);
--
-- Admin
-- La contraseña es la primera parte del email (ej: manuel.colmenero)