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
| --
-- Structure de la table `client`
--
CREATE TABLE `client` (
`id` int(11) NOT NULL auto_increment,
`label` varchar(255) collate utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=8 ;
--
-- Contenu de la table `client`
--
INSERT INTO `client` (`id`, `label`) VALUES
(1, 'VTP'),
(2, 'PLU'),
(3, 'MIS');
-- --------------------------------------------------------
--
-- Structure de la table `projet`
--
CREATE TABLE `projet` (
`id` int(11) NOT NULL auto_increment,
`label` varchar(255) collate utf8_unicode_ci NOT NULL,
`version` varchar(15) collate utf8_unicode_ci default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=15 ;
--
-- Contenu de la table `projet`
--
INSERT INTO `projet` (`id`, `label`, `version`) VALUES
(1, 'PROJET1', '2'),
(2, 'PROJET2', '3'),
(3, 'PROJET3', '2');
-- --------------------------------------------------------
--
-- Structure de la table `projet_version`
--
CREATE TABLE `projet_version` (
`id` int(11) NOT NULL auto_increment,
`label` varchar(50) collate utf8_unicode_ci NOT NULL,
`id_projet` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=17 ;
--
-- Contenu de la table `projet_version`
--
INSERT INTO `projet_version` (`id`, `label`, `id_projet`) VALUES
(2, '5.0', 1),
(3, '3.01i', 3);
-- --------------------------------------------------------
--
-- Structure de la table `tache`
--
CREATE TABLE `tache` (
`id` int(11) NOT NULL auto_increment,
`date_ask` date NOT NULL COMMENT 'Date de demande',
`demandeur` varchar(255) collate utf8_unicode_ci NOT NULL,
`client` int(11) NOT NULL,
`description` text collate utf8_unicode_ci NOT NULL,
`date_limit` date default NULL COMMENT 'Date limite de rendu',
`etat` varchar(25) collate utf8_unicode_ci NOT NULL COMMENT 'Etat du projet',
`projet` int(11) NOT NULL,
`version` int(11) NOT NULL,
`user` int(11) NOT NULL,
`planning` int(11) NOT NULL COMMENT 'Id de l entrée planning correspondante',
`remarque` text collate utf8_unicode_ci,
`valid_teb` binary(1) NOT NULL default '0',
`valid_pry` binary(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=43 ;
--
-- Contenu de la table `tache`
--
INSERT INTO `tache` (`id`, `date_ask`, `demandeur`, `client`, `description`, `date_limit`, `etat`, `projet`, `version`, `user`, `planning`, `remarque`, `valid_teb`, `valid_pry`) VALUES
(1, '2008-09-01', 'QSD', 1, 'Description 1', '2008-09-15', 'Terminé', 1, 1, 1, 92, '', 0x31, 0x31),
(4, '2008-07-01', 'QSD', 3, 'Description 2', '2008-09-01', 'Terminé', 3, 1, 5, 95, '', 0x31, 0x31),
(5, '2008-03-01', 'QSD', 2, 'Description 3', '2008-08-31', 'Terminé', 2, 2, 6, 96, '', 0x31, 0x31);
-- --------------------------------------------------------
--
-- Structure de la table `tache_assoc`
--
CREATE TABLE `tache_assoc` (
`id` int(11) NOT NULL auto_increment,
`id_user` int(11) NOT NULL,
`id_tache` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=35 ;
--
-- Contenu de la table `tache_assoc`
--
INSERT INTO `tache_assoc` (`id`, `id_user`, `id_tache`) VALUES
(32, 5, 4),
(34, 1, 1),
(33, 6, 5);
-- --------------------------------------------------------
--
-- Structure de la table `user`
--
CREATE TABLE `user` (
`id` int(11) NOT NULL auto_increment,
`login` varchar(64) collate utf8_unicode_ci NOT NULL,
`pass` varchar(255) collate utf8_unicode_ci NOT NULL,
`email` varchar(128) collate utf8_unicode_ci NOT NULL,
`groupe` int(11) default NULL,
`nom` varchar(50) collate utf8_unicode_ci default NULL,
`prenom` varchar(50) character set utf8 default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `login` (`login`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=18 ;
--
-- Contenu de la table `user`
--
INSERT INTO `user` (`id`, `login`, `pass`, `email`, `groupe`, `nom`, `prenom`) VALUES
(1, 'user1', '152fc4dddcedc0be83ea10cd2667d9e4218b00439c65cb352f4a048e409203b2', 'mail@fai.com', 1, 'Triphon', 'Tournesol'),
(5, 'user2', 'e23c3d7ff76f6e6235ce091f2fcd5fd35748677799d1637acf5ba2bca350e258', 'mail@fai.com', 2, 'Dupond', 'Pierre'),
(6, 'user3', 'e691c862993f99ddab871762b86353493d84438e60848e3c1a819cce6794e746', 'mail@fai.com', 1, 'Dupont', 'Jean'); |
Partager