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
| --
-- Structure de la table `taches`
--
CREATE TABLE IF NOT EXISTS `taches` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`idUser` int(11) NOT NULL,
`titre` varchar(50) NOT NULL,
`occupation` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Contenu de la table `taches`
--
INSERT INTO `taches` (`id`, `idUser`, `titre`, `occupation`) VALUES
(1, 1, 'Tache 1', 10),
(2, 2, 'Tache 2', 5),
(3, 1, 'Tache 3', 2),
(4, 1, 'Tache 4', 12);
-- --------------------------------------------------------
--
-- Structure de la table `taches_users`
--
CREATE TABLE IF NOT EXISTS `taches_users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`idUser` int(11) NOT NULL,
`idTache` int(11) NOT NULL,
`occupation` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Contenu de la table `taches_users`
--
INSERT INTO `taches_users` (`id`, `idUser`, `idTache`, `occupation`) VALUES
(1, 2, 1, 25),
(2, 2, 4, 7),
(3, 1, 2, 24);
-- --------------------------------------------------------
--
-- Structure de la table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nom` varchar(50) NOT NULL,
`prenom` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Contenu de la table `users`
--
INSERT INTO `users` (`id`, `nom`, `prenom`) VALUES
(1, 'Dupont', 'Jean'),
(2, 'Tournesol', 'Triffon'),
(3, 'arien', 'glandeur'); |