KEY (`id_student`,`id_responsible`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Contenu de la table `responsible`
--

INSERT INTO `responsible` (`id_student`, `id_responsible`) VALUES
(3, 2),
(3, 3),
(3, 28),
(4, 2),
(4, 4),
(4, 28),
(5, 9),
(22, 26);

-- --------------------------------------------------------

--
-- Structure de la table `school_report`
--

CREATE TABLE IF NOT EXISTS `school_report` (
  `id_report` int(11) NOT NULL AUTO_INCREMENT,
  `status` tinyint(1) DEFAULT '0',
  `id_user` int(11) NOT NULL,
  PRIMARY KEY (`id_report`),
  KEY `FK_school_report_id_user` (`id_user`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;

--
-- Contenu de la table `school_report`
--

INSERT INTO `school_report` (`id_report`, `status`, `id_user`) VALUES
(3, 0, 3),
(4, 0, 4),
(5, 0, 5),
(6, 0, 6),
(7, 0, 7),
(8, 0, 8),
(9, 0, 22),
(10, 0, 23),
(11, 0, 24),
(12, 0, 25);

-- --------------------------------------------------------

--
-- Structure de la table `teacher`
--

CREATE TABLE IF NOT EXISTS `teacher` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_user` int(11) NOT NULL,
  `id_discipline` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

--
-- Contenu de la table `teacher`
--

INSERT INTO `teacher` (`id`, `id_user`, `id_discipline`) VALUES
(1, 13, 1),
(2, 14, 2);

-- --------------------------------------------------------

--
-- Structure de la table `type`
--

CREATE TABLE IF NOT EXISTS `type` (
  `id_type` int(11) NOT NULL AUTO_INCREMENT,
  `wording` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id_type`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

--
-- Contenu de la table `type`
--

INSERT INTO `type` (`id_type`, `wording`) VALUES
(1, 'Demande de rendez-vous'),
(2, 'Absence');

-- --------------------------------------------------------

--
-- Structure de la table `user`
--

CREATE TABLE IF NOT EXISTS `user` (
  `id_user` int(11) NOT NULL AUTO_INCREMENT,
  `login` varchar(50) NOT NULL,
  `password` varchar(40) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `lastname` varchar(30) NOT NULL,
  `firstname` varchar(30) NOT NULL,
  `email` varchar(40) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  `birth_date` date NOT NULL,
  `profile` int(11) DEFAULT '0',
  `rules` tinyint(1) NOT NULL DEFAULT '0',
  `enabled` tinyint(1) NOT NULL DEFAULT '0',
  `admin` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id_user`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=29 ;

--
-- Contenu de la table `user`
--

INSERT INTO `user` (`id_user`, `login`, `password`, `lastname`, `firstname`, `email`, `birth_date`, `profile`, `rules`, `enabled`, `admin`) VALUES
(1, 'admin', 'ce272597bd050f938eefe3323edcc370', 'admin', 'admin', 'admin@root.org', '1979-11-11', 30, 0, 1, 1),
(3, 'eleve10', 'ce272597bd050f938eefe3323edcc370', 'Dupond', 'Eric', 'eleve10@eole.lan', '2000-11-11', 10, 0, 1, 0),
(2, 'responsable', 'ce272597bd050f938eefe3323edcc370', 'Dupond', 'Jean', 'responsable@eole.lan', '1956-11-11', 20, 1, 1, 0),
(4, 'eleve11', 'ce272597bd050f938eefe3323edcc370', 'Dupond', 'Emile', 'eleve11@eole.lan', '2000-11-11', 10, 0, 1, 0),
(5, 'jleserveur', '95939ede4474ccf5bcf46c292a16b11f', 'Leserveur', 'Jacques', 'jleserveur@free.fr', '1111-11-11', 10, 0, 0, 0),
(6, 'jlisse', '0713e823c74048a5d513e31474b53da2', 'Lisse', 'Jean', 'jslisse@sfr.fr', '1975-11-11', 10, 0, 1, 0),
(7, 'prof5', 'ce272597bd050f938eefe3323edcc370', 'prof5', 'prof5', 'prof5', '1958-11-11', 30, 0, 1, 0),
(21, 'test.test', '95939ede4474ccf5bcf46c292a16b11f', 'test', 'testeeee', 'tom.cat@free.fr', '1983-11-11', 30, 0, 1, 0),
(9, 'jmleserveur', '95939ede4474ccf5bcf46c292a16b11f', 'leserveur', 'Jean Marie', '', '0000-00-00', 20, 0, 0, 0),
(10, 'tom.cat', 'ce272597bd050f938eefe3323edcc370', 'Cat', 'Tom', 'tom.cat@free.fr', '1975-11-11', 10, 0, 1, 0),
(11, 'kit.cat', '0db2c6be3c5179bc8f1d6a0358be6d4c', 'Cat', 'Kit', 'kit.cat@free.fr', '0000-00-00', 20, 0, 1, 0),
(13, 'prof1', 'ce272597bd050f938eefe3323edcc370', 'prof1', 'prof1', 'prof1@eole.lan', '1111-11-11', 30, 0, 1, 0),
(14, 'prof2', 'ce272597bd050f938eefe3323edcc370', 'prof2', 'prof2', 'prof2@eole.lan', '1111-11-11', 30, 0, 1, 0),
(15, 'prof3', 'ce272597bd050f938eefe3323edcc370', 'prof3', 'prof3', 'prof3@eole.lan', '1111-11-11', 30, 0, 1, 0),
(16, 'prof4', 'ce272597bd050f938eefe3323edcc370', 'prof4', 'prof4', 'prof4@eole.lan', '1111-11-11', 30, 0, 1, 1),
(24, 'eleve3', 'ce272597bd050f938eefe3323edcc370', 'eleve3', 'eleve3', 'eleve3@eole.lan', '2000-11-11', 10, 0, 1, 0),
(23, 'eleve2', 'ce272597bd050f938eefe3323edcc370', 'eleve2', 'eleve2', 'eleve2@eole.lan', '2000-11-11', 10, 0, 1, 0),
(22, 'eleve1', 'ce272597bd050f938eefe3323edcc370', 'eleve1', 'eleve1', 'eleve1@eole.lan', '2000-11-11', 10, 1, 1, 0),
(25, 'eleve4', 'ce272597bd050f938eefe3323edcc370', 'eleve4', 'eleve4', 'eleve4@eole.lan', '1980-11-11', 10, 0, 1, 0),
(26, 'responsable1', 'ce272597bd050f938eefe3323edcc370', 'responsable1', 'responsable1', 'responsable1@eole.lan', '1965-11-11', 20, 0, 1, 0),
(28, 'responsablebis', 'ce272597bd050f938eefe3323edcc370', 'Dupond', 'Anne', 'responsablebis@eole.lan', '1956-12-14', 20, 1, 1, 0);
